diff --git a/.github/workflows/CI-appsec-blackduck-master-include_diagnostics.yml b/.github/workflows/CI-appsec-blackduck-master-include_diagnostics.yml index b6117973..fae12fc9 100644 --- a/.github/workflows/CI-appsec-blackduck-master-include_diagnostics.yml +++ b/.github/workflows/CI-appsec-blackduck-master-include_diagnostics.yml @@ -6,11 +6,11 @@ on: branches: - main paths: - - 'build.gradle' + - "build.gradle" jobs: blackduck-scan: - runs-on: [ ubuntu-latest ] + runs-on: [ubuntu-latest] steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 @@ -30,6 +30,9 @@ jobs: UNIT_API_URL: ${{ secrets.UNIT_API_URL }} UNIT_TOKEN: ${{ secrets.UNIT_TOKEN }} access_token: ${{ secrets.UNIT_TOKEN }} + token_tests_user_id: ${{ secrets.TOKEN_TESTS_USER_ID }} + test_plaid_counterparty_token: ${{ secrets.TEST_PLAID_COUNTERPARTY_TOKEN }} + wallet_terms: ${{ secrets.WALLET_TERMS }} - name: Black Duck Full Scan uses: synopsys-sig/synopsys-action@v1.6.0 @@ -42,17 +45,17 @@ jobs: blackduck_url: ${{ secrets.BLACKDUCK_URL }} blackduck_token: ${{ secrets.BLACKDUCK_API_TOKEN }} blackduck_scan_full: true - + ### Accepts Multiple Values - blackduck_scan_failure_severities: 'BLOCKER,CRITICAL' - + blackduck_scan_failure_severities: "BLOCKER,CRITICAL" + ### Uncomment below configuration to enable automatic fix pull request creation if vulnerabilities are reported blackduck_fixpr_enabled: true blackduck_fixpr_maxCount: 5 - blackduck_fixpr_filter_severities: 'CRITICAL,HIGH' - blackduck_fixpr_useUpgradeGuidance: 'SHORT_TERM,LONG_TERM' + blackduck_fixpr_filter_severities: "CRITICAL,HIGH" + blackduck_fixpr_useUpgradeGuidance: "SHORT_TERM,LONG_TERM" github_token: ${{ secrets.GITHUB_TOKEN }} # Mandatory when blackduck_fixpr_enabled is set to 'true' - + ### Uncomment below configuration if Synopsys Bridge diagnostic files needs to be uploaded include_diagnostics: true @@ -60,28 +63,27 @@ jobs: uses: 1password/load-secrets-action/configure@v1 if: ${{ failure() }} with: - service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} - name: If failed - Load Slack Webhook URL Secret uses: 1password/load-secrets-action@v1 if: ${{ failure() }} with: - export-env: true + export-env: true env: - SLACK_WEBHOOK_URL: op://Security/slack-appsec-blackduck-alerts/webhook-url - - name: If failed - Report failure to Slack + SLACK_WEBHOOK_URL: op://Security/slack-appsec-blackduck-alerts/webhook-url + - name: If failed - Report failure to Slack #Slack channel: appsec-blackduck-alerts - uses: ravsamhq/notify-slack-action@v2 + uses: ravsamhq/notify-slack-action@v2 if: ${{ failure() }} with: - status: ${{ job.status }} - token: ${{ secrets.GITHUB_TOKEN }} - notification_title: "{workflow} has {status_message}" - message_format: "{emoji} *{workflow}* {status_message} in <{run_url}|{repo}>" - footer: "Linked Run <{run_url}|{repo}>" - notify_when: "failure" - mention_users: "U040AD4BT42" - mention_users_when: "failure,warnings" - mention_groups: "!channel" + status: ${{ job.status }} + token: ${{ secrets.GITHUB_TOKEN }} + notification_title: "{workflow} has {status_message}" + message_format: "{emoji} *{workflow}* {status_message} in <{run_url}|{repo}>" + footer: "Linked Run <{run_url}|{repo}>" + notify_when: "failure" + mention_users: "U040AD4BT42" + mention_users_when: "failure,warnings" + mention_groups: "!channel" env: - SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} - + SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/CI-appsec-blackduck-master.yml b/.github/workflows/CI-appsec-blackduck-master.yml index 9a297595..cb633fc0 100644 --- a/.github/workflows/CI-appsec-blackduck-master.yml +++ b/.github/workflows/CI-appsec-blackduck-master.yml @@ -2,18 +2,18 @@ name: CI-AppSec [Master] on: schedule: #At 13:00 on every day-of-week from Sunday through Thursday. - - cron: '0 13 * * SUN-THU' + - cron: "0 13 * * SUN-THU" workflow_dispatch: #The workflow will only run when a push that includes a change to the build.gradle file is made in the main branch. push: branches: - main paths: - - 'build.gradle' + - "build.gradle" jobs: blackduck-scan: - runs-on: [ ubuntu-latest ] + runs-on: [ubuntu-latest] steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 @@ -30,6 +30,9 @@ jobs: UNIT_API_URL: ${{ secrets.UNIT_API_URL }} UNIT_TOKEN: ${{ secrets.UNIT_TOKEN }} access_token: ${{ secrets.UNIT_TOKEN }} + token_tests_user_id: ${{ secrets.TOKEN_TESTS_USER_ID }} + test_plaid_counterparty_token: ${{ secrets.TEST_PLAID_COUNTERPARTY_TOKEN }} + wallet_terms: ${{ secrets.WALLET_TERMS }} - name: Black Duck Full Scan uses: synopsys-sig/synopsys-action@v1.6.0 @@ -42,17 +45,17 @@ jobs: blackduck_url: ${{ secrets.BLACKDUCK_URL }} blackduck_token: ${{ secrets.BLACKDUCK_API_TOKEN }} blackduck_scan_full: true - + ### Accepts Multiple Values - blackduck_scan_failure_severities: 'BLOCKER,CRITICAL' - + blackduck_scan_failure_severities: "BLOCKER,CRITICAL" + ### Uncomment below configuration to enable automatic fix pull request creation if vulnerabilities are reported blackduck_fixpr_enabled: true blackduck_fixpr_maxCount: 5 - blackduck_fixpr_filter_severities: 'CRITICAL,HIGH' - blackduck_fixpr_useUpgradeGuidance: 'SHORT_TERM,LONG_TERM' + blackduck_fixpr_filter_severities: "CRITICAL,HIGH" + blackduck_fixpr_useUpgradeGuidance: "SHORT_TERM,LONG_TERM" github_token: ${{ secrets.GITHUB_TOKEN }} # Mandatory when blackduck_fixpr_enabled is set to 'true' - + ### Uncomment below configuration if Synopsys Bridge diagnostic files needs to be uploaded # include_diagnostics: true @@ -60,28 +63,27 @@ jobs: uses: 1password/load-secrets-action/configure@v1 if: ${{ failure() }} with: - service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} - name: If failed - Load Slack Webhook URL Secret uses: 1password/load-secrets-action@v1 if: ${{ failure() }} with: - export-env: true + export-env: true env: - SLACK_WEBHOOK_URL: op://Security/slack-appsec-blackduck-alerts/webhook-url - - name: If failed - Report failure to Slack + SLACK_WEBHOOK_URL: op://Security/slack-appsec-blackduck-alerts/webhook-url + - name: If failed - Report failure to Slack #Slack channel: appsec-blackduck-alerts - uses: ravsamhq/notify-slack-action@v2 + uses: ravsamhq/notify-slack-action@v2 if: ${{ failure() }} with: - status: ${{ job.status }} - token: ${{ secrets.GITHUB_TOKEN }} - notification_title: "{workflow} has {status_message}" - message_format: "{emoji} *{workflow}* {status_message} in <{run_url}|{repo}>" - footer: "Linked Run <{run_url}|{repo}>" - notify_when: "failure" - mention_users: "U040AD4BT42" - mention_users_when: "failure,warnings" - mention_groups: "!channel" + status: ${{ job.status }} + token: ${{ secrets.GITHUB_TOKEN }} + notification_title: "{workflow} has {status_message}" + message_format: "{emoji} *{workflow}* {status_message} in <{run_url}|{repo}>" + footer: "Linked Run <{run_url}|{repo}>" + notify_when: "failure" + mention_users: "U040AD4BT42" + mention_users_when: "failure,warnings" + mention_groups: "!channel" env: - SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} - + SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index e784fbb9..4da1644d 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -27,6 +27,9 @@ jobs: UNIT_API_URL: ${{ secrets.UNIT_API_URL }} UNIT_TOKEN: ${{ secrets.UNIT_TOKEN }} access_token: ${{ secrets.UNIT_TOKEN }} + token_tests_user_id: ${{ secrets.TOKEN_TESTS_USER_ID }} + test_plaid_counterparty_token: ${{ secrets.TEST_PLAID_COUNTERPARTY_TOKEN }} + wallet_terms: ${{ secrets.WALLET_TERMS }} - name: Store reports if: failure() diff --git a/README.md b/README.md index 95d9fab3..8c131693 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ p.setNumber("5555555555"); p.setCountryCode("1"); attr.setPhone(p); attr.setIdempotencyKey("3a1a33be-4e12-4603-9ed0-820922389fb8"); -attr.setOccupation(Occupation.ARCHITECTORENGINEER); +attr.setOccupation(Occupation.ARCHITECT_OR_ENGINEER); createIndividualApplication.setAttributes(attr); diff --git a/build.gradle b/build.gradle index 5a3cadc3..758bb9f6 100644 --- a/build.gradle +++ b/build.gradle @@ -123,6 +123,7 @@ ext { jackson_version = "2.14.1" jakarta_annotation_version = "2.1.1" junit_version = "4.13.2" + httpmime_version = "4.5.13" } dependencies { @@ -134,6 +135,8 @@ dependencies { implementation "org.openapitools:jackson-databind-nullable:0.2.1" implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" implementation 'jakarta.annotation:jakarta.annotation-api:2.1.1' + implementation "org.apache.httpcomponents:httpmime:$httpmime_version" + implementation "commons-io:commons-io:2.5" testImplementation "junit:junit:$junit_version" } @@ -169,6 +172,10 @@ spotless { } test { + testLogging { + showStandardStreams = true + } + useJUnit() } // // Enable JUnit 5 (Gradle 4.6+). diff --git a/pom.xml b/pom.xml index 0f13f87e..9d566e3d 100644 --- a/pom.xml +++ b/pom.xml @@ -234,6 +234,11 @@ ${jakarta-annotation-version} provided + + org.apache.httpcomponents + httpmime + ${httpmime-version} + @@ -253,5 +258,6 @@ 2.1.1 4.13.2 2.27.2 + 4.5.14 diff --git a/src/main/java/unit/java/sdk/ApiClient.java b/src/main/java/unit/java/sdk/ApiClient.java index c8326058..a6b4804e 100644 --- a/src/main/java/unit/java/sdk/ApiClient.java +++ b/src/main/java/unit/java/sdk/ApiClient.java @@ -51,7 +51,7 @@ *

The setter methods of this class return the current object to facilitate * a fluent style of configuration.

*/ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiClient { private HttpClient.Builder builder; @@ -66,7 +66,7 @@ public class ApiClient { private Duration readTimeout; private Duration connectTimeout; - private static String valueToString(Object value) { + public static String valueToString(Object value) { if (value == null) { return ""; } diff --git a/src/main/java/unit/java/sdk/ApiException.java b/src/main/java/unit/java/sdk/ApiException.java index c2fc824f..8eb62d62 100644 --- a/src/main/java/unit/java/sdk/ApiException.java +++ b/src/main/java/unit/java/sdk/ApiException.java @@ -15,7 +15,7 @@ import java.net.http.HttpHeaders; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/src/main/java/unit/java/sdk/ApiResponse.java b/src/main/java/unit/java/sdk/ApiResponse.java index 32e459e4..67b2bb2e 100644 --- a/src/main/java/unit/java/sdk/ApiResponse.java +++ b/src/main/java/unit/java/sdk/ApiResponse.java @@ -21,7 +21,7 @@ * * @param The type of data that is deserialized from response body */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiResponse { final private int statusCode; final private Map> headers; diff --git a/src/main/java/unit/java/sdk/Configuration.java b/src/main/java/unit/java/sdk/Configuration.java index 981bf579..862f164a 100644 --- a/src/main/java/unit/java/sdk/Configuration.java +++ b/src/main/java/unit/java/sdk/Configuration.java @@ -13,7 +13,7 @@ package unit.java.sdk; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Configuration { public static final String VERSION = "0.1.0"; diff --git a/src/main/java/unit/java/sdk/JSON.java b/src/main/java/unit/java/sdk/JSON.java index 2ab5030f..6d908b91 100644 --- a/src/main/java/unit/java/sdk/JSON.java +++ b/src/main/java/unit/java/sdk/JSON.java @@ -1,3 +1,16 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package unit.java.sdk; import com.fasterxml.jackson.annotation.*; @@ -13,7 +26,7 @@ import java.util.Map; import java.util.Set; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class JSON { private ObjectMapper mapper; @@ -21,7 +34,7 @@ public JSON() { mapper = JsonMapper.builder() .serializationInclusion(JsonInclude.Include.NON_NULL) .disable(MapperFeature.ALLOW_COERCION_OF_SCALARS) - .enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) + .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) .enable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE) .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS) .enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING) @@ -69,7 +82,7 @@ public static Class getClassForElement(JsonNode node, Class modelClass) { /** * Helper class to register the discriminator mappings. */ - @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") + @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") private static class ClassDiscriminatorMapping { // The model class name. Class modelClass; diff --git a/src/main/java/unit/java/sdk/Pair.java b/src/main/java/unit/java/sdk/Pair.java index eaa6ebe3..32992d98 100644 --- a/src/main/java/unit/java/sdk/Pair.java +++ b/src/main/java/unit/java/sdk/Pair.java @@ -13,7 +13,7 @@ package unit.java.sdk; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/unit/java/sdk/RFC3339DateFormat.java b/src/main/java/unit/java/sdk/RFC3339DateFormat.java index 4e596429..2c430382 100644 --- a/src/main/java/unit/java/sdk/RFC3339DateFormat.java +++ b/src/main/java/unit/java/sdk/RFC3339DateFormat.java @@ -22,7 +22,7 @@ import java.util.GregorianCalendar; import java.util.TimeZone; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RFC3339DateFormat extends DateFormat { private static final long serialVersionUID = 1L; private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC"); diff --git a/src/main/java/unit/java/sdk/ServerConfiguration.java b/src/main/java/unit/java/sdk/ServerConfiguration.java index c9c59160..c5fc2206 100644 --- a/src/main/java/unit/java/sdk/ServerConfiguration.java +++ b/src/main/java/unit/java/sdk/ServerConfiguration.java @@ -1,3 +1,16 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package unit.java.sdk; import java.util.Map; @@ -5,7 +18,7 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ServerConfiguration { public String URL; public String description; diff --git a/src/main/java/unit/java/sdk/ServerVariable.java b/src/main/java/unit/java/sdk/ServerVariable.java index cb6d280f..bd59ce4f 100644 --- a/src/main/java/unit/java/sdk/ServerVariable.java +++ b/src/main/java/unit/java/sdk/ServerVariable.java @@ -1,3 +1,16 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + package unit.java.sdk; import java.util.HashSet; @@ -5,7 +18,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/src/main/java/unit/java/sdk/api/RepaymentInformationApi.java b/src/main/java/unit/java/sdk/api/RepaymentInformationApi.java deleted file mode 100644 index 74a3ae3c..00000000 --- a/src/main/java/unit/java/sdk/api/RepaymentInformationApi.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Unit OpenAPI specifications - * An OpenAPI specifications for unit-sdk clients - * - * The version of the OpenAPI document: 0.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package unit.java.sdk.api; - -import unit.java.sdk.ApiClient; -import unit.java.sdk.ApiException; -import unit.java.sdk.ApiResponse; -import unit.java.sdk.Pair; - -import unit.java.sdk.model.UnitErrorInner; -import unit.java.sdk.model.UnitRepaymentInformationResponse; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; - -import java.io.InputStream; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.io.IOException; -import java.io.OutputStream; -import java.net.http.HttpRequest; -import java.nio.channels.Channels; -import java.nio.channels.Pipe; -import java.net.URI; -import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.time.Duration; - -import java.util.ArrayList; -import java.util.StringJoiner; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.function.Consumer; - -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class RepaymentInformationApi { - private final HttpClient memberVarHttpClient; - private final ObjectMapper memberVarObjectMapper; - private final String memberVarBaseUri; - private final Consumer memberVarInterceptor; - private final Duration memberVarReadTimeout; - private final Consumer> memberVarResponseInterceptor; - private final Consumer> memberVarAsyncResponseInterceptor; - - public RepaymentInformationApi() { - this(new ApiClient()); - } - - public RepaymentInformationApi(ApiClient apiClient) { - memberVarHttpClient = apiClient.getHttpClient(); - memberVarObjectMapper = apiClient.getObjectMapper(); - memberVarBaseUri = apiClient.getBaseUri(); - memberVarInterceptor = apiClient.getRequestInterceptor(); - memberVarReadTimeout = apiClient.getReadTimeout(); - memberVarResponseInterceptor = apiClient.getResponseInterceptor(); - memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor(); - } - - protected ApiException getApiException(String operationId, HttpResponse response) throws IOException { - String body = response.body() == null ? null : new String(response.body().readAllBytes()); - String message = formatExceptionMessage(operationId, response.statusCode(), body); - return new ApiException(response.statusCode(), message, response.headers(), body); - } - - private String formatExceptionMessage(String operationId, int statusCode, String body) { - if (body == null || body.isEmpty()) { - body = "[no body]"; - } - return operationId + " call failed with: " + statusCode + " - " + body; - } - - /** - * Get Repayment Information - * Retrieve the repayment information for a specific account via API - * @param accountId ID of the account to get repayment information for (required) - * @return UnitRepaymentInformationResponse - * @throws ApiException if fails to make API call - */ - public UnitRepaymentInformationResponse execute(String accountId) throws ApiException { - ApiResponse localVarResponse = executeWithHttpInfo(accountId); - return localVarResponse.getData(); - } - - /** - * Get Repayment Information - * Retrieve the repayment information for a specific account via API - * @param accountId ID of the account to get repayment information for (required) - * @return ApiResponse<UnitRepaymentInformationResponse> - * @throws ApiException if fails to make API call - */ - public ApiResponse executeWithHttpInfo(String accountId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(accountId); - try { - HttpResponse localVarResponse = memberVarHttpClient.send( - localVarRequestBuilder.build(), - HttpResponse.BodyHandlers.ofInputStream()); - if (memberVarResponseInterceptor != null) { - memberVarResponseInterceptor.accept(localVarResponse); - } - try { - if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("execute", localVarResponse); - } - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream - ); - } finally { - } - } catch (IOException e) { - throw new ApiException(e); - } - catch (InterruptedException e) { - Thread.currentThread().interrupt(); - throw new ApiException(e); - } - } - - private HttpRequest.Builder executeRequestBuilder(String accountId) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException(400, "Missing the required parameter 'accountId' when calling execute"); - } - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/accounts/{accountId}/repayment-information" - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); - - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - -} diff --git a/src/main/java/unit/java/sdk/api/UnitApi.java b/src/main/java/unit/java/sdk/api/UnitApi.java index dc3281c6..89bfa1bb 100644 --- a/src/main/java/unit/java/sdk/api/UnitApi.java +++ b/src/main/java/unit/java/sdk/api/UnitApi.java @@ -17,6 +17,7 @@ import unit.java.sdk.ApiResponse; import unit.java.sdk.Pair; +import unit.java.sdk.model.AddAccountOwnersRequest; import unit.java.sdk.model.AddAuthorizedUsersRequest; import unit.java.sdk.model.ApproveAuthorizationRequest; import unit.java.sdk.model.ApproveCheckPaymentRequest; @@ -24,10 +25,13 @@ import unit.java.sdk.model.AtmLocation; import unit.java.sdk.model.CancelApplicationRequest; import unit.java.sdk.model.CloseAccountRequest; +import unit.java.sdk.model.ConfirmCheckDepositRequest; +import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRequest; import unit.java.sdk.model.CreateAccountRequest; import unit.java.sdk.model.CreateApiTokenRequest; import unit.java.sdk.model.CreateApplicationFormRequest; import unit.java.sdk.model.CreateApplicationRequest; +import unit.java.sdk.model.CreateAtmDepositSimulationRequest; import unit.java.sdk.model.CreateCardRequest; import unit.java.sdk.model.CreateCheckDepositRequest; import unit.java.sdk.model.CreateCheckPaymentRequest; @@ -35,18 +39,21 @@ import unit.java.sdk.model.CreateCustomerTokenRequest; import unit.java.sdk.model.CreateCustomerTokenVerificationRequest; import unit.java.sdk.model.CreateFeeRequest; +import unit.java.sdk.model.CreateIncomingAchPaymentRequest; import unit.java.sdk.model.CreatePaymentRequest; import unit.java.sdk.model.CreateRecurringPaymentRequest; import unit.java.sdk.model.CreateRecurringRepaymentRequest; import unit.java.sdk.model.CreateRepaymentRequest; import unit.java.sdk.model.CreateRewardRequest; import unit.java.sdk.model.CreateStopPaymentRequest; -import unit.java.sdk.model.CreateWebhook; +import unit.java.sdk.model.CreateWebhookRequest; import unit.java.sdk.model.DeclineAuthorizationRequest; import unit.java.sdk.model.DefaultContentType; import unit.java.sdk.model.Dispute; import java.io.File; import unit.java.sdk.model.FreezeAccountRequest; +import unit.java.sdk.model.GenerateBarcodeRequest; +import unit.java.sdk.model.GetAccountBalanceHistoryFilterParameter; import unit.java.sdk.model.GetAccountsListFilterParameter; import unit.java.sdk.model.GetApplicationFormsListFilterParameter; import unit.java.sdk.model.GetApplicationsListFilterParameter; @@ -54,26 +61,34 @@ import unit.java.sdk.model.GetAuthorizationRequestsListFilterParameter; import unit.java.sdk.model.GetAuthorizationsListFilterParameter; import unit.java.sdk.model.GetCardsListFilterParameter; +import unit.java.sdk.model.GetCashDepositStoreLocationsListFilterParameter; import unit.java.sdk.model.GetCheckDepositsListFilterParameter; import unit.java.sdk.model.GetCheckPaymentsListFilterParameter; import unit.java.sdk.model.GetCounterpartiesListFilterParameter; import unit.java.sdk.model.GetCustomersListFilterParameter; import unit.java.sdk.model.GetDisputesListFilterParameter; import unit.java.sdk.model.GetEventsListFilterParameter; -import unit.java.sdk.model.GetListRewardsFilterParameter; import unit.java.sdk.model.GetPaymentsListFilterParameter; +import unit.java.sdk.model.GetReceivedPaymentsListFilterParameter; import unit.java.sdk.model.GetRecurringPaymentsListFilterParameter; import unit.java.sdk.model.GetRecurringRepaymentsListFilterParameter; import unit.java.sdk.model.GetRepaymentsListFilterParameter; +import unit.java.sdk.model.GetRewardsListFilterParameter; import unit.java.sdk.model.GetStatementsListFilterParameter; import unit.java.sdk.model.GetStopPaymentsListFilterParameter; +import unit.java.sdk.model.GetTaxFormsListFilterParameter; import unit.java.sdk.model.GetTransactionsListFilterParameter; import unit.java.sdk.model.GetWebhooksListFilterParameter; import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.RemoveAccountOwnersRequest; import unit.java.sdk.model.RemoveAuthorizedUsersRequest; +import unit.java.sdk.model.ReplaceCardRequest; import unit.java.sdk.model.ReturnCheckPaymentRequest; +import unit.java.sdk.model.ReturnReceivedACHTransactionRequest; +import unit.java.sdk.model.ReverseFeeRequest; import unit.java.sdk.model.StopPaymentListResponse; import unit.java.sdk.model.StopPaymentResponse; +import unit.java.sdk.model.UnitAccountBalanceHistoryResponse; import unit.java.sdk.model.UnitAccountResponse; import unit.java.sdk.model.UnitAccountResponseWithIncluded; import unit.java.sdk.model.UnitAccountsListResponse; @@ -90,36 +105,35 @@ import unit.java.sdk.model.UnitCancelApplicationResponse; import unit.java.sdk.model.UnitCardLimitsResponse; import unit.java.sdk.model.UnitCardResponse; -import unit.java.sdk.model.UnitCardResponseCardsList; -import unit.java.sdk.model.UnitCardsListResponse; +import unit.java.sdk.model.UnitCardResponseWithIncluded; +import unit.java.sdk.model.UnitCardsListReponse; +import unit.java.sdk.model.UnitCashDepositBarcodeResponse; import unit.java.sdk.model.UnitCheckDepositResponse; import unit.java.sdk.model.UnitCheckPaymentResponse; -import unit.java.sdk.model.UnitCloseCardResponse; -import unit.java.sdk.model.UnitConfirmCheckDepositResponse; import unit.java.sdk.model.UnitCounterpartiesListResponse; +import unit.java.sdk.model.UnitCounterpartyBalanceResponse; import unit.java.sdk.model.UnitCounterpartyResponse; -import unit.java.sdk.model.UnitCounterpartyResponse1; import unit.java.sdk.model.UnitCreateApplicationResponse; import unit.java.sdk.model.UnitCustomerResponse; import unit.java.sdk.model.UnitCustomerTokenResponse; import unit.java.sdk.model.UnitCustomerTokenVerificationResponse; import unit.java.sdk.model.UnitCustomersListResponse; +import unit.java.sdk.model.UnitDepositAccountResponse; +import unit.java.sdk.model.UnitDepositProductsResponse; import unit.java.sdk.model.UnitDisputeResponse; import unit.java.sdk.model.UnitDocumentResponse; import unit.java.sdk.model.UnitErrorInner; import unit.java.sdk.model.UnitEventListResponse; import unit.java.sdk.model.UnitEventResponse; import unit.java.sdk.model.UnitFeeResponse; -import unit.java.sdk.model.UnitFreezeCardResponse; +import unit.java.sdk.model.UnitFeeReversalResponse; import unit.java.sdk.model.UnitFrontCheckDepositResponse; -import unit.java.sdk.model.UnitGetAccountEndOfDayListResponse; import unit.java.sdk.model.UnitGetAccountLimitsResponse; import unit.java.sdk.model.UnitInstitutionResponse; import unit.java.sdk.model.UnitListApplicationsResponse; import unit.java.sdk.model.UnitListAuthorizationRequestsResponse; import unit.java.sdk.model.UnitListAuthorizationsResponse; -import unit.java.sdk.model.UnitListCheckDepositsResponse; -import unit.java.sdk.model.UnitListCheckDepositsResponse1; +import unit.java.sdk.model.UnitListCheckDepositResponse; import unit.java.sdk.model.UnitListCheckPaymentsResponse; import unit.java.sdk.model.UnitListDocumentsResponse; import unit.java.sdk.model.UnitOrgApiTokensListResponse; @@ -134,19 +148,20 @@ import unit.java.sdk.model.UnitRecurringPaymentResponse; import unit.java.sdk.model.UnitRecurringRepaymentResponse; import unit.java.sdk.model.UnitRecurringRepaymentsListResponse; +import unit.java.sdk.model.UnitRepaymentInformationResponse; import unit.java.sdk.model.UnitRepaymentResponse; import unit.java.sdk.model.UnitRepaymentsListResponse; -import unit.java.sdk.model.UnitReportLostCardResponse; -import unit.java.sdk.model.UnitReportStolenCardResponse; +import unit.java.sdk.model.UnitReturnedReceivedAchTransactionResponse; import unit.java.sdk.model.UnitRewardResponse; import unit.java.sdk.model.UnitRewardsListResponse; import unit.java.sdk.model.UnitStatementsResponse; +import unit.java.sdk.model.UnitStoreLocationsListResponse; +import unit.java.sdk.model.UnitTaxFormResponse; +import unit.java.sdk.model.UnitTaxFormsListResponse; import unit.java.sdk.model.UnitTransactionResponse; import unit.java.sdk.model.UnitTransactionResponseWithIncludedResource; import unit.java.sdk.model.UnitTransactionsListResponse; -import unit.java.sdk.model.UnitUnfreezeCardResponse; -import unit.java.sdk.model.UnitUpdateCardResponse; -import unit.java.sdk.model.UnitUpdateCheckDepositResponse; +import unit.java.sdk.model.UnitWebhookResponse; import unit.java.sdk.model.UnitWebhooksListResponse; import unit.java.sdk.model.UpdateAccountRequest; import unit.java.sdk.model.UpdateApplicationRequest; @@ -160,12 +175,19 @@ import unit.java.sdk.model.UpdateStopPaymentRequest; import unit.java.sdk.model.UpdateTransactionRequest; import unit.java.sdk.model.UpdateWebhookRequest; +import unit.java.sdk.model.UploadApplicationDocumentContentType; import unit.java.sdk.model.VerifyDocument; -import unit.java.sdk.model.WebhookResponse; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.commons.io.IOUtils; +import org.apache.http.HttpEntity; +import org.apache.http.NameValuePair; +import org.apache.http.entity.mime.MultipartEntityBuilder; +import org.apache.http.message.BasicNameValuePair; +import org.apache.http.client.entity.UrlEncodedFormEntity; + import java.io.InputStream; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; @@ -175,6 +197,7 @@ import java.net.http.HttpRequest; import java.nio.channels.Channels; import java.nio.channels.Pipe; +import java.nio.charset.StandardCharsets; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; @@ -188,7 +211,7 @@ import java.util.Set; import java.util.function.Consumer; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitApi { private final HttpClient memberVarHttpClient; private final ObjectMapper memberVarObjectMapper; @@ -225,6 +248,82 @@ private String formatExceptionMessage(String operationId, int statusCode, String return operationId + " call failed with: " + statusCode + " - " + body; } + /** + * Create Atm Deposit Simulation + * Activate Card Simulation via API + * @param cardId ID of the card to activate (required) + * @throws ApiException if fails to make API call + */ + public void activateCardSimulation(String cardId) throws ApiException { + activateCardSimulationWithHttpInfo(cardId); + } + + /** + * Create Atm Deposit Simulation + * Activate Card Simulation via API + * @param cardId ID of the card to activate (required) + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + */ + public ApiResponse activateCardSimulationWithHttpInfo(String cardId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = activateCardSimulationRequestBuilder(cardId); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("activateCardSimulation", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + null + ); + } finally { + // Drain the InputStream + while (localVarResponse.body().read() != -1) { + // Ignore + } + localVarResponse.body().close(); + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder activateCardSimulationRequestBuilder(String cardId) throws ApiException { + // verify the required parameter 'cardId' is set + if (cardId == null) { + throw new ApiException(400, "Missing the required parameter 'cardId' when calling activateCardSimulation"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/sandbox/cards/{cardId}/activate" + .replace("{cardId}", ApiClient.urlEncode(cardId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Activate Account Control Agreement by Id * Activate Control Agreement for Account via API @@ -298,6 +397,91 @@ private HttpRequest.Builder activateControlAgreementForAccountRequestBuilder(Str return localVarRequestBuilder; } + /** + * Add Owners to Account by Id + * Add Owners to Account via API + * @param accountId ID of the account to add owners to (required) + * @param addAccountOwnersRequest Add Account Owners Request (required) + * @return UnitDepositAccountResponse + * @throws ApiException if fails to make API call + */ + public UnitDepositAccountResponse addAccountOwners(String accountId, AddAccountOwnersRequest addAccountOwnersRequest) throws ApiException { + ApiResponse localVarResponse = addAccountOwnersWithHttpInfo(accountId, addAccountOwnersRequest); + return localVarResponse.getData(); + } + + /** + * Add Owners to Account by Id + * Add Owners to Account via API + * @param accountId ID of the account to add owners to (required) + * @param addAccountOwnersRequest Add Account Owners Request (required) + * @return ApiResponse<UnitDepositAccountResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse addAccountOwnersWithHttpInfo(String accountId, AddAccountOwnersRequest addAccountOwnersRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = addAccountOwnersRequestBuilder(accountId, addAccountOwnersRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("addAccountOwners", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder addAccountOwnersRequestBuilder(String accountId, AddAccountOwnersRequest addAccountOwnersRequest) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException(400, "Missing the required parameter 'accountId' when calling addAccountOwners"); + } + // verify the required parameter 'addAccountOwnersRequest' is set + if (addAccountOwnersRequest == null) { + throw new ApiException(400, "Missing the required parameter 'addAccountOwnersRequest' when calling addAccountOwners"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/accounts/{accountId}/relationships/customers" + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(addAccountOwnersRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Add Authorized Users by Id * Add Authorized Users via API @@ -873,11 +1057,12 @@ private HttpRequest.Builder cancelCheckPaymentRequestBuilder(String checkPayment * Cancel a Payment by Id * Cancel a Payment via API * @param paymentId ID of the payment to cancel (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @return UnitPaymentResponse * @throws ApiException if fails to make API call */ - public UnitPaymentResponse cancelPayment(String paymentId) throws ApiException { - ApiResponse localVarResponse = cancelPaymentWithHttpInfo(paymentId); + public UnitPaymentResponse cancelPayment(String paymentId, Object body) throws ApiException { + ApiResponse localVarResponse = cancelPaymentWithHttpInfo(paymentId, body); return localVarResponse.getData(); } @@ -885,11 +1070,12 @@ public UnitPaymentResponse cancelPayment(String paymentId) throws ApiException { * Cancel a Payment by Id * Cancel a Payment via API * @param paymentId ID of the payment to cancel (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @return ApiResponse<UnitPaymentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse cancelPaymentWithHttpInfo(String paymentId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = cancelPaymentRequestBuilder(paymentId); + public ApiResponse cancelPaymentWithHttpInfo(String paymentId, Object body) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = cancelPaymentRequestBuilder(paymentId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -917,11 +1103,15 @@ public ApiResponse cancelPaymentWithHttpInfo(String payment } } - private HttpRequest.Builder cancelPaymentRequestBuilder(String paymentId) throws ApiException { + private HttpRequest.Builder cancelPaymentRequestBuilder(String paymentId, Object body) throws ApiException { // verify the required parameter 'paymentId' is set if (paymentId == null) { throw new ApiException(400, "Missing the required parameter 'paymentId' when calling cancelPayment"); } + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling cancelPayment"); + } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -930,9 +1120,15 @@ private HttpRequest.Builder cancelPaymentRequestBuilder(String paymentId) throws localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -1031,11 +1227,11 @@ private HttpRequest.Builder closeAccountRequestBuilder(String accountId, CloseAc * Close a Card * Close a Card via API * @param cardId ID of the card to close (required) - * @return UnitCloseCardResponse + * @return UnitCardResponse * @throws ApiException if fails to make API call */ - public UnitCloseCardResponse closeCard(String cardId) throws ApiException { - ApiResponse localVarResponse = closeCardWithHttpInfo(cardId); + public UnitCardResponse closeCard(String cardId) throws ApiException { + ApiResponse localVarResponse = closeCardWithHttpInfo(cardId); return localVarResponse.getData(); } @@ -1043,10 +1239,10 @@ public UnitCloseCardResponse closeCard(String cardId) throws ApiException { * Close a Card * Close a Card via API * @param cardId ID of the card to close (required) - * @return ApiResponse<UnitCloseCardResponse> + * @return ApiResponse<UnitCardResponse> * @throws ApiException if fails to make API call */ - public ApiResponse closeCardWithHttpInfo(String cardId) throws ApiException { + public ApiResponse closeCardWithHttpInfo(String cardId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = closeCardRequestBuilder(cardId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -1059,10 +1255,10 @@ public ApiResponse closeCardWithHttpInfo(String cardId) t if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("closeCard", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -1104,11 +1300,12 @@ private HttpRequest.Builder closeCardRequestBuilder(String cardId) throws ApiExc * Confirm by Id * Confirm a Check Deposit from API * @param checkDepositId ID of the check deposit to confirm (required) - * @return UnitConfirmCheckDepositResponse + * @param confirmCheckDepositRequest (required) + * @return UnitCheckDepositResponse * @throws ApiException if fails to make API call */ - public UnitConfirmCheckDepositResponse confirmCheckDeposit(String checkDepositId) throws ApiException { - ApiResponse localVarResponse = confirmCheckDepositWithHttpInfo(checkDepositId); + public UnitCheckDepositResponse confirmCheckDeposit(String checkDepositId, ConfirmCheckDepositRequest confirmCheckDepositRequest) throws ApiException { + ApiResponse localVarResponse = confirmCheckDepositWithHttpInfo(checkDepositId, confirmCheckDepositRequest); return localVarResponse.getData(); } @@ -1116,11 +1313,12 @@ public UnitConfirmCheckDepositResponse confirmCheckDeposit(String checkDepositId * Confirm by Id * Confirm a Check Deposit from API * @param checkDepositId ID of the check deposit to confirm (required) - * @return ApiResponse<UnitConfirmCheckDepositResponse> + * @param confirmCheckDepositRequest (required) + * @return ApiResponse<UnitCheckDepositResponse> * @throws ApiException if fails to make API call */ - public ApiResponse confirmCheckDepositWithHttpInfo(String checkDepositId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = confirmCheckDepositRequestBuilder(checkDepositId); + public ApiResponse confirmCheckDepositWithHttpInfo(String checkDepositId, ConfirmCheckDepositRequest confirmCheckDepositRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = confirmCheckDepositRequestBuilder(checkDepositId, confirmCheckDepositRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -1132,10 +1330,10 @@ public ApiResponse confirmCheckDepositWithHttpI if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("confirmCheckDeposit", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -1148,11 +1346,15 @@ public ApiResponse confirmCheckDepositWithHttpI } } - private HttpRequest.Builder confirmCheckDepositRequestBuilder(String checkDepositId) throws ApiException { + private HttpRequest.Builder confirmCheckDepositRequestBuilder(String checkDepositId, ConfirmCheckDepositRequest confirmCheckDepositRequest) throws ApiException { // verify the required parameter 'checkDepositId' is set if (checkDepositId == null) { throw new ApiException(400, "Missing the required parameter 'checkDepositId' when calling confirmCheckDeposit"); } + // verify the required parameter 'confirmCheckDepositRequest' is set + if (confirmCheckDepositRequest == null) { + throw new ApiException(400, "Missing the required parameter 'confirmCheckDepositRequest' when calling confirmCheckDeposit"); + } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -1161,9 +1363,93 @@ private HttpRequest.Builder confirmCheckDepositRequestBuilder(String checkDeposi localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(confirmCheckDepositRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Create ACH Received Payment Transaction Simulation + * Create ACH Received Payment Transaction Simulation via API + * @param createACHReceivedPaymentTransactionRequest Create ACH Received Payment Transaction Simulation Request (required) + * @return UnitReceivedPaymentResponse + * @throws ApiException if fails to make API call + */ + public UnitReceivedPaymentResponse createACHReceivedPaymentTransactionSimulation(CreateACHReceivedPaymentTransactionRequest createACHReceivedPaymentTransactionRequest) throws ApiException { + ApiResponse localVarResponse = createACHReceivedPaymentTransactionSimulationWithHttpInfo(createACHReceivedPaymentTransactionRequest); + return localVarResponse.getData(); + } + + /** + * Create ACH Received Payment Transaction Simulation + * Create ACH Received Payment Transaction Simulation via API + * @param createACHReceivedPaymentTransactionRequest Create ACH Received Payment Transaction Simulation Request (required) + * @return ApiResponse<UnitReceivedPaymentResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse createACHReceivedPaymentTransactionSimulationWithHttpInfo(CreateACHReceivedPaymentTransactionRequest createACHReceivedPaymentTransactionRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = createACHReceivedPaymentTransactionSimulationRequestBuilder(createACHReceivedPaymentTransactionRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("createACHReceivedPaymentTransactionSimulation", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder createACHReceivedPaymentTransactionSimulationRequestBuilder(CreateACHReceivedPaymentTransactionRequest createACHReceivedPaymentTransactionRequest) throws ApiException { + // verify the required parameter 'createACHReceivedPaymentTransactionRequest' is set + if (createACHReceivedPaymentTransactionRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createACHReceivedPaymentTransactionRequest' when calling createACHReceivedPaymentTransactionSimulation"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/sandbox/received-payments"; + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createACHReceivedPaymentTransactionRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -1575,26 +1861,26 @@ private HttpRequest.Builder createApplicationFormRequestBuilder(CreateApplicatio } /** - * Create a Card - * Create a Card via API - * @param createCardRequest Create Card Request (required) - * @return UnitCardsListResponse + * Create Atm Deposit Simulation + * Create Atm Deposit Simulation via API + * @param createAtmDepositSimulationRequest Create Atm Deposit Simulation Request (required) + * @return UnitDepositAccountResponse * @throws ApiException if fails to make API call */ - public UnitCardsListResponse createCard(CreateCardRequest createCardRequest) throws ApiException { - ApiResponse localVarResponse = createCardWithHttpInfo(createCardRequest); + public UnitDepositAccountResponse createAtmDepositSimulation(CreateAtmDepositSimulationRequest createAtmDepositSimulationRequest) throws ApiException { + ApiResponse localVarResponse = createAtmDepositSimulationWithHttpInfo(createAtmDepositSimulationRequest); return localVarResponse.getData(); } /** - * Create a Card - * Create a Card via API - * @param createCardRequest Create Card Request (required) - * @return ApiResponse<UnitCardsListResponse> + * Create Atm Deposit Simulation + * Create Atm Deposit Simulation via API + * @param createAtmDepositSimulationRequest Create Atm Deposit Simulation Request (required) + * @return ApiResponse<UnitDepositAccountResponse> * @throws ApiException if fails to make API call */ - public ApiResponse createCardWithHttpInfo(CreateCardRequest createCardRequest) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = createCardRequestBuilder(createCardRequest); + public ApiResponse createAtmDepositSimulationWithHttpInfo(CreateAtmDepositSimulationRequest createAtmDepositSimulationRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = createAtmDepositSimulationRequestBuilder(createAtmDepositSimulationRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -1604,12 +1890,12 @@ public ApiResponse createCardWithHttpInfo(CreateCardReque } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("createCard", localVarResponse); + throw getApiException("createAtmDepositSimulation", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -1622,23 +1908,23 @@ public ApiResponse createCardWithHttpInfo(CreateCardReque } } - private HttpRequest.Builder createCardRequestBuilder(CreateCardRequest createCardRequest) throws ApiException { - // verify the required parameter 'createCardRequest' is set - if (createCardRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createCardRequest' when calling createCard"); + private HttpRequest.Builder createAtmDepositSimulationRequestBuilder(CreateAtmDepositSimulationRequest createAtmDepositSimulationRequest) throws ApiException { + // verify the required parameter 'createAtmDepositSimulationRequest' is set + if (createAtmDepositSimulationRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createAtmDepositSimulationRequest' when calling createAtmDepositSimulation"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/cards"; + String localVarPath = "/sandbox/atm-deposits"; localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); - localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createCardRequest); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createAtmDepositSimulationRequest); localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { throw new ApiException(e); @@ -1653,26 +1939,26 @@ private HttpRequest.Builder createCardRequestBuilder(CreateCardRequest createCar } /** - * Create Check Deposit - * Create a Check Deposit via API - * @param createCheckDepositRequest Create Check Deposit Request (required) - * @return UnitListCheckDepositsResponse1 + * Create a Card + * Create a Card via API + * @param createCardRequest Create Card Request (required) + * @return UnitCardResponse * @throws ApiException if fails to make API call */ - public UnitListCheckDepositsResponse1 createCheckDeposit(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException { - ApiResponse localVarResponse = createCheckDepositWithHttpInfo(createCheckDepositRequest); + public UnitCardResponse createCard(CreateCardRequest createCardRequest) throws ApiException { + ApiResponse localVarResponse = createCardWithHttpInfo(createCardRequest); return localVarResponse.getData(); } /** - * Create Check Deposit - * Create a Check Deposit via API - * @param createCheckDepositRequest Create Check Deposit Request (required) - * @return ApiResponse<UnitListCheckDepositsResponse1> + * Create a Card + * Create a Card via API + * @param createCardRequest Create Card Request (required) + * @return ApiResponse<UnitCardResponse> * @throws ApiException if fails to make API call */ - public ApiResponse createCheckDepositWithHttpInfo(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = createCheckDepositRequestBuilder(createCheckDepositRequest); + public ApiResponse createCardWithHttpInfo(CreateCardRequest createCardRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = createCardRequestBuilder(createCardRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -1682,12 +1968,12 @@ public ApiResponse createCheckDepositWithHttpInf } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("createCheckDeposit", localVarResponse); + throw getApiException("createCard", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -1700,10 +1986,88 @@ public ApiResponse createCheckDepositWithHttpInf } } - private HttpRequest.Builder createCheckDepositRequestBuilder(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException { - // verify the required parameter 'createCheckDepositRequest' is set - if (createCheckDepositRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createCheckDepositRequest' when calling createCheckDeposit"); + private HttpRequest.Builder createCardRequestBuilder(CreateCardRequest createCardRequest) throws ApiException { + // verify the required parameter 'createCardRequest' is set + if (createCardRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createCardRequest' when calling createCard"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/cards"; + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createCardRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Create Check Deposit + * Create a Check Deposit via API + * @param createCheckDepositRequest Create Check Deposit Request (required) + * @return UnitCheckDepositResponse + * @throws ApiException if fails to make API call + */ + public UnitCheckDepositResponse createCheckDeposit(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException { + ApiResponse localVarResponse = createCheckDepositWithHttpInfo(createCheckDepositRequest); + return localVarResponse.getData(); + } + + /** + * Create Check Deposit + * Create a Check Deposit via API + * @param createCheckDepositRequest Create Check Deposit Request (required) + * @return ApiResponse<UnitCheckDepositResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse createCheckDepositWithHttpInfo(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = createCheckDepositRequestBuilder(createCheckDepositRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("createCheckDeposit", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder createCheckDepositRequestBuilder(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException { + // verify the required parameter 'createCheckDepositRequest' is set + if (createCheckDepositRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createCheckDepositRequest' when calling createCheckDeposit"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -2134,6 +2498,84 @@ private HttpRequest.Builder createFeeRequestBuilder(CreateFeeRequest createFeeRe return localVarRequestBuilder; } + /** + * Create Incoming ACH Payment Simulation + * Create Incoming ACH Payment Simulation via API + * @param createIncomingAchPaymentRequest Create Incoming ACH Payment Simulation Request (required) + * @return UnitReceivedPaymentResponse + * @throws ApiException if fails to make API call + */ + public UnitReceivedPaymentResponse createIncomingAchPaymentSimulation(CreateIncomingAchPaymentRequest createIncomingAchPaymentRequest) throws ApiException { + ApiResponse localVarResponse = createIncomingAchPaymentSimulationWithHttpInfo(createIncomingAchPaymentRequest); + return localVarResponse.getData(); + } + + /** + * Create Incoming ACH Payment Simulation + * Create Incoming ACH Payment Simulation via API + * @param createIncomingAchPaymentRequest Create Incoming ACH Payment Simulation Request (required) + * @return ApiResponse<UnitReceivedPaymentResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse createIncomingAchPaymentSimulationWithHttpInfo(CreateIncomingAchPaymentRequest createIncomingAchPaymentRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = createIncomingAchPaymentSimulationRequestBuilder(createIncomingAchPaymentRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("createIncomingAchPaymentSimulation", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder createIncomingAchPaymentSimulationRequestBuilder(CreateIncomingAchPaymentRequest createIncomingAchPaymentRequest) throws ApiException { + // verify the required parameter 'createIncomingAchPaymentRequest' is set + if (createIncomingAchPaymentRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createIncomingAchPaymentRequest' when calling createIncomingAchPaymentSimulation"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/sandbox/received-ach-payment"; + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createIncomingAchPaymentRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Create a Payment * Create a Payment via API @@ -2605,24 +3047,24 @@ private HttpRequest.Builder createStopPaymentRequestBuilder(CreateStopPaymentReq /** * Create Webhook * Create a Webhook via API - * @param createWebhook Create Webhook Request (required) - * @return WebhookResponse + * @param createWebhookRequest Create Webhook Request Body (required) + * @return UnitWebhookResponse * @throws ApiException if fails to make API call */ - public WebhookResponse createWebhook(CreateWebhook createWebhook) throws ApiException { - ApiResponse localVarResponse = createWebhookWithHttpInfo(createWebhook); + public UnitWebhookResponse createWebhook(CreateWebhookRequest createWebhookRequest) throws ApiException { + ApiResponse localVarResponse = createWebhookWithHttpInfo(createWebhookRequest); return localVarResponse.getData(); } /** * Create Webhook * Create a Webhook via API - * @param createWebhook Create Webhook Request (required) - * @return ApiResponse<WebhookResponse> + * @param createWebhookRequest Create Webhook Request Body (required) + * @return ApiResponse<UnitWebhookResponse> * @throws ApiException if fails to make API call */ - public ApiResponse createWebhookWithHttpInfo(CreateWebhook createWebhook) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = createWebhookRequestBuilder(createWebhook); + public ApiResponse createWebhookWithHttpInfo(CreateWebhookRequest createWebhookRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = createWebhookRequestBuilder(createWebhookRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -2634,10 +3076,10 @@ public ApiResponse createWebhookWithHttpInfo(CreateWebhook crea if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("createWebhook", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -2650,10 +3092,10 @@ public ApiResponse createWebhookWithHttpInfo(CreateWebhook crea } } - private HttpRequest.Builder createWebhookRequestBuilder(CreateWebhook createWebhook) throws ApiException { - // verify the required parameter 'createWebhook' is set - if (createWebhook == null) { - throw new ApiException(400, "Missing the required parameter 'createWebhook' when calling createWebhook"); + private HttpRequest.Builder createWebhookRequestBuilder(CreateWebhookRequest createWebhookRequest) throws ApiException { + // verify the required parameter 'createWebhookRequest' is set + if (createWebhookRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createWebhookRequest' when calling createWebhook"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -2666,7 +3108,7 @@ private HttpRequest.Builder createWebhookRequestBuilder(CreateWebhook createWebh localVarRequestBuilder.header("Accept", "application/vnd.api+json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createWebhook); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createWebhookRequest); localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { throw new ApiException(e); @@ -2998,11 +3440,12 @@ private HttpRequest.Builder deleteTokenRequestBuilder(String userId, String toke * Disable Recurring Payment * Disable Recurring Payment via API * @param paymentId ID of the payment to disable (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @return UnitRecurringPaymentResponse * @throws ApiException if fails to make API call */ - public UnitRecurringPaymentResponse disableRecurringPayment(String paymentId) throws ApiException { - ApiResponse localVarResponse = disableRecurringPaymentWithHttpInfo(paymentId); + public UnitRecurringPaymentResponse disableRecurringPayment(String paymentId, Object body) throws ApiException { + ApiResponse localVarResponse = disableRecurringPaymentWithHttpInfo(paymentId, body); return localVarResponse.getData(); } @@ -3010,11 +3453,12 @@ public UnitRecurringPaymentResponse disableRecurringPayment(String paymentId) th * Disable Recurring Payment * Disable Recurring Payment via API * @param paymentId ID of the payment to disable (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @return ApiResponse<UnitRecurringPaymentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse disableRecurringPaymentWithHttpInfo(String paymentId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = disableRecurringPaymentRequestBuilder(paymentId); + public ApiResponse disableRecurringPaymentWithHttpInfo(String paymentId, Object body) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = disableRecurringPaymentRequestBuilder(paymentId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -3042,11 +3486,15 @@ public ApiResponse disableRecurringPaymentWithHttp } } - private HttpRequest.Builder disableRecurringPaymentRequestBuilder(String paymentId) throws ApiException { + private HttpRequest.Builder disableRecurringPaymentRequestBuilder(String paymentId, Object body) throws ApiException { // verify the required parameter 'paymentId' is set if (paymentId == null) { throw new ApiException(400, "Missing the required parameter 'paymentId' when calling disableRecurringPayment"); } + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling disableRecurringPayment"); + } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -3055,9 +3503,15 @@ private HttpRequest.Builder disableRecurringPaymentRequestBuilder(String payment localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -3071,12 +3525,13 @@ private HttpRequest.Builder disableRecurringPaymentRequestBuilder(String payment * Disable Recurring Repayment by Id * Disable a Recurring Repayment * @param recurringRepaymentId ID of the recurring repayment to disable (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @param include (optional) * @return UnitRecurringRepaymentResponse * @throws ApiException if fails to make API call */ - public UnitRecurringRepaymentResponse disableRecurringRepayment(String recurringRepaymentId, String include) throws ApiException { - ApiResponse localVarResponse = disableRecurringRepaymentWithHttpInfo(recurringRepaymentId, include); + public UnitRecurringRepaymentResponse disableRecurringRepayment(String recurringRepaymentId, Object body, String include) throws ApiException { + ApiResponse localVarResponse = disableRecurringRepaymentWithHttpInfo(recurringRepaymentId, body, include); return localVarResponse.getData(); } @@ -3084,12 +3539,13 @@ public UnitRecurringRepaymentResponse disableRecurringRepayment(String recurring * Disable Recurring Repayment by Id * Disable a Recurring Repayment * @param recurringRepaymentId ID of the recurring repayment to disable (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @param include (optional) * @return ApiResponse<UnitRecurringRepaymentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse disableRecurringRepaymentWithHttpInfo(String recurringRepaymentId, String include) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = disableRecurringRepaymentRequestBuilder(recurringRepaymentId, include); + public ApiResponse disableRecurringRepaymentWithHttpInfo(String recurringRepaymentId, Object body, String include) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = disableRecurringRepaymentRequestBuilder(recurringRepaymentId, body, include); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -3117,11 +3573,15 @@ public ApiResponse disableRecurringRepaymentWith } } - private HttpRequest.Builder disableRecurringRepaymentRequestBuilder(String recurringRepaymentId, String include) throws ApiException { + private HttpRequest.Builder disableRecurringRepaymentRequestBuilder(String recurringRepaymentId, Object body, String include) throws ApiException { // verify the required parameter 'recurringRepaymentId' is set if (recurringRepaymentId == null) { throw new ApiException(400, "Missing the required parameter 'recurringRepaymentId' when calling disableRecurringRepayment"); } + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling disableRecurringRepayment"); + } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -3145,9 +3605,15 @@ private HttpRequest.Builder disableRecurringRepaymentRequestBuilder(String recur localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -3234,11 +3700,11 @@ private HttpRequest.Builder disableStopPaymentRequestBuilder(String stopPaymentI * Disable a Webhook * Disable a Webhook via API * @param webhookId ID of the webhook to disable (required) - * @return WebhookResponse + * @return UnitWebhookResponse * @throws ApiException if fails to make API call */ - public WebhookResponse disableWebhook(String webhookId) throws ApiException { - ApiResponse localVarResponse = disableWebhookWithHttpInfo(webhookId); + public UnitWebhookResponse disableWebhook(String webhookId) throws ApiException { + ApiResponse localVarResponse = disableWebhookWithHttpInfo(webhookId); return localVarResponse.getData(); } @@ -3246,10 +3712,10 @@ public WebhookResponse disableWebhook(String webhookId) throws ApiException { * Disable a Webhook * Disable a Webhook via API * @param webhookId ID of the webhook to disable (required) - * @return ApiResponse<WebhookResponse> + * @return ApiResponse<UnitWebhookResponse> * @throws ApiException if fails to make API call */ - public ApiResponse disableWebhookWithHttpInfo(String webhookId) throws ApiException { + public ApiResponse disableWebhookWithHttpInfo(String webhookId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = disableWebhookRequestBuilder(webhookId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -3262,10 +3728,10 @@ public ApiResponse disableWebhookWithHttpInfo(String webhookId) if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("disableWebhook", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -3311,8 +3777,8 @@ private HttpRequest.Builder disableWebhookRequestBuilder(String webhookId) throw * @return File * @throws ApiException if fails to make API call */ - public File downloadApplicationBackSideDocument(String applicationId, String documentId) throws ApiException { - ApiResponse localVarResponse = downloadApplicationBackSideDocumentWithHttpInfo(applicationId, documentId); + public InputStream downloadApplicationBackSideDocument(String applicationId, String documentId) throws ApiException { + ApiResponse localVarResponse = downloadApplicationBackSideDocumentWithHttpInfo(applicationId, documentId); return localVarResponse.getData(); } @@ -3324,7 +3790,7 @@ public File downloadApplicationBackSideDocument(String applicationId, String doc * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse downloadApplicationBackSideDocumentWithHttpInfo(String applicationId, String documentId) throws ApiException { + public ApiResponse downloadApplicationBackSideDocumentWithHttpInfo(String applicationId, String documentId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = downloadApplicationBackSideDocumentRequestBuilder(applicationId, documentId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -3337,10 +3803,10 @@ public ApiResponse downloadApplicationBackSideDocumentWithHttpInfo(String if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("downloadApplicationBackSideDocument", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : localVarResponse.body() ); } finally { } @@ -3391,8 +3857,8 @@ private HttpRequest.Builder downloadApplicationBackSideDocumentRequestBuilder(St * @return File * @throws ApiException if fails to make API call */ - public File downloadApplicationDocument(String applicationId, String documentId) throws ApiException { - ApiResponse localVarResponse = downloadApplicationDocumentWithHttpInfo(applicationId, documentId); + public InputStream downloadApplicationDocument(String applicationId, String documentId) throws ApiException { + ApiResponse localVarResponse = downloadApplicationDocumentWithHttpInfo(applicationId, documentId); return localVarResponse.getData(); } @@ -3404,7 +3870,7 @@ public File downloadApplicationDocument(String applicationId, String documentId) * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse downloadApplicationDocumentWithHttpInfo(String applicationId, String documentId) throws ApiException { + public ApiResponse downloadApplicationDocumentWithHttpInfo(String applicationId, String documentId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = downloadApplicationDocumentRequestBuilder(applicationId, documentId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -3417,10 +3883,10 @@ public ApiResponse downloadApplicationDocumentWithHttpInfo(String applicat if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("downloadApplicationDocument", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : localVarResponse.body() ); } finally { } @@ -3467,11 +3933,12 @@ private HttpRequest.Builder downloadApplicationDocumentRequestBuilder(String app * Enable Recurring Payment * Enable Recurring Payment via API * @param paymentId ID of the payment to enable (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @return UnitRecurringPaymentResponse * @throws ApiException if fails to make API call */ - public UnitRecurringPaymentResponse enableRecurringPayment(String paymentId) throws ApiException { - ApiResponse localVarResponse = enableRecurringPaymentWithHttpInfo(paymentId); + public UnitRecurringPaymentResponse enableRecurringPayment(String paymentId, Object body) throws ApiException { + ApiResponse localVarResponse = enableRecurringPaymentWithHttpInfo(paymentId, body); return localVarResponse.getData(); } @@ -3479,11 +3946,12 @@ public UnitRecurringPaymentResponse enableRecurringPayment(String paymentId) thr * Enable Recurring Payment * Enable Recurring Payment via API * @param paymentId ID of the payment to enable (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @return ApiResponse<UnitRecurringPaymentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse enableRecurringPaymentWithHttpInfo(String paymentId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = enableRecurringPaymentRequestBuilder(paymentId); + public ApiResponse enableRecurringPaymentWithHttpInfo(String paymentId, Object body) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = enableRecurringPaymentRequestBuilder(paymentId, body); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -3511,11 +3979,15 @@ public ApiResponse enableRecurringPaymentWithHttpI } } - private HttpRequest.Builder enableRecurringPaymentRequestBuilder(String paymentId) throws ApiException { + private HttpRequest.Builder enableRecurringPaymentRequestBuilder(String paymentId, Object body) throws ApiException { // verify the required parameter 'paymentId' is set if (paymentId == null) { throw new ApiException(400, "Missing the required parameter 'paymentId' when calling enableRecurringPayment"); } + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling enableRecurringPayment"); + } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -3524,9 +3996,15 @@ private HttpRequest.Builder enableRecurringPaymentRequestBuilder(String paymentI localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -3540,12 +4018,13 @@ private HttpRequest.Builder enableRecurringPaymentRequestBuilder(String paymentI * Enable Recurring Repayment by Id * Enable a Recurring Repayment * @param recurringRepaymentId ID of the recurring repayment to enable (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @param include (optional) * @return UnitRecurringRepaymentResponse * @throws ApiException if fails to make API call */ - public UnitRecurringRepaymentResponse enableRecurringRepayment(String recurringRepaymentId, String include) throws ApiException { - ApiResponse localVarResponse = enableRecurringRepaymentWithHttpInfo(recurringRepaymentId, include); + public UnitRecurringRepaymentResponse enableRecurringRepayment(String recurringRepaymentId, Object body, String include) throws ApiException { + ApiResponse localVarResponse = enableRecurringRepaymentWithHttpInfo(recurringRepaymentId, body, include); return localVarResponse.getData(); } @@ -3553,12 +4032,13 @@ public UnitRecurringRepaymentResponse enableRecurringRepayment(String recurringR * Enable Recurring Repayment by Id * Enable a Recurring Repayment * @param recurringRepaymentId ID of the recurring repayment to enable (required) + * @param body Pass empty object in order for content-type to be aquired correctly (required) * @param include (optional) * @return ApiResponse<UnitRecurringRepaymentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse enableRecurringRepaymentWithHttpInfo(String recurringRepaymentId, String include) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = enableRecurringRepaymentRequestBuilder(recurringRepaymentId, include); + public ApiResponse enableRecurringRepaymentWithHttpInfo(String recurringRepaymentId, Object body, String include) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = enableRecurringRepaymentRequestBuilder(recurringRepaymentId, body, include); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -3586,11 +4066,15 @@ public ApiResponse enableRecurringRepaymentWithH } } - private HttpRequest.Builder enableRecurringRepaymentRequestBuilder(String recurringRepaymentId, String include) throws ApiException { + private HttpRequest.Builder enableRecurringRepaymentRequestBuilder(String recurringRepaymentId, Object body, String include) throws ApiException { // verify the required parameter 'recurringRepaymentId' is set if (recurringRepaymentId == null) { throw new ApiException(400, "Missing the required parameter 'recurringRepaymentId' when calling enableRecurringRepayment"); } + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException(400, "Missing the required parameter 'body' when calling enableRecurringRepayment"); + } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -3614,9 +4098,15 @@ private HttpRequest.Builder enableRecurringRepaymentRequestBuilder(String recurr localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -3630,11 +4120,11 @@ private HttpRequest.Builder enableRecurringRepaymentRequestBuilder(String recurr * Enable Webhook * Enable a Webhook via API * @param webhookId ID of the webhook to enable (required) - * @return WebhookResponse + * @return UnitWebhookResponse * @throws ApiException if fails to make API call */ - public WebhookResponse enableWebhook(String webhookId) throws ApiException { - ApiResponse localVarResponse = enableWebhookWithHttpInfo(webhookId); + public UnitWebhookResponse enableWebhook(String webhookId) throws ApiException { + ApiResponse localVarResponse = enableWebhookWithHttpInfo(webhookId); return localVarResponse.getData(); } @@ -3642,10 +4132,10 @@ public WebhookResponse enableWebhook(String webhookId) throws ApiException { * Enable Webhook * Enable a Webhook via API * @param webhookId ID of the webhook to enable (required) - * @return ApiResponse<WebhookResponse> + * @return ApiResponse<UnitWebhookResponse> * @throws ApiException if fails to make API call */ - public ApiResponse enableWebhookWithHttpInfo(String webhookId) throws ApiException { + public ApiResponse enableWebhookWithHttpInfo(String webhookId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = enableWebhookRequestBuilder(webhookId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -3658,10 +4148,10 @@ public ApiResponse enableWebhookWithHttpInfo(String webhookId) if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("enableWebhook", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -3934,11 +4424,11 @@ private HttpRequest.Builder freezeAccountRequestBuilder(String accountId, Freeze * Freeze a Card * Freeze a Card via API * @param cardId ID of the card to freeze (required) - * @return UnitFreezeCardResponse + * @return UnitCardResponse * @throws ApiException if fails to make API call */ - public UnitFreezeCardResponse freezeCard(String cardId) throws ApiException { - ApiResponse localVarResponse = freezeCardWithHttpInfo(cardId); + public UnitCardResponse freezeCard(String cardId) throws ApiException { + ApiResponse localVarResponse = freezeCardWithHttpInfo(cardId); return localVarResponse.getData(); } @@ -3946,10 +4436,10 @@ public UnitFreezeCardResponse freezeCard(String cardId) throws ApiException { * Freeze a Card * Freeze a Card via API * @param cardId ID of the card to freeze (required) - * @return ApiResponse<UnitFreezeCardResponse> + * @return ApiResponse<UnitCardResponse> * @throws ApiException if fails to make API call */ - public ApiResponse freezeCardWithHttpInfo(String cardId) throws ApiException { + public ApiResponse freezeCardWithHttpInfo(String cardId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = freezeCardRequestBuilder(cardId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -3962,10 +4452,10 @@ public ApiResponse freezeCardWithHttpInfo(String cardId) if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("freezeCard", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -4003,6 +4493,84 @@ private HttpRequest.Builder freezeCardRequestBuilder(String cardId) throws ApiEx return localVarRequestBuilder; } + /** + * Generate Cash Deposit Barcode + * Generate Cash Deposit Barcode via API + * @param generateBarcodeRequest Generate Cash Deposit Barcode Request (required) + * @return UnitCashDepositBarcodeResponse + * @throws ApiException if fails to make API call + */ + public UnitCashDepositBarcodeResponse generateBarcode(GenerateBarcodeRequest generateBarcodeRequest) throws ApiException { + ApiResponse localVarResponse = generateBarcodeWithHttpInfo(generateBarcodeRequest); + return localVarResponse.getData(); + } + + /** + * Generate Cash Deposit Barcode + * Generate Cash Deposit Barcode via API + * @param generateBarcodeRequest Generate Cash Deposit Barcode Request (required) + * @return ApiResponse<UnitCashDepositBarcodeResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse generateBarcodeWithHttpInfo(GenerateBarcodeRequest generateBarcodeRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = generateBarcodeRequestBuilder(generateBarcodeRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("generateBarcode", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder generateBarcodeRequestBuilder(GenerateBarcodeRequest generateBarcodeRequest) throws ApiException { + // verify the required parameter 'generateBarcodeRequest' is set + if (generateBarcodeRequest == null) { + throw new ApiException(400, "Missing the required parameter 'generateBarcodeRequest' when calling generateBarcode"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/cash-deposits/barcodes"; + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(generateBarcodeRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Get Account by Id * Get an Account from API @@ -4094,24 +4662,28 @@ private HttpRequest.Builder getAccountRequestBuilder(String accountId, String in } /** - * Get AccountEndOfDay List - * Get AccountEndOfDay List from API - * @return UnitGetAccountEndOfDayListResponse + * Get Account Balance History + * Get Account Balance History List from API + * @param page (optional) + * @param filter (optional) + * @return UnitAccountBalanceHistoryResponse * @throws ApiException if fails to make API call */ - public UnitGetAccountEndOfDayListResponse getAccountEndOfDay() throws ApiException { - ApiResponse localVarResponse = getAccountEndOfDayWithHttpInfo(); + public UnitAccountBalanceHistoryResponse getAccountBalanceHistory(ListPageParameters page, GetAccountBalanceHistoryFilterParameter filter) throws ApiException { + ApiResponse localVarResponse = getAccountBalanceHistoryWithHttpInfo(page, filter); return localVarResponse.getData(); } /** - * Get AccountEndOfDay List - * Get AccountEndOfDay List from API - * @return ApiResponse<UnitGetAccountEndOfDayListResponse> + * Get Account Balance History + * Get Account Balance History List from API + * @param page (optional) + * @param filter (optional) + * @return ApiResponse<UnitAccountBalanceHistoryResponse> * @throws ApiException if fails to make API call */ - public ApiResponse getAccountEndOfDayWithHttpInfo() throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getAccountEndOfDayRequestBuilder(); + public ApiResponse getAccountBalanceHistoryWithHttpInfo(ListPageParameters page, GetAccountBalanceHistoryFilterParameter filter) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getAccountBalanceHistoryRequestBuilder(page, filter); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -4121,12 +4693,12 @@ public ApiResponse getAccountEndOfDayWithHtt } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getAccountEndOfDay", localVarResponse); + throw getApiException("getAccountBalanceHistory", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -4139,23 +4711,50 @@ public ApiResponse getAccountEndOfDayWithHtt } } - private HttpRequest.Builder getAccountEndOfDayRequestBuilder() throws ApiException { + private HttpRequest.Builder getAccountBalanceHistoryRequestBuilder(ListPageParameters page, GetAccountBalanceHistoryFilterParameter filter) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); String localVarPath = "/account-end-of-day"; - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - - localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "page"; + if (page != null) { + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + localVarQueryParameterBaseName = "filter"; + if (filter != null) { + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } return localVarRequestBuilder; } @@ -4295,11 +4894,17 @@ private HttpRequest.Builder getAccountsListRequestBuilder(ListPageParameters pag String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "include"; localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include)); @@ -4716,11 +5321,17 @@ private HttpRequest.Builder getApplicationFormsListRequestBuilder(ListPageParame String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -4811,11 +5422,17 @@ private HttpRequest.Builder getApplicationsListRequestBuilder(ListPageParameters String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -4902,7 +5519,10 @@ private HttpRequest.Builder getAtmLocationsListRequestBuilder(GetAtmLocationsLis String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { @@ -5152,11 +5772,17 @@ private HttpRequest.Builder getAuthorizationRequestsListRequestBuilder(ListPageP String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { @@ -5245,11 +5871,17 @@ private HttpRequest.Builder getAuthorizationsListRequestBuilder(ListPageParamete String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -5350,16 +5982,89 @@ private HttpRequest.Builder getBackCheckDepositRequestBuilder(String checkDeposi return localVarRequestBuilder; } + /** + * Get Barcode Image By Barcode Number + * Get Barcode Image By Barcode Number from API + * @param barcodeNumber (required) + * @return File + * @throws ApiException if fails to make API call + */ + public InputStream getBarcodeImage(String barcodeNumber) throws ApiException { + ApiResponse localVarResponse = getBarcodeImageWithHttpInfo(barcodeNumber); + return localVarResponse.getData(); + } + + /** + * Get Barcode Image By Barcode Number + * Get Barcode Image By Barcode Number from API + * @param barcodeNumber (required) + * @return ApiResponse<File> + * @throws ApiException if fails to make API call + */ + public ApiResponse getBarcodeImageWithHttpInfo(String barcodeNumber) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getBarcodeImageRequestBuilder(barcodeNumber); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getBarcodeImage", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : localVarResponse.body() + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getBarcodeImageRequestBuilder(String barcodeNumber) throws ApiException { + // verify the required parameter 'barcodeNumber' is set + if (barcodeNumber == null) { + throw new ApiException(400, "Missing the required parameter 'barcodeNumber' when calling getBarcodeImage"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/cash-deposits/barcodes/{barcodeNumber}/image" + .replace("{barcodeNumber}", ApiClient.urlEncode(barcodeNumber.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "image/png"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Get Card by Id * Get a Card from API * @param cardId ID of the card to get (required) * @param included (optional) - * @return UnitCardResponse + * @return UnitCardResponseWithIncluded * @throws ApiException if fails to make API call */ - public UnitCardResponse getCard(String cardId, String included) throws ApiException { - ApiResponse localVarResponse = getCardWithHttpInfo(cardId, included); + public UnitCardResponseWithIncluded getCard(String cardId, String included) throws ApiException { + ApiResponse localVarResponse = getCardWithHttpInfo(cardId, included); return localVarResponse.getData(); } @@ -5368,10 +6073,10 @@ public UnitCardResponse getCard(String cardId, String included) throws ApiExcept * Get a Card from API * @param cardId ID of the card to get (required) * @param included (optional) - * @return ApiResponse<UnitCardResponse> + * @return ApiResponse<UnitCardResponseWithIncluded> * @throws ApiException if fails to make API call */ - public ApiResponse getCardWithHttpInfo(String cardId, String included) throws ApiException { + public ApiResponse getCardWithHttpInfo(String cardId, String included) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getCardRequestBuilder(cardId, included); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -5384,10 +6089,10 @@ public ApiResponse getCardWithHttpInfo(String cardId, String i if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("getCard", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -5593,11 +6298,11 @@ private HttpRequest.Builder getCardPinStatusRequestBuilder(String cardId) throws * @param filter (optional) * @param include (optional) * @param sort (optional) - * @return UnitCardResponseCardsList + * @return UnitCardsListReponse * @throws ApiException if fails to make API call */ - public UnitCardResponseCardsList getCardsList(ListPageParameters page, GetCardsListFilterParameter filter, String include, String sort) throws ApiException { - ApiResponse localVarResponse = getCardsListWithHttpInfo(page, filter, include, sort); + public UnitCardsListReponse getCardsList(ListPageParameters page, GetCardsListFilterParameter filter, String include, String sort) throws ApiException { + ApiResponse localVarResponse = getCardsListWithHttpInfo(page, filter, include, sort); return localVarResponse.getData(); } @@ -5608,10 +6313,10 @@ public UnitCardResponseCardsList getCardsList(ListPageParameters page, GetCardsL * @param filter (optional) * @param include (optional) * @param sort (optional) - * @return ApiResponse<UnitCardResponseCardsList> + * @return ApiResponse<UnitCardsListReponse> * @throws ApiException if fails to make API call */ - public ApiResponse getCardsListWithHttpInfo(ListPageParameters page, GetCardsListFilterParameter filter, String include, String sort) throws ApiException { + public ApiResponse getCardsListWithHttpInfo(ListPageParameters page, GetCardsListFilterParameter filter, String include, String sort) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getCardsListRequestBuilder(page, filter, include, sort); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -5624,10 +6329,10 @@ public ApiResponse getCardsListWithHttpInfo(ListPageP if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("getCardsList", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -5651,11 +6356,17 @@ private HttpRequest.Builder getCardsListRequestBuilder(ListPageParameters page, String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "include"; localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include)); @@ -5685,6 +6396,103 @@ private HttpRequest.Builder getCardsListRequestBuilder(ListPageParameters page, return localVarRequestBuilder; } + /** + * Get Cash Deposit Store Locations List By Coordinates + * Get Cash Deposit Store Locations List By Coordinates from API + * @param page (optional) + * @param filter (optional) + * @return UnitStoreLocationsListResponse + * @throws ApiException if fails to make API call + */ + public UnitStoreLocationsListResponse getCashDepositStoreLocationsList(ListPageParameters page, GetCashDepositStoreLocationsListFilterParameter filter) throws ApiException { + ApiResponse localVarResponse = getCashDepositStoreLocationsListWithHttpInfo(page, filter); + return localVarResponse.getData(); + } + + /** + * Get Cash Deposit Store Locations List By Coordinates + * Get Cash Deposit Store Locations List By Coordinates from API + * @param page (optional) + * @param filter (optional) + * @return ApiResponse<UnitStoreLocationsListResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse getCashDepositStoreLocationsListWithHttpInfo(ListPageParameters page, GetCashDepositStoreLocationsListFilterParameter filter) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getCashDepositStoreLocationsListRequestBuilder(page, filter); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getCashDepositStoreLocationsList", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getCashDepositStoreLocationsListRequestBuilder(ListPageParameters page, GetCashDepositStoreLocationsListFilterParameter filter) throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/store-locations"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "page"; + if (page != null) { + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + localVarQueryParameterBaseName = "filter"; + if (filter != null) { + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Get Check Deposit by Id * Get a Check Deposit from API @@ -5765,11 +6573,11 @@ private HttpRequest.Builder getCheckDepositRequestBuilder(String checkDepositId) * @param filter (optional) * @param sort (optional) * @param include (optional) - * @return UnitListCheckDepositsResponse + * @return UnitListCheckDepositResponse * @throws ApiException if fails to make API call */ - public UnitListCheckDepositsResponse getCheckDepositsList(ListPageParameters page, GetCheckDepositsListFilterParameter filter, String sort, String include) throws ApiException { - ApiResponse localVarResponse = getCheckDepositsListWithHttpInfo(page, filter, sort, include); + public UnitListCheckDepositResponse getCheckDepositsList(ListPageParameters page, GetCheckDepositsListFilterParameter filter, String sort, String include) throws ApiException { + ApiResponse localVarResponse = getCheckDepositsListWithHttpInfo(page, filter, sort, include); return localVarResponse.getData(); } @@ -5780,10 +6588,10 @@ public UnitListCheckDepositsResponse getCheckDepositsList(ListPageParameters pag * @param filter (optional) * @param sort (optional) * @param include (optional) - * @return ApiResponse<UnitListCheckDepositsResponse> + * @return ApiResponse<UnitListCheckDepositResponse> * @throws ApiException if fails to make API call */ - public ApiResponse getCheckDepositsListWithHttpInfo(ListPageParameters page, GetCheckDepositsListFilterParameter filter, String sort, String include) throws ApiException { + public ApiResponse getCheckDepositsListWithHttpInfo(ListPageParameters page, GetCheckDepositsListFilterParameter filter, String sort, String include) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getCheckDepositsListRequestBuilder(page, filter, sort, include); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -5796,10 +6604,10 @@ public ApiResponse getCheckDepositsListWithHttpIn if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("getCheckDepositsList", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -5823,11 +6631,17 @@ private HttpRequest.Builder getCheckDepositsListRequestBuilder(ListPageParameter String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -5937,8 +6751,8 @@ private HttpRequest.Builder getCheckPaymentRequestBuilder(String checkPaymentId) * @return File * @throws ApiException if fails to make API call */ - public File getCheckPaymentBack(String checkPaymentId) throws ApiException { - ApiResponse localVarResponse = getCheckPaymentBackWithHttpInfo(checkPaymentId); + public InputStream getCheckPaymentBack(String checkPaymentId) throws ApiException { + ApiResponse localVarResponse = getCheckPaymentBackWithHttpInfo(checkPaymentId); return localVarResponse.getData(); } @@ -5949,7 +6763,7 @@ public File getCheckPaymentBack(String checkPaymentId) throws ApiException { * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse getCheckPaymentBackWithHttpInfo(String checkPaymentId) throws ApiException { + public ApiResponse getCheckPaymentBackWithHttpInfo(String checkPaymentId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getCheckPaymentBackRequestBuilder(checkPaymentId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -5962,10 +6776,10 @@ public ApiResponse getCheckPaymentBackWithHttpInfo(String checkPaymentId) if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("getCheckPaymentBack", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : localVarResponse.body() ); } finally { } @@ -6010,8 +6824,8 @@ private HttpRequest.Builder getCheckPaymentBackRequestBuilder(String checkPaymen * @return File * @throws ApiException if fails to make API call */ - public File getCheckPaymentFront(String checkPaymentId) throws ApiException { - ApiResponse localVarResponse = getCheckPaymentFrontWithHttpInfo(checkPaymentId); + public InputStream getCheckPaymentFront(String checkPaymentId) throws ApiException { + ApiResponse localVarResponse = getCheckPaymentFrontWithHttpInfo(checkPaymentId); return localVarResponse.getData(); } @@ -6022,7 +6836,7 @@ public File getCheckPaymentFront(String checkPaymentId) throws ApiException { * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse getCheckPaymentFrontWithHttpInfo(String checkPaymentId) throws ApiException { + public ApiResponse getCheckPaymentFrontWithHttpInfo(String checkPaymentId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getCheckPaymentFrontRequestBuilder(checkPaymentId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -6035,10 +6849,10 @@ public ApiResponse getCheckPaymentFrontWithHttpInfo(String checkPaymentId) if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("getCheckPaymentFront", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : localVarResponse.body() ); } finally { } @@ -6141,7 +6955,10 @@ private HttpRequest.Builder getCheckPaymentsListRequestBuilder(ListPageParameter String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; localVarQueryParams.addAll(ApiClient.parameterToPairs("accountId", filter.getAccountId())); @@ -6244,11 +7061,17 @@ private HttpRequest.Builder getCounterpartiesListRequestBuilder(ListPageParamete String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -6280,12 +7103,11 @@ private HttpRequest.Builder getCounterpartiesListRequestBuilder(ListPageParamete * Get Counterparty by Id * Get a Counterparty from API * @param counterpartyId ID of the counterparty to get (required) - * @param included (optional) * @return UnitCounterpartyResponse * @throws ApiException if fails to make API call */ - public UnitCounterpartyResponse getCounterparty(String counterpartyId, String included) throws ApiException { - ApiResponse localVarResponse = getCounterpartyWithHttpInfo(counterpartyId, included); + public UnitCounterpartyResponse getCounterparty(String counterpartyId) throws ApiException { + ApiResponse localVarResponse = getCounterpartyWithHttpInfo(counterpartyId); return localVarResponse.getData(); } @@ -6293,12 +7115,11 @@ public UnitCounterpartyResponse getCounterparty(String counterpartyId, String in * Get Counterparty by Id * Get a Counterparty from API * @param counterpartyId ID of the counterparty to get (required) - * @param included (optional) * @return ApiResponse<UnitCounterpartyResponse> * @throws ApiException if fails to make API call */ - public ApiResponse getCounterpartyWithHttpInfo(String counterpartyId, String included) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getCounterpartyRequestBuilder(counterpartyId, included); + public ApiResponse getCounterpartyWithHttpInfo(String counterpartyId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getCounterpartyRequestBuilder(counterpartyId); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -6326,7 +7147,7 @@ public ApiResponse getCounterpartyWithHttpInfo(String } } - private HttpRequest.Builder getCounterpartyRequestBuilder(String counterpartyId, String included) throws ApiException { + private HttpRequest.Builder getCounterpartyRequestBuilder(String counterpartyId) throws ApiException { // verify the required parameter 'counterpartyId' is set if (counterpartyId == null) { throw new ApiException(400, "Missing the required parameter 'counterpartyId' when calling getCounterparty"); @@ -6337,22 +7158,7 @@ private HttpRequest.Builder getCounterpartyRequestBuilder(String counterpartyId, String localVarPath = "/counterparties/{counterpartyId}" .replace("{counterpartyId}", ApiClient.urlEncode(counterpartyId.toString())); - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "included"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("included", included)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); @@ -6370,11 +7176,11 @@ private HttpRequest.Builder getCounterpartyRequestBuilder(String counterpartyId, * Get Counterparty Balance * Get Recurring Payment from API * @param counterpartyId ID of the counterparty to get (required) - * @return UnitCounterpartyResponse1 + * @return UnitCounterpartyBalanceResponse * @throws ApiException if fails to make API call */ - public UnitCounterpartyResponse1 getCounterpartyBalance(String counterpartyId) throws ApiException { - ApiResponse localVarResponse = getCounterpartyBalanceWithHttpInfo(counterpartyId); + public UnitCounterpartyBalanceResponse getCounterpartyBalance(String counterpartyId) throws ApiException { + ApiResponse localVarResponse = getCounterpartyBalanceWithHttpInfo(counterpartyId); return localVarResponse.getData(); } @@ -6382,10 +7188,10 @@ public UnitCounterpartyResponse1 getCounterpartyBalance(String counterpartyId) t * Get Counterparty Balance * Get Recurring Payment from API * @param counterpartyId ID of the counterparty to get (required) - * @return ApiResponse<UnitCounterpartyResponse1> + * @return ApiResponse<UnitCounterpartyBalanceResponse> * @throws ApiException if fails to make API call */ - public ApiResponse getCounterpartyBalanceWithHttpInfo(String counterpartyId) throws ApiException { + public ApiResponse getCounterpartyBalanceWithHttpInfo(String counterpartyId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getCounterpartyBalanceRequestBuilder(counterpartyId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -6398,10 +7204,10 @@ public ApiResponse getCounterpartyBalanceWithHttpInfo if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("getCounterpartyBalance", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -6575,11 +7381,17 @@ private HttpRequest.Builder getCustomersListRequestBuilder(ListPageParameters pa String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -6608,26 +7420,26 @@ private HttpRequest.Builder getCustomersListRequestBuilder(ListPageParameters pa } /** - * Get Dispute by Id - * Get a Dispute from API - * @param disputeId ID of the dispute to get (required) - * @return UnitDisputeResponse + * Get Deposit Products + * Retrieve the list of available deposit products compatible to the account. + * @param accountId ID of the account to get deposit products for (required) + * @return UnitDepositProductsResponse * @throws ApiException if fails to make API call */ - public UnitDisputeResponse getDispute(String disputeId) throws ApiException { - ApiResponse localVarResponse = getDisputeWithHttpInfo(disputeId); + public UnitDepositProductsResponse getDepositProductsList(String accountId) throws ApiException { + ApiResponse localVarResponse = getDepositProductsListWithHttpInfo(accountId); return localVarResponse.getData(); } /** - * Get Dispute by Id - * Get a Dispute from API - * @param disputeId ID of the dispute to get (required) - * @return ApiResponse<UnitDisputeResponse> + * Get Deposit Products + * Retrieve the list of available deposit products compatible to the account. + * @param accountId ID of the account to get deposit products for (required) + * @return ApiResponse<UnitDepositProductsResponse> * @throws ApiException if fails to make API call */ - public ApiResponse getDisputeWithHttpInfo(String disputeId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getDisputeRequestBuilder(disputeId); + public ApiResponse getDepositProductsListWithHttpInfo(String accountId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getDepositProductsListRequestBuilder(accountId); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -6637,12 +7449,12 @@ public ApiResponse getDisputeWithHttpInfo(String disputeId) } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getDispute", localVarResponse); + throw getApiException("getDepositProductsList", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -6655,16 +7467,16 @@ public ApiResponse getDisputeWithHttpInfo(String disputeId) } } - private HttpRequest.Builder getDisputeRequestBuilder(String disputeId) throws ApiException { - // verify the required parameter 'disputeId' is set - if (disputeId == null) { - throw new ApiException(400, "Missing the required parameter 'disputeId' when calling getDispute"); + private HttpRequest.Builder getDepositProductsListRequestBuilder(String accountId) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException(400, "Missing the required parameter 'accountId' when calling getDepositProductsList"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/disputes/{disputeId}" - .replace("{disputeId}", ApiClient.urlEncode(disputeId.toString())); + String localVarPath = "/accounts/{accountId}/deposit-products" + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -6681,28 +7493,26 @@ private HttpRequest.Builder getDisputeRequestBuilder(String disputeId) throws Ap } /** - * Get List Disputes - * Get List Disputes from API - * @param page (optional) - * @param filter (optional) - * @return List<Dispute> + * Get Dispute by Id + * Get a Dispute from API + * @param disputeId ID of the dispute to get (required) + * @return UnitDisputeResponse * @throws ApiException if fails to make API call */ - public List getDisputesList(ListPageParameters page, GetDisputesListFilterParameter filter) throws ApiException { - ApiResponse> localVarResponse = getDisputesListWithHttpInfo(page, filter); + public UnitDisputeResponse getDispute(String disputeId) throws ApiException { + ApiResponse localVarResponse = getDisputeWithHttpInfo(disputeId); return localVarResponse.getData(); } /** - * Get List Disputes - * Get List Disputes from API - * @param page (optional) - * @param filter (optional) - * @return ApiResponse<List<Dispute>> + * Get Dispute by Id + * Get a Dispute from API + * @param disputeId ID of the dispute to get (required) + * @return ApiResponse<UnitDisputeResponse> * @throws ApiException if fails to make API call */ - public ApiResponse> getDisputesListWithHttpInfo(ListPageParameters page, GetDisputesListFilterParameter filter) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getDisputesListRequestBuilder(page, filter); + public ApiResponse getDisputeWithHttpInfo(String disputeId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getDisputeRequestBuilder(disputeId); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -6712,7 +7522,82 @@ public ApiResponse> getDisputesListWithHttpInfo(ListPageParameters } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getDisputesList", localVarResponse); + throw getApiException("getDispute", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getDisputeRequestBuilder(String disputeId) throws ApiException { + // verify the required parameter 'disputeId' is set + if (disputeId == null) { + throw new ApiException(400, "Missing the required parameter 'disputeId' when calling getDispute"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/disputes/{disputeId}" + .replace("{disputeId}", ApiClient.urlEncode(disputeId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Get List Disputes + * Get List Disputes from API + * @param page (optional) + * @param filter (optional) + * @return List<Dispute> + * @throws ApiException if fails to make API call + */ + public List getDisputesList(ListPageParameters page, GetDisputesListFilterParameter filter) throws ApiException { + ApiResponse> localVarResponse = getDisputesListWithHttpInfo(page, filter); + return localVarResponse.getData(); + } + + /** + * Get List Disputes + * Get List Disputes from API + * @param page (optional) + * @param filter (optional) + * @return ApiResponse<List<Dispute>> + * @throws ApiException if fails to make API call + */ + public ApiResponse> getDisputesListWithHttpInfo(ListPageParameters page, GetDisputesListFilterParameter filter) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getDisputesListRequestBuilder(page, filter); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getDisputesList", localVarResponse); } return new ApiResponse>( localVarResponse.statusCode(), @@ -6741,11 +7626,17 @@ private HttpRequest.Builder getDisputesListRequestBuilder(ListPageParameters pag String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { @@ -6905,11 +7796,17 @@ private HttpRequest.Builder getEventsListRequestBuilder(ListPageParameters page, String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { @@ -7081,105 +7978,6 @@ private HttpRequest.Builder getInstitutionRequestBuilder(String routingNumber) t return localVarRequestBuilder; } - /** - * Get Rewards List - * Get Rewards List from API - * @param page (optional) - * @param filter (optional) - * @param sort (optional) - * @param include (optional) - * @return UnitRewardsListResponse - * @throws ApiException if fails to make API call - */ - public UnitRewardsListResponse getListRewards(ListPageParameters page, GetListRewardsFilterParameter filter, String sort, String include) throws ApiException { - ApiResponse localVarResponse = getListRewardsWithHttpInfo(page, filter, sort, include); - return localVarResponse.getData(); - } - - /** - * Get Rewards List - * Get Rewards List from API - * @param page (optional) - * @param filter (optional) - * @param sort (optional) - * @param include (optional) - * @return ApiResponse<UnitRewardsListResponse> - * @throws ApiException if fails to make API call - */ - public ApiResponse getListRewardsWithHttpInfo(ListPageParameters page, GetListRewardsFilterParameter filter, String sort, String include) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getListRewardsRequestBuilder(page, filter, sort, include); - try { - HttpResponse localVarResponse = memberVarHttpClient.send( - localVarRequestBuilder.build(), - HttpResponse.BodyHandlers.ofInputStream()); - if (memberVarResponseInterceptor != null) { - memberVarResponseInterceptor.accept(localVarResponse); - } - try { - if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getListRewards", localVarResponse); - } - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream - ); - } finally { - } - } catch (IOException e) { - throw new ApiException(e); - } - catch (InterruptedException e) { - Thread.currentThread().interrupt(); - throw new ApiException(e); - } - } - - private HttpRequest.Builder getListRewardsRequestBuilder(ListPageParameters page, GetListRewardsFilterParameter filter, String sort, String include) throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/rewards"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "page"; - if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); - } - localVarQueryParameterBaseName = "filter"; - if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); - } - localVarQueryParameterBaseName = "sort"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); - localVarQueryParameterBaseName = "include"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** * Get Payment by Id * Get a Payment from API @@ -7335,11 +8133,17 @@ private HttpRequest.Builder getPaymentsListRequestBuilder(ListPageParameters pag String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "include"; localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include)); @@ -7462,24 +8266,30 @@ private HttpRequest.Builder getReceivedPaymentRequestBuilder(String paymentId, S /** * Get Received Payments List * Get Received Payments from API - * @param included (optional) + * @param page (optional) + * @param filter (optional) + * @param include (optional) + * @param sort (optional) * @return UnitReceivedPaymentListResponse * @throws ApiException if fails to make API call */ - public UnitReceivedPaymentListResponse getReceivedPaymentsList(String included) throws ApiException { - ApiResponse localVarResponse = getReceivedPaymentsListWithHttpInfo(included); + public UnitReceivedPaymentListResponse getReceivedPaymentsList(ListPageParameters page, GetReceivedPaymentsListFilterParameter filter, String include, String sort) throws ApiException { + ApiResponse localVarResponse = getReceivedPaymentsListWithHttpInfo(page, filter, include, sort); return localVarResponse.getData(); } /** * Get Received Payments List * Get Received Payments from API - * @param included (optional) + * @param page (optional) + * @param filter (optional) + * @param include (optional) + * @param sort (optional) * @return ApiResponse<UnitReceivedPaymentListResponse> * @throws ApiException if fails to make API call */ - public ApiResponse getReceivedPaymentsListWithHttpInfo(String included) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getReceivedPaymentsListRequestBuilder(included); + public ApiResponse getReceivedPaymentsListWithHttpInfo(ListPageParameters page, GetReceivedPaymentsListFilterParameter filter, String include, String sort) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getReceivedPaymentsListRequestBuilder(page, filter, include, sort); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -7507,7 +8317,7 @@ public ApiResponse getReceivedPaymentsListWithH } } - private HttpRequest.Builder getReceivedPaymentsListRequestBuilder(String included) throws ApiException { + private HttpRequest.Builder getReceivedPaymentsListRequestBuilder(ListPageParameters page, GetReceivedPaymentsListFilterParameter filter, String include, String sort) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); @@ -7516,8 +8326,24 @@ private HttpRequest.Builder getReceivedPaymentsListRequestBuilder(String include List localVarQueryParams = new ArrayList<>(); StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "included"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("included", included)); + localVarQueryParameterBaseName = "page"; + if (page != null) { + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + localVarQueryParameterBaseName = "filter"; + if (filter != null) { + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + localVarQueryParameterBaseName = "include"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include)); + localVarQueryParameterBaseName = "sort"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); @@ -7678,11 +8504,17 @@ private HttpRequest.Builder getRecurringPaymentsListRequestBuilder(ListPageParam String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -7863,11 +8695,17 @@ private HttpRequest.Builder getRecurringRepaymentsListRequestBuilder(ListPagePar String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -7985,6 +8823,79 @@ private HttpRequest.Builder getRepaymentRequestBuilder(String repaymentId, Strin return localVarRequestBuilder; } + /** + * Get Repayment Information + * Retrieve the repayment information for a specific account via API + * @param accountId ID of the account to get repayment information for (required) + * @return UnitRepaymentInformationResponse + * @throws ApiException if fails to make API call + */ + public UnitRepaymentInformationResponse getRepaymentInformation(String accountId) throws ApiException { + ApiResponse localVarResponse = getRepaymentInformationWithHttpInfo(accountId); + return localVarResponse.getData(); + } + + /** + * Get Repayment Information + * Retrieve the repayment information for a specific account via API + * @param accountId ID of the account to get repayment information for (required) + * @return ApiResponse<UnitRepaymentInformationResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse getRepaymentInformationWithHttpInfo(String accountId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getRepaymentInformationRequestBuilder(accountId); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getRepaymentInformation", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getRepaymentInformationRequestBuilder(String accountId) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException(400, "Missing the required parameter 'accountId' when calling getRepaymentInformation"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/accounts/{accountId}/repayment-information" + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Get List Repayments * Get List Repayments from API @@ -8046,11 +8957,17 @@ private HttpRequest.Builder getRepaymentsListRequestBuilder(ListPageParameters p String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { @@ -8149,6 +9066,111 @@ private HttpRequest.Builder getRewardRequestBuilder(String rewardId) throws ApiE return localVarRequestBuilder; } + /** + * Get Rewards List + * Get Rewards List from API + * @param page (optional) + * @param filter (optional) + * @param sort (optional) + * @param include (optional) + * @return UnitRewardsListResponse + * @throws ApiException if fails to make API call + */ + public UnitRewardsListResponse getRewardsList(ListPageParameters page, GetRewardsListFilterParameter filter, String sort, String include) throws ApiException { + ApiResponse localVarResponse = getRewardsListWithHttpInfo(page, filter, sort, include); + return localVarResponse.getData(); + } + + /** + * Get Rewards List + * Get Rewards List from API + * @param page (optional) + * @param filter (optional) + * @param sort (optional) + * @param include (optional) + * @return ApiResponse<UnitRewardsListResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse getRewardsListWithHttpInfo(ListPageParameters page, GetRewardsListFilterParameter filter, String sort, String include) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getRewardsListRequestBuilder(page, filter, sort, include); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getRewardsList", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getRewardsListRequestBuilder(ListPageParameters page, GetRewardsListFilterParameter filter, String sort, String include) throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/rewards"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "page"; + if (page != null) { + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + localVarQueryParameterBaseName = "filter"; + if (filter != null) { + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + localVarQueryParameterBaseName = "sort"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); + localVarQueryParameterBaseName = "include"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Get Bank verification PDF * Get Get Bank verification PDF from API @@ -8156,8 +9178,8 @@ private HttpRequest.Builder getRewardRequestBuilder(String rewardId) throws ApiE * @return File * @throws ApiException if fails to make API call */ - public File getStatementBankPdf(String accountId) throws ApiException { - ApiResponse localVarResponse = getStatementBankPdfWithHttpInfo(accountId); + public InputStream getStatementBankPdf(String accountId) throws ApiException { + ApiResponse localVarResponse = getStatementBankPdfWithHttpInfo(accountId); return localVarResponse.getData(); } @@ -8168,7 +9190,7 @@ public File getStatementBankPdf(String accountId) throws ApiException { * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse getStatementBankPdfWithHttpInfo(String accountId) throws ApiException { + public ApiResponse getStatementBankPdfWithHttpInfo(String accountId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getStatementBankPdfRequestBuilder(accountId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -8181,10 +9203,10 @@ public ApiResponse getStatementBankPdfWithHttpInfo(String accountId) throw if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("getStatementBankPdf", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : localVarResponse.body() ); } finally { } @@ -8257,7 +9279,7 @@ public ApiResponse getStatementHtmlWithHttpInfo(String statementId) thro return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : IOUtils.toString(localVarResponse.body(), StandardCharsets.UTF_8) ); } finally { } @@ -8302,8 +9324,8 @@ private HttpRequest.Builder getStatementHtmlRequestBuilder(String statementId) t * @return File * @throws ApiException if fails to make API call */ - public File getStatementPdf(String statementId) throws ApiException { - ApiResponse localVarResponse = getStatementPdfWithHttpInfo(statementId); + public InputStream getStatementPdf(String statementId) throws ApiException { + ApiResponse localVarResponse = getStatementPdfWithHttpInfo(statementId); return localVarResponse.getData(); } @@ -8314,7 +9336,7 @@ public File getStatementPdf(String statementId) throws ApiException { * @return ApiResponse<File> * @throws ApiException if fails to make API call */ - public ApiResponse getStatementPdfWithHttpInfo(String statementId) throws ApiException { + public ApiResponse getStatementPdfWithHttpInfo(String statementId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = getStatementPdfRequestBuilder(statementId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -8327,10 +9349,10 @@ public ApiResponse getStatementPdfWithHttpInfo(String statementId) throws if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("getStatementPdf", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : localVarResponse.body() ); } finally { } @@ -8431,11 +9453,17 @@ private HttpRequest.Builder getStatementsListRequestBuilder(ListPageParameters p String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -8599,7 +9627,10 @@ private HttpRequest.Builder getStopPaymentsListRequestBuilder(ListPageParameters String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; localVarQueryParams.addAll(ApiClient.parameterToPairs("accountId", filter.getAccountId())); @@ -8638,28 +9669,26 @@ private HttpRequest.Builder getStopPaymentsListRequestBuilder(ListPageParameters } /** - * Get Transaction by Id - * Get a Transaction from API - * @param accountId ID of the account to get transaction from (required) - * @param transactionId ID of the transaction (required) - * @return UnitTransactionResponseWithIncludedResource + * Get Tax Form by Id + * Get a Tax Form from API + * @param taxFormId ID of the reward to get (required) + * @return UnitTaxFormResponse * @throws ApiException if fails to make API call */ - public UnitTransactionResponseWithIncludedResource getTransaction(String accountId, String transactionId) throws ApiException { - ApiResponse localVarResponse = getTransactionWithHttpInfo(accountId, transactionId); + public UnitTaxFormResponse getTaxForm(String taxFormId) throws ApiException { + ApiResponse localVarResponse = getTaxFormWithHttpInfo(taxFormId); return localVarResponse.getData(); } /** - * Get Transaction by Id - * Get a Transaction from API - * @param accountId ID of the account to get transaction from (required) - * @param transactionId ID of the transaction (required) - * @return ApiResponse<UnitTransactionResponseWithIncludedResource> + * Get Tax Form by Id + * Get a Tax Form from API + * @param taxFormId ID of the reward to get (required) + * @return ApiResponse<UnitTaxFormResponse> * @throws ApiException if fails to make API call */ - public ApiResponse getTransactionWithHttpInfo(String accountId, String transactionId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getTransactionRequestBuilder(accountId, transactionId); + public ApiResponse getTaxFormWithHttpInfo(String taxFormId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getTaxFormRequestBuilder(taxFormId); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -8669,12 +9698,12 @@ public ApiResponse getTransactionWi } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getTransaction", localVarResponse); + throw getApiException("getTaxForm", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -8687,21 +9716,16 @@ public ApiResponse getTransactionWi } } - private HttpRequest.Builder getTransactionRequestBuilder(String accountId, String transactionId) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException(400, "Missing the required parameter 'accountId' when calling getTransaction"); - } - // verify the required parameter 'transactionId' is set - if (transactionId == null) { - throw new ApiException(400, "Missing the required parameter 'transactionId' when calling getTransaction"); + private HttpRequest.Builder getTaxFormRequestBuilder(String taxFormId) throws ApiException { + // verify the required parameter 'taxFormId' is set + if (taxFormId == null) { + throw new ApiException(400, "Missing the required parameter 'taxFormId' when calling getTaxForm"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/accounts/{accountId}/transactions/{transactionId}" - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) - .replace("{transactionId}", ApiClient.urlEncode(transactionId.toString())); + String localVarPath = "/tax-forms/{taxFormId}" + .replace("{taxFormId}", ApiClient.urlEncode(taxFormId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -8718,32 +9742,101 @@ private HttpRequest.Builder getTransactionRequestBuilder(String accountId, Strin } /** - * Get List Transactions - * Get List Transactions from API + * Get Tax Form pdf by Id + * Get a Tax Form pdf from API + * @param taxFormId ID of the reward to get (required) + * @return File + * @throws ApiException if fails to make API call + */ + public InputStream getTaxFormPdf(String taxFormId) throws ApiException { + ApiResponse localVarResponse = getTaxFormPdfWithHttpInfo(taxFormId); + return localVarResponse.getData(); + } + + /** + * Get Tax Form pdf by Id + * Get a Tax Form pdf from API + * @param taxFormId ID of the reward to get (required) + * @return ApiResponse<File> + * @throws ApiException if fails to make API call + */ + public ApiResponse getTaxFormPdfWithHttpInfo(String taxFormId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getTaxFormPdfRequestBuilder(taxFormId); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getTaxFormPdf", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : localVarResponse.body() + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getTaxFormPdfRequestBuilder(String taxFormId) throws ApiException { + // verify the required parameter 'taxFormId' is set + if (taxFormId == null) { + throw new ApiException(400, "Missing the required parameter 'taxFormId' when calling getTaxFormPdf"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/tax-forms/{taxFormId}/pdf" + .replace("{taxFormId}", ApiClient.urlEncode(taxFormId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/pdf"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Get Tax Forms List + * Get Tax Forms List from API * @param page (optional) * @param filter (optional) - * @param sort (optional) - * @param include (optional) - * @return UnitTransactionsListResponse + * @return UnitTaxFormsListResponse * @throws ApiException if fails to make API call */ - public UnitTransactionsListResponse getTransactionsList(ListPageParameters page, GetTransactionsListFilterParameter filter, String sort, String include) throws ApiException { - ApiResponse localVarResponse = getTransactionsListWithHttpInfo(page, filter, sort, include); + public UnitTaxFormsListResponse getTaxFormsList(ListPageParameters page, GetTaxFormsListFilterParameter filter) throws ApiException { + ApiResponse localVarResponse = getTaxFormsListWithHttpInfo(page, filter); return localVarResponse.getData(); } /** - * Get List Transactions - * Get List Transactions from API + * Get Tax Forms List + * Get Tax Forms List from API * @param page (optional) * @param filter (optional) - * @param sort (optional) - * @param include (optional) - * @return ApiResponse<UnitTransactionsListResponse> + * @return ApiResponse<UnitTaxFormsListResponse> * @throws ApiException if fails to make API call */ - public ApiResponse getTransactionsListWithHttpInfo(ListPageParameters page, GetTransactionsListFilterParameter filter, String sort, String include) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getTransactionsListRequestBuilder(page, filter, sort, include); + public ApiResponse getTaxFormsListWithHttpInfo(ListPageParameters page, GetTaxFormsListFilterParameter filter) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getTaxFormsListRequestBuilder(page, filter); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -8753,12 +9846,12 @@ public ApiResponse getTransactionsListWithHttpInfo } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getTransactionsList", localVarResponse); + throw getApiException("getTaxFormsList", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -8771,27 +9864,29 @@ public ApiResponse getTransactionsListWithHttpInfo } } - private HttpRequest.Builder getTransactionsListRequestBuilder(ListPageParameters page, GetTransactionsListFilterParameter filter, String sort, String include) throws ApiException { + private HttpRequest.Builder getTaxFormsListRequestBuilder(ListPageParameters page, GetTaxFormsListFilterParameter filter) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/transactions"; + String localVarPath = "/tax-forms"; List localVarQueryParams = new ArrayList<>(); StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } - localVarQueryParameterBaseName = "sort"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); - localVarQueryParameterBaseName = "include"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); @@ -8804,7 +9899,7 @@ private HttpRequest.Builder getTransactionsListRequestBuilder(ListPageParameters localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } - localVarRequestBuilder.header("Accept", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); if (memberVarReadTimeout != null) { @@ -8817,26 +9912,28 @@ private HttpRequest.Builder getTransactionsListRequestBuilder(ListPageParameters } /** - * Get Webhook Id - * Get a Webhook from API - * @param webhookId ID of the webhook to get (required) - * @return WebhookResponse + * Get Transaction by Id + * Get a Transaction from API + * @param accountId ID of the account to get transaction from (required) + * @param transactionId ID of the transaction (required) + * @return UnitTransactionResponseWithIncludedResource * @throws ApiException if fails to make API call */ - public WebhookResponse getWebhook(String webhookId) throws ApiException { - ApiResponse localVarResponse = getWebhookWithHttpInfo(webhookId); + public UnitTransactionResponseWithIncludedResource getTransaction(String accountId, String transactionId) throws ApiException { + ApiResponse localVarResponse = getTransactionWithHttpInfo(accountId, transactionId); return localVarResponse.getData(); } /** - * Get Webhook Id - * Get a Webhook from API - * @param webhookId ID of the webhook to get (required) - * @return ApiResponse<WebhookResponse> + * Get Transaction by Id + * Get a Transaction from API + * @param accountId ID of the account to get transaction from (required) + * @param transactionId ID of the transaction (required) + * @return ApiResponse<UnitTransactionResponseWithIncludedResource> * @throws ApiException if fails to make API call */ - public ApiResponse getWebhookWithHttpInfo(String webhookId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getWebhookRequestBuilder(webhookId); + public ApiResponse getTransactionWithHttpInfo(String accountId, String transactionId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getTransactionRequestBuilder(accountId, transactionId); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -8846,12 +9943,12 @@ public ApiResponse getWebhookWithHttpInfo(String webhookId) thr } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getWebhook", localVarResponse); + throw getApiException("getTransaction", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -8864,16 +9961,21 @@ public ApiResponse getWebhookWithHttpInfo(String webhookId) thr } } - private HttpRequest.Builder getWebhookRequestBuilder(String webhookId) throws ApiException { - // verify the required parameter 'webhookId' is set - if (webhookId == null) { - throw new ApiException(400, "Missing the required parameter 'webhookId' when calling getWebhook"); + private HttpRequest.Builder getTransactionRequestBuilder(String accountId, String transactionId) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException(400, "Missing the required parameter 'accountId' when calling getTransaction"); + } + // verify the required parameter 'transactionId' is set + if (transactionId == null) { + throw new ApiException(400, "Missing the required parameter 'transactionId' when calling getTransaction"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/webhooks/{webhookId}" - .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())); + String localVarPath = "/accounts/{accountId}/transactions/{transactionId}" + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())) + .replace("{transactionId}", ApiClient.urlEncode(transactionId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -8890,12 +9992,190 @@ private HttpRequest.Builder getWebhookRequestBuilder(String webhookId) throws Ap } /** - * Get List Webhooks - * Get List Webhooks from API + * Get List Transactions + * Get List Transactions from API * @param page (optional) * @param filter (optional) * @param sort (optional) - * @return UnitWebhooksListResponse + * @param include (optional) + * @return UnitTransactionsListResponse + * @throws ApiException if fails to make API call + */ + public UnitTransactionsListResponse getTransactionsList(ListPageParameters page, GetTransactionsListFilterParameter filter, String sort, String include) throws ApiException { + ApiResponse localVarResponse = getTransactionsListWithHttpInfo(page, filter, sort, include); + return localVarResponse.getData(); + } + + /** + * Get List Transactions + * Get List Transactions from API + * @param page (optional) + * @param filter (optional) + * @param sort (optional) + * @param include (optional) + * @return ApiResponse<UnitTransactionsListResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse getTransactionsListWithHttpInfo(ListPageParameters page, GetTransactionsListFilterParameter filter, String sort, String include) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getTransactionsListRequestBuilder(page, filter, sort, include); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getTransactionsList", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getTransactionsListRequestBuilder(ListPageParameters page, GetTransactionsListFilterParameter filter, String sort, String include) throws ApiException { + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/transactions"; + + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "page"; + if (page != null) { + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + localVarQueryParameterBaseName = "filter"; + if (filter != null) { + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } + } + localVarQueryParameterBaseName = "sort"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); + localVarQueryParameterBaseName = "include"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } + + localVarRequestBuilder.header("Accept", "application/vnd.api+json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Get Webhook Id + * Get a Webhook from API + * @param webhookId ID of the webhook to get (required) + * @return UnitWebhookResponse + * @throws ApiException if fails to make API call + */ + public UnitWebhookResponse getWebhook(String webhookId) throws ApiException { + ApiResponse localVarResponse = getWebhookWithHttpInfo(webhookId); + return localVarResponse.getData(); + } + + /** + * Get Webhook Id + * Get a Webhook from API + * @param webhookId ID of the webhook to get (required) + * @return ApiResponse<UnitWebhookResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse getWebhookWithHttpInfo(String webhookId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getWebhookRequestBuilder(webhookId); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getWebhook", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getWebhookRequestBuilder(String webhookId) throws ApiException { + // verify the required parameter 'webhookId' is set + if (webhookId == null) { + throw new ApiException(400, "Missing the required parameter 'webhookId' when calling getWebhook"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/webhooks/{webhookId}" + .replace("{webhookId}", ApiClient.urlEncode(webhookId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Get List Webhooks + * Get List Webhooks from API + * @param page (optional) + * @param filter (optional) + * @param sort (optional) + * @return UnitWebhooksListResponse * @throws ApiException if fails to make API call */ public UnitWebhooksListResponse getWebhooksList(ListPageParameters page, GetWebhooksListFilterParameter filter, String sort) throws ApiException { @@ -8952,11 +10232,17 @@ private HttpRequest.Builder getWebhooksListRequestBuilder(ListPageParameters pag String localVarQueryParameterBaseName; localVarQueryParameterBaseName = "page"; if (page != null) { - localVarQueryStringJoiner.add(page.toUrlQueryString("page")); + String queryString = page.toUrlQueryString("page"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "filter"; if (filter != null) { - localVarQueryStringJoiner.add(filter.toUrlQueryString("filter")); + String queryString = filter.toUrlQueryString("filter"); + if (!queryString.isBlank()) { + localVarQueryStringJoiner.add(queryString); + } } localVarQueryParameterBaseName = "sort"; localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort)); @@ -9005,8 +10291,419 @@ public UnitReceivedPaymentResponse receivedPaymentsPaymentIdPatch(String payment * @return ApiResponse<UnitReceivedPaymentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse receivedPaymentsPaymentIdPatchWithHttpInfo(String paymentId, UpdateReceivedPaymentRequest updateReceivedPaymentRequest) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = receivedPaymentsPaymentIdPatchRequestBuilder(paymentId, updateReceivedPaymentRequest); + public ApiResponse receivedPaymentsPaymentIdPatchWithHttpInfo(String paymentId, UpdateReceivedPaymentRequest updateReceivedPaymentRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = receivedPaymentsPaymentIdPatchRequestBuilder(paymentId, updateReceivedPaymentRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("receivedPaymentsPaymentIdPatch", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder receivedPaymentsPaymentIdPatchRequestBuilder(String paymentId, UpdateReceivedPaymentRequest updateReceivedPaymentRequest) throws ApiException { + // verify the required parameter 'paymentId' is set + if (paymentId == null) { + throw new ApiException(400, "Missing the required parameter 'paymentId' when calling receivedPaymentsPaymentIdPatch"); + } + // verify the required parameter 'updateReceivedPaymentRequest' is set + if (updateReceivedPaymentRequest == null) { + throw new ApiException(400, "Missing the required parameter 'updateReceivedPaymentRequest' when calling receivedPaymentsPaymentIdPatch"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/received-payments/{paymentId}" + .replace("{paymentId}", ApiClient.urlEncode(paymentId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(updateReceivedPaymentRequest); + localVarRequestBuilder.method("PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Remove Owners from Account by Id + * Remove Owners from Account via API + * @param accountId ID of the account to add owners to (required) + * @param removeAccountOwnersRequest Remove Account Owners Request (required) + * @return UnitDepositAccountResponse + * @throws ApiException if fails to make API call + */ + public UnitDepositAccountResponse removeAccountOwners(String accountId, RemoveAccountOwnersRequest removeAccountOwnersRequest) throws ApiException { + ApiResponse localVarResponse = removeAccountOwnersWithHttpInfo(accountId, removeAccountOwnersRequest); + return localVarResponse.getData(); + } + + /** + * Remove Owners from Account by Id + * Remove Owners from Account via API + * @param accountId ID of the account to add owners to (required) + * @param removeAccountOwnersRequest Remove Account Owners Request (required) + * @return ApiResponse<UnitDepositAccountResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse removeAccountOwnersWithHttpInfo(String accountId, RemoveAccountOwnersRequest removeAccountOwnersRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = removeAccountOwnersRequestBuilder(accountId, removeAccountOwnersRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("removeAccountOwners", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder removeAccountOwnersRequestBuilder(String accountId, RemoveAccountOwnersRequest removeAccountOwnersRequest) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException(400, "Missing the required parameter 'accountId' when calling removeAccountOwners"); + } + // verify the required parameter 'removeAccountOwnersRequest' is set + if (removeAccountOwnersRequest == null) { + throw new ApiException(400, "Missing the required parameter 'removeAccountOwnersRequest' when calling removeAccountOwners"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/accounts/{accountId}/relationships/customers" + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(removeAccountOwnersRequest); + localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Remove Authorized Users by Id + * Remove Authorized Users via API + * @param customerId ID of the customer to remove authorized users from (required) + * @param removeAuthorizedUsersRequest Add Authorized Users Request (required) + * @return UnitCustomerResponse + * @throws ApiException if fails to make API call + */ + public UnitCustomerResponse removeAuthorizedUsers(String customerId, RemoveAuthorizedUsersRequest removeAuthorizedUsersRequest) throws ApiException { + ApiResponse localVarResponse = removeAuthorizedUsersWithHttpInfo(customerId, removeAuthorizedUsersRequest); + return localVarResponse.getData(); + } + + /** + * Remove Authorized Users by Id + * Remove Authorized Users via API + * @param customerId ID of the customer to remove authorized users from (required) + * @param removeAuthorizedUsersRequest Add Authorized Users Request (required) + * @return ApiResponse<UnitCustomerResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse removeAuthorizedUsersWithHttpInfo(String customerId, RemoveAuthorizedUsersRequest removeAuthorizedUsersRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = removeAuthorizedUsersRequestBuilder(customerId, removeAuthorizedUsersRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("removeAuthorizedUsers", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder removeAuthorizedUsersRequestBuilder(String customerId, RemoveAuthorizedUsersRequest removeAuthorizedUsersRequest) throws ApiException { + // verify the required parameter 'customerId' is set + if (customerId == null) { + throw new ApiException(400, "Missing the required parameter 'customerId' when calling removeAuthorizedUsers"); + } + // verify the required parameter 'removeAuthorizedUsersRequest' is set + if (removeAuthorizedUsersRequest == null) { + throw new ApiException(400, "Missing the required parameter 'removeAuthorizedUsersRequest' when calling removeAuthorizedUsers"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/customers/{customerId}/authorized-users" + .replace("{customerId}", ApiClient.urlEncode(customerId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(removeAuthorizedUsersRequest); + localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Reopen an Account by Id + * Reopen an Account via API + * @param accountId ID of the account to close (required) + * @return UnitAccountResponse + * @throws ApiException if fails to make API call + */ + public UnitAccountResponse reopenAccount(String accountId) throws ApiException { + ApiResponse localVarResponse = reopenAccountWithHttpInfo(accountId); + return localVarResponse.getData(); + } + + /** + * Reopen an Account by Id + * Reopen an Account via API + * @param accountId ID of the account to close (required) + * @return ApiResponse<UnitAccountResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse reopenAccountWithHttpInfo(String accountId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = reopenAccountRequestBuilder(accountId); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("reopenAccount", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder reopenAccountRequestBuilder(String accountId) throws ApiException { + // verify the required parameter 'accountId' is set + if (accountId == null) { + throw new ApiException(400, "Missing the required parameter 'accountId' when calling reopenAccount"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/accounts/{accountId}/reopen" + .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Replace a Card + * Replace a Card via API + * @param cardId ID of the card to replace (required) + * @param replaceCardRequest (required) + * @return UnitCardResponse + * @throws ApiException if fails to make API call + */ + public UnitCardResponse replaceCard(String cardId, ReplaceCardRequest replaceCardRequest) throws ApiException { + ApiResponse localVarResponse = replaceCardWithHttpInfo(cardId, replaceCardRequest); + return localVarResponse.getData(); + } + + /** + * Replace a Card + * Replace a Card via API + * @param cardId ID of the card to replace (required) + * @param replaceCardRequest (required) + * @return ApiResponse<UnitCardResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse replaceCardWithHttpInfo(String cardId, ReplaceCardRequest replaceCardRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = replaceCardRequestBuilder(cardId, replaceCardRequest); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("replaceCard", localVarResponse); + } + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder replaceCardRequestBuilder(String cardId, ReplaceCardRequest replaceCardRequest) throws ApiException { + // verify the required parameter 'cardId' is set + if (cardId == null) { + throw new ApiException(400, "Missing the required parameter 'cardId' when calling replaceCard"); + } + // verify the required parameter 'replaceCardRequest' is set + if (replaceCardRequest == null) { + throw new ApiException(400, "Missing the required parameter 'replaceCardRequest' when calling replaceCard"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/cards/{cardId}/replace" + .replace("{cardId}", ApiClient.urlEncode(cardId.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(replaceCardRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + + /** + * Report lost as stolen + * Report lost as stolen via API + * @param cardId ID of the card (required) + * @return UnitCardResponse + * @throws ApiException if fails to make API call + */ + public UnitCardResponse reportCardAsLost(String cardId) throws ApiException { + ApiResponse localVarResponse = reportCardAsLostWithHttpInfo(cardId); + return localVarResponse.getData(); + } + + /** + * Report lost as stolen + * Report lost as stolen via API + * @param cardId ID of the card (required) + * @return ApiResponse<UnitCardResponse> + * @throws ApiException if fails to make API call + */ + public ApiResponse reportCardAsLostWithHttpInfo(String cardId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = reportCardAsLostRequestBuilder(cardId); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -9016,12 +10713,12 @@ public ApiResponse receivedPaymentsPaymentIdPatchWi } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("receivedPaymentsPaymentIdPatch", localVarResponse); + throw getApiException("reportCardAsLost", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -9034,32 +10731,22 @@ public ApiResponse receivedPaymentsPaymentIdPatchWi } } - private HttpRequest.Builder receivedPaymentsPaymentIdPatchRequestBuilder(String paymentId, UpdateReceivedPaymentRequest updateReceivedPaymentRequest) throws ApiException { - // verify the required parameter 'paymentId' is set - if (paymentId == null) { - throw new ApiException(400, "Missing the required parameter 'paymentId' when calling receivedPaymentsPaymentIdPatch"); - } - // verify the required parameter 'updateReceivedPaymentRequest' is set - if (updateReceivedPaymentRequest == null) { - throw new ApiException(400, "Missing the required parameter 'updateReceivedPaymentRequest' when calling receivedPaymentsPaymentIdPatch"); + private HttpRequest.Builder reportCardAsLostRequestBuilder(String cardId) throws ApiException { + // verify the required parameter 'cardId' is set + if (cardId == null) { + throw new ApiException(400, "Missing the required parameter 'cardId' when calling reportCardAsLost"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/received-payments/{paymentId}" - .replace("{paymentId}", ApiClient.urlEncode(paymentId.toString())); + String localVarPath = "/cards/{cardId}/report-lost" + .replace("{cardId}", ApiClient.urlEncode(cardId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); - localVarRequestBuilder.header("Accept", "application/vnd.api+json"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(updateReceivedPaymentRequest); - localVarRequestBuilder.method("PATCH", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -9070,28 +10757,26 @@ private HttpRequest.Builder receivedPaymentsPaymentIdPatchRequestBuilder(String } /** - * Remove Authorized Users by Id - * Remove Authorized Users via API - * @param customerId ID of the customer to remove authorized users from (required) - * @param removeAuthorizedUsersRequest Add Authorized Users Request (required) - * @return UnitCustomerResponse + * Report card as stolen + * Report card as stolen via API + * @param cardId ID of the card (required) + * @return UnitCardResponse * @throws ApiException if fails to make API call */ - public UnitCustomerResponse removeAuthorizedUsers(String customerId, RemoveAuthorizedUsersRequest removeAuthorizedUsersRequest) throws ApiException { - ApiResponse localVarResponse = removeAuthorizedUsersWithHttpInfo(customerId, removeAuthorizedUsersRequest); + public UnitCardResponse reportCardAsStolen(String cardId) throws ApiException { + ApiResponse localVarResponse = reportCardAsStolenWithHttpInfo(cardId); return localVarResponse.getData(); } /** - * Remove Authorized Users by Id - * Remove Authorized Users via API - * @param customerId ID of the customer to remove authorized users from (required) - * @param removeAuthorizedUsersRequest Add Authorized Users Request (required) - * @return ApiResponse<UnitCustomerResponse> + * Report card as stolen + * Report card as stolen via API + * @param cardId ID of the card (required) + * @return ApiResponse<UnitCardResponse> * @throws ApiException if fails to make API call */ - public ApiResponse removeAuthorizedUsersWithHttpInfo(String customerId, RemoveAuthorizedUsersRequest removeAuthorizedUsersRequest) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = removeAuthorizedUsersRequestBuilder(customerId, removeAuthorizedUsersRequest); + public ApiResponse reportCardAsStolenWithHttpInfo(String cardId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = reportCardAsStolenRequestBuilder(cardId); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -9101,12 +10786,12 @@ public ApiResponse removeAuthorizedUsersWithHttpInfo(Strin } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("removeAuthorizedUsers", localVarResponse); + throw getApiException("reportCardAsStolen", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -9119,32 +10804,22 @@ public ApiResponse removeAuthorizedUsersWithHttpInfo(Strin } } - private HttpRequest.Builder removeAuthorizedUsersRequestBuilder(String customerId, RemoveAuthorizedUsersRequest removeAuthorizedUsersRequest) throws ApiException { - // verify the required parameter 'customerId' is set - if (customerId == null) { - throw new ApiException(400, "Missing the required parameter 'customerId' when calling removeAuthorizedUsers"); - } - // verify the required parameter 'removeAuthorizedUsersRequest' is set - if (removeAuthorizedUsersRequest == null) { - throw new ApiException(400, "Missing the required parameter 'removeAuthorizedUsersRequest' when calling removeAuthorizedUsers"); + private HttpRequest.Builder reportCardAsStolenRequestBuilder(String cardId) throws ApiException { + // verify the required parameter 'cardId' is set + if (cardId == null) { + throw new ApiException(400, "Missing the required parameter 'cardId' when calling reportCardAsStolen"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/customers/{customerId}/authorized-users" - .replace("{customerId}", ApiClient.urlEncode(customerId.toString())); + String localVarPath = "/cards/{cardId}/report-stolen" + .replace("{cardId}", ApiClient.urlEncode(cardId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(removeAuthorizedUsersRequest); - localVarRequestBuilder.method("DELETE", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -9155,26 +10830,26 @@ private HttpRequest.Builder removeAuthorizedUsersRequestBuilder(String customerI } /** - * Reopen an Account by Id - * Reopen an Account via API - * @param accountId ID of the account to close (required) - * @return UnitAccountResponse + * Reprocess Received Payment by Id + * Reprocess a Received Payment via API + * @param paymentId ID of the payment to advance (required) + * @return UnitReceivedPaymentResponse * @throws ApiException if fails to make API call */ - public UnitAccountResponse reopenAccount(String accountId) throws ApiException { - ApiResponse localVarResponse = reopenAccountWithHttpInfo(accountId); + public UnitReceivedPaymentResponse reprocessReceivedPayment(String paymentId) throws ApiException { + ApiResponse localVarResponse = reprocessReceivedPaymentWithHttpInfo(paymentId); return localVarResponse.getData(); } /** - * Reopen an Account by Id - * Reopen an Account via API - * @param accountId ID of the account to close (required) - * @return ApiResponse<UnitAccountResponse> + * Reprocess Received Payment by Id + * Reprocess a Received Payment via API + * @param paymentId ID of the payment to advance (required) + * @return ApiResponse<UnitReceivedPaymentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse reopenAccountWithHttpInfo(String accountId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = reopenAccountRequestBuilder(accountId); + public ApiResponse reprocessReceivedPaymentWithHttpInfo(String paymentId) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = reprocessReceivedPaymentRequestBuilder(paymentId); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -9184,12 +10859,12 @@ public ApiResponse reopenAccountWithHttpInfo(String account } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("reopenAccount", localVarResponse); + throw getApiException("reprocessReceivedPayment", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -9202,16 +10877,16 @@ public ApiResponse reopenAccountWithHttpInfo(String account } } - private HttpRequest.Builder reopenAccountRequestBuilder(String accountId) throws ApiException { - // verify the required parameter 'accountId' is set - if (accountId == null) { - throw new ApiException(400, "Missing the required parameter 'accountId' when calling reopenAccount"); + private HttpRequest.Builder reprocessReceivedPaymentRequestBuilder(String paymentId) throws ApiException { + // verify the required parameter 'paymentId' is set + if (paymentId == null) { + throw new ApiException(400, "Missing the required parameter 'paymentId' when calling reprocessReceivedPayment"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/accounts/{accountId}/reopen" - .replace("{accountId}", ApiClient.urlEncode(accountId.toString())); + String localVarPath = "/received-payments/{paymentId}/reprocess" + .replace("{paymentId}", ApiClient.urlEncode(paymentId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); @@ -9228,26 +10903,28 @@ private HttpRequest.Builder reopenAccountRequestBuilder(String accountId) throws } /** - * Report lost as stolen - * Report lost as stolen via API - * @param cardId ID of the card (required) - * @return UnitReportLostCardResponse + * Return Check Payment by Id + * Return a Check Payment via API + * @param checkPaymentId ID of the check payment to return (required) + * @param returnCheckPaymentRequest Return Check Payment Request (required) + * @return UnitCheckPaymentResponse * @throws ApiException if fails to make API call */ - public UnitReportLostCardResponse reportCardAsLost(String cardId) throws ApiException { - ApiResponse localVarResponse = reportCardAsLostWithHttpInfo(cardId); + public UnitCheckPaymentResponse returnCheckPayment(String checkPaymentId, ReturnCheckPaymentRequest returnCheckPaymentRequest) throws ApiException { + ApiResponse localVarResponse = returnCheckPaymentWithHttpInfo(checkPaymentId, returnCheckPaymentRequest); return localVarResponse.getData(); } /** - * Report lost as stolen - * Report lost as stolen via API - * @param cardId ID of the card (required) - * @return ApiResponse<UnitReportLostCardResponse> + * Return Check Payment by Id + * Return a Check Payment via API + * @param checkPaymentId ID of the check payment to return (required) + * @param returnCheckPaymentRequest Return Check Payment Request (required) + * @return ApiResponse<UnitCheckPaymentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse reportCardAsLostWithHttpInfo(String cardId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = reportCardAsLostRequestBuilder(cardId); + public ApiResponse returnCheckPaymentWithHttpInfo(String checkPaymentId, ReturnCheckPaymentRequest returnCheckPaymentRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = returnCheckPaymentRequestBuilder(checkPaymentId, returnCheckPaymentRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -9257,12 +10934,12 @@ public ApiResponse reportCardAsLostWithHttpInfo(Stri } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("reportCardAsLost", localVarResponse); + throw getApiException("returnCheckPayment", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -9275,22 +10952,32 @@ public ApiResponse reportCardAsLostWithHttpInfo(Stri } } - private HttpRequest.Builder reportCardAsLostRequestBuilder(String cardId) throws ApiException { - // verify the required parameter 'cardId' is set - if (cardId == null) { - throw new ApiException(400, "Missing the required parameter 'cardId' when calling reportCardAsLost"); + private HttpRequest.Builder returnCheckPaymentRequestBuilder(String checkPaymentId, ReturnCheckPaymentRequest returnCheckPaymentRequest) throws ApiException { + // verify the required parameter 'checkPaymentId' is set + if (checkPaymentId == null) { + throw new ApiException(400, "Missing the required parameter 'checkPaymentId' when calling returnCheckPayment"); + } + // verify the required parameter 'returnCheckPaymentRequest' is set + if (returnCheckPaymentRequest == null) { + throw new ApiException(400, "Missing the required parameter 'returnCheckPaymentRequest' when calling returnCheckPayment"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/cards/{cardId}/report-lost" - .replace("{cardId}", ApiClient.urlEncode(cardId.toString())); + String localVarPath = "/check-payments/{checkPaymentId}/return" + .replace("{checkPaymentId}", ApiClient.urlEncode(checkPaymentId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(returnCheckPaymentRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -9301,26 +10988,28 @@ private HttpRequest.Builder reportCardAsLostRequestBuilder(String cardId) throws } /** - * Report card as stolen - * Report card as stolen via API - * @param cardId ID of the card (required) - * @return UnitReportStolenCardResponse + * Return Received ACH Transaction + * Return Received ACH Transaction via API + * @param transactionId ID of the transaction to return (required) + * @param returnReceivedACHTransactionRequest Pass empty object in order for content-type to be aquired correctly (required) + * @return UnitReturnedReceivedAchTransactionResponse * @throws ApiException if fails to make API call */ - public UnitReportStolenCardResponse reportCardAsStolen(String cardId) throws ApiException { - ApiResponse localVarResponse = reportCardAsStolenWithHttpInfo(cardId); + public UnitReturnedReceivedAchTransactionResponse returnReceivedACHTransaction(String transactionId, ReturnReceivedACHTransactionRequest returnReceivedACHTransactionRequest) throws ApiException { + ApiResponse localVarResponse = returnReceivedACHTransactionWithHttpInfo(transactionId, returnReceivedACHTransactionRequest); return localVarResponse.getData(); } /** - * Report card as stolen - * Report card as stolen via API - * @param cardId ID of the card (required) - * @return ApiResponse<UnitReportStolenCardResponse> + * Return Received ACH Transaction + * Return Received ACH Transaction via API + * @param transactionId ID of the transaction to return (required) + * @param returnReceivedACHTransactionRequest Pass empty object in order for content-type to be aquired correctly (required) + * @return ApiResponse<UnitReturnedReceivedAchTransactionResponse> * @throws ApiException if fails to make API call */ - public ApiResponse reportCardAsStolenWithHttpInfo(String cardId) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = reportCardAsStolenRequestBuilder(cardId); + public ApiResponse returnReceivedACHTransactionWithHttpInfo(String transactionId, ReturnReceivedACHTransactionRequest returnReceivedACHTransactionRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = returnReceivedACHTransactionRequestBuilder(transactionId, returnReceivedACHTransactionRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -9330,12 +11019,12 @@ public ApiResponse reportCardAsStolenWithHttpInfo( } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("reportCardAsStolen", localVarResponse); + throw getApiException("returnReceivedACHTransaction", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -9348,22 +11037,32 @@ public ApiResponse reportCardAsStolenWithHttpInfo( } } - private HttpRequest.Builder reportCardAsStolenRequestBuilder(String cardId) throws ApiException { - // verify the required parameter 'cardId' is set - if (cardId == null) { - throw new ApiException(400, "Missing the required parameter 'cardId' when calling reportCardAsStolen"); + private HttpRequest.Builder returnReceivedACHTransactionRequestBuilder(String transactionId, ReturnReceivedACHTransactionRequest returnReceivedACHTransactionRequest) throws ApiException { + // verify the required parameter 'transactionId' is set + if (transactionId == null) { + throw new ApiException(400, "Missing the required parameter 'transactionId' when calling returnReceivedACHTransaction"); + } + // verify the required parameter 'returnReceivedACHTransactionRequest' is set + if (returnReceivedACHTransactionRequest == null) { + throw new ApiException(400, "Missing the required parameter 'returnReceivedACHTransactionRequest' when calling returnReceivedACHTransaction"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/cards/{cardId}/report-stolen" - .replace("{cardId}", ApiClient.urlEncode(cardId.toString())); + String localVarPath = "/returns/{transactionId}" + .replace("{transactionId}", ApiClient.urlEncode(transactionId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(returnReceivedACHTransactionRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -9374,28 +11073,26 @@ private HttpRequest.Builder reportCardAsStolenRequestBuilder(String cardId) thro } /** - * Return Check Payment by Id - * Return a Check Payment via API - * @param checkPaymentId ID of the check payment to return (required) - * @param returnCheckPaymentRequest Return Check Payment Request (required) - * @return UnitCheckPaymentResponse + * Reverse Fee + * Reverse a Fee via API + * @param reverseFeeRequest Reverse Fee Request (required) + * @return UnitFeeReversalResponse * @throws ApiException if fails to make API call */ - public UnitCheckPaymentResponse returnCheckPayment(String checkPaymentId, ReturnCheckPaymentRequest returnCheckPaymentRequest) throws ApiException { - ApiResponse localVarResponse = returnCheckPaymentWithHttpInfo(checkPaymentId, returnCheckPaymentRequest); + public UnitFeeReversalResponse reverseFee(ReverseFeeRequest reverseFeeRequest) throws ApiException { + ApiResponse localVarResponse = reverseFeeWithHttpInfo(reverseFeeRequest); return localVarResponse.getData(); } /** - * Return Check Payment by Id - * Return a Check Payment via API - * @param checkPaymentId ID of the check payment to return (required) - * @param returnCheckPaymentRequest Return Check Payment Request (required) - * @return ApiResponse<UnitCheckPaymentResponse> + * Reverse Fee + * Reverse a Fee via API + * @param reverseFeeRequest Reverse Fee Request (required) + * @return ApiResponse<UnitFeeReversalResponse> * @throws ApiException if fails to make API call */ - public ApiResponse returnCheckPaymentWithHttpInfo(String checkPaymentId, ReturnCheckPaymentRequest returnCheckPaymentRequest) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = returnCheckPaymentRequestBuilder(checkPaymentId, returnCheckPaymentRequest); + public ApiResponse reverseFeeWithHttpInfo(ReverseFeeRequest reverseFeeRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = reverseFeeRequestBuilder(reverseFeeRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -9405,12 +11102,12 @@ public ApiResponse returnCheckPaymentWithHttpInfo(Stri } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("returnCheckPayment", localVarResponse); + throw getApiException("reverseFee", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -9423,28 +11120,23 @@ public ApiResponse returnCheckPaymentWithHttpInfo(Stri } } - private HttpRequest.Builder returnCheckPaymentRequestBuilder(String checkPaymentId, ReturnCheckPaymentRequest returnCheckPaymentRequest) throws ApiException { - // verify the required parameter 'checkPaymentId' is set - if (checkPaymentId == null) { - throw new ApiException(400, "Missing the required parameter 'checkPaymentId' when calling returnCheckPayment"); - } - // verify the required parameter 'returnCheckPaymentRequest' is set - if (returnCheckPaymentRequest == null) { - throw new ApiException(400, "Missing the required parameter 'returnCheckPaymentRequest' when calling returnCheckPayment"); + private HttpRequest.Builder reverseFeeRequestBuilder(ReverseFeeRequest reverseFeeRequest) throws ApiException { + // verify the required parameter 'reverseFeeRequest' is set + if (reverseFeeRequest == null) { + throw new ApiException(400, "Missing the required parameter 'reverseFeeRequest' when calling reverseFee"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/check-payments/{checkPaymentId}/return" - .replace("{checkPaymentId}", ApiClient.urlEncode(checkPaymentId.toString())); + String localVarPath = "/fees/reverse"; localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); localVarRequestBuilder.header("Content-Type", "application/vnd.api+json"); - localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); + localVarRequestBuilder.header("Accept", "application/vnd.api+json"); try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(returnCheckPaymentRequest); + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(reverseFeeRequest); localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); } catch (IOException e) { throw new ApiException(e); @@ -9535,11 +11227,11 @@ private HttpRequest.Builder unfreezeAccountRequestBuilder(String accountId) thro * Unfreeze a Card * Unfreeze a Card via API * @param cardId ID of the card to unfreeze (required) - * @return UnitUnfreezeCardResponse + * @return UnitCardResponse * @throws ApiException if fails to make API call */ - public UnitUnfreezeCardResponse unfreezeCard(String cardId) throws ApiException { - ApiResponse localVarResponse = unfreezeCardWithHttpInfo(cardId); + public UnitCardResponse unfreezeCard(String cardId) throws ApiException { + ApiResponse localVarResponse = unfreezeCardWithHttpInfo(cardId); return localVarResponse.getData(); } @@ -9547,10 +11239,10 @@ public UnitUnfreezeCardResponse unfreezeCard(String cardId) throws ApiException * Unfreeze a Card * Unfreeze a Card via API * @param cardId ID of the card to unfreeze (required) - * @return ApiResponse<UnitUnfreezeCardResponse> + * @return ApiResponse<UnitCardResponse> * @throws ApiException if fails to make API call */ - public ApiResponse unfreezeCardWithHttpInfo(String cardId) throws ApiException { + public ApiResponse unfreezeCardWithHttpInfo(String cardId) throws ApiException { HttpRequest.Builder localVarRequestBuilder = unfreezeCardRequestBuilder(cardId); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -9563,10 +11255,10 @@ public ApiResponse unfreezeCardWithHttpInfo(String car if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("unfreezeCard", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -9864,11 +11556,11 @@ private HttpRequest.Builder updateBusinessBeneficialOwnerRequestBuilder(String b * Update a Card via API * @param cardId ID of the card to update (required) * @param updateCardRequest Update Card Request (required) - * @return UnitUpdateCardResponse + * @return UnitCardResponse * @throws ApiException if fails to make API call */ - public UnitUpdateCardResponse updateCard(String cardId, UpdateCardRequest updateCardRequest) throws ApiException { - ApiResponse localVarResponse = updateCardWithHttpInfo(cardId, updateCardRequest); + public UnitCardResponse updateCard(String cardId, UpdateCardRequest updateCardRequest) throws ApiException { + ApiResponse localVarResponse = updateCardWithHttpInfo(cardId, updateCardRequest); return localVarResponse.getData(); } @@ -9877,10 +11569,10 @@ public UnitUpdateCardResponse updateCard(String cardId, UpdateCardRequest update * Update a Card via API * @param cardId ID of the card to update (required) * @param updateCardRequest Update Card Request (required) - * @return ApiResponse<UnitUpdateCardResponse> + * @return ApiResponse<UnitCardResponse> * @throws ApiException if fails to make API call */ - public ApiResponse updateCardWithHttpInfo(String cardId, UpdateCardRequest updateCardRequest) throws ApiException { + public ApiResponse updateCardWithHttpInfo(String cardId, UpdateCardRequest updateCardRequest) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updateCardRequestBuilder(cardId, updateCardRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -9893,10 +11585,10 @@ public ApiResponse updateCardWithHttpInfo(String cardId, if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("updateCard", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -9949,11 +11641,11 @@ private HttpRequest.Builder updateCardRequestBuilder(String cardId, UpdateCardRe * Update a Check Deposit via API * @param checkDepositId ID of the check deposit to update (required) * @param updateCheckDepositRequest Update Check Deposit Request (required) - * @return UnitUpdateCheckDepositResponse + * @return UnitCheckDepositResponse * @throws ApiException if fails to make API call */ - public UnitUpdateCheckDepositResponse updateCheckDeposit(String checkDepositId, UpdateCheckDepositRequest updateCheckDepositRequest) throws ApiException { - ApiResponse localVarResponse = updateCheckDepositWithHttpInfo(checkDepositId, updateCheckDepositRequest); + public UnitCheckDepositResponse updateCheckDeposit(String checkDepositId, UpdateCheckDepositRequest updateCheckDepositRequest) throws ApiException { + ApiResponse localVarResponse = updateCheckDepositWithHttpInfo(checkDepositId, updateCheckDepositRequest); return localVarResponse.getData(); } @@ -9962,10 +11654,10 @@ public UnitUpdateCheckDepositResponse updateCheckDeposit(String checkDepositId, * Update a Check Deposit via API * @param checkDepositId ID of the check deposit to update (required) * @param updateCheckDepositRequest Update Check Deposit Request (required) - * @return ApiResponse<UnitUpdateCheckDepositResponse> + * @return ApiResponse<UnitCheckDepositResponse> * @throws ApiException if fails to make API call */ - public ApiResponse updateCheckDepositWithHttpInfo(String checkDepositId, UpdateCheckDepositRequest updateCheckDepositRequest) throws ApiException { + public ApiResponse updateCheckDepositWithHttpInfo(String checkDepositId, UpdateCheckDepositRequest updateCheckDepositRequest) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updateCheckDepositRequestBuilder(checkDepositId, updateCheckDepositRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -9978,10 +11670,10 @@ public ApiResponse updateCheckDepositWithHttpInf if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("updateCheckDeposit", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -10466,11 +12158,11 @@ private HttpRequest.Builder updateTransactionRequestBuilder(String accountId, St * Update a Webhook via API * @param webhookId ID of the Webhook to update (required) * @param updateWebhookRequest Update Webhook Request (required) - * @return WebhookResponse + * @return UnitWebhookResponse * @throws ApiException if fails to make API call */ - public WebhookResponse updateWebhook(String webhookId, UpdateWebhookRequest updateWebhookRequest) throws ApiException { - ApiResponse localVarResponse = updateWebhookWithHttpInfo(webhookId, updateWebhookRequest); + public UnitWebhookResponse updateWebhook(String webhookId, UpdateWebhookRequest updateWebhookRequest) throws ApiException { + ApiResponse localVarResponse = updateWebhookWithHttpInfo(webhookId, updateWebhookRequest); return localVarResponse.getData(); } @@ -10479,10 +12171,10 @@ public WebhookResponse updateWebhook(String webhookId, UpdateWebhookRequest upda * Update a Webhook via API * @param webhookId ID of the Webhook to update (required) * @param updateWebhookRequest Update Webhook Request (required) - * @return ApiResponse<WebhookResponse> + * @return ApiResponse<UnitWebhookResponse> * @throws ApiException if fails to make API call */ - public ApiResponse updateWebhookWithHttpInfo(String webhookId, UpdateWebhookRequest updateWebhookRequest) throws ApiException { + public ApiResponse updateWebhookWithHttpInfo(String webhookId, UpdateWebhookRequest updateWebhookRequest) throws ApiException { HttpRequest.Builder localVarRequestBuilder = updateWebhookRequestBuilder(webhookId, updateWebhookRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -10495,10 +12187,10 @@ public ApiResponse updateWebhookWithHttpInfo(String webhookId, if (localVarResponse.statusCode()/ 100 != 2) { throw getApiException("updateWebhook", localVarResponse); } - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream + localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream ); } finally { } @@ -10551,12 +12243,13 @@ private HttpRequest.Builder updateWebhookRequestBuilder(String webhookId, Update * * @param applicationId ID of the application to upload a file to (required) * @param documentId ID of the document to upload a file for (required) - * @param body An application document file. SDK only temporarily supports only ... files (required) + * @param _file (required) + * @param fileType (required) * @return UnitDocumentResponse * @throws ApiException if fails to make API call */ - public UnitDocumentResponse uploadApplicationDocumentFile(String applicationId, String documentId, File body) throws ApiException { - ApiResponse localVarResponse = uploadApplicationDocumentFileWithHttpInfo(applicationId, documentId, body); + public UnitDocumentResponse uploadApplicationDocumentFile(String applicationId, String documentId, File _file, UploadApplicationDocumentContentType fileType) throws ApiException { + ApiResponse localVarResponse = uploadApplicationDocumentFileWithHttpInfo(applicationId, documentId, _file, fileType); return localVarResponse.getData(); } @@ -10565,12 +12258,13 @@ public UnitDocumentResponse uploadApplicationDocumentFile(String applicationId, * * @param applicationId ID of the application to upload a file to (required) * @param documentId ID of the document to upload a file for (required) - * @param body An application document file. SDK only temporarily supports only ... files (required) + * @param _file (required) + * @param fileType (required) * @return ApiResponse<UnitDocumentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse uploadApplicationDocumentFileWithHttpInfo(String applicationId, String documentId, File body) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = uploadApplicationDocumentFileRequestBuilder(applicationId, documentId, body); + public ApiResponse uploadApplicationDocumentFileWithHttpInfo(String applicationId, String documentId, File _file, UploadApplicationDocumentContentType fileType) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = uploadApplicationDocumentFileRequestBuilder(applicationId, documentId, _file, fileType); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -10598,7 +12292,7 @@ public ApiResponse uploadApplicationDocumentFileWithHttpIn } } - private HttpRequest.Builder uploadApplicationDocumentFileRequestBuilder(String applicationId, String documentId, File body) throws ApiException { + private HttpRequest.Builder uploadApplicationDocumentFileRequestBuilder(String applicationId, String documentId, File _file, UploadApplicationDocumentContentType fileType) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException(400, "Missing the required parameter 'applicationId' when calling uploadApplicationDocumentFile"); @@ -10607,28 +12301,60 @@ private HttpRequest.Builder uploadApplicationDocumentFileRequestBuilder(String a if (documentId == null) { throw new ApiException(400, "Missing the required parameter 'documentId' when calling uploadApplicationDocumentFile"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException(400, "Missing the required parameter 'body' when calling uploadApplicationDocumentFile"); + // verify the required parameter '_file' is set + if (_file == null) { + throw new ApiException(400, "Missing the required parameter '_file' when calling uploadApplicationDocumentFile"); + } + // verify the required parameter 'fileType' is set + if (fileType == null) { + throw new ApiException(400, "Missing the required parameter 'fileType' when calling uploadApplicationDocumentFile"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/applications/{applicationId}/documents/{documentId}" + String localVarPath = "/applications/{applicationId}/documents/{documentId}/multipart" .replace("{applicationId}", ApiClient.urlEncode(applicationId.toString())) .replace("{documentId}", ApiClient.urlEncode(documentId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - localVarRequestBuilder.header("Content-Type", "application/pdf"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); - localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); + MultipartEntityBuilder multiPartBuilder = MultipartEntityBuilder.create(); + boolean hasFiles = false; + multiPartBuilder.addBinaryBody("file", _file); + hasFiles = true; + multiPartBuilder.addTextBody("fileType", fileType.toString()); + HttpEntity entity = multiPartBuilder.build(); + HttpRequest.BodyPublisher formDataPublisher; + if (hasFiles) { + Pipe pipe; + try { + pipe = Pipe.open(); + } catch (IOException e) { + throw new RuntimeException(e); + } + new Thread(() -> { + try (OutputStream outputStream = Channels.newOutputStream(pipe.sink())) { + entity.writeTo(outputStream); + } catch (IOException e) { + e.printStackTrace(); + } + }).start(); + formDataPublisher = HttpRequest.BodyPublishers.ofInputStream(() -> Channels.newInputStream(pipe.source())); + } else { + ByteArrayOutputStream formOutputStream = new ByteArrayOutputStream(); + try { + entity.writeTo(formOutputStream); + } catch (IOException e) { + throw new RuntimeException(e); + } + formDataPublisher = HttpRequest.BodyPublishers + .ofInputStream(() -> new ByteArrayInputStream(formOutputStream.toByteArray())); } + localVarRequestBuilder + .header("Content-Type", entity.getContentType().getValue()) + .method("PUT", formDataPublisher); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -10643,12 +12369,13 @@ private HttpRequest.Builder uploadApplicationDocumentFileRequestBuilder(String a * Upload an application file via API - Back Side. Supports PDF, PNG and JPG files * @param applicationId ID of the application to upload a file to (required) * @param documentId ID of the document to upload a file for (required) - * @param body Upload an application document file - Back Side. Supports PDF, PNG and JPG files (required) + * @param _file (required) + * @param fileType (required) * @return UnitDocumentResponse * @throws ApiException if fails to make API call */ - public UnitDocumentResponse uploadApplicationDocumentFileBackSide(String applicationId, String documentId, Object body) throws ApiException { - ApiResponse localVarResponse = uploadApplicationDocumentFileBackSideWithHttpInfo(applicationId, documentId, body); + public UnitDocumentResponse uploadApplicationDocumentFileBackSide(String applicationId, String documentId, File _file, UploadApplicationDocumentContentType fileType) throws ApiException { + ApiResponse localVarResponse = uploadApplicationDocumentFileBackSideWithHttpInfo(applicationId, documentId, _file, fileType); return localVarResponse.getData(); } @@ -10657,12 +12384,13 @@ public UnitDocumentResponse uploadApplicationDocumentFileBackSide(String applica * Upload an application file via API - Back Side. Supports PDF, PNG and JPG files * @param applicationId ID of the application to upload a file to (required) * @param documentId ID of the document to upload a file for (required) - * @param body Upload an application document file - Back Side. Supports PDF, PNG and JPG files (required) + * @param _file (required) + * @param fileType (required) * @return ApiResponse<UnitDocumentResponse> * @throws ApiException if fails to make API call */ - public ApiResponse uploadApplicationDocumentFileBackSideWithHttpInfo(String applicationId, String documentId, Object body) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = uploadApplicationDocumentFileBackSideRequestBuilder(applicationId, documentId, body); + public ApiResponse uploadApplicationDocumentFileBackSideWithHttpInfo(String applicationId, String documentId, File _file, UploadApplicationDocumentContentType fileType) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = uploadApplicationDocumentFileBackSideRequestBuilder(applicationId, documentId, _file, fileType); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -10690,7 +12418,7 @@ public ApiResponse uploadApplicationDocumentFileBackSideWi } } - private HttpRequest.Builder uploadApplicationDocumentFileBackSideRequestBuilder(String applicationId, String documentId, Object body) throws ApiException { + private HttpRequest.Builder uploadApplicationDocumentFileBackSideRequestBuilder(String applicationId, String documentId, File _file, UploadApplicationDocumentContentType fileType) throws ApiException { // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ApiException(400, "Missing the required parameter 'applicationId' when calling uploadApplicationDocumentFileBackSide"); @@ -10699,28 +12427,60 @@ private HttpRequest.Builder uploadApplicationDocumentFileBackSideRequestBuilder( if (documentId == null) { throw new ApiException(400, "Missing the required parameter 'documentId' when calling uploadApplicationDocumentFileBackSide"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException(400, "Missing the required parameter 'body' when calling uploadApplicationDocumentFileBackSide"); + // verify the required parameter '_file' is set + if (_file == null) { + throw new ApiException(400, "Missing the required parameter '_file' when calling uploadApplicationDocumentFileBackSide"); + } + // verify the required parameter 'fileType' is set + if (fileType == null) { + throw new ApiException(400, "Missing the required parameter 'fileType' when calling uploadApplicationDocumentFileBackSide"); } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/applications/{applicationId}/documents/{documentId}/back" + String localVarPath = "/applications/{applicationId}/documents/{documentId}/back/multipart" .replace("{applicationId}", ApiClient.urlEncode(applicationId.toString())) .replace("{documentId}", ApiClient.urlEncode(documentId.toString())); localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - localVarRequestBuilder.header("Content-Type", "application/pdf"); localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8"); - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body); - localVarRequestBuilder.method("PUT", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } + MultipartEntityBuilder multiPartBuilder = MultipartEntityBuilder.create(); + boolean hasFiles = false; + multiPartBuilder.addBinaryBody("file", _file); + hasFiles = true; + multiPartBuilder.addTextBody("fileType", fileType.toString()); + HttpEntity entity = multiPartBuilder.build(); + HttpRequest.BodyPublisher formDataPublisher; + if (hasFiles) { + Pipe pipe; + try { + pipe = Pipe.open(); + } catch (IOException e) { + throw new RuntimeException(e); + } + new Thread(() -> { + try (OutputStream outputStream = Channels.newOutputStream(pipe.sink())) { + entity.writeTo(outputStream); + } catch (IOException e) { + e.printStackTrace(); + } + }).start(); + formDataPublisher = HttpRequest.BodyPublishers.ofInputStream(() -> Channels.newInputStream(pipe.source())); + } else { + ByteArrayOutputStream formOutputStream = new ByteArrayOutputStream(); + try { + entity.writeTo(formOutputStream); + } catch (IOException e) { + throw new RuntimeException(e); + } + formDataPublisher = HttpRequest.BodyPublishers + .ofInputStream(() -> new ByteArrayInputStream(formOutputStream.toByteArray())); + } + localVarRequestBuilder + .header("Content-Type", entity.getContentType().getValue()) + .method("PUT", formDataPublisher); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } diff --git a/src/main/java/unit/java/sdk/model/AbstractOpenApiSchema.java b/src/main/java/unit/java/sdk/model/AbstractOpenApiSchema.java index 9f105fed..6a30222a 100644 --- a/src/main/java/unit/java/sdk/model/AbstractOpenApiSchema.java +++ b/src/main/java/unit/java/sdk/model/AbstractOpenApiSchema.java @@ -22,7 +22,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/unit/java/sdk/model/Account.java b/src/main/java/unit/java/sdk/model/Account.java index 39befa34..344650cc 100644 --- a/src/main/java/unit/java/sdk/model/Account.java +++ b/src/main/java/unit/java/sdk/model/Account.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * Account */ @@ -39,7 +40,7 @@ Account.JSON_PROPERTY_ID, Account.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -48,6 +49,7 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = CreditAccount.class, name = "creditAccount"), @JsonSubTypes.Type(value = DepositAccount.class, name = "depositAccount"), + @JsonSubTypes.Type(value = WalletAccount.class, name = "walletAccount"), }) public class Account { @@ -58,9 +60,11 @@ public class Account { * Gets or Sets type */ public enum TypeEnum { - DEPOSITACCOUNT("depositAccount"), + DEPOSIT_ACCOUNT("depositAccount"), - CREDITACCOUNT("creditAccount"); + CREDIT_ACCOUNT("creditAccount"), + + WALLET_ACCOUNT("walletAccount"); private String value; @@ -100,14 +104,13 @@ public Account id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -125,14 +128,13 @@ public Account type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -221,12 +223,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); @@ -236,6 +238,7 @@ public String toUrlQueryString(String prefix) { Map> mappings = new HashMap>(); mappings.put("creditAccount", CreditAccount.class); mappings.put("depositAccount", DepositAccount.class); + mappings.put("walletAccount", WalletAccount.class); mappings.put("Account", Account.class); JSON.registerDiscriminator(Account.class, "type", mappings); } diff --git a/src/main/java/unit/java/sdk/model/AccountEndOfDay.java b/src/main/java/unit/java/sdk/model/AccountEndOfDay.java index 8d833bc7..a37e53a7 100644 --- a/src/main/java/unit/java/sdk/model/AccountEndOfDay.java +++ b/src/main/java/unit/java/sdk/model/AccountEndOfDay.java @@ -25,11 +25,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; +import unit.java.sdk.model.AccountEndOfDayAttributes; import unit.java.sdk.model.AccountEndOfDayRelationships; -import unit.java.sdk.model.Attributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AccountEndOfDay */ @@ -39,13 +40,13 @@ AccountEndOfDay.JSON_PROPERTY_ATTRIBUTES, AccountEndOfDay.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AccountEndOfDay { /** * Gets or Sets type */ public enum TypeEnum { - ACCOUNTENDOFDAY("accountEndOfDay"); + ACCOUNT_END_OF_DAY("accountEndOfDay"); private String value; @@ -81,7 +82,7 @@ public static TypeEnum fromValue(String value) { private String id; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private Attributes attributes; + private AccountEndOfDayAttributes attributes; public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; private AccountEndOfDayRelationships relationships; @@ -94,14 +95,13 @@ public AccountEndOfDay type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public AccountEndOfDay id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -139,27 +138,26 @@ public void setId(String id) { } - public AccountEndOfDay attributes(Attributes attributes) { + public AccountEndOfDay attributes(AccountEndOfDayAttributes attributes) { this.attributes = attributes; return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public Attributes getAttributes() { + public AccountEndOfDayAttributes getAttributes() { return attributes; } @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAttributes(Attributes attributes) { + public void setAttributes(AccountEndOfDayAttributes attributes) { this.attributes = attributes; } @@ -169,14 +167,13 @@ public AccountEndOfDay relationships(AccountEndOfDayRelationships relationships) return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountEndOfDayRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/Attributes.java b/src/main/java/unit/java/sdk/model/AccountEndOfDayAttributes.java similarity index 76% rename from src/main/java/unit/java/sdk/model/Attributes.java rename to src/main/java/unit/java/sdk/model/AccountEndOfDayAttributes.java index 813ec6e3..d4c0430f 100644 --- a/src/main/java/unit/java/sdk/model/Attributes.java +++ b/src/main/java/unit/java/sdk/model/AccountEndOfDayAttributes.java @@ -29,18 +29,19 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * Attributes + * AccountEndOfDayAttributes */ @JsonPropertyOrder({ - Attributes.JSON_PROPERTY_DATE, - Attributes.JSON_PROPERTY_BALANCE, - Attributes.JSON_PROPERTY_HOLD, - Attributes.JSON_PROPERTY_AVAILABLE, - Attributes.JSON_PROPERTY_OVERDRAFT_LIMIT + AccountEndOfDayAttributes.JSON_PROPERTY_DATE, + AccountEndOfDayAttributes.JSON_PROPERTY_BALANCE, + AccountEndOfDayAttributes.JSON_PROPERTY_HOLD, + AccountEndOfDayAttributes.JSON_PROPERTY_AVAILABLE, + AccountEndOfDayAttributes.JSON_PROPERTY_OVERDRAFT_LIMIT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class Attributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class AccountEndOfDayAttributes { public static final String JSON_PROPERTY_DATE = "date"; private LocalDate date; @@ -56,22 +57,21 @@ public class Attributes { public static final String JSON_PROPERTY_OVERDRAFT_LIMIT = "overdraftLimit"; private Integer overdraftLimit; - public Attributes() { + public AccountEndOfDayAttributes() { } - public Attributes date(LocalDate date) { + public AccountEndOfDayAttributes date(LocalDate date) { this.date = date; return this; } - /** + /** * Get date * @return date - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDate() { return date; } @@ -84,19 +84,18 @@ public void setDate(LocalDate date) { } - public Attributes balance(Integer balance) { + public AccountEndOfDayAttributes balance(Integer balance) { this.balance = balance; return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -109,19 +108,18 @@ public void setBalance(Integer balance) { } - public Attributes hold(Integer hold) { + public AccountEndOfDayAttributes hold(Integer hold) { this.hold = hold; return this; } - /** + /** * Get hold * @return hold - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_HOLD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getHold() { return hold; } @@ -134,19 +132,18 @@ public void setHold(Integer hold) { } - public Attributes available(Integer available) { + public AccountEndOfDayAttributes available(Integer available) { this.available = available; return this; } - /** + /** * Get available * @return available - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAvailable() { return available; } @@ -159,19 +156,18 @@ public void setAvailable(Integer available) { } - public Attributes overdraftLimit(Integer overdraftLimit) { + public AccountEndOfDayAttributes overdraftLimit(Integer overdraftLimit) { this.overdraftLimit = overdraftLimit; return this; } - /** + /** * Get overdraftLimit * @return overdraftLimit - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OVERDRAFT_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getOverdraftLimit() { return overdraftLimit; } @@ -185,7 +181,7 @@ public void setOverdraftLimit(Integer overdraftLimit) { /** - * Return true if this Attributes object is equal to o. + * Return true if this AccountEndOfDay_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -195,12 +191,12 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Attributes attributes = (Attributes) o; - return Objects.equals(this.date, attributes.date) && - Objects.equals(this.balance, attributes.balance) && - Objects.equals(this.hold, attributes.hold) && - Objects.equals(this.available, attributes.available) && - Objects.equals(this.overdraftLimit, attributes.overdraftLimit); + AccountEndOfDayAttributes accountEndOfDayAttributes = (AccountEndOfDayAttributes) o; + return Objects.equals(this.date, accountEndOfDayAttributes.date) && + Objects.equals(this.balance, accountEndOfDayAttributes.balance) && + Objects.equals(this.hold, accountEndOfDayAttributes.hold) && + Objects.equals(this.available, accountEndOfDayAttributes.available) && + Objects.equals(this.overdraftLimit, accountEndOfDayAttributes.overdraftLimit); } @Override @@ -211,7 +207,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Attributes {\n"); + sb.append("class AccountEndOfDayAttributes {\n"); sb.append(" date: ").append(toIndentedString(date)).append("\n"); sb.append(" balance: ").append(toIndentedString(balance)).append("\n"); sb.append(" hold: ").append(toIndentedString(hold)).append("\n"); @@ -266,27 +262,27 @@ public String toUrlQueryString(String prefix) { // add `date` to the URL query string if (getDate() != null) { - joiner.add(String.format("%sdate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `hold` to the URL query string if (getHold() != null) { - joiner.add(String.format("%shold%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHold()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%shold%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getHold()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `available` to the URL query string if (getAvailable() != null) { - joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `overdraftLimit` to the URL query string if (getOverdraftLimit() != null) { - joiner.add(String.format("%soverdraftLimit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOverdraftLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soverdraftLimit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOverdraftLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AccountEndOfDayRelationships.java b/src/main/java/unit/java/sdk/model/AccountEndOfDayRelationships.java index 297b524f..dddded34 100644 --- a/src/main/java/unit/java/sdk/model/AccountEndOfDayRelationships.java +++ b/src/main/java/unit/java/sdk/model/AccountEndOfDayRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AccountEndOfDayRelationships */ @@ -37,7 +38,7 @@ AccountEndOfDayRelationships.JSON_PROPERTY_CUSTOMER, AccountEndOfDayRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AccountEndOfDayRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -53,14 +54,13 @@ public AccountEndOfDayRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } @@ -78,14 +78,13 @@ public AccountEndOfDayRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransaction.java b/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransaction.java index 4004d074..1280f9c7 100644 --- a/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransaction.java +++ b/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * AccountLowBalanceClosureTransaction */ @@ -42,7 +43,7 @@ AccountLowBalanceClosureTransaction.JSON_PROPERTY_ATTRIBUTES, AccountLowBalanceClosureTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public AccountLowBalanceClosureTransaction attributes(AccountLowBalanceClosureTr return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountLowBalanceClosureTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public AccountLowBalanceClosureTransaction relationships(AccountLowBalanceClosur return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountLowBalanceClosureTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransactionAllOfAttributes.java index 18fea22d..a39593b4 100644 --- a/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AccountLowBalanceClosureTransactionAllOfAttributes */ @@ -42,7 +43,7 @@ AccountLowBalanceClosureTransactionAllOfAttributes.JSON_PROPERTY_SUMMARY, AccountLowBalanceClosureTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AccountLowBalanceClosureTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -105,14 +106,13 @@ public AccountLowBalanceClosureTransactionAllOfAttributes createdAt(OffsetDateTi return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -130,14 +130,13 @@ public AccountLowBalanceClosureTransactionAllOfAttributes direction(DirectionEnu return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DirectionEnum getDirection() { return direction; } @@ -155,14 +154,13 @@ public AccountLowBalanceClosureTransactionAllOfAttributes amount(Integer amount) return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -180,14 +178,13 @@ public AccountLowBalanceClosureTransactionAllOfAttributes balance(Integer balanc return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -205,14 +202,13 @@ public AccountLowBalanceClosureTransactionAllOfAttributes summary(String summary return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -238,14 +234,13 @@ public AccountLowBalanceClosureTransactionAllOfAttributes putTagsItem(String key return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -342,27 +337,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -370,7 +365,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransactionRelationships.java b/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransactionRelationships.java index aa6f790b..9b18b00f 100644 --- a/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/AccountLowBalanceClosureTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AccountLowBalanceClosureTransactionRelationships */ @@ -41,7 +42,7 @@ AccountLowBalanceClosureTransactionRelationships.JSON_PROPERTY_CUSTOMERS, AccountLowBalanceClosureTransactionRelationships.JSON_PROPERTY_RECEIVER_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AccountLowBalanceClosureTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public AccountLowBalanceClosureTransactionRelationships account(AccountRelations return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public AccountLowBalanceClosureTransactionRelationships customer(CustomerRelatio return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public AccountLowBalanceClosureTransactionRelationships customers(CustomersRelat return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public AccountLowBalanceClosureTransactionRelationships receiverAccount(Receiver return this; } - /** + /** * Get receiverAccount * @return receiverAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVER_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceiverAccountRelationship getReceiverAccount() { return receiverAccount; } diff --git a/src/main/java/unit/java/sdk/model/AccountRelationship.java b/src/main/java/unit/java/sdk/model/AccountRelationship.java index c5b00319..352e139f 100644 --- a/src/main/java/unit/java/sdk/model/AccountRelationship.java +++ b/src/main/java/unit/java/sdk/model/AccountRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AccountRelationship */ @JsonPropertyOrder({ AccountRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AccountRelationship { public static final String JSON_PROPERTY_DATA = "data"; private AccountRelationshipData data; @@ -48,14 +49,13 @@ public AccountRelationship data(AccountRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/AccountRelationship1.java b/src/main/java/unit/java/sdk/model/AccountRelationship1.java new file mode 100644 index 00000000..e0ef8d39 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/AccountRelationship1.java @@ -0,0 +1,166 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import unit.java.sdk.model.AccountRelationshipData; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * AccountRelationship1 + */ +@JsonPropertyOrder({ + AccountRelationship1.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class AccountRelationship1 { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public AccountRelationship1() { + } + + public AccountRelationship1 data(List data) { + this.data = data; + return this; + } + + public AccountRelationship1 addDataItem(AccountRelationshipData dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this Account_Relationship_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountRelationship1 accountRelationship1 = (AccountRelationship1) o; + return Objects.equals(this.data, accountRelationship1.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AccountRelationship1 {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add(getData().get(i).toUrlQueryString(String.format("%sdata%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/AccountRelationshipData.java b/src/main/java/unit/java/sdk/model/AccountRelationshipData.java index 1b92e563..f49941b0 100644 --- a/src/main/java/unit/java/sdk/model/AccountRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/AccountRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AccountRelationshipData */ @@ -35,7 +36,7 @@ AccountRelationshipData.JSON_PROPERTY_TYPE, AccountRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AccountRelationshipData { /** * Gets or Sets type @@ -43,11 +44,11 @@ public class AccountRelationshipData { public enum TypeEnum { ACCOUNT("account"), - DEPOSITACCOUNT("depositAccount"), + DEPOSIT_ACCOUNT("depositAccount"), - CREDITACCOUNT("creditAccount"), + CREDIT_ACCOUNT("creditAccount"), - BATCHACCOUNT("batchAccount"); + BATCH_ACCOUNT("batchAccount"); private String value; @@ -90,14 +91,13 @@ public AccountRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public AccountRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -211,12 +210,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AccountsRelationship.java b/src/main/java/unit/java/sdk/model/AccountsRelationship.java new file mode 100644 index 00000000..ac2e4039 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/AccountsRelationship.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship1; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * AccountsRelationship + */ +@JsonPropertyOrder({ + AccountsRelationship.JSON_PROPERTY_ACCOUNTS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class AccountsRelationship { + public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; + private AccountRelationship1 accounts; + + public AccountsRelationship() { + } + + public AccountsRelationship accounts(AccountRelationship1 accounts) { + this.accounts = accounts; + return this; + } + + /** + * Get accounts + * @return accounts + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AccountRelationship1 getAccounts() { + return accounts; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccounts(AccountRelationship1 accounts) { + this.accounts = accounts; + } + + + /** + * Return true if this AccountsRelationship object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountsRelationship accountsRelationship = (AccountsRelationship) o; + return Objects.equals(this.accounts, accountsRelationship.accounts); + } + + @Override + public int hashCode() { + return Objects.hash(accounts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AccountsRelationship {\n"); + sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `accounts` to the URL query string + if (getAccounts() != null) { + joiner.add(getAccounts().toUrlQueryString(prefix + "accounts" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/AchPayment.java b/src/main/java/unit/java/sdk/model/AchPayment.java index aec899c5..edf2b988 100644 --- a/src/main/java/unit/java/sdk/model/AchPayment.java +++ b/src/main/java/unit/java/sdk/model/AchPayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * AchPayment */ @@ -42,7 +43,7 @@ AchPayment.JSON_PROPERTY_ATTRIBUTES, AchPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public AchPayment attributes(AchPaymentAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AchPaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public AchPayment relationships(AchPaymentRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AchPaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AchPaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/AchPaymentAllOfAttributes.java index 75c5b2aa..3a7f8ae7 100644 --- a/src/main/java/unit/java/sdk/model/AchPaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/AchPaymentAllOfAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AchPaymentAllOfAttributes */ @@ -54,7 +55,7 @@ AchPaymentAllOfAttributes.JSON_PROPERTY_COUNTERPARTY_VERIFICATION_METHOD, AchPaymentAllOfAttributes.JSON_PROPERTY_CLEARING_DAYS_OVERRIDE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AchPaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -190,14 +191,13 @@ public AchPaymentAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -215,15 +215,14 @@ public AchPaymentAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -241,14 +240,13 @@ public AchPaymentAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -266,14 +264,13 @@ public AchPaymentAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -291,14 +288,13 @@ public AchPaymentAllOfAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -316,14 +312,13 @@ public AchPaymentAllOfAttributes counterparty(PaymentCounterparty counterparty) return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaymentCounterparty getCounterparty() { return counterparty; } @@ -349,14 +344,13 @@ public AchPaymentAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -374,14 +368,13 @@ public AchPaymentAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -399,14 +392,13 @@ public AchPaymentAllOfAttributes settlementDate(LocalDate settlementDate) { return this; } - /** + /** * Get settlementDate * @return settlementDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SETTLEMENT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getSettlementDate() { return settlementDate; } @@ -424,14 +416,13 @@ public AchPaymentAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReason() { return reason; } @@ -449,14 +440,13 @@ public AchPaymentAllOfAttributes expectedCompletionDate(LocalDate expectedComple return this; } - /** + /** * Get expectedCompletionDate * @return expectedCompletionDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPECTED_COMPLETION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getExpectedCompletionDate() { return expectedCompletionDate; } @@ -474,14 +464,13 @@ public AchPaymentAllOfAttributes secCode(String secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecCode() { return secCode; } @@ -499,14 +488,13 @@ public AchPaymentAllOfAttributes traceNumber(String traceNumber) { return this; } - /** + /** * Get traceNumber * @return traceNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTraceNumber() { return traceNumber; } @@ -524,14 +512,13 @@ public AchPaymentAllOfAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -549,14 +536,13 @@ public AchPaymentAllOfAttributes counterpartyVerificationMethod(String counterpa return this; } - /** + /** * Get counterpartyVerificationMethod * @return counterpartyVerificationMethod - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY_VERIFICATION_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCounterpartyVerificationMethod() { return counterpartyVerificationMethod; } @@ -574,14 +560,13 @@ public AchPaymentAllOfAttributes clearingDaysOverride(Integer clearingDaysOverri return this; } - /** + /** * Get clearingDaysOverride * @return clearingDaysOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLEARING_DAYS_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getClearingDaysOverride() { return clearingDaysOverride; } @@ -698,27 +683,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -731,53 +716,53 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `settlementDate` to the URL query string if (getSettlementDate() != null) { - joiner.add(String.format("%ssettlementDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSettlementDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssettlementDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSettlementDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expectedCompletionDate` to the URL query string if (getExpectedCompletionDate() != null) { - joiner.add(String.format("%sexpectedCompletionDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpectedCompletionDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpectedCompletionDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpectedCompletionDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `traceNumber` to the URL query string if (getTraceNumber() != null) { - joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyVerificationMethod` to the URL query string if (getCounterpartyVerificationMethod() != null) { - joiner.add(String.format("%scounterpartyVerificationMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyVerificationMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyVerificationMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyVerificationMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `clearingDaysOverride` to the URL query string if (getClearingDaysOverride() != null) { - joiner.add(String.format("%sclearingDaysOverride%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getClearingDaysOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sclearingDaysOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getClearingDaysOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AchPaymentRelationships.java b/src/main/java/unit/java/sdk/model/AchPaymentRelationships.java index a801d66f..3fb1ca7f 100644 --- a/src/main/java/unit/java/sdk/model/AchPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/AchPaymentRelationships.java @@ -35,6 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AchPaymentRelationships */ @@ -46,7 +47,7 @@ AchPaymentRelationships.JSON_PROPERTY_TRANSACTION, AchPaymentRelationships.JSON_PROPERTY_RECURRING_PAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AchPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -74,14 +75,13 @@ public AchPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -99,14 +99,13 @@ public AchPaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -124,14 +123,13 @@ public AchPaymentRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -149,14 +147,13 @@ public AchPaymentRelationships counterparty(CounterpartyRelationship counterpart return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } @@ -174,14 +171,13 @@ public AchPaymentRelationships transaction(TransactionRelationship transaction) return this; } - /** + /** * Get transaction * @return transaction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRANSACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TransactionRelationship getTransaction() { return transaction; } @@ -199,14 +195,13 @@ public AchPaymentRelationships recurringPayment(RecurringPaymentRelationship rec return this; } - /** + /** * Get recurringPayment * @return recurringPayment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringPaymentRelationship getRecurringPayment() { return recurringPayment; } diff --git a/src/main/java/unit/java/sdk/model/AchRepayment.java b/src/main/java/unit/java/sdk/model/AchRepayment.java index ae6f8235..79bfa2ed 100644 --- a/src/main/java/unit/java/sdk/model/AchRepayment.java +++ b/src/main/java/unit/java/sdk/model/AchRepayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * AchRepayment */ @@ -42,7 +43,7 @@ AchRepayment.JSON_PROPERTY_ATTRIBUTES, AchRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public AchRepayment attributes(AchRepaymentAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AchRepaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public AchRepayment relationships(AchRepaymentRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AchRepaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AchRepaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/AchRepaymentAllOfAttributes.java index 7a6af77b..6a61cd93 100644 --- a/src/main/java/unit/java/sdk/model/AchRepaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/AchRepaymentAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AchRepaymentAllOfAttributes */ @@ -42,7 +43,7 @@ AchRepaymentAllOfAttributes.JSON_PROPERTY_STATUS, AchRepaymentAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AchRepaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private String createdAt; @@ -67,14 +68,13 @@ public AchRepaymentAllOfAttributes createdAt(String createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCreatedAt() { return createdAt; } @@ -92,14 +92,13 @@ public AchRepaymentAllOfAttributes updatedAt(String updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUpdatedAt() { return updatedAt; } @@ -117,14 +116,13 @@ public AchRepaymentAllOfAttributes amount(BigDecimal amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getAmount() { return amount; } @@ -142,14 +140,13 @@ public AchRepaymentAllOfAttributes status(AchRepaymentStatus status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AchRepaymentStatus getStatus() { return status; } @@ -175,14 +172,13 @@ public AchRepaymentAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -277,22 +273,22 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -300,7 +296,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/AchRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/AchRepaymentRelationships.java index 3a7d203e..48b6ec0f 100644 --- a/src/main/java/unit/java/sdk/model/AchRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/AchRepaymentRelationships.java @@ -35,6 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AchRepaymentRelationships */ @@ -47,7 +48,7 @@ AchRepaymentRelationships.JSON_PROPERTY_PAYMENT, AchRepaymentRelationships.JSON_PROPERTY_RECURRING_REPAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AchRepaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -78,14 +79,13 @@ public AchRepaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -103,14 +103,13 @@ public AchRepaymentRelationships creditAccount(CreditAccountRelationship creditA return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -128,14 +127,13 @@ public AchRepaymentRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationship getOrg() { return org; } @@ -153,14 +151,13 @@ public AchRepaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -178,14 +175,13 @@ public AchRepaymentRelationships counterparty(CounterpartyRelationship counterpa return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } @@ -203,14 +199,13 @@ public AchRepaymentRelationships payment(PaymentRelationship payment) { return this; } - /** + /** * Get payment * @return payment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentRelationship getPayment() { return payment; } @@ -228,14 +223,13 @@ public AchRepaymentRelationships recurringRepayment(RecurringRepaymentRelationsh return this; } - /** + /** * Get recurringRepayment * @return recurringRepayment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationship getRecurringRepayment() { return recurringRepayment; } diff --git a/src/main/java/unit/java/sdk/model/AchRepaymentStatus.java b/src/main/java/unit/java/sdk/model/AchRepaymentStatus.java index df71ea18..ec3c7cab 100644 --- a/src/main/java/unit/java/sdk/model/AchRepaymentStatus.java +++ b/src/main/java/unit/java/sdk/model/AchRepaymentStatus.java @@ -32,7 +32,7 @@ public enum AchRepaymentStatus { PENDING("Pending"), - PENDINGREVIEW("PendingReview"), + PENDING_REVIEW("PendingReview"), CLEARING("Clearing"), diff --git a/src/main/java/unit/java/sdk/model/AchReturnReason.java b/src/main/java/unit/java/sdk/model/AchReturnReason.java new file mode 100644 index 00000000..b1f09db4 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/AchReturnReason.java @@ -0,0 +1,156 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets AchReturnReason + */ +public enum AchReturnReason { + + INSUFFICIENT_FUNDS("InsufficientFunds"), + + ACCOUNT_CLOSED("AccountClosed"), + + NO_ACCOUNT("NoAccount"), + + INVALID_ACCOUNT_NUMBER_STRUCTURE("InvalidAccountNumberStructure"), + + UNAUTHORIZED_DEBIT_TO_CONSUMER("UnauthorizedDebitToConsumer"), + + RETURNED_PER_ODFI_REQUEST("ReturnedPerOdfiRequest"), + + AUTHORIZATION_REVOKED_BY_CUSTOMER("AuthorizationRevokedByCustomer"), + + PAYMENT_STOPPED("PaymentStopped"), + + UNCOLLECTED_FUNDS("UncollectedFunds"), + + CUSTOMER_ADVISES_NOT_AUTHORIZED("CustomerAdvisesNotAuthorized"), + + CHECK_TRUNCATION_ENTRY_RETURNED("CheckTruncationEntryReturned"), + + BRANCH_SOLD_TO_ANOTHER_DFI("BranchSoldToAnotherDfi"), + + RDFI_NOT_QUALIFIED_TO_PARTICIPATE("RdfiNotQualifiedToParticipate"), + + REPRESENTATIVE_PAYEE_DECEASED_OR_UNABLE_TO_CONTINUE("RepresentativePayeeDeceasedOrUnableToContinue"), + + BENEFICIARY_OR_BANK_ACCOUNT_HOLDER_DECEASED("BeneficiaryOrBankAccountHolderDeceased"), + + ACCOUNT_FROZEN("AccountFrozen"), + + FILE_RECORD_EDIT_CRITERIA("FileRecordEditCriteria"), + + IMPROPER_EFFECTIVE_ENTRY_DATE("ImproperEffectiveEntryDate"), + + AMOUNT_FIELD_ERROR("AmountFieldError"), + + NON_TRANSACTION_ACCOUNT("NonTransactionAccount"), + + INVALID_COMPANY_IDENTIFICATION("InvalidCompanyIdentification"), + + INVALID_INDIVIDUAL_ID_NUMBER("InvalidIndividualIdNumber"), + + CREDIT_ENTRY_REFUSED_BY_RECEIVER("CreditEntryRefusedByReceiver"), + + DUPLICATE_ENTRY("DuplicateEntry"), + + ADDENDA_ERROR("AddendaError"), + + MANDATORY_FIELD_ERROR("MandatoryFieldError"), + + TRACE_NUMBER_ERROR("TraceNumberError"), + + ROUTING_NUMBER_CHECK_DIGIT_ERROR("RoutingNumberCheckDigitError"), + + CORPORATE_CUSTOMER_ADVISES_NOT_AUTHORIZED("CorporateCustomerAdvisesNotAuthorized"), + + RDFI_NOT_PARTICIPANT_IN_CHECK_TRUNCATION_PROGRAM("RdfiNotParticipantInCheckTruncationProgram"), + + PERMISSIBLE_RETURN_ENTRY("PermissibleReturnEntry"), + + RDFI_NON_SETTLEMENT("RdfiNonSettlement"), + + RETURN_OF_XCK_ENTRY("ReturnOfXckEntry"), + + LIMITED_PARTICIPATION_DFI("LimitedParticipationDfi"), + + RETURN_OF_IMPROPER_DEBIT_ENTRY("ReturnOfImproperDebitEntry"), + + RETURN_OF_IMPROPER_CREDIT_ENTRY("ReturnOfImproperCreditEntry"), + + SOURCE_DOCUMENT_PRESENTED_FOR_PAYMENT("SourceDocumentPresentedForPayment"), + + STOP_PAYMENT_ON_SOURCE_DOCUMENT("StopPaymentOnSourceDocument"), + + IMPROPER_SOURCE_DOCUMENT("ImproperSourceDocument"), + + INVALID_INDIVIDUAL_OR_COMPANY_NAME("InvalidIndividualOrCompanyName"), + + INCORRECTLY_CODED_OUTBOUND_INTERNATIONAL_PAYMENT("IncorrectlyCodedOutboundInternationalPayment"); + + private String value; + + AchReturnReason(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AchReturnReason fromValue(String value) { + for (AchReturnReason b : AchReturnReason.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + if (prefix == null) { + prefix = ""; + } + + return String.format("%s=%s", prefix, this.toString()); + } + +} + diff --git a/src/main/java/unit/java/sdk/model/AchStopPayment.java b/src/main/java/unit/java/sdk/model/AchStopPayment.java index ce25583b..42646af1 100644 --- a/src/main/java/unit/java/sdk/model/AchStopPayment.java +++ b/src/main/java/unit/java/sdk/model/AchStopPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AchStopPayment */ @@ -37,7 +38,7 @@ AchStopPayment.JSON_PROPERTY_ATTRIBUTES, AchStopPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AchStopPayment { public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private AchStopPaymentAttributes attributes; @@ -53,14 +54,13 @@ public AchStopPayment attributes(AchStopPaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AchStopPaymentAttributes getAttributes() { return attributes; } @@ -78,14 +78,13 @@ public AchStopPayment relationships(AchStopPaymentRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AchStopPaymentRelationships getRelationships() { return relationships; } diff --git a/src/main/java/unit/java/sdk/model/AchStopPaymentAttributes.java b/src/main/java/unit/java/sdk/model/AchStopPaymentAttributes.java index 3d686972..c6b35d3e 100644 --- a/src/main/java/unit/java/sdk/model/AchStopPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/AchStopPaymentAttributes.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AchStopPaymentAttributes */ @@ -50,7 +51,7 @@ AchStopPaymentAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY, AchStopPaymentAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AchStopPaymentAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private LocalDate createdAt; @@ -93,14 +94,13 @@ public AchStopPaymentAttributes createdAt(LocalDate createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getCreatedAt() { return createdAt; } @@ -118,14 +118,13 @@ public AchStopPaymentAttributes updatedAt(LocalDate updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getUpdatedAt() { return updatedAt; } @@ -143,14 +142,13 @@ public AchStopPaymentAttributes minAmount(Integer minAmount) { return this; } - /** + /** * Get minAmount * @return minAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getMinAmount() { return minAmount; } @@ -176,14 +174,13 @@ public AchStopPaymentAttributes addOriginatorNameItem(String originatorNameItem) return this; } - /** + /** * Get originatorName * @return originatorName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGINATOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getOriginatorName() { return originatorName; } @@ -201,14 +198,13 @@ public AchStopPaymentAttributes direction(String direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDirection() { return direction; } @@ -226,14 +222,13 @@ public AchStopPaymentAttributes expiration(LocalDate expiration) { return this; } - /** + /** * Get expiration * @return expiration - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getExpiration() { return expiration; } @@ -251,14 +246,13 @@ public AchStopPaymentAttributes isMultiUse(Boolean isMultiUse) { return this; } - /** + /** * Get isMultiUse * @return isMultiUse - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_IS_MULTI_USE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIsMultiUse() { return isMultiUse; } @@ -276,14 +270,13 @@ public AchStopPaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -301,14 +294,13 @@ public AchStopPaymentAttributes disableReason(AchStopPaymentDisableReason disabl return this; } - /** + /** * Get disableReason * @return disableReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DISABLE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AchStopPaymentDisableReason getDisableReason() { return disableReason; } @@ -326,14 +318,13 @@ public AchStopPaymentAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -359,14 +350,13 @@ public AchStopPaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Map getTags() { return tags; } @@ -473,17 +463,17 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `minAmount` to the URL query string if (getMinAmount() != null) { - joiner.add(String.format("%sminAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMinAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sminAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMinAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `originatorName` to the URL query string @@ -491,38 +481,38 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getOriginatorName().size(); i++) { joiner.add(String.format("%soriginatorName%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getOriginatorName().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getOriginatorName().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiration` to the URL query string if (getExpiration() != null) { - joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `isMultiUse` to the URL query string if (getIsMultiUse() != null) { - joiner.add(String.format("%sisMultiUse%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsMultiUse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sisMultiUse%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsMultiUse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `disableReason` to the URL query string if (getDisableReason() != null) { - joiner.add(String.format("%sdisableReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDisableReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdisableReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDisableReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -530,7 +520,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/AchStopPaymentDisableReason.java b/src/main/java/unit/java/sdk/model/AchStopPaymentDisableReason.java index d854be83..f5465a41 100644 --- a/src/main/java/unit/java/sdk/model/AchStopPaymentDisableReason.java +++ b/src/main/java/unit/java/sdk/model/AchStopPaymentDisableReason.java @@ -34,7 +34,7 @@ public enum AchStopPaymentDisableReason { REQUESTED("Requested"), - PAYMENTSTOPPED("PaymentStopped"); + PAYMENT_STOPPED("PaymentStopped"); private String value; diff --git a/src/main/java/unit/java/sdk/model/AchStopPaymentRelationships.java b/src/main/java/unit/java/sdk/model/AchStopPaymentRelationships.java index b0d6cdf2..d494f82f 100644 --- a/src/main/java/unit/java/sdk/model/AchStopPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/AchStopPaymentRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AchStopPaymentRelationships */ @@ -39,7 +40,7 @@ AchStopPaymentRelationships.JSON_PROPERTY_CUSTOMER, AchStopPaymentRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AchStopPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public AchStopPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public AchStopPaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public AchStopPaymentRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/main/java/unit/java/sdk/model/AddAccountOwnersRequest.java b/src/main/java/unit/java/sdk/model/AddAccountOwnersRequest.java new file mode 100644 index 00000000..17574e1a --- /dev/null +++ b/src/main/java/unit/java/sdk/model/AddAccountOwnersRequest.java @@ -0,0 +1,166 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import unit.java.sdk.model.DepositAccountOwner; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * AddAccountOwnersRequest + */ +@JsonPropertyOrder({ + AddAccountOwnersRequest.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class AddAccountOwnersRequest { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public AddAccountOwnersRequest() { + } + + public AddAccountOwnersRequest data(List data) { + this.data = data; + return this; + } + + public AddAccountOwnersRequest addDataItem(DepositAccountOwner dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this AddAccountOwnersRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddAccountOwnersRequest addAccountOwnersRequest = (AddAccountOwnersRequest) o; + return Objects.equals(this.data, addAccountOwnersRequest.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddAccountOwnersRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add(getData().get(i).toUrlQueryString(String.format("%sdata%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequest.java b/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequest.java index 941edbb3..c0599240 100644 --- a/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequest.java +++ b/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AddAuthorizedUsersRequest */ @JsonPropertyOrder({ AddAuthorizedUsersRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AddAuthorizedUsersRequest { public static final String JSON_PROPERTY_DATA = "data"; private AddAuthorizedUsersRequestData data; @@ -48,14 +49,13 @@ public AddAuthorizedUsersRequest data(AddAuthorizedUsersRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AddAuthorizedUsersRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequestData.java b/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequestData.java index bec90e5a..2e3d1dbf 100644 --- a/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequestData.java +++ b/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AddAuthorizedUsersRequestData */ @@ -36,13 +37,13 @@ AddAuthorizedUsersRequestData.JSON_PROPERTY_TYPE, AddAuthorizedUsersRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AddAuthorizedUsersRequestData { /** * Gets or Sets type */ public enum TypeEnum { - ADDAUTHORIZEDUSERS("addAuthorizedUsers"); + ADD_AUTHORIZED_USERS("addAuthorizedUsers"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ADDAUTHORIZEDUSERS; + private TypeEnum type = TypeEnum.ADD_AUTHORIZED_USERS; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private AddAuthorizedUsersRequestDataAttributes attributes; @@ -85,14 +86,13 @@ public AddAuthorizedUsersRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public AddAuthorizedUsersRequestData attributes(AddAuthorizedUsersRequestDataAtt return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AddAuthorizedUsersRequestDataAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequestDataAttributes.java index 40debc1a..44a0b186 100644 --- a/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/AddAuthorizedUsersRequestDataAttributes.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AddAuthorizedUsersRequestDataAttributes */ @JsonPropertyOrder({ AddAuthorizedUsersRequestDataAttributes.JSON_PROPERTY_AUTHORIZED_USERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AddAuthorizedUsersRequestDataAttributes { public static final String JSON_PROPERTY_AUTHORIZED_USERS = "authorizedUsers"; private List authorizedUsers = new ArrayList<>(); @@ -58,14 +59,13 @@ public AddAuthorizedUsersRequestDataAttributes addAuthorizedUsersItem(Authorized return this; } - /** + /** * Get authorizedUsers * @return authorizedUsers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUTHORIZED_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAuthorizedUsers() { return authorizedUsers; } diff --git a/src/main/java/unit/java/sdk/model/Address.java b/src/main/java/unit/java/sdk/model/Address.java index 9629996e..a59681bb 100644 --- a/src/main/java/unit/java/sdk/model/Address.java +++ b/src/main/java/unit/java/sdk/model/Address.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Address */ @@ -43,7 +44,7 @@ Address.JSON_PROPERTY_POSTAL_CODE, Address.JSON_PROPERTY_COUNTRY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Address { public static final String JSON_PROPERTY_STREET = "street"; private String street; @@ -71,14 +72,13 @@ public Address street(String street) { return this; } - /** + /** * Get street * @return street - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STREET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStreet() { return street; } @@ -96,13 +96,12 @@ public Address street2(String street2) { return this; } - /** + /** * Get street2 * @return street2 - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getStreet2() { return street2.orElse(null); } @@ -129,14 +128,13 @@ public Address city(String city) { return this; } - /** + /** * Get city * @return city - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CITY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCity() { return city; } @@ -154,14 +152,13 @@ public Address state(String state) { return this; } - /** + /** * Get state * @return state - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getState() { return state; } @@ -179,14 +176,13 @@ public Address postalCode(String postalCode) { return this; } - /** + /** * Get postalCode * @return postalCode - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPostalCode() { return postalCode; } @@ -204,14 +200,13 @@ public Address country(String country) { return this; } - /** + /** * Get country * @return country - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTRY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountry() { return country; } @@ -319,32 +314,32 @@ public String toUrlQueryString(String prefix) { // add `street` to the URL query string if (getStreet() != null) { - joiner.add(String.format("%sstreet%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStreet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstreet%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStreet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `street2` to the URL query string if (getStreet2() != null) { - joiner.add(String.format("%sstreet2%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStreet2()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstreet2%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStreet2()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `city` to the URL query string if (getCity() != null) { - joiner.add(String.format("%scity%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCity()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scity%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCity()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `state` to the URL query string if (getState() != null) { - joiner.add(String.format("%sstate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getState()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getState()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `postalCode` to the URL query string if (getPostalCode() != null) { - joiner.add(String.format("%spostalCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPostalCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spostalCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPostalCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `country` to the URL query string if (getCountry() != null) { - joiner.add(String.format("%scountry%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCountry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scountry%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCountry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AdjustmentTransaction.java b/src/main/java/unit/java/sdk/model/AdjustmentTransaction.java index bf2108cc..4867fccf 100644 --- a/src/main/java/unit/java/sdk/model/AdjustmentTransaction.java +++ b/src/main/java/unit/java/sdk/model/AdjustmentTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * AdjustmentTransaction */ @@ -42,7 +43,7 @@ AdjustmentTransaction.JSON_PROPERTY_ATTRIBUTES, AdjustmentTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public AdjustmentTransaction attributes(AdjustmentTransactionAllOfAttributes att return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AdjustmentTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public AdjustmentTransaction relationships(AdjustmentTransactionRelationships re return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AdjustmentTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AdjustmentTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/AdjustmentTransactionAllOfAttributes.java index 1278cc32..b622fa83 100644 --- a/src/main/java/unit/java/sdk/model/AdjustmentTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/AdjustmentTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AdjustmentTransactionAllOfAttributes */ @@ -43,7 +44,7 @@ AdjustmentTransactionAllOfAttributes.JSON_PROPERTY_DESCRIPTION, AdjustmentTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AdjustmentTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -109,14 +110,13 @@ public AdjustmentTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -134,14 +134,13 @@ public AdjustmentTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -159,14 +158,13 @@ public AdjustmentTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -184,14 +182,13 @@ public AdjustmentTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -209,14 +206,13 @@ public AdjustmentTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -234,14 +230,13 @@ public AdjustmentTransactionAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { return description; } @@ -267,14 +262,13 @@ public AdjustmentTransactionAllOfAttributes putTagsItem(String key, String tagsI return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -373,32 +367,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -406,7 +400,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/AdjustmentTransactionRelationships.java b/src/main/java/unit/java/sdk/model/AdjustmentTransactionRelationships.java index 422aa583..d5a314ea 100644 --- a/src/main/java/unit/java/sdk/model/AdjustmentTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/AdjustmentTransactionRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AdjustmentTransactionRelationships */ @JsonPropertyOrder({ AdjustmentTransactionRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AdjustmentTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public AdjustmentTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/AnnualIncome.java b/src/main/java/unit/java/sdk/model/AnnualIncome.java index db22f861..dc8a075a 100644 --- a/src/main/java/unit/java/sdk/model/AnnualIncome.java +++ b/src/main/java/unit/java/sdk/model/AnnualIncome.java @@ -30,15 +30,15 @@ */ public enum AnnualIncome { - UPTO10K("UpTo10k"), + UP_TO10K("UpTo10k"), - BETWEEN10KAND25K("Between10kAnd25k"), + BETWEEN10K_AND25K("Between10kAnd25k"), - BETWEEN25KAND50K("Between25kAnd50k"), + BETWEEN25K_AND50K("Between25kAnd50k"), - BETWEEN50KAND100K("Between50kAnd100k"), + BETWEEN50K_AND100K("Between50kAnd100k"), - BETWEEN100KAND250K("Between100kAnd250k"), + BETWEEN100K_AND250K("Between100kAnd250k"), OVER250K("Over250k"); diff --git a/src/main/java/unit/java/sdk/model/ApiToken.java b/src/main/java/unit/java/sdk/model/ApiToken.java index 7201a7dc..364aca8d 100644 --- a/src/main/java/unit/java/sdk/model/ApiToken.java +++ b/src/main/java/unit/java/sdk/model/ApiToken.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApiToken */ @@ -37,13 +38,13 @@ ApiToken.JSON_PROPERTY_ID, ApiToken.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiToken { /** * Gets or Sets type */ public enum TypeEnum { - APITOKEN("apiToken"); + API_TOKEN("apiToken"); private String value; @@ -73,7 +74,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.APITOKEN; + private TypeEnum type = TypeEnum.API_TOKEN; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -89,14 +90,13 @@ public ApiToken type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -114,14 +114,13 @@ public ApiToken id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -139,14 +138,13 @@ public ApiToken attributes(ApiTokenAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApiTokenAttributes getAttributes() { return attributes; } @@ -237,12 +235,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ApiTokenAttributes.java b/src/main/java/unit/java/sdk/model/ApiTokenAttributes.java index 317e1901..998a9139 100644 --- a/src/main/java/unit/java/sdk/model/ApiTokenAttributes.java +++ b/src/main/java/unit/java/sdk/model/ApiTokenAttributes.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApiTokenAttributes */ @@ -39,7 +40,7 @@ ApiTokenAttributes.JSON_PROPERTY_TOKEN, ApiTokenAttributes.JSON_PROPERTY_SOURCE_IP }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApiTokenAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -64,14 +65,13 @@ public ApiTokenAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -89,14 +89,13 @@ public ApiTokenAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { return description; } @@ -114,14 +113,13 @@ public ApiTokenAttributes expiration(OffsetDateTime expiration) { return this; } - /** + /** * Get expiration * @return expiration - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getExpiration() { return expiration; } @@ -139,14 +137,13 @@ public ApiTokenAttributes token(String token) { return this; } - /** + /** * Get token * @return token - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getToken() { return token; } @@ -164,14 +161,13 @@ public ApiTokenAttributes sourceIp(String sourceIp) { return this; } - /** + /** * Get sourceIp * @return sourceIp - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_IP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSourceIp() { return sourceIp; } @@ -266,27 +262,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiration` to the URL query string if (getExpiration() != null) { - joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `token` to the URL query string if (getToken() != null) { - joiner.add(String.format("%stoken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceIp` to the URL query string if (getSourceIp() != null) { - joiner.add(String.format("%ssourceIp%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceIp%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Application.java b/src/main/java/unit/java/sdk/model/Application.java index 43b972aa..3f35e835 100644 --- a/src/main/java/unit/java/sdk/model/Application.java +++ b/src/main/java/unit/java/sdk/model/Application.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * Application */ @@ -39,7 +40,7 @@ Application.JSON_PROPERTY_ID, Application.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -58,9 +59,9 @@ public class Application { * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALAPPLICATION("individualApplication"), + INDIVIDUAL_APPLICATION("individualApplication"), - BUSINESSAPPLICATION("businessApplication"); + BUSINESS_APPLICATION("businessApplication"); private String value; @@ -100,14 +101,13 @@ public Application id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -125,14 +125,13 @@ public Application type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -221,12 +220,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ApplicationDocument.java b/src/main/java/unit/java/sdk/model/ApplicationDocument.java index 7ff53ef5..3f7a5937 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationDocument.java +++ b/src/main/java/unit/java/sdk/model/ApplicationDocument.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationDocument */ @@ -37,7 +38,7 @@ ApplicationDocument.JSON_PROPERTY_ID, ApplicationDocument.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationDocument { /** * Gets or Sets type @@ -89,14 +90,13 @@ public ApplicationDocument type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -114,14 +114,13 @@ public ApplicationDocument id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -139,14 +138,13 @@ public ApplicationDocument attributes(ApplicationDocumentAttributes attributes) return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ApplicationDocumentAttributes getAttributes() { return attributes; } @@ -237,12 +235,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ApplicationDocumentAttributes.java b/src/main/java/unit/java/sdk/model/ApplicationDocumentAttributes.java index b81085dd..3f81fb77 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationDocumentAttributes.java +++ b/src/main/java/unit/java/sdk/model/ApplicationDocumentAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationDocumentAttributes */ @@ -55,7 +56,7 @@ ApplicationDocumentAttributes.JSON_PROPERTY_FRONT_DOCUMENT_STORE_ID, ApplicationDocumentAttributes.JSON_PROPERTY_BACK_DOCUMENT_STORE_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationDocumentAttributes { public static final String JSON_PROPERTY_DOCUMENT_TYPE = "documentType"; private String documentType; @@ -125,14 +126,13 @@ public ApplicationDocumentAttributes documentType(String documentType) { return this; } - /** + /** * Get documentType * @return documentType - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDocumentType() { return documentType; } @@ -150,14 +150,13 @@ public ApplicationDocumentAttributes status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { return status; } @@ -175,14 +174,13 @@ public ApplicationDocumentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { return description; } @@ -200,14 +198,13 @@ public ApplicationDocumentAttributes nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -225,14 +222,13 @@ public ApplicationDocumentAttributes ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -250,14 +246,13 @@ public ApplicationDocumentAttributes passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -275,14 +270,13 @@ public ApplicationDocumentAttributes matriculaConsular(String matriculaConsular) return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -300,14 +294,13 @@ public ApplicationDocumentAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { return name; } @@ -325,14 +318,13 @@ public ApplicationDocumentAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -350,14 +342,13 @@ public ApplicationDocumentAttributes dateOfIncorporation(LocalDate dateOfIncorpo return this; } - /** + /** * Get dateOfIncorporation * @return dateOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfIncorporation() { return dateOfIncorporation; } @@ -375,14 +366,13 @@ public ApplicationDocumentAttributes stateOfIncorporation(String stateOfIncorpor return this; } - /** + /** * Get stateOfIncorporation * @return stateOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStateOfIncorporation() { return stateOfIncorporation; } @@ -400,14 +390,13 @@ public ApplicationDocumentAttributes dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -425,14 +414,13 @@ public ApplicationDocumentAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEin() { return ein; } @@ -450,14 +438,13 @@ public ApplicationDocumentAttributes reasonCode(String reasonCode) { return this; } - /** + /** * Get reasonCode * @return reasonCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReasonCode() { return reasonCode; } @@ -475,14 +462,13 @@ public ApplicationDocumentAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReason() { return reason; } @@ -500,14 +486,13 @@ public ApplicationDocumentAttributes evaluationId(String evaluationId) { return this; } - /** + /** * Get evaluationId * @return evaluationId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationId() { return evaluationId; } @@ -525,14 +510,13 @@ public ApplicationDocumentAttributes frontDocumentId(String frontDocumentId) { return this; } - /** + /** * Get frontDocumentId * @return frontDocumentId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FRONT_DOCUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFrontDocumentId() { return frontDocumentId; } @@ -550,14 +534,13 @@ public ApplicationDocumentAttributes backDocumentId(String backDocumentId) { return this; } - /** + /** * Get backDocumentId * @return backDocumentId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BACK_DOCUMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBackDocumentId() { return backDocumentId; } @@ -575,14 +558,13 @@ public ApplicationDocumentAttributes frontDocumentStoreId(String frontDocumentSt return this; } - /** + /** * Get frontDocumentStoreId * @return frontDocumentStoreId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FRONT_DOCUMENT_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFrontDocumentStoreId() { return frontDocumentStoreId; } @@ -600,14 +582,13 @@ public ApplicationDocumentAttributes backDocumentStoreId(String backDocumentStor return this; } - /** + /** * Get backDocumentStoreId * @return backDocumentStoreId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BACK_DOCUMENT_STORE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBackDocumentStoreId() { return backDocumentStoreId; } @@ -732,42 +713,42 @@ public String toUrlQueryString(String prefix) { // add `documentType` to the URL query string if (getDocumentType() != null) { - joiner.add(String.format("%sdocumentType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDocumentType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdocumentType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDocumentType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -777,57 +758,57 @@ public String toUrlQueryString(String prefix) { // add `dateOfIncorporation` to the URL query string if (getDateOfIncorporation() != null) { - joiner.add(String.format("%sdateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `stateOfIncorporation` to the URL query string if (getStateOfIncorporation() != null) { - joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reasonCode` to the URL query string if (getReasonCode() != null) { - joiner.add(String.format("%sreasonCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReasonCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreasonCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReasonCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationId` to the URL query string if (getEvaluationId() != null) { - joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `frontDocumentId` to the URL query string if (getFrontDocumentId() != null) { - joiner.add(String.format("%sfrontDocumentId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFrontDocumentId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfrontDocumentId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFrontDocumentId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `backDocumentId` to the URL query string if (getBackDocumentId() != null) { - joiner.add(String.format("%sbackDocumentId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBackDocumentId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbackDocumentId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBackDocumentId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `frontDocumentStoreId` to the URL query string if (getFrontDocumentStoreId() != null) { - joiner.add(String.format("%sfrontDocumentStoreId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFrontDocumentStoreId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfrontDocumentStoreId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFrontDocumentStoreId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `backDocumentStoreId` to the URL query string if (getBackDocumentStoreId() != null) { - joiner.add(String.format("%sbackDocumentStoreId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBackDocumentStoreId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbackDocumentStoreId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBackDocumentStoreId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ApplicationForm.java b/src/main/java/unit/java/sdk/model/ApplicationForm.java index 7e1eec71..e93fa8ec 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationForm.java +++ b/src/main/java/unit/java/sdk/model/ApplicationForm.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationForm */ @@ -39,13 +40,13 @@ ApplicationForm.JSON_PROPERTY_ATTRIBUTES, ApplicationForm.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationForm { /** * Gets or Sets type */ public enum TypeEnum { - APPLICATIONFORM("applicationForm"); + APPLICATION_FORM("applicationForm"); private String value; @@ -75,7 +76,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.APPLICATIONFORM; + private TypeEnum type = TypeEnum.APPLICATION_FORM; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -94,14 +95,13 @@ public ApplicationForm type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public ApplicationForm id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -144,14 +143,13 @@ public ApplicationForm attributes(ApplicationFormAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ApplicationFormAttributes getAttributes() { return attributes; } @@ -169,14 +167,13 @@ public ApplicationForm relationships(ApplicationFormRelationships relationships) return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationFormRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ApplicationFormAdditionalDisclosuresInner.java b/src/main/java/unit/java/sdk/model/ApplicationFormAdditionalDisclosuresInner.java index bdd6d794..0fba79d9 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationFormAdditionalDisclosuresInner.java +++ b/src/main/java/unit/java/sdk/model/ApplicationFormAdditionalDisclosuresInner.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationFormAdditionalDisclosuresInner */ @@ -35,7 +36,7 @@ ApplicationFormAdditionalDisclosuresInner.JSON_PROPERTY_TITLE, ApplicationFormAdditionalDisclosuresInner.JSON_PROPERTY_URL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationFormAdditionalDisclosuresInner { public static final String JSON_PROPERTY_TITLE = "title"; private String title; @@ -51,14 +52,13 @@ public ApplicationFormAdditionalDisclosuresInner title(String title) { return this; } - /** + /** * Get title * @return title - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTitle() { return title; } @@ -76,14 +76,13 @@ public ApplicationFormAdditionalDisclosuresInner url(String url) { return this; } - /** + /** * Get url * @return url - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { return url; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `title` to the URL query string if (getTitle() != null) { - joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `url` to the URL query string if (getUrl() != null) { - joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ApplicationFormAttributes.java b/src/main/java/unit/java/sdk/model/ApplicationFormAttributes.java index 0f7d1973..c9da681f 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationFormAttributes.java +++ b/src/main/java/unit/java/sdk/model/ApplicationFormAttributes.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationFormAttributes */ @@ -46,7 +47,7 @@ ApplicationFormAttributes.JSON_PROPERTY_TAGS, ApplicationFormAttributes.JSON_PROPERTY_ALLOWED_APPLICATION_TYPES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationFormAttributes { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -58,33 +59,33 @@ public class ApplicationFormAttributes { * Gets or Sets stage */ public enum StageEnum { - CHOOSEBUSINESSORINDIVIDUAL("ChooseBusinessOrIndividual"), + CHOOSE_BUSINESS_OR_INDIVIDUAL("ChooseBusinessOrIndividual"), - ENTERINDIVIDUALINFORMATION("EnterIndividualInformation"), + ENTER_INDIVIDUAL_INFORMATION("EnterIndividualInformation"), - INDIVIDUALPHONEVERIFICATION("IndividualPhoneVerification"), + INDIVIDUAL_PHONE_VERIFICATION("IndividualPhoneVerification"), - INDIVIDUALAPPLICATIONCREATED("IndividualApplicationCreated"), + INDIVIDUAL_APPLICATION_CREATED("IndividualApplicationCreated"), - ENTERBUSINESSINFORMATION("EnterBusinessInformation"), + ENTER_BUSINESS_INFORMATION("EnterBusinessInformation"), - ENTERBUSINESSADDITIONALINFORMATION("EnterBusinessAdditionalInformation"), + ENTER_BUSINESS_ADDITIONAL_INFORMATION("EnterBusinessAdditionalInformation"), - ENTEROFFICERINFORMATION("EnterOfficerInformation"), + ENTER_OFFICER_INFORMATION("EnterOfficerInformation"), - BUSINESSPHONEVERIFICATION("BusinessPhoneVerification"), + BUSINESS_PHONE_VERIFICATION("BusinessPhoneVerification"), - ENTERBENEFICIALOWNERSINFORMATION("EnterBeneficialOwnersInformation"), + ENTER_BENEFICIAL_OWNERS_INFORMATION("EnterBeneficialOwnersInformation"), - BUSINESSAPPLICATIONCREATED("businessApplicationCreated"), + BUSINESS_APPLICATION_CREATED("businessApplicationCreated"), - ENTERSOLEPROPRIETORSHIPINFORMATION("EnterSoleProprietorshipInformation"), + ENTER_SOLE_PROPRIETORSHIP_INFORMATION("EnterSoleProprietorshipInformation"), - ENTERSOLEPROPRIETORSHIPBUSINESSINFORMATION("EnterSoleProprietorshipBusinessInformation"), + ENTER_SOLE_PROPRIETORSHIP_BUSINESS_INFORMATION("EnterSoleProprietorshipBusinessInformation"), - SOLEPROPRIETORSHIPPHONEVERIFICATION("SoleProprietorshipPhoneVerification"), + SOLE_PROPRIETORSHIP_PHONE_VERIFICATION("SoleProprietorshipPhoneVerification"), - SOLEPROPRIETORSHIPAPPLICATIONCREATED("SoleProprietorshipApplicationCreated"); + SOLE_PROPRIETORSHIP_APPLICATION_CREATED("SoleProprietorshipApplicationCreated"); private String value; @@ -133,7 +134,7 @@ public enum AllowedApplicationTypesEnum { BUSINESS("Business"), - SOLEPROPRIETORSHIP("SoleProprietorship"); + SOLE_PROPRIETORSHIP("SoleProprietorship"); private String value; @@ -173,14 +174,13 @@ public ApplicationFormAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -198,14 +198,13 @@ public ApplicationFormAttributes url(String url) { return this; } - /** + /** * Get url * @return url - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrl() { return url; } @@ -223,14 +222,13 @@ public ApplicationFormAttributes stage(StageEnum stage) { return this; } - /** + /** * Get stage * @return stage - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StageEnum getStage() { return stage; } @@ -248,14 +246,13 @@ public ApplicationFormAttributes applicantDetails(ApplicationFormPrefill applica return this; } - /** + /** * Get applicantDetails * @return applicantDetails - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPLICANT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationFormPrefill getApplicantDetails() { return applicantDetails; } @@ -273,14 +270,13 @@ public ApplicationFormAttributes settingsOverride(ApplicationFormSettingsOverrid return this; } - /** + /** * Get settingsOverride * @return settingsOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SETTINGS_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationFormSettingsOverride getSettingsOverride() { return settingsOverride; } @@ -306,14 +302,13 @@ public ApplicationFormAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -339,14 +334,13 @@ public ApplicationFormAttributes addAllowedApplicationTypesItem(AllowedApplicati return this; } - /** + /** * Get allowedApplicationTypes * @return allowedApplicationTypes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOWED_APPLICATION_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAllowedApplicationTypes() { return allowedApplicationTypes; } @@ -445,17 +439,17 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `url` to the URL query string if (getUrl() != null) { - joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `stage` to the URL query string if (getStage() != null) { - joiner.add(String.format("%sstage%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstage%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `applicantDetails` to the URL query string @@ -473,7 +467,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -482,7 +476,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getAllowedApplicationTypes().size(); i++) { joiner.add(String.format("%sallowedApplicationTypes%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getAllowedApplicationTypes().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getAllowedApplicationTypes().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ApplicationFormPrefill.java b/src/main/java/unit/java/sdk/model/ApplicationFormPrefill.java index fa33a5ee..87cc12f4 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationFormPrefill.java +++ b/src/main/java/unit/java/sdk/model/ApplicationFormPrefill.java @@ -45,6 +45,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationFormPrefill */ @@ -72,7 +73,7 @@ ApplicationFormPrefill.JSON_PROPERTY_BUSINESS_VERTICAL, ApplicationFormPrefill.JSON_PROPERTY_OCCUPATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationFormPrefill { /** * Gets or Sets applicationType @@ -82,7 +83,7 @@ public enum ApplicationTypeEnum { BUSINESS("Business"), - SOLEPROPRIETORSHIP("SoleProprietorship"); + SOLE_PROPRIETORSHIP("SoleProprietorship"); private String value; @@ -185,14 +186,13 @@ public ApplicationFormPrefill applicationType(ApplicationTypeEnum applicationTyp return this; } - /** + /** * Get applicationType * @return applicationType - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPLICATION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationTypeEnum getApplicationType() { return applicationType; } @@ -210,14 +210,13 @@ public ApplicationFormPrefill fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FullName getFullName() { return fullName; } @@ -235,14 +234,13 @@ public ApplicationFormPrefill ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -260,14 +258,13 @@ public ApplicationFormPrefill passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -285,14 +282,13 @@ public ApplicationFormPrefill nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -310,14 +306,13 @@ public ApplicationFormPrefill dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -335,14 +330,13 @@ public ApplicationFormPrefill email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -360,14 +354,13 @@ public ApplicationFormPrefill name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { return name; } @@ -385,14 +378,13 @@ public ApplicationFormPrefill stateOfIncorporation(String stateOfIncorporation) return this; } - /** + /** * Get stateOfIncorporation * @return stateOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStateOfIncorporation() { return stateOfIncorporation; } @@ -410,14 +402,13 @@ public ApplicationFormPrefill entityType(EntityType entityType) { return this; } - /** + /** * Get entityType * @return entityType - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EntityType getEntityType() { return entityType; } @@ -435,14 +426,13 @@ public ApplicationFormPrefill contact(Contact contact) { return this; } - /** + /** * Get contact * @return contact - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Contact getContact() { return contact; } @@ -460,14 +450,13 @@ public ApplicationFormPrefill officer(CreateOfficer officer) { return this; } - /** + /** * Get officer * @return officer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OFFICER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateOfficer getOfficer() { return officer; } @@ -493,14 +482,13 @@ public ApplicationFormPrefill addBeneficialOwnersItem(CreateBeneficialOwner bene return this; } - /** + /** * Get beneficialOwners * @return beneficialOwners - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BENEFICIAL_OWNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getBeneficialOwners() { return beneficialOwners; } @@ -518,14 +506,13 @@ public ApplicationFormPrefill website(String website) { return this; } - /** + /** * Get website * @return website - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWebsite() { return website; } @@ -543,14 +530,13 @@ public ApplicationFormPrefill phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -568,14 +554,13 @@ public ApplicationFormPrefill address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -593,14 +578,13 @@ public ApplicationFormPrefill dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DBA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDba() { return dba; } @@ -618,14 +602,13 @@ public ApplicationFormPrefill ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEin() { return ein; } @@ -643,13 +626,12 @@ public ApplicationFormPrefill jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -676,14 +658,13 @@ public ApplicationFormPrefill industry(Industry industry) { return this; } - /** + /** * Get industry * @return industry - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Industry getIndustry() { return industry; } @@ -701,14 +682,13 @@ public ApplicationFormPrefill businessVertical(BusinessVertical businessVertical return this; } - /** + /** * Get businessVertical * @return businessVertical - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUSINESS_VERTICAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessVertical getBusinessVertical() { return businessVertical; } @@ -726,14 +706,13 @@ public ApplicationFormPrefill occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -873,7 +852,7 @@ public String toUrlQueryString(String prefix) { // add `applicationType` to the URL query string if (getApplicationType() != null) { - joiner.add(String.format("%sapplicationType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getApplicationType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sapplicationType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getApplicationType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fullName` to the URL query string @@ -883,42 +862,42 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `stateOfIncorporation` to the URL query string if (getStateOfIncorporation() != null) { - joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `entityType` to the URL query string if (getEntityType() != null) { - joiner.add(String.format("%sentityType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sentityType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `contact` to the URL query string @@ -943,7 +922,7 @@ public String toUrlQueryString(String prefix) { // add `website` to the URL query string if (getWebsite() != null) { - joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -958,32 +937,32 @@ public String toUrlQueryString(String prefix) { // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `industry` to the URL query string if (getIndustry() != null) { - joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessVertical` to the URL query string if (getBusinessVertical() != null) { - joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ApplicationFormRelationships.java b/src/main/java/unit/java/sdk/model/ApplicationFormRelationships.java index 2bc86b35..6377098a 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationFormRelationships.java +++ b/src/main/java/unit/java/sdk/model/ApplicationFormRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationFormRelationships */ @JsonPropertyOrder({ ApplicationFormRelationships.JSON_PROPERTY_APPLICATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationFormRelationships { public static final String JSON_PROPERTY_APPLICATION = "application"; private ApplicationRelationship application; @@ -48,14 +49,13 @@ public ApplicationFormRelationships application(ApplicationRelationship applicat return this; } - /** + /** * Get application * @return application - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationRelationship getApplication() { return application; } diff --git a/src/main/java/unit/java/sdk/model/ApplicationFormSettingsOverride.java b/src/main/java/unit/java/sdk/model/ApplicationFormSettingsOverride.java index e0437abe..36bed07b 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationFormSettingsOverride.java +++ b/src/main/java/unit/java/sdk/model/ApplicationFormSettingsOverride.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationFormSettingsOverride */ @@ -45,7 +46,7 @@ ApplicationFormSettingsOverride.JSON_PROPERTY_DEBIT_CARD_DISCLOSURE_URL, ApplicationFormSettingsOverride.JSON_PROPERTY_ADDITIONAL_DISCLOSURES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationFormSettingsOverride { public static final String JSON_PROPERTY_REDIRECT_URL = "redirectUrl"; private String redirectUrl; @@ -82,14 +83,13 @@ public ApplicationFormSettingsOverride redirectUrl(String redirectUrl) { return this; } - /** + /** * Get redirectUrl * @return redirectUrl - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REDIRECT_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRedirectUrl() { return redirectUrl; } @@ -107,14 +107,13 @@ public ApplicationFormSettingsOverride privacyPolicyUrl(String privacyPolicyUrl) return this; } - /** + /** * Get privacyPolicyUrl * @return privacyPolicyUrl - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRIVACY_POLICY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPrivacyPolicyUrl() { return privacyPolicyUrl; } @@ -132,14 +131,13 @@ public ApplicationFormSettingsOverride electronicDisclosuresUrl(String electroni return this; } - /** + /** * Get electronicDisclosuresUrl * @return electronicDisclosuresUrl - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ELECTRONIC_DISCLOSURES_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getElectronicDisclosuresUrl() { return electronicDisclosuresUrl; } @@ -157,14 +155,13 @@ public ApplicationFormSettingsOverride depositTermsUrl(String depositTermsUrl) { return this; } - /** + /** * Get depositTermsUrl * @return depositTermsUrl - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPOSIT_TERMS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDepositTermsUrl() { return depositTermsUrl; } @@ -182,14 +179,13 @@ public ApplicationFormSettingsOverride clientTermsUrl(String clientTermsUrl) { return this; } - /** + /** * Get clientTermsUrl * @return clientTermsUrl - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLIENT_TERMS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getClientTermsUrl() { return clientTermsUrl; } @@ -207,14 +203,13 @@ public ApplicationFormSettingsOverride cardholderTermsUrl(String cardholderTerms return this; } - /** + /** * Get cardholderTermsUrl * @return cardholderTermsUrl - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARDHOLDER_TERMS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardholderTermsUrl() { return cardholderTermsUrl; } @@ -232,14 +227,13 @@ public ApplicationFormSettingsOverride cashAdvancedTermsUrl(String cashAdvancedT return this; } - /** + /** * Get cashAdvancedTermsUrl * @return cashAdvancedTermsUrl - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CASH_ADVANCED_TERMS_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCashAdvancedTermsUrl() { return cashAdvancedTermsUrl; } @@ -257,14 +251,13 @@ public ApplicationFormSettingsOverride debitCardDisclosureUrl(String debitCardDi return this; } - /** + /** * Get debitCardDisclosureUrl * @return debitCardDisclosureUrl - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEBIT_CARD_DISCLOSURE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDebitCardDisclosureUrl() { return debitCardDisclosureUrl; } @@ -290,14 +283,13 @@ public ApplicationFormSettingsOverride addAdditionalDisclosuresItem(ApplicationF return this; } - /** + /** * Get additionalDisclosures * @return additionalDisclosures - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDITIONAL_DISCLOSURES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAdditionalDisclosures() { return additionalDisclosures; } @@ -400,42 +392,42 @@ public String toUrlQueryString(String prefix) { // add `redirectUrl` to the URL query string if (getRedirectUrl() != null) { - joiner.add(String.format("%sredirectUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRedirectUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sredirectUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRedirectUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `privacyPolicyUrl` to the URL query string if (getPrivacyPolicyUrl() != null) { - joiner.add(String.format("%sprivacyPolicyUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPrivacyPolicyUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sprivacyPolicyUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPrivacyPolicyUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `electronicDisclosuresUrl` to the URL query string if (getElectronicDisclosuresUrl() != null) { - joiner.add(String.format("%selectronicDisclosuresUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getElectronicDisclosuresUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%selectronicDisclosuresUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getElectronicDisclosuresUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `depositTermsUrl` to the URL query string if (getDepositTermsUrl() != null) { - joiner.add(String.format("%sdepositTermsUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDepositTermsUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdepositTermsUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDepositTermsUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `clientTermsUrl` to the URL query string if (getClientTermsUrl() != null) { - joiner.add(String.format("%sclientTermsUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getClientTermsUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sclientTermsUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getClientTermsUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardholderTermsUrl` to the URL query string if (getCardholderTermsUrl() != null) { - joiner.add(String.format("%scardholderTermsUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardholderTermsUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardholderTermsUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardholderTermsUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cashAdvancedTermsUrl` to the URL query string if (getCashAdvancedTermsUrl() != null) { - joiner.add(String.format("%scashAdvancedTermsUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCashAdvancedTermsUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scashAdvancedTermsUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCashAdvancedTermsUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `debitCardDisclosureUrl` to the URL query string if (getDebitCardDisclosureUrl() != null) { - joiner.add(String.format("%sdebitCardDisclosureUrl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebitCardDisclosureUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdebitCardDisclosureUrl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDebitCardDisclosureUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `additionalDisclosures` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ApplicationRelationship.java b/src/main/java/unit/java/sdk/model/ApplicationRelationship.java index 33373ec4..eca18b78 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationRelationship.java +++ b/src/main/java/unit/java/sdk/model/ApplicationRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationRelationship */ @JsonPropertyOrder({ ApplicationRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationRelationship { public static final String JSON_PROPERTY_DATA = "data"; private ApplicationRelationshipData data; @@ -48,14 +49,13 @@ public ApplicationRelationship data(ApplicationRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ApplicationRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ApplicationRelationshipData.java b/src/main/java/unit/java/sdk/model/ApplicationRelationshipData.java index fcfd0622..387dbbda 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/ApplicationRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApplicationRelationshipData */ @@ -35,7 +36,7 @@ ApplicationRelationshipData.JSON_PROPERTY_ID, ApplicationRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApplicationRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -44,9 +45,9 @@ public class ApplicationRelationshipData { * Gets or Sets type */ public enum TypeEnum { - BUSINESSAPPLICATION("businessApplication"), + BUSINESS_APPLICATION("businessApplication"), - INDIVIDUALAPPLICATION("individualApplication"), + INDIVIDUAL_APPLICATION("individualApplication"), APPLICATION("application"); @@ -88,14 +89,13 @@ public ApplicationRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -113,14 +113,13 @@ public ApplicationRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -209,12 +208,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ApplicationStatus.java b/src/main/java/unit/java/sdk/model/ApplicationStatus.java index d4dc5b09..dde233ab 100644 --- a/src/main/java/unit/java/sdk/model/ApplicationStatus.java +++ b/src/main/java/unit/java/sdk/model/ApplicationStatus.java @@ -30,9 +30,9 @@ */ public enum ApplicationStatus { - AWAITINGDOCUMENTS("AwaitingDocuments"), + AWAITING_DOCUMENTS("AwaitingDocuments"), - PENDINGREVIEW("PendingReview"), + PENDING_REVIEW("PendingReview"), APPROVED("Approved"), diff --git a/src/main/java/unit/java/sdk/model/ApproveAuthorizationRequest.java b/src/main/java/unit/java/sdk/model/ApproveAuthorizationRequest.java index f0bf88e8..fbf675d9 100644 --- a/src/main/java/unit/java/sdk/model/ApproveAuthorizationRequest.java +++ b/src/main/java/unit/java/sdk/model/ApproveAuthorizationRequest.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApproveAuthorizationRequest */ @JsonPropertyOrder({ ApproveAuthorizationRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApproveAuthorizationRequest { public static final String JSON_PROPERTY_DATA = "data"; private ApproveAuthorizationRequest data; @@ -47,14 +48,13 @@ public ApproveAuthorizationRequest data(ApproveAuthorizationRequest data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApproveAuthorizationRequest getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ApproveAuthorizationRequestAttributes.java b/src/main/java/unit/java/sdk/model/ApproveAuthorizationRequestAttributes.java index ebb05581..678aa268 100644 --- a/src/main/java/unit/java/sdk/model/ApproveAuthorizationRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/ApproveAuthorizationRequestAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApproveAuthorizationRequestAttributes */ @@ -38,7 +39,7 @@ ApproveAuthorizationRequestAttributes.JSON_PROPERTY_FUNDING_ACCOUNT, ApproveAuthorizationRequestAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApproveAuthorizationRequestAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -57,14 +58,13 @@ public ApproveAuthorizationRequestAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getAmount() { return amount; } @@ -82,14 +82,13 @@ public ApproveAuthorizationRequestAttributes fundingAccount(String fundingAccoun return this; } - /** + /** * Get fundingAccount * @return fundingAccount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FUNDING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFundingAccount() { return fundingAccount; } @@ -115,14 +114,13 @@ public ApproveAuthorizationRequestAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -213,12 +211,12 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fundingAccount` to the URL query string if (getFundingAccount() != null) { - joiner.add(String.format("%sfundingAccount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFundingAccount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfundingAccount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFundingAccount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -226,7 +224,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ApproveCheckPaymentRequest.java b/src/main/java/unit/java/sdk/model/ApproveCheckPaymentRequest.java index 733fff5f..3f759984 100644 --- a/src/main/java/unit/java/sdk/model/ApproveCheckPaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/ApproveCheckPaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApproveCheckPaymentRequest */ @JsonPropertyOrder({ ApproveCheckPaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApproveCheckPaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private ApproveCheckPaymentRequestData data; @@ -48,14 +49,13 @@ public ApproveCheckPaymentRequest data(ApproveCheckPaymentRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApproveCheckPaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ApproveCheckPaymentRequestData.java b/src/main/java/unit/java/sdk/model/ApproveCheckPaymentRequestData.java index 5f519563..bac519a8 100644 --- a/src/main/java/unit/java/sdk/model/ApproveCheckPaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/ApproveCheckPaymentRequestData.java @@ -28,19 +28,20 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ApproveCheckPaymentRequestData */ @JsonPropertyOrder({ ApproveCheckPaymentRequestData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ApproveCheckPaymentRequestData { /** * Gets or Sets type */ public enum TypeEnum { - ADDITIONALVERIFICATION("additionalVerification"); + ADDITIONAL_VERIFICATION("additionalVerification"); private String value; @@ -70,7 +71,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ADDITIONALVERIFICATION; + private TypeEnum type = TypeEnum.ADDITIONAL_VERIFICATION; public ApproveCheckPaymentRequestData() { } @@ -80,14 +81,13 @@ public ApproveCheckPaymentRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -174,7 +174,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ArchiveCustomerRequest.java b/src/main/java/unit/java/sdk/model/ArchiveCustomerRequest.java index 374f8522..3f01d5fa 100644 --- a/src/main/java/unit/java/sdk/model/ArchiveCustomerRequest.java +++ b/src/main/java/unit/java/sdk/model/ArchiveCustomerRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ArchiveCustomerRequest */ @JsonPropertyOrder({ ArchiveCustomerRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ArchiveCustomerRequest { public static final String JSON_PROPERTY_DATA = "data"; private ArchiveCustomerRequestData data; @@ -48,14 +49,13 @@ public ArchiveCustomerRequest data(ArchiveCustomerRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ArchiveCustomerRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ArchiveCustomerRequestData.java b/src/main/java/unit/java/sdk/model/ArchiveCustomerRequestData.java index ef754c60..f2483144 100644 --- a/src/main/java/unit/java/sdk/model/ArchiveCustomerRequestData.java +++ b/src/main/java/unit/java/sdk/model/ArchiveCustomerRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ArchiveCustomerRequestData */ @@ -36,13 +37,13 @@ ArchiveCustomerRequestData.JSON_PROPERTY_TYPE, ArchiveCustomerRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ArchiveCustomerRequestData { /** * Gets or Sets type */ public enum TypeEnum { - ARCHIVECUSTOMER("archiveCustomer"); + ARCHIVE_CUSTOMER("archiveCustomer"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ARCHIVECUSTOMER; + private TypeEnum type = TypeEnum.ARCHIVE_CUSTOMER; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private ArchiveCustomerRequestDataAttributes attributes; @@ -85,14 +86,13 @@ public ArchiveCustomerRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public ArchiveCustomerRequestData attributes(ArchiveCustomerRequestDataAttribute return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ArchiveCustomerRequestDataAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ArchiveCustomerRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/ArchiveCustomerRequestDataAttributes.java index aeb4c460..084668cb 100644 --- a/src/main/java/unit/java/sdk/model/ArchiveCustomerRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/ArchiveCustomerRequestDataAttributes.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ArchiveCustomerRequestDataAttributes */ @JsonPropertyOrder({ ArchiveCustomerRequestDataAttributes.JSON_PROPERTY_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ArchiveCustomerRequestDataAttributes { /** * Gets or Sets reason @@ -42,19 +43,19 @@ public class ArchiveCustomerRequestDataAttributes { public enum ReasonEnum { INACTIVE("Inactive"), - FRAUDACHACTIVITY("FraudACHActivity"), + FRAUD_ACH_ACTIVITY("FraudACHActivity"), - FRAUDCARDACTIVITY("FraudCardActivity"), + FRAUD_CARD_ACTIVITY("FraudCardActivity"), - FRAUDCHECKACTIVITY("FraudCheckActivity"), + FRAUD_CHECK_ACTIVITY("FraudCheckActivity"), - FRAUDAPPLICATIONHISTORY("FraudApplicationHistory"), + FRAUD_APPLICATION_HISTORY("FraudApplicationHistory"), - FRAUDACCOUNTACTIVITY("FraudAccountActivity"), + FRAUD_ACCOUNT_ACTIVITY("FraudAccountActivity"), - FRAUDCLIENTIDENTIFIED("FraudClientIdentified"), + FRAUD_CLIENT_IDENTIFIED("FraudClientIdentified"), - FRAUDLINKEDTOFRAUDULENTCUSTOMER("FraudLinkedToFraudulentCustomer"); + FRAUD_LINKED_TO_FRAUDULENT_CUSTOMER("FraudLinkedToFraudulentCustomer"); private String value; @@ -94,14 +95,13 @@ public ArchiveCustomerRequestDataAttributes reason(ReasonEnum reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReasonEnum getReason() { return reason; } @@ -188,7 +188,7 @@ public String toUrlQueryString(String prefix) { // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Astra.java b/src/main/java/unit/java/sdk/model/Astra.java index 2bdfe606..00450294 100644 --- a/src/main/java/unit/java/sdk/model/Astra.java +++ b/src/main/java/unit/java/sdk/model/Astra.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Astra */ @@ -42,7 +43,7 @@ Astra.JSON_PROPERTY_ACCOUNT_NAME, Astra.JSON_PROPERTY_REFERENCE_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Astra { public static final String JSON_PROPERTY_AUTH_TOKEN = "authToken"; private String authToken; @@ -76,14 +77,13 @@ public Astra authToken(String authToken) { return this; } - /** + /** * Get authToken * @return authToken - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUTH_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAuthToken() { return authToken; } @@ -101,14 +101,13 @@ public Astra debitFeePercent(BigDecimal debitFeePercent) { return this; } - /** + /** * Get debitFeePercent * @return debitFeePercent - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DEBIT_FEE_PERCENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getDebitFeePercent() { return debitFeePercent; } @@ -126,14 +125,13 @@ public Astra institutionId(String institutionId) { return this; } - /** + /** * Get institutionId * @return institutionId - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INSTITUTION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getInstitutionId() { return institutionId; } @@ -151,14 +149,13 @@ public Astra destinationCardId(String destinationCardId) { return this; } - /** + /** * Get destinationCardId * @return destinationCardId - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESTINATION_CARD_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDestinationCardId() { return destinationCardId; } @@ -176,14 +173,13 @@ public Astra routingNumber(String routingNumber) { return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -201,14 +197,13 @@ public Astra accountNumber(String accountNumber) { return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { return accountNumber; } @@ -226,14 +221,13 @@ public Astra accountName(String accountName) { return this; } - /** + /** * Get accountName * @return accountName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountName() { return accountName; } @@ -251,14 +245,13 @@ public Astra referenceId(String referenceId) { return this; } - /** + /** * Get referenceId * @return referenceId - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REFERENCE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getReferenceId() { return referenceId; } @@ -359,42 +352,42 @@ public String toUrlQueryString(String prefix) { // add `authToken` to the URL query string if (getAuthToken() != null) { - joiner.add(String.format("%sauthToken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAuthToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sauthToken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAuthToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `debitFeePercent` to the URL query string if (getDebitFeePercent() != null) { - joiner.add(String.format("%sdebitFeePercent%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDebitFeePercent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdebitFeePercent%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDebitFeePercent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `institutionId` to the URL query string if (getInstitutionId() != null) { - joiner.add(String.format("%sinstitutionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInstitutionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinstitutionId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInstitutionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `destinationCardId` to the URL query string if (getDestinationCardId() != null) { - joiner.add(String.format("%sdestinationCardId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDestinationCardId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdestinationCardId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDestinationCardId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountName` to the URL query string if (getAccountName() != null) { - joiner.add(String.format("%saccountName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `referenceId` to the URL query string if (getReferenceId() != null) { - joiner.add(String.format("%sreferenceId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReferenceId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreferenceId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReferenceId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AtmAuthorization.java b/src/main/java/unit/java/sdk/model/AtmAuthorization.java index dd594c73..0e38c6e1 100644 --- a/src/main/java/unit/java/sdk/model/AtmAuthorization.java +++ b/src/main/java/unit/java/sdk/model/AtmAuthorization.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * AtmAuthorization */ @@ -42,7 +43,7 @@ AtmAuthorization.JSON_PROPERTY_ATTRIBUTES, AtmAuthorization.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public AtmAuthorization attributes(AtmAuthorizationAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AtmAuthorizationAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public AtmAuthorization relationships(AuthorizationRequestRelationships relation return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AuthorizationRequestRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AtmAuthorizationAllOfAttributes.java b/src/main/java/unit/java/sdk/model/AtmAuthorizationAllOfAttributes.java index 413af001..282a5b49 100644 --- a/src/main/java/unit/java/sdk/model/AtmAuthorizationAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/AtmAuthorizationAllOfAttributes.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AtmAuthorizationAllOfAttributes */ @@ -54,7 +55,7 @@ AtmAuthorizationAllOfAttributes.JSON_PROPERTY_TAGS, AtmAuthorizationAllOfAttributes.JSON_PROPERTY_CARD_NETWORK }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AtmAuthorizationAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -103,14 +104,13 @@ public AtmAuthorizationAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -128,14 +128,13 @@ public AtmAuthorizationAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -153,14 +152,13 @@ public AtmAuthorizationAllOfAttributes status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { return status; } @@ -178,14 +176,13 @@ public AtmAuthorizationAllOfAttributes partialApprovalAllowed(Boolean partialApp return this; } - /** + /** * Get partialApprovalAllowed * @return partialApprovalAllowed - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PARTIAL_APPROVAL_ALLOWED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getPartialApprovalAllowed() { return partialApprovalAllowed; } @@ -203,14 +200,13 @@ public AtmAuthorizationAllOfAttributes approvedAmount(Integer approvedAmount) { return this; } - /** + /** * Get approvedAmount * @return approvedAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPROVED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getApprovedAmount() { return approvedAmount; } @@ -228,14 +224,13 @@ public AtmAuthorizationAllOfAttributes declineReason(String declineReason) { return this; } - /** + /** * Get declineReason * @return declineReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLINE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeclineReason() { return declineReason; } @@ -253,14 +248,13 @@ public AtmAuthorizationAllOfAttributes direction(String direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDirection() { return direction; } @@ -278,14 +272,13 @@ public AtmAuthorizationAllOfAttributes atmName(String atmName) { return this; } - /** + /** * Get atmName * @return atmName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATM_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAtmName() { return atmName; } @@ -303,14 +296,13 @@ public AtmAuthorizationAllOfAttributes atmLocation(String atmLocation) { return this; } - /** + /** * Get atmLocation * @return atmLocation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATM_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAtmLocation() { return atmLocation; } @@ -328,14 +320,13 @@ public AtmAuthorizationAllOfAttributes surcharge(Integer surcharge) { return this; } - /** + /** * Get surcharge * @return surcharge - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getSurcharge() { return surcharge; } @@ -353,13 +344,12 @@ public AtmAuthorizationAllOfAttributes internationalServiceFee(BigDecimal intern return this; } - /** + /** * Get internationalServiceFee * @return internationalServiceFee - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public BigDecimal getInternationalServiceFee() { return internationalServiceFee.orElse(null); } @@ -394,14 +384,13 @@ public AtmAuthorizationAllOfAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -419,14 +408,13 @@ public AtmAuthorizationAllOfAttributes cardNetwork(String cardNetwork) { return this; } - /** + /** * Get cardNetwork * @return cardNetwork - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardNetwork() { return cardNetwork; } @@ -548,57 +536,57 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `partialApprovalAllowed` to the URL query string if (getPartialApprovalAllowed() != null) { - joiner.add(String.format("%spartialApprovalAllowed%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPartialApprovalAllowed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spartialApprovalAllowed%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPartialApprovalAllowed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `approvedAmount` to the URL query string if (getApprovedAmount() != null) { - joiner.add(String.format("%sapprovedAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getApprovedAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sapprovedAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getApprovedAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `declineReason` to the URL query string if (getDeclineReason() != null) { - joiner.add(String.format("%sdeclineReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeclineReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdeclineReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeclineReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `atmName` to the URL query string if (getAtmName() != null) { - joiner.add(String.format("%satmName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAtmName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%satmName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAtmName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `atmLocation` to the URL query string if (getAtmLocation() != null) { - joiner.add(String.format("%satmLocation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAtmLocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%satmLocation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAtmLocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `surcharge` to the URL query string if (getSurcharge() != null) { - joiner.add(String.format("%ssurcharge%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSurcharge()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssurcharge%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSurcharge()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `internationalServiceFee` to the URL query string if (getInternationalServiceFee() != null) { - joiner.add(String.format("%sinternationalServiceFee%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInternationalServiceFee()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinternationalServiceFee%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInternationalServiceFee()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -606,13 +594,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `cardNetwork` to the URL query string if (getCardNetwork() != null) { - joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AtmLocation.java b/src/main/java/unit/java/sdk/model/AtmLocation.java index c8233ee8..f03cdcf5 100644 --- a/src/main/java/unit/java/sdk/model/AtmLocation.java +++ b/src/main/java/unit/java/sdk/model/AtmLocation.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AtmLocation */ @@ -36,13 +37,13 @@ AtmLocation.JSON_PROPERTY_TYPE, AtmLocation.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AtmLocation { /** * Gets or Sets type */ public enum TypeEnum { - ATMLOCATION("atmLocation"); + ATM_LOCATION("atmLocation"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ATMLOCATION; + private TypeEnum type = TypeEnum.ATM_LOCATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private AtmLocationAttributes attributes; @@ -85,14 +86,13 @@ public AtmLocation type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public AtmLocation attributes(AtmLocationAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AtmLocationAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AtmLocationAttributes.java b/src/main/java/unit/java/sdk/model/AtmLocationAttributes.java index c91886a8..5f0b0428 100644 --- a/src/main/java/unit/java/sdk/model/AtmLocationAttributes.java +++ b/src/main/java/unit/java/sdk/model/AtmLocationAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AtmLocationAttributes */ @@ -42,7 +43,7 @@ AtmLocationAttributes.JSON_PROPERTY_SURCHARGE_FREE, AtmLocationAttributes.JSON_PROPERTY_ACCEPT_DEPOSITS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AtmLocationAttributes { public static final String JSON_PROPERTY_NETWORK = "network"; private String network; @@ -73,14 +74,13 @@ public AtmLocationAttributes network(String network) { return this; } - /** + /** * Get network * @return network - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNetwork() { return network; } @@ -98,14 +98,13 @@ public AtmLocationAttributes locationName(String locationName) { return this; } - /** + /** * Get locationName * @return locationName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCATION_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLocationName() { return locationName; } @@ -123,14 +122,13 @@ public AtmLocationAttributes coordinates(Coordinates coordinates) { return this; } - /** + /** * Get coordinates * @return coordinates - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COORDINATES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Coordinates getCoordinates() { return coordinates; } @@ -148,14 +146,13 @@ public AtmLocationAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -173,14 +170,13 @@ public AtmLocationAttributes distance(Integer distance) { return this; } - /** + /** * Get distance * @return distance - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DISTANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDistance() { return distance; } @@ -198,14 +194,13 @@ public AtmLocationAttributes surchargeFree(Boolean surchargeFree) { return this; } - /** + /** * Get surchargeFree * @return surchargeFree - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SURCHARGE_FREE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSurchargeFree() { return surchargeFree; } @@ -223,14 +218,13 @@ public AtmLocationAttributes acceptDeposits(Boolean acceptDeposits) { return this; } - /** + /** * Get acceptDeposits * @return acceptDeposits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCEPT_DEPOSITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getAcceptDeposits() { return acceptDeposits; } @@ -329,12 +323,12 @@ public String toUrlQueryString(String prefix) { // add `network` to the URL query string if (getNetwork() != null) { - joiner.add(String.format("%snetwork%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `locationName` to the URL query string if (getLocationName() != null) { - joiner.add(String.format("%slocationName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLocationName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slocationName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLocationName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `coordinates` to the URL query string @@ -349,17 +343,17 @@ public String toUrlQueryString(String prefix) { // add `distance` to the URL query string if (getDistance() != null) { - joiner.add(String.format("%sdistance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDistance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdistance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDistance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `surchargeFree` to the URL query string if (getSurchargeFree() != null) { - joiner.add(String.format("%ssurchargeFree%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSurchargeFree()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssurchargeFree%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSurchargeFree()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `acceptDeposits` to the URL query string if (getAcceptDeposits() != null) { - joiner.add(String.format("%sacceptDeposits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAcceptDeposits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sacceptDeposits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAcceptDeposits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AtmTransaction.java b/src/main/java/unit/java/sdk/model/AtmTransaction.java index beeb833e..7c33e173 100644 --- a/src/main/java/unit/java/sdk/model/AtmTransaction.java +++ b/src/main/java/unit/java/sdk/model/AtmTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * AtmTransaction */ @@ -42,7 +43,7 @@ AtmTransaction.JSON_PROPERTY_ATTRIBUTES, AtmTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public AtmTransaction attributes(AtmTransactionAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AtmTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public AtmTransaction relationships(AtmTransactionRelationship relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AtmTransactionRelationship getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AtmTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/AtmTransactionAllOfAttributes.java index 3b409b17..5c0982f5 100644 --- a/src/main/java/unit/java/sdk/model/AtmTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/AtmTransactionAllOfAttributes.java @@ -35,6 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AtmTransactionAllOfAttributes */ @@ -54,7 +55,7 @@ AtmTransactionAllOfAttributes.JSON_PROPERTY_INTERNATIONAL_SERVICE_FEE, AtmTransactionAllOfAttributes.JSON_PROPERTY_CARD_NETWORK }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AtmTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -141,14 +142,13 @@ public AtmTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -166,14 +166,13 @@ public AtmTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -191,14 +190,13 @@ public AtmTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -216,14 +214,13 @@ public AtmTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -241,14 +238,13 @@ public AtmTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -266,14 +262,13 @@ public AtmTransactionAllOfAttributes cardLast4Digits(String cardLast4Digits) { return this; } - /** + /** * Get cardLast4Digits * @return cardLast4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCardLast4Digits() { return cardLast4Digits; } @@ -291,14 +286,13 @@ public AtmTransactionAllOfAttributes atmName(String atmName) { return this; } - /** + /** * Get atmName * @return atmName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATM_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAtmName() { return atmName; } @@ -316,14 +310,13 @@ public AtmTransactionAllOfAttributes atmLocation(String atmLocation) { return this; } - /** + /** * Get atmLocation * @return atmLocation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATM_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAtmLocation() { return atmLocation; } @@ -341,14 +334,13 @@ public AtmTransactionAllOfAttributes surcharge(Integer surcharge) { return this; } - /** + /** * Get surcharge * @return surcharge - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SURCHARGE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getSurcharge() { return surcharge; } @@ -374,14 +366,13 @@ public AtmTransactionAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -399,14 +390,13 @@ public AtmTransactionAllOfAttributes networkTransactionId(String networkTransact return this; } - /** + /** * Get networkTransactionId * @return networkTransactionId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NETWORK_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNetworkTransactionId() { return networkTransactionId; } @@ -424,13 +414,12 @@ public AtmTransactionAllOfAttributes interchange(String interchange) { return this; } - /** + /** * Get interchange * @return interchange - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getInterchange() { return interchange.orElse(null); } @@ -457,13 +446,12 @@ public AtmTransactionAllOfAttributes internationalServiceFee(Integer internation return this; } - /** + /** * Get internationalServiceFee * @return internationalServiceFee - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public Integer getInternationalServiceFee() { return internationalServiceFee.orElse(null); } @@ -490,14 +478,13 @@ public AtmTransactionAllOfAttributes cardNetwork(String cardNetwork) { return this; } - /** + /** * Get cardNetwork * @return cardNetwork - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardNetwork() { return cardNetwork; } @@ -621,47 +608,47 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardLast4Digits` to the URL query string if (getCardLast4Digits() != null) { - joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `atmName` to the URL query string if (getAtmName() != null) { - joiner.add(String.format("%satmName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAtmName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%satmName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAtmName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `atmLocation` to the URL query string if (getAtmLocation() != null) { - joiner.add(String.format("%satmLocation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAtmLocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%satmLocation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAtmLocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `surcharge` to the URL query string if (getSurcharge() != null) { - joiner.add(String.format("%ssurcharge%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSurcharge()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssurcharge%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSurcharge()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -669,28 +656,28 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `networkTransactionId` to the URL query string if (getNetworkTransactionId() != null) { - joiner.add(String.format("%snetworkTransactionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNetworkTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snetworkTransactionId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNetworkTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `interchange` to the URL query string if (getInterchange() != null) { - joiner.add(String.format("%sinterchange%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInterchange()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinterchange%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInterchange()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `internationalServiceFee` to the URL query string if (getInternationalServiceFee() != null) { - joiner.add(String.format("%sinternationalServiceFee%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInternationalServiceFee()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinternationalServiceFee%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInternationalServiceFee()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardNetwork` to the URL query string if (getCardNetwork() != null) { - joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AtmTransactionRelationship.java b/src/main/java/unit/java/sdk/model/AtmTransactionRelationship.java index ec05b4f2..fc4f64a7 100644 --- a/src/main/java/unit/java/sdk/model/AtmTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/AtmTransactionRelationship.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AtmTransactionRelationship */ @@ -41,7 +42,7 @@ AtmTransactionRelationship.JSON_PROPERTY_CUSTOMERS, AtmTransactionRelationship.JSON_PROPERTY_CARD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AtmTransactionRelationship { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public AtmTransactionRelationship account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public AtmTransactionRelationship customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public AtmTransactionRelationship customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public AtmTransactionRelationship card(CardRelationship card) { return this; } - /** + /** * Get card * @return card - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationship getCard() { return card; } diff --git a/src/main/java/unit/java/sdk/model/Authorization.java b/src/main/java/unit/java/sdk/model/Authorization.java index b8fa7acc..6adff9d4 100644 --- a/src/main/java/unit/java/sdk/model/Authorization.java +++ b/src/main/java/unit/java/sdk/model/Authorization.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Authorization */ @@ -39,7 +40,7 @@ Authorization.JSON_PROPERTY_ATTRIBUTES, Authorization.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Authorization { /** * Gets or Sets type @@ -94,14 +95,13 @@ public Authorization type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public Authorization id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -144,14 +143,13 @@ public Authorization attributes(AuthorizationAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AuthorizationAttributes getAttributes() { return attributes; } @@ -169,14 +167,13 @@ public Authorization relationships(AuthorizationRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AuthorizationRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/AuthorizationAttributes.java b/src/main/java/unit/java/sdk/model/AuthorizationAttributes.java index 2119a4cc..b2ea259c 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizationAttributes.java +++ b/src/main/java/unit/java/sdk/model/AuthorizationAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AuthorizationAttributes */ @@ -52,7 +53,7 @@ AuthorizationAttributes.JSON_PROPERTY_CARD_NETWORK, AuthorizationAttributes.JSON_PROPERTY_CASH_WITHDRAWAL_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AuthorizationAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -104,14 +105,13 @@ public AuthorizationAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -129,14 +129,13 @@ public AuthorizationAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -154,14 +153,13 @@ public AuthorizationAttributes cardLast4Digits(String cardLast4Digits) { return this; } - /** + /** * Get cardLast4Digits * @return cardLast4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCardLast4Digits() { return cardLast4Digits; } @@ -179,14 +177,13 @@ public AuthorizationAttributes merchant(Merchant merchant) { return this; } - /** + /** * Get merchant * @return merchant - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Merchant getMerchant() { return merchant; } @@ -204,14 +201,13 @@ public AuthorizationAttributes recurring(Boolean recurring) { return this; } - /** + /** * Get recurring * @return recurring - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getRecurring() { return recurring; } @@ -229,14 +225,13 @@ public AuthorizationAttributes status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { return status; } @@ -254,14 +249,13 @@ public AuthorizationAttributes declineReason(String declineReason) { return this; } - /** + /** * Get declineReason * @return declineReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLINE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeclineReason() { return declineReason; } @@ -287,14 +281,13 @@ public AuthorizationAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -312,14 +305,13 @@ public AuthorizationAttributes paymentMethod(String paymentMethod) { return this; } - /** + /** * Get paymentMethod * @return paymentMethod - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPaymentMethod() { return paymentMethod; } @@ -337,14 +329,13 @@ public AuthorizationAttributes digitalWallet(String digitalWallet) { return this; } - /** + /** * Get digitalWallet * @return digitalWallet - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIGITAL_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDigitalWallet() { return digitalWallet; } @@ -362,14 +353,13 @@ public AuthorizationAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSummary() { return summary; } @@ -387,14 +377,13 @@ public AuthorizationAttributes cardVerificationData(CardVerificationData cardVer return this; } - /** + /** * Get cardVerificationData * @return cardVerificationData - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_VERIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardVerificationData getCardVerificationData() { return cardVerificationData; } @@ -412,14 +401,13 @@ public AuthorizationAttributes cardNetwork(String cardNetwork) { return this; } - /** + /** * Get cardNetwork * @return cardNetwork - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardNetwork() { return cardNetwork; } @@ -437,14 +425,13 @@ public AuthorizationAttributes cashWithdrawalAmount(Integer cashWithdrawalAmount return this; } - /** + /** * Get cashWithdrawalAmount * @return cashWithdrawalAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CASH_WITHDRAWAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getCashWithdrawalAmount() { return cashWithdrawalAmount; } @@ -557,17 +544,17 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardLast4Digits` to the URL query string if (getCardLast4Digits() != null) { - joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `merchant` to the URL query string @@ -577,17 +564,17 @@ public String toUrlQueryString(String prefix) { // add `recurring` to the URL query string if (getRecurring() != null) { - joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `declineReason` to the URL query string if (getDeclineReason() != null) { - joiner.add(String.format("%sdeclineReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeclineReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdeclineReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeclineReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -595,23 +582,23 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `paymentMethod` to the URL query string if (getPaymentMethod() != null) { - joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `digitalWallet` to the URL query string if (getDigitalWallet() != null) { - joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardVerificationData` to the URL query string @@ -621,12 +608,12 @@ public String toUrlQueryString(String prefix) { // add `cardNetwork` to the URL query string if (getCardNetwork() != null) { - joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cashWithdrawalAmount` to the URL query string if (getCashWithdrawalAmount() != null) { - joiner.add(String.format("%scashWithdrawalAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCashWithdrawalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scashWithdrawalAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCashWithdrawalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AuthorizationRelationship.java b/src/main/java/unit/java/sdk/model/AuthorizationRelationship.java index 5c0a1851..3e3ef128 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizationRelationship.java +++ b/src/main/java/unit/java/sdk/model/AuthorizationRelationship.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AuthorizationRelationship */ @JsonPropertyOrder({ AuthorizationRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AuthorizationRelationship { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public AuthorizationRelationship addDataItem(AuthorizationRelationshipDataInner return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/AuthorizationRelationshipDataInner.java b/src/main/java/unit/java/sdk/model/AuthorizationRelationshipDataInner.java index 01ae5000..284cd671 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizationRelationshipDataInner.java +++ b/src/main/java/unit/java/sdk/model/AuthorizationRelationshipDataInner.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AuthorizationRelationshipDataInner */ @@ -35,7 +36,7 @@ AuthorizationRelationshipDataInner.JSON_PROPERTY_TYPE, AuthorizationRelationshipDataInner.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AuthorizationRelationshipDataInner { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "authorization"; @@ -51,14 +52,13 @@ public AuthorizationRelationshipDataInner type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public AuthorizationRelationshipDataInner id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AuthorizationRelationships.java b/src/main/java/unit/java/sdk/model/AuthorizationRelationships.java index 84c56224..b9b3f3f4 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizationRelationships.java +++ b/src/main/java/unit/java/sdk/model/AuthorizationRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AuthorizationRelationships */ @@ -41,7 +42,7 @@ AuthorizationRelationships.JSON_PROPERTY_CUSTOMER, AuthorizationRelationships.JSON_PROPERTY_AUTHORIZATION_REQUEST }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AuthorizationRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public AuthorizationRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public AuthorizationRelationships card(CardRelationship card) { return this; } - /** + /** * Get card * @return card - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationship getCard() { return card; } @@ -113,14 +112,13 @@ public AuthorizationRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -138,14 +136,13 @@ public AuthorizationRelationships authorizationRequest(AuthorizationRequestRelat return this; } - /** + /** * Get authorizationRequest * @return authorizationRequest - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUTHORIZATION_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AuthorizationRequestRelationship getAuthorizationRequest() { return authorizationRequest; } diff --git a/src/main/java/unit/java/sdk/model/AuthorizationRequest.java b/src/main/java/unit/java/sdk/model/AuthorizationRequest.java index b61be443..4ee35fb7 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizationRequest.java +++ b/src/main/java/unit/java/sdk/model/AuthorizationRequest.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * AuthorizationRequest */ @@ -39,7 +40,7 @@ AuthorizationRequest.JSON_PROPERTY_TYPE, AuthorizationRequest.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -56,11 +57,11 @@ public class AuthorizationRequest { * Gets or Sets type */ public enum TypeEnum { - PURCHASEAUTHORIZATIONREQUEST("purchaseAuthorizationRequest"), + PURCHASE_AUTHORIZATION_REQUEST("purchaseAuthorizationRequest"), - CARDTRANSACTIONAUTHORIZATIONREQUEST("cardTransactionAuthorizationRequest"), + CARD_TRANSACTION_AUTHORIZATION_REQUEST("cardTransactionAuthorizationRequest"), - ATMAUTHORIZATIONREQUEST("atmAuthorizationRequest"); + ATM_AUTHORIZATION_REQUEST("atmAuthorizationRequest"); private String value; @@ -103,14 +104,13 @@ public AuthorizationRequest type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -128,14 +128,13 @@ public AuthorizationRequest id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -224,12 +223,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationship.java b/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationship.java index 3859419b..c0c40c45 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationship.java +++ b/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationship.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AuthorizationRequestRelationship */ @JsonPropertyOrder({ AuthorizationRequestRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AuthorizationRequestRelationship { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public AuthorizationRequestRelationship addDataItem(AuthorizationRequestRelation return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationshipDataInner.java b/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationshipDataInner.java index e9065fb2..0a8c3584 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationshipDataInner.java +++ b/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationshipDataInner.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AuthorizationRequestRelationshipDataInner */ @@ -35,7 +36,7 @@ AuthorizationRequestRelationshipDataInner.JSON_PROPERTY_TYPE, AuthorizationRequestRelationshipDataInner.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AuthorizationRequestRelationshipDataInner { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "authorizationRequest"; @@ -51,14 +52,13 @@ public AuthorizationRequestRelationshipDataInner type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public AuthorizationRequestRelationshipDataInner id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationships.java b/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationships.java index 101e0277..777e1cf9 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationships.java +++ b/src/main/java/unit/java/sdk/model/AuthorizationRequestRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AuthorizationRequestRelationships */ @@ -41,7 +42,7 @@ AuthorizationRequestRelationships.JSON_PROPERTY_FUNDING_ACCOUNT, AuthorizationRequestRelationships.JSON_PROPERTY_CARD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AuthorizationRequestRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -63,14 +64,13 @@ public AuthorizationRequestRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } @@ -88,14 +88,13 @@ public AuthorizationRequestRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -113,14 +112,13 @@ public AuthorizationRequestRelationships fundingAccount(FundingAccountRelationsh return this; } - /** + /** * Get fundingAccount * @return fundingAccount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FUNDING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FundingAccountRelationship getFundingAccount() { return fundingAccount; } @@ -138,14 +136,13 @@ public AuthorizationRequestRelationships card(CardRelationship card) { return this; } - /** + /** * Get card * @return card - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationship getCard() { return card; } diff --git a/src/main/java/unit/java/sdk/model/AuthorizedUser.java b/src/main/java/unit/java/sdk/model/AuthorizedUser.java index 7320f421..7d2896af 100644 --- a/src/main/java/unit/java/sdk/model/AuthorizedUser.java +++ b/src/main/java/unit/java/sdk/model/AuthorizedUser.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * AuthorizedUser */ @@ -43,7 +44,7 @@ AuthorizedUser.JSON_PROPERTY_PHONE, AuthorizedUser.JSON_PROPERTY_JWT_SUBJECT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class AuthorizedUser { public static final String JSON_PROPERTY_FULL_NAME = "fullName"; private FullName fullName; @@ -65,14 +66,13 @@ public AuthorizedUser fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -90,14 +90,13 @@ public AuthorizedUser email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -115,14 +114,13 @@ public AuthorizedUser phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -140,13 +138,12 @@ public AuthorizedUser jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -264,7 +261,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -274,7 +271,7 @@ public String toUrlQueryString(String prefix) { // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BankRepaymentTransaction.java b/src/main/java/unit/java/sdk/model/BankRepaymentTransaction.java index f30a8572..cce41c6b 100644 --- a/src/main/java/unit/java/sdk/model/BankRepaymentTransaction.java +++ b/src/main/java/unit/java/sdk/model/BankRepaymentTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BankRepaymentTransaction */ @@ -42,7 +43,7 @@ BankRepaymentTransaction.JSON_PROPERTY_ATTRIBUTES, BankRepaymentTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BankRepaymentTransaction attributes(BankRepaymentTransactionAllOfAttribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BankRepaymentTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BankRepaymentTransaction relationships(BankRepaymentTransactionRelationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BankRepaymentTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BankRepaymentTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BankRepaymentTransactionAllOfAttributes.java index a0403869..5ea31109 100644 --- a/src/main/java/unit/java/sdk/model/BankRepaymentTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BankRepaymentTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BankRepaymentTransactionAllOfAttributes */ @@ -43,7 +44,7 @@ BankRepaymentTransactionAllOfAttributes.JSON_PROPERTY_PAID_FOR_DATE, BankRepaymentTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BankRepaymentTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -109,14 +110,13 @@ public BankRepaymentTransactionAllOfAttributes createdAt(OffsetDateTime createdA return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -134,14 +134,13 @@ public BankRepaymentTransactionAllOfAttributes direction(DirectionEnum direction return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -159,14 +158,13 @@ public BankRepaymentTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -184,14 +182,13 @@ public BankRepaymentTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -209,14 +206,13 @@ public BankRepaymentTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -234,14 +230,13 @@ public BankRepaymentTransactionAllOfAttributes paidForDate(String paidForDate) { return this; } - /** + /** * Get paidForDate * @return paidForDate - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PAID_FOR_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPaidForDate() { return paidForDate; } @@ -267,14 +262,13 @@ public BankRepaymentTransactionAllOfAttributes putTagsItem(String key, String ta return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -373,32 +367,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `paidForDate` to the URL query string if (getPaidForDate() != null) { - joiner.add(String.format("%spaidForDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPaidForDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spaidForDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPaidForDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -406,7 +400,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/BankRepaymentTransactionRelationships.java b/src/main/java/unit/java/sdk/model/BankRepaymentTransactionRelationships.java index f31372d8..a14e66e3 100644 --- a/src/main/java/unit/java/sdk/model/BankRepaymentTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/BankRepaymentTransactionRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BankRepaymentTransactionRelationships */ @@ -43,7 +44,7 @@ BankRepaymentTransactionRelationships.JSON_PROPERTY_ORG, BankRepaymentTransactionRelationships.JSON_PROPERTY_RECEIVING_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BankRepaymentTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -68,14 +69,13 @@ public BankRepaymentTransactionRelationships account(AccountRelationship account return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public BankRepaymentTransactionRelationships customer(CustomerRelationship custo return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -118,14 +117,13 @@ public BankRepaymentTransactionRelationships customers(CustomersRelationship cus return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -143,14 +141,13 @@ public BankRepaymentTransactionRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrgRelationship getOrg() { return org; } @@ -168,14 +165,13 @@ public BankRepaymentTransactionRelationships receivingAccount(ReceivingAccountRe return this; } - /** + /** * Get receivingAccount * @return receivingAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivingAccountRelationship getReceivingAccount() { return receivingAccount; } diff --git a/src/main/java/unit/java/sdk/model/BaseMonthlySchedule.java b/src/main/java/unit/java/sdk/model/BaseMonthlySchedule.java index 9c9f9e2a..1166efc5 100644 --- a/src/main/java/unit/java/sdk/model/BaseMonthlySchedule.java +++ b/src/main/java/unit/java/sdk/model/BaseMonthlySchedule.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BaseMonthlySchedule */ @@ -39,7 +40,7 @@ BaseMonthlySchedule.JSON_PROPERTY_DAY_OF_WEEK, BaseMonthlySchedule.JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BaseMonthlySchedule { public static final String JSON_PROPERTY_START_TIME = "startTime"; private LocalDate startTime; @@ -109,14 +110,13 @@ public BaseMonthlySchedule startTime(LocalDate startTime) { return this; } - /** + /** * Get startTime * @return startTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getStartTime() { return startTime; } @@ -134,14 +134,13 @@ public BaseMonthlySchedule endTime(LocalDate endTime) { return this; } - /** + /** * Get endTime * @return endTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getEndTime() { return endTime; } @@ -159,16 +158,15 @@ public BaseMonthlySchedule dayOfMonth(Integer dayOfMonth) { return this; } - /** + /** * Get dayOfMonth * minimum: -5 * maximum: 28 * @return dayOfMonth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDayOfMonth() { return dayOfMonth; } @@ -186,14 +184,13 @@ public BaseMonthlySchedule dayOfWeek(DayOfWeekEnum dayOfWeek) { return this; } - /** + /** * Get dayOfWeek * @return dayOfWeek - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DayOfWeekEnum getDayOfWeek() { return dayOfWeek; } @@ -211,15 +208,14 @@ public BaseMonthlySchedule totalNumberOfPayments(Integer totalNumberOfPayments) return this; } - /** + /** * Get totalNumberOfPayments * minimum: 1 * @return totalNumberOfPayments - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotalNumberOfPayments() { return totalNumberOfPayments; } @@ -314,27 +310,27 @@ public String toUrlQueryString(String prefix) { // add `startTime` to the URL query string if (getStartTime() != null) { - joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `endTime` to the URL query string if (getEndTime() != null) { - joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfMonth` to the URL query string if (getDayOfMonth() != null) { - joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfWeek` to the URL query string if (getDayOfWeek() != null) { - joiner.add(String.format("%sdayOfWeek%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfWeek()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfWeek%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfWeek()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `totalNumberOfPayments` to the URL query string if (getTotalNumberOfPayments() != null) { - joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BaseWeeklySchedule.java b/src/main/java/unit/java/sdk/model/BaseWeeklySchedule.java index e79b9bdd..ec201063 100644 --- a/src/main/java/unit/java/sdk/model/BaseWeeklySchedule.java +++ b/src/main/java/unit/java/sdk/model/BaseWeeklySchedule.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BaseWeeklySchedule */ @@ -39,7 +40,7 @@ BaseWeeklySchedule.JSON_PROPERTY_NEXT_SCHEDULED_ACTION, BaseWeeklySchedule.JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BaseWeeklySchedule { public static final String JSON_PROPERTY_START_TIME = "startTime"; private LocalDate startTime; @@ -64,14 +65,13 @@ public BaseWeeklySchedule startTime(LocalDate startTime) { return this; } - /** + /** * Get startTime * @return startTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getStartTime() { return startTime; } @@ -89,14 +89,13 @@ public BaseWeeklySchedule endTime(LocalDate endTime) { return this; } - /** + /** * Get endTime * @return endTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getEndTime() { return endTime; } @@ -114,16 +113,15 @@ public BaseWeeklySchedule dayOfMonth(Integer dayOfMonth) { return this; } - /** + /** * Get dayOfMonth * minimum: -5 * maximum: 28 * @return dayOfMonth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDayOfMonth() { return dayOfMonth; } @@ -141,14 +139,13 @@ public BaseWeeklySchedule nextScheduledAction(LocalDate nextScheduledAction) { return this; } - /** + /** * Get nextScheduledAction * @return nextScheduledAction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NEXT_SCHEDULED_ACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getNextScheduledAction() { return nextScheduledAction; } @@ -166,15 +163,14 @@ public BaseWeeklySchedule totalNumberOfPayments(Integer totalNumberOfPayments) { return this; } - /** + /** * Get totalNumberOfPayments * minimum: 1 * @return totalNumberOfPayments - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotalNumberOfPayments() { return totalNumberOfPayments; } @@ -269,27 +265,27 @@ public String toUrlQueryString(String prefix) { // add `startTime` to the URL query string if (getStartTime() != null) { - joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `endTime` to the URL query string if (getEndTime() != null) { - joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfMonth` to the URL query string if (getDayOfMonth() != null) { - joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nextScheduledAction` to the URL query string if (getNextScheduledAction() != null) { - joiner.add(String.format("%snextScheduledAction%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNextScheduledAction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snextScheduledAction%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNextScheduledAction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `totalNumberOfPayments` to the URL query string if (getTotalNumberOfPayments() != null) { - joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BeneficialOwner.java b/src/main/java/unit/java/sdk/model/BeneficialOwner.java index 01f4c5da..4fd62205 100644 --- a/src/main/java/unit/java/sdk/model/BeneficialOwner.java +++ b/src/main/java/unit/java/sdk/model/BeneficialOwner.java @@ -37,6 +37,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BeneficialOwner */ @@ -63,7 +64,7 @@ BeneficialOwner.JSON_PROPERTY_ANNUAL_INCOME, BeneficialOwner.JSON_PROPERTY_SOURCE_OF_INCOME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BeneficialOwner { public static final String JSON_PROPERTY_STATUS = "status"; private String status; @@ -136,14 +137,13 @@ public BeneficialOwner status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { return status; } @@ -161,14 +161,13 @@ public BeneficialOwner fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FullName getFullName() { return fullName; } @@ -186,14 +185,13 @@ public BeneficialOwner email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -211,14 +209,13 @@ public BeneficialOwner phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -236,14 +233,13 @@ public BeneficialOwner ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -261,14 +257,13 @@ public BeneficialOwner passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -286,14 +281,13 @@ public BeneficialOwner nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -311,14 +305,13 @@ public BeneficialOwner matriculaConsular(String matriculaConsular) { return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -336,14 +329,13 @@ public BeneficialOwner address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -361,14 +353,13 @@ public BeneficialOwner dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -386,14 +377,13 @@ public BeneficialOwner evaluationId(String evaluationId) { return this; } - /** + /** * Get evaluationId * @return evaluationId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationId() { return evaluationId; } @@ -411,16 +401,15 @@ public BeneficialOwner percentage(Integer percentage) { return this; } - /** + /** * Get percentage * minimum: 0 * maximum: 100 * @return percentage - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getPercentage() { return percentage; } @@ -446,14 +435,13 @@ public BeneficialOwner addEvaluationFlagsItem(String evaluationFlagsItem) { return this; } - /** + /** * Get evaluationFlags * @return evaluationFlags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEvaluationFlags() { return evaluationFlags; } @@ -471,14 +459,13 @@ public BeneficialOwner maskedSSN(String maskedSSN) { return this; } - /** + /** * Get maskedSSN * @return maskedSSN - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_S_S_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedSSN() { return maskedSSN; } @@ -496,14 +483,13 @@ public BeneficialOwner maskedPassport(String maskedPassport) { return this; } - /** + /** * Get maskedPassport * @return maskedPassport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedPassport() { return maskedPassport; } @@ -521,14 +507,13 @@ public BeneficialOwner maskedMatriculaConsular(String maskedMatriculaConsular) { return this; } - /** + /** * Get maskedMatriculaConsular * @return maskedMatriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedMatriculaConsular() { return maskedMatriculaConsular; } @@ -546,14 +531,13 @@ public BeneficialOwner idTheftScore(Integer idTheftScore) { return this; } - /** + /** * Get idTheftScore * @return idTheftScore - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID_THEFT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getIdTheftScore() { return idTheftScore; } @@ -579,14 +563,13 @@ public BeneficialOwner addEvaluationCodesItem(String evaluationCodesItem) { return this; } - /** + /** * Get evaluationCodes * @return evaluationCodes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_CODES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEvaluationCodes() { return evaluationCodes; } @@ -604,14 +587,13 @@ public BeneficialOwner occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -629,14 +611,13 @@ public BeneficialOwner annualIncome(AnnualIncome annualIncome) { return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -654,14 +635,13 @@ public BeneficialOwner sourceOfIncome(SourceOfIncome sourceOfIncome) { return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -788,7 +768,7 @@ public String toUrlQueryString(String prefix) { // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fullName` to the URL query string @@ -798,7 +778,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -808,22 +788,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -833,17 +813,17 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationId` to the URL query string if (getEvaluationId() != null) { - joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `percentage` to the URL query string if (getPercentage() != null) { - joiner.add(String.format("%spercentage%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPercentage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spercentage%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPercentage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationFlags` to the URL query string @@ -851,28 +831,28 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getEvaluationFlags().size(); i++) { joiner.add(String.format("%sevaluationFlags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `maskedSSN` to the URL query string if (getMaskedSSN() != null) { - joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedPassport` to the URL query string if (getMaskedPassport() != null) { - joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedMatriculaConsular` to the URL query string if (getMaskedMatriculaConsular() != null) { - joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idTheftScore` to the URL query string if (getIdTheftScore() != null) { - joiner.add(String.format("%sidTheftScore%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdTheftScore()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidTheftScore%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdTheftScore()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationCodes` to the URL query string @@ -880,23 +860,23 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getEvaluationCodes().size(); i++) { joiner.add(String.format("%sevaluationCodes%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getEvaluationCodes().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getEvaluationCodes().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BeneficialOwnersRelationship.java b/src/main/java/unit/java/sdk/model/BeneficialOwnersRelationship.java index 3a193efa..c93ded53 100644 --- a/src/main/java/unit/java/sdk/model/BeneficialOwnersRelationship.java +++ b/src/main/java/unit/java/sdk/model/BeneficialOwnersRelationship.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BeneficialOwnersRelationship */ @JsonPropertyOrder({ BeneficialOwnersRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BeneficialOwnersRelationship { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public BeneficialOwnersRelationship addDataItem(BeneficialOwnersRelationshipData return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/BeneficialOwnersRelationshipDataInner.java b/src/main/java/unit/java/sdk/model/BeneficialOwnersRelationshipDataInner.java index f79ae16a..1be24e5b 100644 --- a/src/main/java/unit/java/sdk/model/BeneficialOwnersRelationshipDataInner.java +++ b/src/main/java/unit/java/sdk/model/BeneficialOwnersRelationshipDataInner.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BeneficialOwnersRelationshipDataInner */ @@ -35,7 +36,7 @@ BeneficialOwnersRelationshipDataInner.JSON_PROPERTY_TYPE, BeneficialOwnersRelationshipDataInner.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BeneficialOwnersRelationshipDataInner { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "beneficialOwner"; @@ -51,14 +52,13 @@ public BeneficialOwnersRelationshipDataInner type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public BeneficialOwnersRelationshipDataInner id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Bin.java b/src/main/java/unit/java/sdk/model/Bin.java index f9231ef0..4e1bfe76 100644 --- a/src/main/java/unit/java/sdk/model/Bin.java +++ b/src/main/java/unit/java/sdk/model/Bin.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Bin */ @@ -35,7 +36,7 @@ Bin.JSON_PROPERTY_BIN, Bin.JSON_PROPERTY_INSTITUTION_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Bin { public static final String JSON_PROPERTY_BIN = "bin"; private String bin; @@ -51,14 +52,13 @@ public Bin bin(String bin) { return this; } - /** + /** * Get bin * @return bin - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBin() { return bin; } @@ -76,14 +76,13 @@ public Bin institutionId(String institutionId) { return this; } - /** + /** * Get institutionId * @return institutionId - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INSTITUTION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getInstitutionId() { return institutionId; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `bin` to the URL query string if (getBin() != null) { - joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `institutionId` to the URL query string if (getInstitutionId() != null) { - joiner.add(String.format("%sinstitutionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInstitutionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinstitutionId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInstitutionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BookPayment.java b/src/main/java/unit/java/sdk/model/BookPayment.java index a645c535..246579e8 100644 --- a/src/main/java/unit/java/sdk/model/BookPayment.java +++ b/src/main/java/unit/java/sdk/model/BookPayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BookPayment */ @@ -42,7 +43,7 @@ BookPayment.JSON_PROPERTY_ATTRIBUTES, BookPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BookPayment attributes(BookPaymentAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BookPaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BookPayment relationships(BookPaymentRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BookPaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BookPaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BookPaymentAllOfAttributes.java index 0fb63fb3..0d509ff0 100644 --- a/src/main/java/unit/java/sdk/model/BookPaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BookPaymentAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BookPaymentAllOfAttributes */ @@ -44,7 +45,7 @@ BookPaymentAllOfAttributes.JSON_PROPERTY_REASON, BookPaymentAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BookPaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -156,14 +157,13 @@ public BookPaymentAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -181,15 +181,14 @@ public BookPaymentAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -207,14 +206,13 @@ public BookPaymentAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -232,14 +230,13 @@ public BookPaymentAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -257,14 +254,13 @@ public BookPaymentAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -282,14 +278,13 @@ public BookPaymentAllOfAttributes transactionSummaryOverride(String transactionS return this; } - /** + /** * Get transactionSummaryOverride * @return transactionSummaryOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionSummaryOverride() { return transactionSummaryOverride; } @@ -307,14 +302,13 @@ public BookPaymentAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReason() { return reason; } @@ -340,14 +334,13 @@ public BookPaymentAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -448,37 +441,37 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `transactionSummaryOverride` to the URL query string if (getTransactionSummaryOverride() != null) { - joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -486,7 +479,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/BookPaymentRelationships.java b/src/main/java/unit/java/sdk/model/BookPaymentRelationships.java index a4d979d6..81011b48 100644 --- a/src/main/java/unit/java/sdk/model/BookPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/BookPaymentRelationships.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BookPaymentRelationships */ @@ -48,7 +49,7 @@ BookPaymentRelationships.JSON_PROPERTY_TRANSACTION, BookPaymentRelationships.JSON_PROPERTY_RECURRING_PAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BookPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -79,14 +80,13 @@ public BookPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -104,14 +104,13 @@ public BookPaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -129,14 +128,13 @@ public BookPaymentRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -154,14 +152,13 @@ public BookPaymentRelationships counterpartyAccount(CounterpartyAccountRelations return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } @@ -179,14 +176,13 @@ public BookPaymentRelationships counterpartyCustomer(CounterpartyCustomerRelatio return this; } - /** + /** * Get counterpartyCustomer * @return counterpartyCustomer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyCustomerRelationship getCounterpartyCustomer() { return counterpartyCustomer; } @@ -204,14 +200,13 @@ public BookPaymentRelationships transaction(TransactionRelationship transaction) return this; } - /** + /** * Get transaction * @return transaction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRANSACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TransactionRelationship getTransaction() { return transaction; } @@ -229,14 +224,13 @@ public BookPaymentRelationships recurringPayment(RecurringPaymentRelationship re return this; } - /** + /** * Get recurringPayment * @return recurringPayment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringPaymentRelationship getRecurringPayment() { return recurringPayment; } diff --git a/src/main/java/unit/java/sdk/model/BookRepayment.java b/src/main/java/unit/java/sdk/model/BookRepayment.java index 13e807d6..6e6a7143 100644 --- a/src/main/java/unit/java/sdk/model/BookRepayment.java +++ b/src/main/java/unit/java/sdk/model/BookRepayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BookRepayment */ @@ -42,7 +43,7 @@ BookRepayment.JSON_PROPERTY_ATTRIBUTES, BookRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BookRepayment attributes(BookRepaymentAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BookRepaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BookRepayment relationships(BookRepaymentRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BookRepaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BookRepaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BookRepaymentAllOfAttributes.java index 3e8a703b..cb2ceaa0 100644 --- a/src/main/java/unit/java/sdk/model/BookRepaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BookRepaymentAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BookRepaymentAllOfAttributes */ @@ -42,7 +43,7 @@ BookRepaymentAllOfAttributes.JSON_PROPERTY_STATUS, BookRepaymentAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BookRepaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private String createdAt; @@ -67,14 +68,13 @@ public BookRepaymentAllOfAttributes createdAt(String createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCreatedAt() { return createdAt; } @@ -92,14 +92,13 @@ public BookRepaymentAllOfAttributes updatedAt(String updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUpdatedAt() { return updatedAt; } @@ -117,14 +116,13 @@ public BookRepaymentAllOfAttributes amount(BigDecimal amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getAmount() { return amount; } @@ -142,14 +140,13 @@ public BookRepaymentAllOfAttributes status(BookRepaymentStatus status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BookRepaymentStatus getStatus() { return status; } @@ -175,14 +172,13 @@ public BookRepaymentAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -277,22 +273,22 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -300,7 +296,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/BookRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/BookRepaymentRelationships.java index f7dc211d..2dc1f1fc 100644 --- a/src/main/java/unit/java/sdk/model/BookRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/BookRepaymentRelationships.java @@ -35,6 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BookRepaymentRelationships */ @@ -47,7 +48,7 @@ BookRepaymentRelationships.JSON_PROPERTY_PAYMENT, BookRepaymentRelationships.JSON_PROPERTY_RECURRING_REPAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BookRepaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -78,14 +79,13 @@ public BookRepaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -103,14 +103,13 @@ public BookRepaymentRelationships creditAccount(CreditAccountRelationship credit return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -128,14 +127,13 @@ public BookRepaymentRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationship getOrg() { return org; } @@ -153,14 +151,13 @@ public BookRepaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -178,14 +175,13 @@ public BookRepaymentRelationships counterpartyAccount(CounterpartyAccountRelatio return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } @@ -203,14 +199,13 @@ public BookRepaymentRelationships payment(PaymentRelationship payment) { return this; } - /** + /** * Get payment * @return payment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentRelationship getPayment() { return payment; } @@ -228,14 +223,13 @@ public BookRepaymentRelationships recurringRepayment(RecurringRepaymentRelations return this; } - /** + /** * Get recurringRepayment * @return recurringRepayment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationship getRecurringRepayment() { return recurringRepayment; } diff --git a/src/main/java/unit/java/sdk/model/BookTransaction.java b/src/main/java/unit/java/sdk/model/BookTransaction.java index 332013c8..3fcc2917 100644 --- a/src/main/java/unit/java/sdk/model/BookTransaction.java +++ b/src/main/java/unit/java/sdk/model/BookTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BookTransaction */ @@ -42,7 +43,7 @@ BookTransaction.JSON_PROPERTY_ATTRIBUTES, BookTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BookTransaction attributes(BookTransactionAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BookTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BookTransaction relationships(BookTransactionRelationships relationships) return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BookTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BookTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BookTransactionAllOfAttributes.java index 2a77c5d0..e23b8777 100644 --- a/src/main/java/unit/java/sdk/model/BookTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BookTransactionAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BookTransactionAllOfAttributes */ @@ -44,7 +45,7 @@ BookTransactionAllOfAttributes.JSON_PROPERTY_COUNTERPARTY, BookTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BookTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -110,14 +111,13 @@ public BookTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -135,14 +135,13 @@ public BookTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -160,14 +159,13 @@ public BookTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -185,14 +183,13 @@ public BookTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -210,14 +207,13 @@ public BookTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -235,14 +231,13 @@ public BookTransactionAllOfAttributes counterparty(PaymentCounterparty counterpa return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentCounterparty getCounterparty() { return counterparty; } @@ -268,14 +263,13 @@ public BookTransactionAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -374,27 +368,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -407,7 +401,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/BookTransactionRelationships.java b/src/main/java/unit/java/sdk/model/BookTransactionRelationships.java index 1157fa19..78d909df 100644 --- a/src/main/java/unit/java/sdk/model/BookTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/BookTransactionRelationships.java @@ -35,6 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BookTransactionRelationships */ @@ -47,7 +48,7 @@ BookTransactionRelationships.JSON_PROPERTY_PAYMENT, BookTransactionRelationships.JSON_PROPERTY_RECURRING_PAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BookTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -78,14 +79,13 @@ public BookTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -103,14 +103,13 @@ public BookTransactionRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -128,14 +127,13 @@ public BookTransactionRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -153,14 +151,13 @@ public BookTransactionRelationships counterpartyAccount(CounterpartyAccountRelat return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } @@ -178,14 +175,13 @@ public BookTransactionRelationships counterpartyCustomer(CounterpartyCustomerRel return this; } - /** + /** * Get counterpartyCustomer * @return counterpartyCustomer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyCustomerRelationship getCounterpartyCustomer() { return counterpartyCustomer; } @@ -203,14 +199,13 @@ public BookTransactionRelationships payment(PaymentRelationship payment) { return this; } - /** + /** * Get payment * @return payment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaymentRelationship getPayment() { return payment; } @@ -228,14 +223,13 @@ public BookTransactionRelationships recurringPayment(RecurringPaymentRelationshi return this; } - /** + /** * Get recurringPayment * @return recurringPayment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringPaymentRelationship getRecurringPayment() { return recurringPayment; } diff --git a/src/main/java/unit/java/sdk/model/BusinessAnnualRevenue.java b/src/main/java/unit/java/sdk/model/BusinessAnnualRevenue.java index e5adcafb..f4b7742f 100644 --- a/src/main/java/unit/java/sdk/model/BusinessAnnualRevenue.java +++ b/src/main/java/unit/java/sdk/model/BusinessAnnualRevenue.java @@ -30,13 +30,13 @@ */ public enum BusinessAnnualRevenue { - UPTO250K("UpTo250k"), + UP_TO250K("UpTo250k"), - BETWEEN250KAND500K("Between250kAnd500k"), + BETWEEN250K_AND500K("Between250kAnd500k"), - BETWEEN500KAND1M("Between500kAnd1m"), + BETWEEN500K_AND1M("Between500kAnd1m"), - BETWEEN1MAND5M("Between1mAnd5m"), + BETWEEN1M_AND5M("Between1mAnd5m"), OVER5M("Over5m"); diff --git a/src/main/java/unit/java/sdk/model/BusinessApplication.java b/src/main/java/unit/java/sdk/model/BusinessApplication.java index 07799c98..33147886 100644 --- a/src/main/java/unit/java/sdk/model/BusinessApplication.java +++ b/src/main/java/unit/java/sdk/model/BusinessApplication.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BusinessApplication */ @@ -42,7 +43,7 @@ BusinessApplication.JSON_PROPERTY_ATTRIBUTES, BusinessApplication.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BusinessApplication attributes(BusinessApplicationAllOfAttributes attribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BusinessApplicationAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BusinessApplication relationships(BusinessApplicationRelationships relati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessApplicationRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BusinessApplicationAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BusinessApplicationAllOfAttributes.java index 572cef18..a90959e6 100644 --- a/src/main/java/unit/java/sdk/model/BusinessApplicationAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BusinessApplicationAllOfAttributes.java @@ -50,6 +50,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BusinessApplicationAllOfAttributes */ @@ -94,7 +95,7 @@ BusinessApplicationAllOfAttributes.JSON_PROPERTY_STOCK_SYMBOL, BusinessApplicationAllOfAttributes.JSON_PROPERTY_BUSINESS_VERTICAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BusinessApplicationAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -293,14 +294,13 @@ public BusinessApplicationAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -318,14 +318,13 @@ public BusinessApplicationAllOfAttributes updatedAt(OffsetDateTime updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -343,14 +342,13 @@ public BusinessApplicationAllOfAttributes status(ApplicationStatus status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ApplicationStatus getStatus() { return status; } @@ -368,14 +366,13 @@ public BusinessApplicationAllOfAttributes message(String message) { return this; } - /** + /** * Get message * @return message - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { return message; } @@ -393,14 +390,13 @@ public BusinessApplicationAllOfAttributes evaluationOutcome(String evaluationOut return this; } - /** + /** * Get evaluationOutcome * @return evaluationOutcome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_OUTCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationOutcome() { return evaluationOutcome; } @@ -418,14 +414,13 @@ public BusinessApplicationAllOfAttributes evaluationId(String evaluationId) { return this; } - /** + /** * Get evaluationId * @return evaluationId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationId() { return evaluationId; } @@ -443,14 +438,13 @@ public BusinessApplicationAllOfAttributes evaluationEntityId(String evaluationEn return this; } - /** + /** * Get evaluationEntityId * @return evaluationEntityId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationEntityId() { return evaluationEntityId; } @@ -468,14 +462,13 @@ public BusinessApplicationAllOfAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -493,13 +486,12 @@ public BusinessApplicationAllOfAttributes dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getDba() { return dba.orElse(null); } @@ -526,14 +518,13 @@ public BusinessApplicationAllOfAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEin() { return ein; } @@ -551,14 +542,13 @@ public BusinessApplicationAllOfAttributes entityType(EntityType entityType) { return this; } - /** + /** * Get entityType * @return entityType - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EntityType getEntityType() { return entityType; } @@ -576,14 +566,13 @@ public BusinessApplicationAllOfAttributes dateOfIncorporation(LocalDate dateOfIn return this; } - /** + /** * Get dateOfIncorporation * @return dateOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfIncorporation() { return dateOfIncorporation; } @@ -601,14 +590,13 @@ public BusinessApplicationAllOfAttributes stateOfIncorporation(String stateOfInc return this; } - /** + /** * Get stateOfIncorporation * @return stateOfIncorporation - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStateOfIncorporation() { return stateOfIncorporation; } @@ -626,14 +614,13 @@ public BusinessApplicationAllOfAttributes purpose(String purpose) { return this; } - /** + /** * Get purpose * @return purpose - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PURPOSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPurpose() { return purpose; } @@ -651,14 +638,13 @@ public BusinessApplicationAllOfAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -676,14 +662,13 @@ public BusinessApplicationAllOfAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -701,14 +686,13 @@ public BusinessApplicationAllOfAttributes contact(Contact contact) { return this; } - /** + /** * Get contact * @return contact - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Contact getContact() { return contact; } @@ -726,14 +710,13 @@ public BusinessApplicationAllOfAttributes officer(Officer officer) { return this; } - /** + /** * Get officer * @return officer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_OFFICER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Officer getOfficer() { return officer; } @@ -751,14 +734,13 @@ public BusinessApplicationAllOfAttributes ip(String ip) { return this; } - /** + /** * Get ip * @return ip - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIp() { return ip; } @@ -776,14 +758,13 @@ public BusinessApplicationAllOfAttributes website(String website) { return this; } - /** + /** * Get website * @return website - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWebsite() { return website; } @@ -809,14 +790,13 @@ public BusinessApplicationAllOfAttributes addBeneficialOwnersItem(BeneficialOwne return this; } - /** + /** * Get beneficialOwners * @return beneficialOwners - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BENEFICIAL_OWNERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getBeneficialOwners() { return beneficialOwners; } @@ -834,14 +814,13 @@ public BusinessApplicationAllOfAttributes decisionMethod(DecisionMethodEnum deci return this; } - /** + /** * Get decisionMethod * @return decisionMethod - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DecisionMethodEnum getDecisionMethod() { return decisionMethod; } @@ -859,14 +838,13 @@ public BusinessApplicationAllOfAttributes decisionUserId(String decisionUserId) return this; } - /** + /** * Get decisionUserId * @return decisionUserId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDecisionUserId() { return decisionUserId; } @@ -884,14 +862,13 @@ public BusinessApplicationAllOfAttributes decisionReason(String decisionReason) return this; } - /** + /** * Get decisionReason * @return decisionReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDecisionReason() { return decisionReason; } @@ -909,14 +886,13 @@ public BusinessApplicationAllOfAttributes decisionDateTime(OffsetDateTime decisi return this; } - /** + /** * Get decisionDateTime * @return decisionDateTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getDecisionDateTime() { return decisionDateTime; } @@ -942,14 +918,13 @@ public BusinessApplicationAllOfAttributes putTagsItem(String key, String tagsIte return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -967,14 +942,13 @@ public BusinessApplicationAllOfAttributes riskRate(RiskRateEnum riskRate) { return this; } - /** + /** * Get riskRate * @return riskRate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RISK_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RiskRateEnum getRiskRate() { return riskRate; } @@ -1000,14 +974,13 @@ public BusinessApplicationAllOfAttributes addEvaluationFlagsItem(String evaluati return this; } - /** + /** * Get evaluationFlags * @return evaluationFlags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEvaluationFlags() { return evaluationFlags; } @@ -1025,14 +998,13 @@ public BusinessApplicationAllOfAttributes ipLocationDetails(Object ipLocationDet return this; } - /** + /** * Get ipLocationDetails * @return ipLocationDetails - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IP_LOCATION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getIpLocationDetails() { return ipLocationDetails; } @@ -1050,14 +1022,13 @@ public BusinessApplicationAllOfAttributes phoneLocationDetails(Object phoneLocat return this; } - /** + /** * Get phoneLocationDetails * @return phoneLocationDetails - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE_LOCATION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getPhoneLocationDetails() { return phoneLocationDetails; } @@ -1075,14 +1046,13 @@ public BusinessApplicationAllOfAttributes archived(Boolean archived) { return this; } - /** + /** * Get archived * @return archived - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARCHIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getArchived() { return archived; } @@ -1100,14 +1070,13 @@ public BusinessApplicationAllOfAttributes industry(Industry industry) { return this; } - /** + /** * Get industry * @return industry - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Industry getIndustry() { return industry; } @@ -1125,14 +1094,13 @@ public BusinessApplicationAllOfAttributes annualRevenue(BusinessAnnualRevenue an return this; } - /** + /** * Get annualRevenue * @return annualRevenue - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_REVENUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessAnnualRevenue getAnnualRevenue() { return annualRevenue; } @@ -1150,14 +1118,13 @@ public BusinessApplicationAllOfAttributes numberOfEmployees(BusinessNumberOfEmpl return this; } - /** + /** * Get numberOfEmployees * @return numberOfEmployees - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessNumberOfEmployees getNumberOfEmployees() { return numberOfEmployees; } @@ -1175,14 +1142,13 @@ public BusinessApplicationAllOfAttributes cashFlow(CashFlow cashFlow) { return this; } - /** + /** * Get cashFlow * @return cashFlow - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CASH_FLOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CashFlow getCashFlow() { return cashFlow; } @@ -1200,14 +1166,13 @@ public BusinessApplicationAllOfAttributes yearOfIncorporation(String yearOfIncor return this; } - /** + /** * Get yearOfIncorporation * @return yearOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_YEAR_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getYearOfIncorporation() { return yearOfIncorporation; } @@ -1233,14 +1198,13 @@ public BusinessApplicationAllOfAttributes addCountriesOfOperationItem(String cou return this; } - /** + /** * Get countriesOfOperation * @return countriesOfOperation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTRIES_OF_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCountriesOfOperation() { return countriesOfOperation; } @@ -1258,14 +1222,13 @@ public BusinessApplicationAllOfAttributes stockSymbol(String stockSymbol) { return this; } - /** + /** * Get stockSymbol * @return stockSymbol - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STOCK_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStockSymbol() { return stockSymbol; } @@ -1283,14 +1246,13 @@ public BusinessApplicationAllOfAttributes businessVertical(BusinessVertical busi return this; } - /** + /** * Get businessVertical * @return businessVertical - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUSINESS_VERTICAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessVertical getBusinessVertical() { return businessVertical; } @@ -1464,72 +1426,72 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `message` to the URL query string if (getMessage() != null) { - joiner.add(String.format("%smessage%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smessage%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMessage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationOutcome` to the URL query string if (getEvaluationOutcome() != null) { - joiner.add(String.format("%sevaluationOutcome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationOutcome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationOutcome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationOutcome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationId` to the URL query string if (getEvaluationId() != null) { - joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationEntityId` to the URL query string if (getEvaluationEntityId() != null) { - joiner.add(String.format("%sevaluationEntityId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationEntityId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationEntityId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationEntityId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `entityType` to the URL query string if (getEntityType() != null) { - joiner.add(String.format("%sentityType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sentityType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfIncorporation` to the URL query string if (getDateOfIncorporation() != null) { - joiner.add(String.format("%sdateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `stateOfIncorporation` to the URL query string if (getStateOfIncorporation() != null) { - joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `purpose` to the URL query string if (getPurpose() != null) { - joiner.add(String.format("%spurpose%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPurpose()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spurpose%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPurpose()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -1554,12 +1516,12 @@ public String toUrlQueryString(String prefix) { // add `ip` to the URL query string if (getIp() != null) { - joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `website` to the URL query string if (getWebsite() != null) { - joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `beneficialOwners` to the URL query string @@ -1574,22 +1536,22 @@ public String toUrlQueryString(String prefix) { // add `decisionMethod` to the URL query string if (getDecisionMethod() != null) { - joiner.add(String.format("%sdecisionMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `decisionUserId` to the URL query string if (getDecisionUserId() != null) { - joiner.add(String.format("%sdecisionUserId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionUserId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionUserId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionUserId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `decisionReason` to the URL query string if (getDecisionReason() != null) { - joiner.add(String.format("%sdecisionReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `decisionDateTime` to the URL query string if (getDecisionDateTime() != null) { - joiner.add(String.format("%sdecisionDateTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionDateTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionDateTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionDateTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -1597,13 +1559,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `riskRate` to the URL query string if (getRiskRate() != null) { - joiner.add(String.format("%sriskRate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRiskRate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sriskRate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRiskRate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationFlags` to the URL query string @@ -1611,48 +1573,48 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getEvaluationFlags().size(); i++) { joiner.add(String.format("%sevaluationFlags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `ipLocationDetails` to the URL query string if (getIpLocationDetails() != null) { - joiner.add(String.format("%sipLocationDetails%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIpLocationDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sipLocationDetails%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIpLocationDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phoneLocationDetails` to the URL query string if (getPhoneLocationDetails() != null) { - joiner.add(String.format("%sphoneLocationDetails%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPhoneLocationDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sphoneLocationDetails%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPhoneLocationDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `archived` to the URL query string if (getArchived() != null) { - joiner.add(String.format("%sarchived%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getArchived()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sarchived%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getArchived()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `industry` to the URL query string if (getIndustry() != null) { - joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualRevenue` to the URL query string if (getAnnualRevenue() != null) { - joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `numberOfEmployees` to the URL query string if (getNumberOfEmployees() != null) { - joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cashFlow` to the URL query string if (getCashFlow() != null) { - joiner.add(String.format("%scashFlow%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCashFlow()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scashFlow%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCashFlow()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `yearOfIncorporation` to the URL query string if (getYearOfIncorporation() != null) { - joiner.add(String.format("%syearOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getYearOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%syearOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getYearOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `countriesOfOperation` to the URL query string @@ -1660,18 +1622,18 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getCountriesOfOperation().size(); i++) { joiner.add(String.format("%scountriesOfOperation%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getCountriesOfOperation().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getCountriesOfOperation().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `stockSymbol` to the URL query string if (getStockSymbol() != null) { - joiner.add(String.format("%sstockSymbol%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStockSymbol()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstockSymbol%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStockSymbol()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessVertical` to the URL query string if (getBusinessVertical() != null) { - joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BusinessApplicationRelationships.java b/src/main/java/unit/java/sdk/model/BusinessApplicationRelationships.java index 23867d21..1e129365 100644 --- a/src/main/java/unit/java/sdk/model/BusinessApplicationRelationships.java +++ b/src/main/java/unit/java/sdk/model/BusinessApplicationRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BusinessApplicationRelationships */ @@ -43,7 +44,7 @@ BusinessApplicationRelationships.JSON_PROPERTY_ORG, BusinessApplicationRelationships.JSON_PROPERTY_APPLICATION_FORM }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BusinessApplicationRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -68,14 +69,13 @@ public BusinessApplicationRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -93,14 +93,13 @@ public BusinessApplicationRelationships documents(DocumentsRelationship document return this; } - /** + /** * Get documents * @return documents - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DocumentsRelationship getDocuments() { return documents; } @@ -118,14 +117,13 @@ public BusinessApplicationRelationships beneficialOwners(BeneficialOwnersRelatio return this; } - /** + /** * Get beneficialOwners * @return beneficialOwners - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BENEFICIAL_OWNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BeneficialOwnersRelationship getBeneficialOwners() { return beneficialOwners; } @@ -143,14 +141,13 @@ public BusinessApplicationRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrgRelationship getOrg() { return org; } @@ -168,14 +165,13 @@ public BusinessApplicationRelationships applicationForm(Relationship application return this; } - /** + /** * Get applicationForm * @return applicationForm - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPLICATION_FORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Relationship getApplicationForm() { return applicationForm; } diff --git a/src/main/java/unit/java/sdk/model/BusinessCreditCard.java b/src/main/java/unit/java/sdk/model/BusinessCreditCard.java index e4f1faf5..cb974319 100644 --- a/src/main/java/unit/java/sdk/model/BusinessCreditCard.java +++ b/src/main/java/unit/java/sdk/model/BusinessCreditCard.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BusinessCreditCard */ @@ -42,7 +43,7 @@ BusinessCreditCard.JSON_PROPERTY_ATTRIBUTES, BusinessCreditCard.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BusinessCreditCard attributes(BusinessDebitCardAllOfAttributes attributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BusinessDebitCardAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BusinessCreditCard relationships(CardRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BusinessCustomer.java b/src/main/java/unit/java/sdk/model/BusinessCustomer.java index d9b6e819..55075e33 100644 --- a/src/main/java/unit/java/sdk/model/BusinessCustomer.java +++ b/src/main/java/unit/java/sdk/model/BusinessCustomer.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BusinessCustomer */ @@ -42,7 +43,7 @@ BusinessCustomer.JSON_PROPERTY_ATTRIBUTES, BusinessCustomer.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BusinessCustomer attributes(BusinessCustomerAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessCustomerAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BusinessCustomer relationships(CustomerRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BusinessCustomerAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BusinessCustomerAllOfAttributes.java index 28f7683b..9f5bcf40 100644 --- a/src/main/java/unit/java/sdk/model/BusinessCustomerAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BusinessCustomerAllOfAttributes.java @@ -39,6 +39,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BusinessCustomerAllOfAttributes */ @@ -60,7 +61,7 @@ BusinessCustomerAllOfAttributes.JSON_PROPERTY_STATUS, BusinessCustomerAllOfAttributes.JSON_PROPERTY_ARCHIVE_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BusinessCustomerAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -185,19 +186,19 @@ public static StatusEnum fromValue(String value) { public enum ArchiveReasonEnum { INACTIVE("Inactive"), - FRAUDACHACTIVITY("FraudACHActivity"), + FRAUD_ACH_ACTIVITY("FraudACHActivity"), - FRAUDCARDACTIVITY("FraudCardActivity"), + FRAUD_CARD_ACTIVITY("FraudCardActivity"), - FRAUDCHECKACTIVITY("FraudCheckActivity"), + FRAUD_CHECK_ACTIVITY("FraudCheckActivity"), - FRAUDAPPLICATIONHISTORY("FraudApplicationHistory"), + FRAUD_APPLICATION_HISTORY("FraudApplicationHistory"), - FRAUDACCOUNTACTIVITY("FraudAccountActivity"), + FRAUD_ACCOUNT_ACTIVITY("FraudAccountActivity"), - FRAUDCLIENTIDENTIFIED("FraudClientIdentified"), + FRAUD_CLIENT_IDENTIFIED("FraudClientIdentified"), - FRAUDLINKEDTOFRAUDULENTCUSTOMER("FraudLinkedToFraudulentCustomer"); + FRAUD_LINKED_TO_FRAUDULENT_CUSTOMER("FraudLinkedToFraudulentCustomer"); private String value; @@ -237,14 +238,13 @@ public BusinessCustomerAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -262,14 +262,13 @@ public BusinessCustomerAllOfAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -287,14 +286,13 @@ public BusinessCustomerAllOfAttributes dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DBA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDba() { return dba; } @@ -312,14 +310,13 @@ public BusinessCustomerAllOfAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEin() { return ein; } @@ -337,14 +334,13 @@ public BusinessCustomerAllOfAttributes entityType(EntityType entityType) { return this; } - /** + /** * Get entityType * @return entityType - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EntityType getEntityType() { return entityType; } @@ -362,14 +358,13 @@ public BusinessCustomerAllOfAttributes dateOfIncorporation(LocalDate dateOfIncor return this; } - /** + /** * Get dateOfIncorporation * @return dateOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfIncorporation() { return dateOfIncorporation; } @@ -387,14 +382,13 @@ public BusinessCustomerAllOfAttributes stateOfIncorporation(String stateOfIncorp return this; } - /** + /** * Get stateOfIncorporation * @return stateOfIncorporation - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStateOfIncorporation() { return stateOfIncorporation; } @@ -412,14 +406,13 @@ public BusinessCustomerAllOfAttributes purpose(String purpose) { return this; } - /** + /** * Get purpose * @return purpose - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PURPOSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPurpose() { return purpose; } @@ -437,14 +430,13 @@ public BusinessCustomerAllOfAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -462,14 +454,13 @@ public BusinessCustomerAllOfAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -487,14 +478,13 @@ public BusinessCustomerAllOfAttributes contact(Contact contact) { return this; } - /** + /** * Get contact * @return contact - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Contact getContact() { return contact; } @@ -520,14 +510,13 @@ public BusinessCustomerAllOfAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -545,14 +534,13 @@ public BusinessCustomerAllOfAttributes riskRate(RiskRateEnum riskRate) { return this; } - /** + /** * Get riskRate * @return riskRate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RISK_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RiskRateEnum getRiskRate() { return riskRate; } @@ -578,14 +566,13 @@ public BusinessCustomerAllOfAttributes addAuthorizedUsersItem(AuthorizedUser aut return this; } - /** + /** * Get authorizedUsers * @return authorizedUsers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUTHORIZED_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAuthorizedUsers() { return authorizedUsers; } @@ -603,14 +590,13 @@ public BusinessCustomerAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -628,14 +614,13 @@ public BusinessCustomerAllOfAttributes archiveReason(ArchiveReasonEnum archiveRe return this; } - /** + /** * Get archiveReason * @return archiveReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARCHIVE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ArchiveReasonEnum getArchiveReason() { return archiveReason; } @@ -752,42 +737,42 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `entityType` to the URL query string if (getEntityType() != null) { - joiner.add(String.format("%sentityType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sentityType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfIncorporation` to the URL query string if (getDateOfIncorporation() != null) { - joiner.add(String.format("%sdateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `stateOfIncorporation` to the URL query string if (getStateOfIncorporation() != null) { - joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `purpose` to the URL query string if (getPurpose() != null) { - joiner.add(String.format("%spurpose%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPurpose()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spurpose%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPurpose()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -810,13 +795,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `riskRate` to the URL query string if (getRiskRate() != null) { - joiner.add(String.format("%sriskRate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRiskRate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sriskRate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRiskRate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `authorizedUsers` to the URL query string @@ -831,12 +816,12 @@ public String toUrlQueryString(String prefix) { // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `archiveReason` to the URL query string if (getArchiveReason() != null) { - joiner.add(String.format("%sarchiveReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getArchiveReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sarchiveReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getArchiveReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BusinessDebitCard.java b/src/main/java/unit/java/sdk/model/BusinessDebitCard.java index 63c9b236..390c6aff 100644 --- a/src/main/java/unit/java/sdk/model/BusinessDebitCard.java +++ b/src/main/java/unit/java/sdk/model/BusinessDebitCard.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BusinessDebitCard */ @@ -42,7 +43,7 @@ BusinessDebitCard.JSON_PROPERTY_ATTRIBUTES, BusinessDebitCard.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BusinessDebitCard attributes(BusinessDebitCardAllOfAttributes attributes) return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BusinessDebitCardAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BusinessDebitCard relationships(CardRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BusinessDebitCardAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BusinessDebitCardAllOfAttributes.java index 41f39853..1e987421 100644 --- a/src/main/java/unit/java/sdk/model/BusinessDebitCardAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BusinessDebitCardAllOfAttributes.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BusinessDebitCardAllOfAttributes */ @@ -60,7 +61,7 @@ BusinessDebitCardAllOfAttributes.JSON_PROPERTY_TAGS, BusinessDebitCardAllOfAttributes.JSON_PROPERTY_FREEZE_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BusinessDebitCardAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -127,14 +128,13 @@ public BusinessDebitCardAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -152,14 +152,13 @@ public BusinessDebitCardAllOfAttributes updatedAt(OffsetDateTime updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -177,14 +176,13 @@ public BusinessDebitCardAllOfAttributes last4Digits(String last4Digits) { return this; } - /** + /** * Get last4Digits * @return last4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLast4Digits() { return last4Digits; } @@ -202,14 +200,13 @@ public BusinessDebitCardAllOfAttributes expirationDate(String expirationDate) { return this; } - /** + /** * Get expirationDate * @return expirationDate - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getExpirationDate() { return expirationDate; } @@ -227,14 +224,13 @@ public BusinessDebitCardAllOfAttributes nextExpirationDate(String nextExpiration return this; } - /** + /** * Get nextExpirationDate * @return nextExpirationDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NEXT_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNextExpirationDate() { return nextExpirationDate; } @@ -252,14 +248,13 @@ public BusinessDebitCardAllOfAttributes shippingAddress(Address shippingAddress) return this; } - /** + /** * Get shippingAddress * @return shippingAddress - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIPPING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getShippingAddress() { return shippingAddress; } @@ -277,14 +272,13 @@ public BusinessDebitCardAllOfAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -302,14 +296,13 @@ public BusinessDebitCardAllOfAttributes fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -327,14 +320,13 @@ public BusinessDebitCardAllOfAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -352,14 +344,13 @@ public BusinessDebitCardAllOfAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -377,14 +368,13 @@ public BusinessDebitCardAllOfAttributes dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -402,14 +392,13 @@ public BusinessDebitCardAllOfAttributes nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -427,14 +416,13 @@ public BusinessDebitCardAllOfAttributes ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -452,14 +440,13 @@ public BusinessDebitCardAllOfAttributes passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -477,14 +464,13 @@ public BusinessDebitCardAllOfAttributes bin(String bin) { return this; } - /** + /** * Get bin * @return bin - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBin() { return bin; } @@ -502,14 +488,13 @@ public BusinessDebitCardAllOfAttributes status(PhysicalCardStatus status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PhysicalCardStatus getStatus() { return status; } @@ -527,14 +512,13 @@ public BusinessDebitCardAllOfAttributes design(String design) { return this; } - /** + /** * Get design * @return design - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesign() { return design; } @@ -560,14 +544,13 @@ public BusinessDebitCardAllOfAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -585,14 +568,13 @@ public BusinessDebitCardAllOfAttributes freezeReason(String freezeReason) { return this; } - /** + /** * Get freezeReason * @return freezeReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FREEZE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFreezeReason() { return freezeReason; } @@ -715,27 +697,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `last4Digits` to the URL query string if (getLast4Digits() != null) { - joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expirationDate` to the URL query string if (getExpirationDate() != null) { - joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nextExpirationDate` to the URL query string if (getNextExpirationDate() != null) { - joiner.add(String.format("%snextExpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNextExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snextExpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNextExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `shippingAddress` to the URL query string @@ -760,42 +742,42 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `bin` to the URL query string if (getBin() != null) { - joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `design` to the URL query string if (getDesign() != null) { - joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -803,13 +785,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `freezeReason` to the URL query string if (getFreezeReason() != null) { - joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BusinessNumberOfEmployees.java b/src/main/java/unit/java/sdk/model/BusinessNumberOfEmployees.java index 2fb160de..131939a3 100644 --- a/src/main/java/unit/java/sdk/model/BusinessNumberOfEmployees.java +++ b/src/main/java/unit/java/sdk/model/BusinessNumberOfEmployees.java @@ -30,13 +30,13 @@ */ public enum BusinessNumberOfEmployees { - UPTO10("UpTo10"), + UP_TO10("UpTo10"), - BETWEEN10AND50("Between10And50"), + BETWEEN10_AND50("Between10And50"), - BETWEEN50AND100("Between50And100"), + BETWEEN50_AND100("Between50And100"), - BETWEEN100AND500("Between100And500"), + BETWEEN100_AND500("Between100And500"), OVER500("Over500"); diff --git a/src/main/java/unit/java/sdk/model/BusinessOfficer.java b/src/main/java/unit/java/sdk/model/BusinessOfficer.java index 48fdd9fd..1e54dcf8 100644 --- a/src/main/java/unit/java/sdk/model/BusinessOfficer.java +++ b/src/main/java/unit/java/sdk/model/BusinessOfficer.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BusinessOfficer */ @@ -39,7 +40,7 @@ BusinessOfficer.JSON_PROPERTY_ANNUAL_INCOME, BusinessOfficer.JSON_PROPERTY_SOURCE_OF_INCOME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BusinessOfficer { public static final String JSON_PROPERTY_OCCUPATION = "occupation"; private Occupation occupation; @@ -58,14 +59,13 @@ public BusinessOfficer occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -83,14 +83,13 @@ public BusinessOfficer annualIncome(AnnualIncome annualIncome) { return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -108,14 +107,13 @@ public BusinessOfficer sourceOfIncome(SourceOfIncome sourceOfIncome) { return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -206,17 +204,17 @@ public String toUrlQueryString(String prefix) { // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BusinessVertical.java b/src/main/java/unit/java/sdk/model/BusinessVertical.java index f3b8c170..d8e72418 100644 --- a/src/main/java/unit/java/sdk/model/BusinessVertical.java +++ b/src/main/java/unit/java/sdk/model/BusinessVertical.java @@ -30,39 +30,39 @@ */ public enum BusinessVertical { - ADULTENTERTAINMENTDATINGORESCORTSERVICES("AdultEntertainmentDatingOrEscortServices"), + ADULT_ENTERTAINMENT_DATING_OR_ESCORT_SERVICES("AdultEntertainmentDatingOrEscortServices"), - AGRICULTUREFORESTRYFISHINGORHUNTING("AgricultureForestryFishingOrHunting"), + AGRICULTURE_FORESTRY_FISHING_OR_HUNTING("AgricultureForestryFishingOrHunting"), - ARTSENTERTAINMENTANDRECREATION("ArtsEntertainmentAndRecreation"), + ARTS_ENTERTAINMENT_AND_RECREATION("ArtsEntertainmentAndRecreation"), - BUSINESSSUPPORTORBUILDINGSERVICES("BusinessSupportOrBuildingServices"), + BUSINESS_SUPPORT_OR_BUILDING_SERVICES("BusinessSupportOrBuildingServices"), CANNABIS("Cannabis"), CONSTRUCTION("Construction"), - DIRECTMARKETINGORTELEMARKETING("DirectMarketingOrTelemarketing"), + DIRECT_MARKETING_OR_TELEMARKETING("DirectMarketingOrTelemarketing"), - EDUCATIONALSERVICES("EducationalServices"), + EDUCATIONAL_SERVICES("EducationalServices"), - FINANCIALSERVICESCRYPTOCURRENCY("FinancialServicesCryptocurrency"), + FINANCIAL_SERVICES_CRYPTOCURRENCY("FinancialServicesCryptocurrency"), - FINANCIALSERVICESDEBITCOLLECTIONORCONSOLIDATION("FinancialServicesDebitCollectionOrConsolidation"), + FINANCIAL_SERVICES_DEBIT_COLLECTION_OR_CONSOLIDATION("FinancialServicesDebitCollectionOrConsolidation"), - FINANCIALSERVICESMONEYSERVICESBUSINESSORCURRENCYEXCHANGE("FinancialServicesMoneyServicesBusinessOrCurrencyExchange"), + FINANCIAL_SERVICES_MONEY_SERVICES_BUSINESS_OR_CURRENCY_EXCHANGE("FinancialServicesMoneyServicesBusinessOrCurrencyExchange"), - FINANCIALSERVICESOTHER("FinancialServicesOther"), + FINANCIAL_SERVICES_OTHER("FinancialServicesOther"), - FINANCIALSERVICESPAYDAYLENDING("FinancialServicesPaydayLending"), + FINANCIAL_SERVICES_PAYDAY_LENDING("FinancialServicesPaydayLending"), - GAMINGORGAMBLING("GamingOrGambling"), + GAMING_OR_GAMBLING("GamingOrGambling"), - HEALTHCAREANDSOCIALASSISTANCE("HealthCareAndSocialAssistance"), + HEALTH_CARE_AND_SOCIAL_ASSISTANCE("HealthCareAndSocialAssistance"), - HOSPITALITYACCOMMODATIONORFOODSERVICES("HospitalityAccommodationOrFoodServices"), + HOSPITALITY_ACCOMMODATION_OR_FOOD_SERVICES("HospitalityAccommodationOrFoodServices"), - LEGALACCOUNTINGCONSULTINGORCOMPUTERPROGRAMMING("LegalAccountingConsultingOrComputerProgramming"), + LEGAL_ACCOUNTING_CONSULTING_OR_COMPUTER_PROGRAMMING("LegalAccountingConsultingOrComputerProgramming"), MANUFACTURING("Manufacturing"), @@ -70,25 +70,25 @@ public enum BusinessVertical { NUTRACEUTICALS("Nutraceuticals"), - PERSONALCARESERVICES("PersonalCareServices"), + PERSONAL_CARE_SERVICES("PersonalCareServices"), - PUBLICADMINISTRATION("PublicAdministration"), + PUBLIC_ADMINISTRATION("PublicAdministration"), - REALESTATE("RealEstate"), + REAL_ESTATE("RealEstate"), - RELIGIOUSCIVICANDSOCIALORGANIZATIONS("ReligiousCivicAndSocialOrganizations"), + RELIGIOUS_CIVIC_AND_SOCIAL_ORGANIZATIONS("ReligiousCivicAndSocialOrganizations"), - REPAIRANDMAINTENANCE("RepairAndMaintenance"), + REPAIR_AND_MAINTENANCE("RepairAndMaintenance"), - RETAILTRADE("RetailTrade"), + RETAIL_TRADE("RetailTrade"), - TECHNOLOGYMEDIAORTELECOM("TechnologyMediaOrTelecom"), + TECHNOLOGY_MEDIA_OR_TELECOM("TechnologyMediaOrTelecom"), - TRANSPORTATIONORWAREHOUSING("TransportationOrWarehousing"), + TRANSPORTATION_OR_WAREHOUSING("TransportationOrWarehousing"), UTILITIES("Utilities"), - WHOLESALETRADE("WholesaleTrade"); + WHOLESALE_TRADE("WholesaleTrade"); private String value; diff --git a/src/main/java/unit/java/sdk/model/BusinessVirtualCreditCard.java b/src/main/java/unit/java/sdk/model/BusinessVirtualCreditCard.java index 32a91f60..56a887c8 100644 --- a/src/main/java/unit/java/sdk/model/BusinessVirtualCreditCard.java +++ b/src/main/java/unit/java/sdk/model/BusinessVirtualCreditCard.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BusinessVirtualCreditCard */ @@ -42,7 +43,7 @@ BusinessVirtualCreditCard.JSON_PROPERTY_ATTRIBUTES, BusinessVirtualCreditCard.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BusinessVirtualCreditCard attributes(BusinessVirtualDebitCardAllOfAttribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BusinessVirtualDebitCardAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BusinessVirtualCreditCard relationships(CardRelationships relationships) return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BusinessVirtualDebitCard.java b/src/main/java/unit/java/sdk/model/BusinessVirtualDebitCard.java index 38286ba0..c260dcb0 100644 --- a/src/main/java/unit/java/sdk/model/BusinessVirtualDebitCard.java +++ b/src/main/java/unit/java/sdk/model/BusinessVirtualDebitCard.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BusinessVirtualDebitCard */ @@ -42,7 +43,7 @@ BusinessVirtualDebitCard.JSON_PROPERTY_ATTRIBUTES, BusinessVirtualDebitCard.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BusinessVirtualDebitCard attributes(BusinessVirtualDebitCardAllOfAttribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BusinessVirtualDebitCardAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BusinessVirtualDebitCard relationships(CardRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BusinessVirtualDebitCardAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BusinessVirtualDebitCardAllOfAttributes.java index 8361bc7a..54070ee0 100644 --- a/src/main/java/unit/java/sdk/model/BusinessVirtualDebitCardAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BusinessVirtualDebitCardAllOfAttributes.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BusinessVirtualDebitCardAllOfAttributes */ @@ -58,7 +59,7 @@ BusinessVirtualDebitCardAllOfAttributes.JSON_PROPERTY_TAGS, BusinessVirtualDebitCardAllOfAttributes.JSON_PROPERTY_FREEZE_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BusinessVirtualDebitCardAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -119,14 +120,13 @@ public BusinessVirtualDebitCardAllOfAttributes createdAt(OffsetDateTime createdA return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -144,14 +144,13 @@ public BusinessVirtualDebitCardAllOfAttributes updatedAt(OffsetDateTime updatedA return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -169,14 +168,13 @@ public BusinessVirtualDebitCardAllOfAttributes last4Digits(String last4Digits) { return this; } - /** + /** * Get last4Digits * @return last4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLast4Digits() { return last4Digits; } @@ -194,14 +192,13 @@ public BusinessVirtualDebitCardAllOfAttributes expirationDate(String expirationD return this; } - /** + /** * Get expirationDate * @return expirationDate - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getExpirationDate() { return expirationDate; } @@ -219,14 +216,13 @@ public BusinessVirtualDebitCardAllOfAttributes nextExpirationDate(String nextExp return this; } - /** + /** * Get nextExpirationDate * @return nextExpirationDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NEXT_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNextExpirationDate() { return nextExpirationDate; } @@ -244,14 +240,13 @@ public BusinessVirtualDebitCardAllOfAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -269,14 +264,13 @@ public BusinessVirtualDebitCardAllOfAttributes fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -294,14 +288,13 @@ public BusinessVirtualDebitCardAllOfAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -319,14 +312,13 @@ public BusinessVirtualDebitCardAllOfAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -344,14 +336,13 @@ public BusinessVirtualDebitCardAllOfAttributes dateOfBirth(LocalDate dateOfBirth return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -369,14 +360,13 @@ public BusinessVirtualDebitCardAllOfAttributes nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -394,14 +384,13 @@ public BusinessVirtualDebitCardAllOfAttributes ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -419,14 +408,13 @@ public BusinessVirtualDebitCardAllOfAttributes passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -444,14 +432,13 @@ public BusinessVirtualDebitCardAllOfAttributes bin(String bin) { return this; } - /** + /** * Get bin * @return bin - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBin() { return bin; } @@ -469,14 +456,13 @@ public BusinessVirtualDebitCardAllOfAttributes status(VirtualCardStatus status) return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public VirtualCardStatus getStatus() { return status; } @@ -502,14 +488,13 @@ public BusinessVirtualDebitCardAllOfAttributes putTagsItem(String key, String ta return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -527,14 +512,13 @@ public BusinessVirtualDebitCardAllOfAttributes freezeReason(String freezeReason) return this; } - /** + /** * Get freezeReason * @return freezeReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FREEZE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFreezeReason() { return freezeReason; } @@ -653,27 +637,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `last4Digits` to the URL query string if (getLast4Digits() != null) { - joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expirationDate` to the URL query string if (getExpirationDate() != null) { - joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nextExpirationDate` to the URL query string if (getNextExpirationDate() != null) { - joiner.add(String.format("%snextExpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNextExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snextExpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNextExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -693,37 +677,37 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `bin` to the URL query string if (getBin() != null) { - joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -731,13 +715,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `freezeReason` to the URL query string if (getFreezeReason() != null) { - joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/BusinessWalletCustomer.java b/src/main/java/unit/java/sdk/model/BusinessWalletCustomer.java index 9be471e7..64922b9b 100644 --- a/src/main/java/unit/java/sdk/model/BusinessWalletCustomer.java +++ b/src/main/java/unit/java/sdk/model/BusinessWalletCustomer.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * BusinessWalletCustomer */ @@ -42,7 +43,7 @@ BusinessWalletCustomer.JSON_PROPERTY_ATTRIBUTES, BusinessWalletCustomer.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public BusinessWalletCustomer attributes(BusinessWalletCustomerAllOfAttributes a return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessWalletCustomerAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public BusinessWalletCustomer relationships(OrgRelationship relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrgRelationship getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/BusinessWalletCustomerAllOfAttributes.java b/src/main/java/unit/java/sdk/model/BusinessWalletCustomerAllOfAttributes.java index bebd350d..a154698b 100644 --- a/src/main/java/unit/java/sdk/model/BusinessWalletCustomerAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/BusinessWalletCustomerAllOfAttributes.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * BusinessWalletCustomerAllOfAttributes */ @@ -48,7 +49,7 @@ BusinessWalletCustomerAllOfAttributes.JSON_PROPERTY_NUMBER_OF_EMPLOYEES, BusinessWalletCustomerAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class BusinessWalletCustomerAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -85,14 +86,13 @@ public BusinessWalletCustomerAllOfAttributes createdAt(OffsetDateTime createdAt) return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -110,14 +110,13 @@ public BusinessWalletCustomerAllOfAttributes bankName(String bankName) { return this; } - /** + /** * Get bankName * @return bankName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BANK_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBankName() { return bankName; } @@ -135,14 +134,13 @@ public BusinessWalletCustomerAllOfAttributes businessName(String businessName) { return this; } - /** + /** * Get businessName * @return businessName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BUSINESS_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getBusinessName() { return businessName; } @@ -160,14 +158,13 @@ public BusinessWalletCustomerAllOfAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -185,14 +182,13 @@ public BusinessWalletCustomerAllOfAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -210,14 +206,13 @@ public BusinessWalletCustomerAllOfAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEin() { return ein; } @@ -235,14 +230,13 @@ public BusinessWalletCustomerAllOfAttributes businessVertical(BusinessVertical b return this; } - /** + /** * Get businessVertical * @return businessVertical - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BUSINESS_VERTICAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BusinessVertical getBusinessVertical() { return businessVertical; } @@ -260,14 +254,13 @@ public BusinessWalletCustomerAllOfAttributes numberOfEmployees(BusinessNumberOfE return this; } - /** + /** * Get numberOfEmployees * @return numberOfEmployees - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BusinessNumberOfEmployees getNumberOfEmployees() { return numberOfEmployees; } @@ -293,14 +286,13 @@ public BusinessWalletCustomerAllOfAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -403,22 +395,22 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `bankName` to the URL query string if (getBankName() != null) { - joiner.add(String.format("%sbankName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBankName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbankName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBankName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessName` to the URL query string if (getBusinessName() != null) { - joiner.add(String.format("%sbusinessName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -428,17 +420,17 @@ public String toUrlQueryString(String prefix) { // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessVertical` to the URL query string if (getBusinessVertical() != null) { - joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `numberOfEmployees` to the URL query string if (getNumberOfEmployees() != null) { - joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -446,7 +438,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CancelApplicationRequest.java b/src/main/java/unit/java/sdk/model/CancelApplicationRequest.java index 8c0a11ee..66bd7727 100644 --- a/src/main/java/unit/java/sdk/model/CancelApplicationRequest.java +++ b/src/main/java/unit/java/sdk/model/CancelApplicationRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CancelApplicationRequest */ @JsonPropertyOrder({ CancelApplicationRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CancelApplicationRequest { public static final String JSON_PROPERTY_DATA = "data"; private CancelApplicationRequestData data; @@ -48,14 +49,13 @@ public CancelApplicationRequest data(CancelApplicationRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CancelApplicationRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CancelApplicationRequestData.java b/src/main/java/unit/java/sdk/model/CancelApplicationRequestData.java index c9e32e4f..02a57b60 100644 --- a/src/main/java/unit/java/sdk/model/CancelApplicationRequestData.java +++ b/src/main/java/unit/java/sdk/model/CancelApplicationRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CancelApplicationRequestData */ @@ -36,13 +37,13 @@ CancelApplicationRequestData.JSON_PROPERTY_TYPE, CancelApplicationRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CancelApplicationRequestData { /** * Gets or Sets type */ public enum TypeEnum { - APPLICATIONCANCEL("applicationCancel"); + APPLICATION_CANCEL("applicationCancel"); private String value; @@ -85,14 +86,13 @@ public CancelApplicationRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CancelApplicationRequestData attributes(CancelApplicationRequestDataAttri return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CancelApplicationRequestDataAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CancelApplicationRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CancelApplicationRequestDataAttributes.java index e95602d7..89f6f8ec 100644 --- a/src/main/java/unit/java/sdk/model/CancelApplicationRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CancelApplicationRequestDataAttributes.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CancelApplicationRequestDataAttributes */ @JsonPropertyOrder({ CancelApplicationRequestDataAttributes.JSON_PROPERTY_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CancelApplicationRequestDataAttributes { public static final String JSON_PROPERTY_REASON = "reason"; private String reason; @@ -47,14 +48,13 @@ public CancelApplicationRequestDataAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReason() { return reason; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CapitalPartnerAchRepayment.java b/src/main/java/unit/java/sdk/model/CapitalPartnerAchRepayment.java index e576f60b..fd9b910a 100644 --- a/src/main/java/unit/java/sdk/model/CapitalPartnerAchRepayment.java +++ b/src/main/java/unit/java/sdk/model/CapitalPartnerAchRepayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CapitalPartnerAchRepayment */ @@ -42,7 +43,7 @@ CapitalPartnerAchRepayment.JSON_PROPERTY_ATTRIBUTES, CapitalPartnerAchRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CapitalPartnerAchRepayment attributes(AchRepaymentAllOfAttributes attribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AchRepaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CapitalPartnerAchRepayment relationships(CapitalPartnerAchRepaymentRelati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CapitalPartnerAchRepaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CapitalPartnerAchRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CapitalPartnerAchRepaymentRelationships.java index 44fa523f..14913fe2 100644 --- a/src/main/java/unit/java/sdk/model/CapitalPartnerAchRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CapitalPartnerAchRepaymentRelationships.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CapitalPartnerAchRepaymentRelationships */ @@ -45,7 +46,7 @@ CapitalPartnerAchRepaymentRelationships.JSON_PROPERTY_PAYMENT, CapitalPartnerAchRepaymentRelationships.JSON_PROPERTY_RECURRING_REPAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CapitalPartnerAchRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private CreditAccountRelationship creditAccount; @@ -73,14 +74,13 @@ public CapitalPartnerAchRepaymentRelationships creditAccount(CreditAccountRelati return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -98,14 +98,13 @@ public CapitalPartnerAchRepaymentRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationship getOrg() { return org; } @@ -123,14 +122,13 @@ public CapitalPartnerAchRepaymentRelationships customer(CustomerRelationship cus return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -148,14 +146,13 @@ public CapitalPartnerAchRepaymentRelationships counterparty(CounterpartyRelation return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } @@ -173,14 +170,13 @@ public CapitalPartnerAchRepaymentRelationships payment(PaymentRelationship payme return this; } - /** + /** * Get payment * @return payment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentRelationship getPayment() { return payment; } @@ -198,14 +194,13 @@ public CapitalPartnerAchRepaymentRelationships recurringRepayment(RecurringRepay return this; } - /** + /** * Get recurringRepayment * @return recurringRepayment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationship getRecurringRepayment() { return recurringRepayment; } diff --git a/src/main/java/unit/java/sdk/model/CapitalPartnerBookRepayment.java b/src/main/java/unit/java/sdk/model/CapitalPartnerBookRepayment.java index 8b8010bf..5103683a 100644 --- a/src/main/java/unit/java/sdk/model/CapitalPartnerBookRepayment.java +++ b/src/main/java/unit/java/sdk/model/CapitalPartnerBookRepayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CapitalPartnerBookRepayment */ @@ -42,7 +43,7 @@ CapitalPartnerBookRepayment.JSON_PROPERTY_ATTRIBUTES, CapitalPartnerBookRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CapitalPartnerBookRepayment attributes(BookRepaymentAllOfAttributes attri return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BookRepaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CapitalPartnerBookRepayment relationships(CapitalPartnerBookRepaymentRela return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CapitalPartnerBookRepaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CapitalPartnerBookRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CapitalPartnerBookRepaymentRelationships.java index 35b891e8..52233fd2 100644 --- a/src/main/java/unit/java/sdk/model/CapitalPartnerBookRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CapitalPartnerBookRepaymentRelationships.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CapitalPartnerBookRepaymentRelationships */ @@ -45,7 +46,7 @@ CapitalPartnerBookRepaymentRelationships.JSON_PROPERTY_PAYMENT, CapitalPartnerBookRepaymentRelationships.JSON_PROPERTY_RECURRING_REPAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CapitalPartnerBookRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private CreditAccountRelationship creditAccount; @@ -73,14 +74,13 @@ public CapitalPartnerBookRepaymentRelationships creditAccount(CreditAccountRelat return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -98,14 +98,13 @@ public CapitalPartnerBookRepaymentRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationship getOrg() { return org; } @@ -123,14 +122,13 @@ public CapitalPartnerBookRepaymentRelationships customer(CustomerRelationship cu return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -148,14 +146,13 @@ public CapitalPartnerBookRepaymentRelationships counterpartyAccount(Counterparty return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } @@ -173,14 +170,13 @@ public CapitalPartnerBookRepaymentRelationships payment(PaymentRelationship paym return this; } - /** + /** * Get payment * @return payment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentRelationship getPayment() { return payment; } @@ -198,14 +194,13 @@ public CapitalPartnerBookRepaymentRelationships recurringRepayment(RecurringRepa return this; } - /** + /** * Get recurringRepayment * @return recurringRepayment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_REPAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationship getRecurringRepayment() { return recurringRepayment; } diff --git a/src/main/java/unit/java/sdk/model/Card.java b/src/main/java/unit/java/sdk/model/Card.java index 3b64f5df..c74d2d2f 100644 --- a/src/main/java/unit/java/sdk/model/Card.java +++ b/src/main/java/unit/java/sdk/model/Card.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * Card */ @@ -39,7 +40,7 @@ Card.JSON_PROPERTY_TYPE, Card.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -59,17 +60,17 @@ public class Card { * Gets or Sets type */ public enum TypeEnum { - BUSINESSDEBITCARD("businessDebitCard"), + BUSINESS_DEBIT_CARD("businessDebitCard"), - INDIVIDUALDEBITCARD("individualDebitCard"), + INDIVIDUAL_DEBIT_CARD("individualDebitCard"), - BUSINESSVIRTUALDEBITCARD("businessVirtualDebitCard"), + BUSINESS_VIRTUAL_DEBIT_CARD("businessVirtualDebitCard"), - INDIVIDUALVIRTUALDEBITCARD("individualVirtualDebitCard"), + INDIVIDUAL_VIRTUAL_DEBIT_CARD("individualVirtualDebitCard"), - BUSINESSCREDITCARD("businessCreditCard"), + BUSINESS_CREDIT_CARD("businessCreditCard"), - BUSINESSVIRTUALCREDITCARD("businessVirtualCreditCard"); + BUSINESS_VIRTUAL_CREDIT_CARD("businessVirtualCreditCard"); private String value; @@ -112,14 +113,13 @@ public Card type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -137,14 +137,13 @@ public Card id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -233,12 +232,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CardLevelLimits.java b/src/main/java/unit/java/sdk/model/CardLevelLimits.java index cebb92e4..d1956b5e 100644 --- a/src/main/java/unit/java/sdk/model/CardLevelLimits.java +++ b/src/main/java/unit/java/sdk/model/CardLevelLimits.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardLevelLimits */ @@ -37,7 +38,7 @@ CardLevelLimits.JSON_PROPERTY_MONTHLY_WITHDRAWAL, CardLevelLimits.JSON_PROPERTY_MONTHLY_PURCHASE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardLevelLimits { public static final String JSON_PROPERTY_DAILY_WITHDRAWAL = "dailyWithdrawal"; private Integer dailyWithdrawal; @@ -59,14 +60,13 @@ public CardLevelLimits dailyWithdrawal(Integer dailyWithdrawal) { return this; } - /** + /** * Get dailyWithdrawal * @return dailyWithdrawal - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAILY_WITHDRAWAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDailyWithdrawal() { return dailyWithdrawal; } @@ -84,14 +84,13 @@ public CardLevelLimits dailyPurchase(Integer dailyPurchase) { return this; } - /** + /** * Get dailyPurchase * @return dailyPurchase - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAILY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDailyPurchase() { return dailyPurchase; } @@ -109,14 +108,13 @@ public CardLevelLimits monthlyWithdrawal(Integer monthlyWithdrawal) { return this; } - /** + /** * Get monthlyWithdrawal * @return monthlyWithdrawal - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MONTHLY_WITHDRAWAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getMonthlyWithdrawal() { return monthlyWithdrawal; } @@ -134,14 +132,13 @@ public CardLevelLimits monthlyPurchase(Integer monthlyPurchase) { return this; } - /** + /** * Get monthlyPurchase * @return monthlyPurchase - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MONTHLY_PURCHASE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getMonthlyPurchase() { return monthlyPurchase; } @@ -234,22 +231,22 @@ public String toUrlQueryString(String prefix) { // add `dailyWithdrawal` to the URL query string if (getDailyWithdrawal() != null) { - joiner.add(String.format("%sdailyWithdrawal%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDailyWithdrawal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdailyWithdrawal%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyWithdrawal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dailyPurchase` to the URL query string if (getDailyPurchase() != null) { - joiner.add(String.format("%sdailyPurchase%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDailyPurchase()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdailyPurchase%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyPurchase()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `monthlyWithdrawal` to the URL query string if (getMonthlyWithdrawal() != null) { - joiner.add(String.format("%smonthlyWithdrawal%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMonthlyWithdrawal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smonthlyWithdrawal%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonthlyWithdrawal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `monthlyPurchase` to the URL query string if (getMonthlyPurchase() != null) { - joiner.add(String.format("%smonthlyPurchase%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMonthlyPurchase()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smonthlyPurchase%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonthlyPurchase()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CardRelationship.java b/src/main/java/unit/java/sdk/model/CardRelationship.java index 0c024e54..4ee46a18 100644 --- a/src/main/java/unit/java/sdk/model/CardRelationship.java +++ b/src/main/java/unit/java/sdk/model/CardRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardRelationship */ @JsonPropertyOrder({ CardRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardRelationship { public static final String JSON_PROPERTY_DATA = "data"; private CardRelationshipData data; @@ -48,14 +49,13 @@ public CardRelationship data(CardRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CardRelationshipData.java b/src/main/java/unit/java/sdk/model/CardRelationshipData.java index ec8c62b3..2527ecb4 100644 --- a/src/main/java/unit/java/sdk/model/CardRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/CardRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardRelationshipData */ @@ -35,7 +36,7 @@ CardRelationshipData.JSON_PROPERTY_TYPE, CardRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardRelationshipData { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "card"; @@ -51,14 +52,13 @@ public CardRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public CardRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CardRelationships.java b/src/main/java/unit/java/sdk/model/CardRelationships.java index ac641325..33d3394d 100644 --- a/src/main/java/unit/java/sdk/model/CardRelationships.java +++ b/src/main/java/unit/java/sdk/model/CardRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardRelationships */ @@ -37,7 +38,7 @@ CardRelationships.JSON_PROPERTY_ACCOUNT, CardRelationships.JSON_PROPERTY_CUSTOMER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -53,14 +54,13 @@ public CardRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -78,14 +78,13 @@ public CardRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } diff --git a/src/main/java/unit/java/sdk/model/CardReversalTransaction.java b/src/main/java/unit/java/sdk/model/CardReversalTransaction.java index a9cc67b3..ef4dd7af 100644 --- a/src/main/java/unit/java/sdk/model/CardReversalTransaction.java +++ b/src/main/java/unit/java/sdk/model/CardReversalTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CardReversalTransaction */ @@ -42,7 +43,7 @@ CardReversalTransaction.JSON_PROPERTY_ATTRIBUTES, CardReversalTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CardReversalTransaction attributes(CardReversalTransactionAllOfAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardReversalTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CardReversalTransaction relationships(CardReversalTransactionRelationship return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardReversalTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CardReversalTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/CardReversalTransactionAllOfAttributes.java index fc9c25d9..78a7a4d2 100644 --- a/src/main/java/unit/java/sdk/model/CardReversalTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/CardReversalTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardReversalTransactionAllOfAttributes */ @@ -43,7 +44,7 @@ CardReversalTransactionAllOfAttributes.JSON_PROPERTY_CARD_LAST4_DIGITS, CardReversalTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardReversalTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -109,14 +110,13 @@ public CardReversalTransactionAllOfAttributes createdAt(OffsetDateTime createdAt return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -134,14 +134,13 @@ public CardReversalTransactionAllOfAttributes direction(DirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -159,14 +158,13 @@ public CardReversalTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -184,14 +182,13 @@ public CardReversalTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -209,14 +206,13 @@ public CardReversalTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -234,14 +230,13 @@ public CardReversalTransactionAllOfAttributes cardLast4Digits(String cardLast4Di return this; } - /** + /** * Get cardLast4Digits * @return cardLast4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCardLast4Digits() { return cardLast4Digits; } @@ -267,14 +262,13 @@ public CardReversalTransactionAllOfAttributes putTagsItem(String key, String tag return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -373,32 +367,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardLast4Digits` to the URL query string if (getCardLast4Digits() != null) { - joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -406,7 +400,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CardReversalTransactionRelationships.java b/src/main/java/unit/java/sdk/model/CardReversalTransactionRelationships.java index baa36704..6e65c843 100644 --- a/src/main/java/unit/java/sdk/model/CardReversalTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/CardReversalTransactionRelationships.java @@ -29,10 +29,11 @@ import unit.java.sdk.model.CardRelationship; import unit.java.sdk.model.CustomerRelationship; import unit.java.sdk.model.CustomersRelationship; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardReversalTransactionRelationships */ @@ -43,7 +44,7 @@ CardReversalTransactionRelationships.JSON_PROPERTY_CARD, CardReversalTransactionRelationships.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardReversalTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,7 +59,7 @@ public class CardReversalTransactionRelationships { private CardRelationship card; public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public CardReversalTransactionRelationships() { } @@ -68,14 +69,13 @@ public CardReversalTransactionRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public CardReversalTransactionRelationships customer(CustomerRelationship custom return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -118,14 +117,13 @@ public CardReversalTransactionRelationships customers(CustomersRelationship cust return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -143,14 +141,13 @@ public CardReversalTransactionRelationships card(CardRelationship card) { return this; } - /** + /** * Get card * @return card - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationship getCard() { return card; } @@ -163,27 +160,26 @@ public void setCard(CardRelationship card) { } - public CardReversalTransactionRelationships data(TransactionRelationshipData data) { + public CardReversalTransactionRelationships data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/CardTotals.java b/src/main/java/unit/java/sdk/model/CardTotals.java index 8b7d3c15..4017544e 100644 --- a/src/main/java/unit/java/sdk/model/CardTotals.java +++ b/src/main/java/unit/java/sdk/model/CardTotals.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardTotals */ @@ -37,7 +38,7 @@ CardTotals.JSON_PROPERTY_PURCHASES, CardTotals.JSON_PROPERTY_CARD_TRANSACTIONS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardTotals { public static final String JSON_PROPERTY_WITHDRAWALS = "withdrawals"; private Integer withdrawals; @@ -59,14 +60,13 @@ public CardTotals withdrawals(Integer withdrawals) { return this; } - /** + /** * Get withdrawals * @return withdrawals - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_WITHDRAWALS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getWithdrawals() { return withdrawals; } @@ -84,14 +84,13 @@ public CardTotals deposits(Integer deposits) { return this; } - /** + /** * Get deposits * @return deposits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DEPOSITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getDeposits() { return deposits; } @@ -109,14 +108,13 @@ public CardTotals purchases(Integer purchases) { return this; } - /** + /** * Get purchases * @return purchases - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PURCHASES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getPurchases() { return purchases; } @@ -134,14 +132,13 @@ public CardTotals cardTransactions(Integer cardTransactions) { return this; } - /** + /** * Get cardTransactions * @return cardTransactions - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD_TRANSACTIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getCardTransactions() { return cardTransactions; } @@ -234,22 +231,22 @@ public String toUrlQueryString(String prefix) { // add `withdrawals` to the URL query string if (getWithdrawals() != null) { - joiner.add(String.format("%swithdrawals%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWithdrawals()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swithdrawals%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWithdrawals()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `deposits` to the URL query string if (getDeposits() != null) { - joiner.add(String.format("%sdeposits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeposits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdeposits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeposits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `purchases` to the URL query string if (getPurchases() != null) { - joiner.add(String.format("%spurchases%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPurchases()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spurchases%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPurchases()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardTransactions` to the URL query string if (getCardTransactions() != null) { - joiner.add(String.format("%scardTransactions%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardTransactions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardTransactions%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardTransactions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CardTransaction.java b/src/main/java/unit/java/sdk/model/CardTransaction.java index 543f3b30..6878ab8a 100644 --- a/src/main/java/unit/java/sdk/model/CardTransaction.java +++ b/src/main/java/unit/java/sdk/model/CardTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CardTransaction */ @@ -42,7 +43,7 @@ CardTransaction.JSON_PROPERTY_ATTRIBUTES, CardTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CardTransaction attributes(CardTransactionAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CardTransaction relationships(CardReversalTransactionRelationships relati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardReversalTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CardTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/CardTransactionAllOfAttributes.java index 4185c0b8..42da5502 100644 --- a/src/main/java/unit/java/sdk/model/CardTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/CardTransactionAllOfAttributes.java @@ -37,6 +37,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardTransactionAllOfAttributes */ @@ -58,7 +59,7 @@ CardTransactionAllOfAttributes.JSON_PROPERTY_CARD_VERIFICATION_DATA, CardTransactionAllOfAttributes.JSON_PROPERTY_CARD_NETWORK }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -151,14 +152,13 @@ public CardTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -176,14 +176,13 @@ public CardTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -201,14 +200,13 @@ public CardTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -226,14 +224,13 @@ public CardTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -251,14 +248,13 @@ public CardTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -276,14 +272,13 @@ public CardTransactionAllOfAttributes cardLast4Digits(String cardLast4Digits) { return this; } - /** + /** * Get cardLast4Digits * @return cardLast4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCardLast4Digits() { return cardLast4Digits; } @@ -309,14 +304,13 @@ public CardTransactionAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -334,14 +328,13 @@ public CardTransactionAllOfAttributes networkTransactionId(String networkTransac return this; } - /** + /** * Get networkTransactionId * @return networkTransactionId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NETWORK_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNetworkTransactionId() { return networkTransactionId; } @@ -359,13 +352,12 @@ public CardTransactionAllOfAttributes interchange(String interchange) { return this; } - /** + /** * Get interchange * @return interchange - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getInterchange() { return interchange.orElse(null); } @@ -392,13 +384,12 @@ public CardTransactionAllOfAttributes internationalServiceFee(Integer internatio return this; } - /** + /** * Get internationalServiceFee * @return internationalServiceFee - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public Integer getInternationalServiceFee() { return internationalServiceFee.orElse(null); } @@ -425,14 +416,13 @@ public CardTransactionAllOfAttributes merchant(Merchant merchant) { return this; } - /** + /** * Get merchant * @return merchant - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Merchant getMerchant() { return merchant; } @@ -450,14 +440,13 @@ public CardTransactionAllOfAttributes recurring(Boolean recurring) { return this; } - /** + /** * Get recurring * @return recurring - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getRecurring() { return recurring; } @@ -475,14 +464,13 @@ public CardTransactionAllOfAttributes paymentMethod(String paymentMethod) { return this; } - /** + /** * Get paymentMethod * @return paymentMethod - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPaymentMethod() { return paymentMethod; } @@ -500,14 +488,13 @@ public CardTransactionAllOfAttributes digitalWallet(String digitalWallet) { return this; } - /** + /** * Get digitalWallet * @return digitalWallet - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIGITAL_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDigitalWallet() { return digitalWallet; } @@ -525,14 +512,13 @@ public CardTransactionAllOfAttributes cardVerificationData(CardVerificationData return this; } - /** + /** * Get cardVerificationData * @return cardVerificationData - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_VERIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardVerificationData getCardVerificationData() { return cardVerificationData; } @@ -550,14 +536,13 @@ public CardTransactionAllOfAttributes cardNetwork(String cardNetwork) { return this; } - /** + /** * Get cardNetwork * @return cardNetwork - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardNetwork() { return cardNetwork; } @@ -685,32 +670,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardLast4Digits` to the URL query string if (getCardLast4Digits() != null) { - joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -718,23 +703,23 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `networkTransactionId` to the URL query string if (getNetworkTransactionId() != null) { - joiner.add(String.format("%snetworkTransactionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNetworkTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snetworkTransactionId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNetworkTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `interchange` to the URL query string if (getInterchange() != null) { - joiner.add(String.format("%sinterchange%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInterchange()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinterchange%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInterchange()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `internationalServiceFee` to the URL query string if (getInternationalServiceFee() != null) { - joiner.add(String.format("%sinternationalServiceFee%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInternationalServiceFee()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinternationalServiceFee%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInternationalServiceFee()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `merchant` to the URL query string @@ -744,17 +729,17 @@ public String toUrlQueryString(String prefix) { // add `recurring` to the URL query string if (getRecurring() != null) { - joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `paymentMethod` to the URL query string if (getPaymentMethod() != null) { - joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `digitalWallet` to the URL query string if (getDigitalWallet() != null) { - joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardVerificationData` to the URL query string @@ -764,7 +749,7 @@ public String toUrlQueryString(String prefix) { // add `cardNetwork` to the URL query string if (getCardNetwork() != null) { - joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CardTransactionAuthorization.java b/src/main/java/unit/java/sdk/model/CardTransactionAuthorization.java index f5c6d612..7f79367f 100644 --- a/src/main/java/unit/java/sdk/model/CardTransactionAuthorization.java +++ b/src/main/java/unit/java/sdk/model/CardTransactionAuthorization.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CardTransactionAuthorization */ @@ -42,7 +43,7 @@ CardTransactionAuthorization.JSON_PROPERTY_ATTRIBUTES, CardTransactionAuthorization.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CardTransactionAuthorization attributes(CardTransactionAuthorizationAllOf return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardTransactionAuthorizationAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CardTransactionAuthorization relationships(AuthorizationRequestRelationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AuthorizationRequestRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CardTransactionAuthorizationAllOfAttributes.java b/src/main/java/unit/java/sdk/model/CardTransactionAuthorizationAllOfAttributes.java index dec52382..fac55aba 100644 --- a/src/main/java/unit/java/sdk/model/CardTransactionAuthorizationAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/CardTransactionAuthorizationAllOfAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardTransactionAuthorizationAllOfAttributes */ @@ -51,7 +52,7 @@ CardTransactionAuthorizationAllOfAttributes.JSON_PROPERTY_CARD_VERIFICATION_DATA, CardTransactionAuthorizationAllOfAttributes.JSON_PROPERTY_CARD_NETWORK }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardTransactionAuthorizationAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -100,14 +101,13 @@ public CardTransactionAuthorizationAllOfAttributes createdAt(OffsetDateTime crea return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -125,14 +125,13 @@ public CardTransactionAuthorizationAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -150,14 +149,13 @@ public CardTransactionAuthorizationAllOfAttributes status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { return status; } @@ -175,14 +173,13 @@ public CardTransactionAuthorizationAllOfAttributes partialApprovalAllowed(Boolea return this; } - /** + /** * Get partialApprovalAllowed * @return partialApprovalAllowed - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PARTIAL_APPROVAL_ALLOWED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getPartialApprovalAllowed() { return partialApprovalAllowed; } @@ -200,14 +197,13 @@ public CardTransactionAuthorizationAllOfAttributes approvedAmount(Integer approv return this; } - /** + /** * Get approvedAmount * @return approvedAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPROVED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getApprovedAmount() { return approvedAmount; } @@ -225,14 +221,13 @@ public CardTransactionAuthorizationAllOfAttributes declineReason(String declineR return this; } - /** + /** * Get declineReason * @return declineReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLINE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeclineReason() { return declineReason; } @@ -250,14 +245,13 @@ public CardTransactionAuthorizationAllOfAttributes merchant(Merchant merchant) { return this; } - /** + /** * Get merchant * @return merchant - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Merchant getMerchant() { return merchant; } @@ -275,14 +269,13 @@ public CardTransactionAuthorizationAllOfAttributes recurring(Boolean recurring) return this; } - /** + /** * Get recurring * @return recurring - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getRecurring() { return recurring; } @@ -308,14 +301,13 @@ public CardTransactionAuthorizationAllOfAttributes putTagsItem(String key, Strin return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -333,14 +325,13 @@ public CardTransactionAuthorizationAllOfAttributes paymentMethod(String paymentM return this; } - /** + /** * Get paymentMethod * @return paymentMethod - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPaymentMethod() { return paymentMethod; } @@ -358,14 +349,13 @@ public CardTransactionAuthorizationAllOfAttributes digitalWallet(String digitalW return this; } - /** + /** * Get digitalWallet * @return digitalWallet - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIGITAL_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDigitalWallet() { return digitalWallet; } @@ -383,14 +373,13 @@ public CardTransactionAuthorizationAllOfAttributes cardVerificationData(CardVeri return this; } - /** + /** * Get cardVerificationData * @return cardVerificationData - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_VERIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardVerificationData getCardVerificationData() { return cardVerificationData; } @@ -408,14 +397,13 @@ public CardTransactionAuthorizationAllOfAttributes cardNetwork(String cardNetwor return this; } - /** + /** * Get cardNetwork * @return cardNetwork - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardNetwork() { return cardNetwork; } @@ -526,32 +514,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `partialApprovalAllowed` to the URL query string if (getPartialApprovalAllowed() != null) { - joiner.add(String.format("%spartialApprovalAllowed%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPartialApprovalAllowed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spartialApprovalAllowed%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPartialApprovalAllowed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `approvedAmount` to the URL query string if (getApprovedAmount() != null) { - joiner.add(String.format("%sapprovedAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getApprovedAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sapprovedAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getApprovedAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `declineReason` to the URL query string if (getDeclineReason() != null) { - joiner.add(String.format("%sdeclineReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeclineReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdeclineReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeclineReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `merchant` to the URL query string @@ -561,7 +549,7 @@ public String toUrlQueryString(String prefix) { // add `recurring` to the URL query string if (getRecurring() != null) { - joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -569,18 +557,18 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `paymentMethod` to the URL query string if (getPaymentMethod() != null) { - joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `digitalWallet` to the URL query string if (getDigitalWallet() != null) { - joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardVerificationData` to the URL query string @@ -590,7 +578,7 @@ public String toUrlQueryString(String prefix) { // add `cardNetwork` to the URL query string if (getCardNetwork() != null) { - joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CardVerificationData.java b/src/main/java/unit/java/sdk/model/CardVerificationData.java index 4d231a31..3c21f7a3 100644 --- a/src/main/java/unit/java/sdk/model/CardVerificationData.java +++ b/src/main/java/unit/java/sdk/model/CardVerificationData.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CardVerificationData */ @JsonPropertyOrder({ CardVerificationData.JSON_PROPERTY_VERIFICATION_METHOD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CardVerificationData { public static final String JSON_PROPERTY_VERIFICATION_METHOD = "verificationMethod"; private String verificationMethod; @@ -47,14 +48,13 @@ public CardVerificationData verificationMethod(String verificationMethod) { return this; } - /** + /** * Get verificationMethod * @return verificationMethod - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VERIFICATION_METHOD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getVerificationMethod() { return verificationMethod; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `verificationMethod` to the URL query string if (getVerificationMethod() != null) { - joiner.add(String.format("%sverificationMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerificationMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverificationMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerificationMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CashDepositBarcode.java b/src/main/java/unit/java/sdk/model/CashDepositBarcode.java new file mode 100644 index 00000000..c23a8729 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CashDepositBarcode.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CashDepositBarcodeAttributes; +import unit.java.sdk.model.CashDepositBarcodeRelationships; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CashDepositBarcode + */ +@JsonPropertyOrder({ + CashDepositBarcode.JSON_PROPERTY_TYPE, + CashDepositBarcode.JSON_PROPERTY_ATTRIBUTES, + CashDepositBarcode.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CashDepositBarcode { + /** + * Gets or Sets type + */ + public enum TypeEnum { + CASH_DEPOSIT_BARCODE("cashDepositBarcode"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.CASH_DEPOSIT_BARCODE; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CashDepositBarcodeAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private CashDepositBarcodeRelationships relationships; + + public CashDepositBarcode() { + } + + public CashDepositBarcode type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public CashDepositBarcode attributes(CashDepositBarcodeAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CashDepositBarcodeAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(CashDepositBarcodeAttributes attributes) { + this.attributes = attributes; + } + + + public CashDepositBarcode relationships(CashDepositBarcodeRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CashDepositBarcodeRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(CashDepositBarcodeRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this CashDepositBarcode object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CashDepositBarcode cashDepositBarcode = (CashDepositBarcode) o; + return Objects.equals(this.type, cashDepositBarcode.type) && + Objects.equals(this.attributes, cashDepositBarcode.attributes) && + Objects.equals(this.relationships, cashDepositBarcode.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CashDepositBarcode {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CashDepositBarcodeAttributes.java b/src/main/java/unit/java/sdk/model/CashDepositBarcodeAttributes.java new file mode 100644 index 00000000..855ea4eb --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CashDepositBarcodeAttributes.java @@ -0,0 +1,235 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CashDepositBarcodeAttributes + */ +@JsonPropertyOrder({ + CashDepositBarcodeAttributes.JSON_PROPERTY_BARCODE_NUMBER, + CashDepositBarcodeAttributes.JSON_PROPERTY_EXPIRATION, + CashDepositBarcodeAttributes.JSON_PROPERTY_TAGS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CashDepositBarcodeAttributes { + public static final String JSON_PROPERTY_BARCODE_NUMBER = "barcodeNumber"; + private String barcodeNumber; + + public static final String JSON_PROPERTY_EXPIRATION = "expiration"; + private OffsetDateTime expiration; + + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + public CashDepositBarcodeAttributes() { + } + + public CashDepositBarcodeAttributes barcodeNumber(String barcodeNumber) { + this.barcodeNumber = barcodeNumber; + return this; + } + + /** + * Get barcodeNumber + * @return barcodeNumber + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_BARCODE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getBarcodeNumber() { + return barcodeNumber; + } + + + @JsonProperty(JSON_PROPERTY_BARCODE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBarcodeNumber(String barcodeNumber) { + this.barcodeNumber = barcodeNumber; + } + + + public CashDepositBarcodeAttributes expiration(OffsetDateTime expiration) { + this.expiration = expiration; + return this; + } + + /** + * Get expiration + * @return expiration + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXPIRATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public OffsetDateTime getExpiration() { + return expiration; + } + + + @JsonProperty(JSON_PROPERTY_EXPIRATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExpiration(OffsetDateTime expiration) { + this.expiration = expiration; + } + + + public CashDepositBarcodeAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public CashDepositBarcodeAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { + this.tags = tags; + } + + + /** + * Return true if this CashDepositBarcode_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CashDepositBarcodeAttributes cashDepositBarcodeAttributes = (CashDepositBarcodeAttributes) o; + return Objects.equals(this.barcodeNumber, cashDepositBarcodeAttributes.barcodeNumber) && + Objects.equals(this.expiration, cashDepositBarcodeAttributes.expiration) && + Objects.equals(this.tags, cashDepositBarcodeAttributes.tags); + } + + @Override + public int hashCode() { + return Objects.hash(barcodeNumber, expiration, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CashDepositBarcodeAttributes {\n"); + sb.append(" barcodeNumber: ").append(toIndentedString(barcodeNumber)).append("\n"); + sb.append(" expiration: ").append(toIndentedString(expiration)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `barcodeNumber` to the URL query string + if (getBarcodeNumber() != null) { + joiner.add(String.format("%sbarcodeNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBarcodeNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `expiration` to the URL query string + if (getExpiration() != null) { + joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CashDepositBarcodeRelationships.java b/src/main/java/unit/java/sdk/model/CashDepositBarcodeRelationships.java new file mode 100644 index 00000000..2c707c00 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CashDepositBarcodeRelationships.java @@ -0,0 +1,187 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.CustomerRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CashDepositBarcodeRelationships + */ +@JsonPropertyOrder({ + CashDepositBarcodeRelationships.JSON_PROPERTY_ACCOUNT, + CashDepositBarcodeRelationships.JSON_PROPERTY_CUSTOMER +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CashDepositBarcodeRelationships { + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public static final String JSON_PROPERTY_CUSTOMER = "customer"; + private CustomerRelationship customer; + + public CashDepositBarcodeRelationships() { + } + + public CashDepositBarcodeRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + public CashDepositBarcodeRelationships customer(CustomerRelationship customer) { + this.customer = customer; + return this; + } + + /** + * Get customer + * @return customer + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CustomerRelationship getCustomer() { + return customer; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCustomer(CustomerRelationship customer) { + this.customer = customer; + } + + + /** + * Return true if this CashDepositBarcodeRelationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CashDepositBarcodeRelationships cashDepositBarcodeRelationships = (CashDepositBarcodeRelationships) o; + return Objects.equals(this.account, cashDepositBarcodeRelationships.account) && + Objects.equals(this.customer, cashDepositBarcodeRelationships.customer); + } + + @Override + public int hashCode() { + return Objects.hash(account, customer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CashDepositBarcodeRelationships {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append(" customer: ").append(toIndentedString(customer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + // add `customer` to the URL query string + if (getCustomer() != null) { + joiner.add(getCustomer().toUrlQueryString(prefix + "customer" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CashDepositTransaction.java b/src/main/java/unit/java/sdk/model/CashDepositTransaction.java index 4cbb43e7..0e7b1fe3 100644 --- a/src/main/java/unit/java/sdk/model/CashDepositTransaction.java +++ b/src/main/java/unit/java/sdk/model/CashDepositTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CashDepositTransaction */ @@ -42,7 +43,7 @@ CashDepositTransaction.JSON_PROPERTY_ATTRIBUTES, CashDepositTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CashDepositTransaction attributes(CashDepositTransactionAllOfAttributes a return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CashDepositTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CashDepositTransaction relationships(CashDepositTransactionRelationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CashDepositTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CashDepositTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/CashDepositTransactionAllOfAttributes.java index 5a63d8c2..fd160a0c 100644 --- a/src/main/java/unit/java/sdk/model/CashDepositTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/CashDepositTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CashDepositTransactionAllOfAttributes */ @@ -43,7 +44,7 @@ CashDepositTransactionAllOfAttributes.JSON_PROPERTY_TAGS, CashDepositTransactionAllOfAttributes.JSON_PROPERTY_RECURRING }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CashDepositTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -109,14 +110,13 @@ public CashDepositTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -134,14 +134,13 @@ public CashDepositTransactionAllOfAttributes direction(DirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -159,14 +158,13 @@ public CashDepositTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -184,14 +182,13 @@ public CashDepositTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -209,14 +206,13 @@ public CashDepositTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -242,14 +238,13 @@ public CashDepositTransactionAllOfAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -267,14 +262,13 @@ public CashDepositTransactionAllOfAttributes recurring(Boolean recurring) { return this; } - /** + /** * Get recurring * @return recurring - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getRecurring() { return recurring; } @@ -373,27 +367,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -401,13 +395,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `recurring` to the URL query string if (getRecurring() != null) { - joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CashDepositTransactionRelationships.java b/src/main/java/unit/java/sdk/model/CashDepositTransactionRelationships.java index d8c9e7d1..71f3633b 100644 --- a/src/main/java/unit/java/sdk/model/CashDepositTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/CashDepositTransactionRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CashDepositTransactionRelationships */ @@ -39,7 +40,7 @@ CashDepositTransactionRelationships.JSON_PROPERTY_CUSTOMER, CashDepositTransactionRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CashDepositTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public CashDepositTransactionRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public CashDepositTransactionRelationships customer(CustomerRelationship custome return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public CashDepositTransactionRelationships customers(CustomersRelationship custo return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/main/java/unit/java/sdk/model/ChargebackRelationship.java b/src/main/java/unit/java/sdk/model/ChargebackRelationship.java index 5ca6e0bb..135e386d 100644 --- a/src/main/java/unit/java/sdk/model/ChargebackRelationship.java +++ b/src/main/java/unit/java/sdk/model/ChargebackRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ChargebackRelationship */ @JsonPropertyOrder({ ChargebackRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ChargebackRelationship { public static final String JSON_PROPERTY_DATA = "data"; private ChargebackRelationshipData data; @@ -48,14 +49,13 @@ public ChargebackRelationship data(ChargebackRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ChargebackRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ChargebackRelationshipData.java b/src/main/java/unit/java/sdk/model/ChargebackRelationshipData.java index e9199ca6..9385c69d 100644 --- a/src/main/java/unit/java/sdk/model/ChargebackRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/ChargebackRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ChargebackRelationshipData */ @@ -35,7 +36,7 @@ ChargebackRelationshipData.JSON_PROPERTY_TYPE, ChargebackRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ChargebackRelationshipData { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "chargeback"; @@ -51,14 +52,13 @@ public ChargebackRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public ChargebackRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ChargebackTransaction.java b/src/main/java/unit/java/sdk/model/ChargebackTransaction.java index 6b69dc06..3062638b 100644 --- a/src/main/java/unit/java/sdk/model/ChargebackTransaction.java +++ b/src/main/java/unit/java/sdk/model/ChargebackTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ChargebackTransaction */ @@ -42,7 +43,7 @@ ChargebackTransaction.JSON_PROPERTY_ATTRIBUTES, ChargebackTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public ChargebackTransaction attributes(ChargebackTransactionAllOfAttributes att return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ChargebackTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public ChargebackTransaction relationships(ChargebackTransactionRelationships re return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ChargebackTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ChargebackTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/ChargebackTransactionAllOfAttributes.java index 193d4b32..b3a2e034 100644 --- a/src/main/java/unit/java/sdk/model/ChargebackTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/ChargebackTransactionAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ChargebackTransactionAllOfAttributes */ @@ -44,7 +45,7 @@ ChargebackTransactionAllOfAttributes.JSON_PROPERTY_SUMMARY, ChargebackTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ChargebackTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -110,14 +111,13 @@ public ChargebackTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -135,14 +135,13 @@ public ChargebackTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -160,14 +159,13 @@ public ChargebackTransactionAllOfAttributes counterparty(PaymentCounterparty cou return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaymentCounterparty getCounterparty() { return counterparty; } @@ -185,14 +183,13 @@ public ChargebackTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -210,14 +207,13 @@ public ChargebackTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -235,14 +231,13 @@ public ChargebackTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -268,14 +263,13 @@ public ChargebackTransactionAllOfAttributes putTagsItem(String key, String tagsI return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -374,12 +368,12 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -389,17 +383,17 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -407,7 +401,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ChargebackTransactionRelationships.java b/src/main/java/unit/java/sdk/model/ChargebackTransactionRelationships.java index 159e23ac..79377522 100644 --- a/src/main/java/unit/java/sdk/model/ChargebackTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/ChargebackTransactionRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ChargebackTransactionRelationships */ @@ -43,7 +44,7 @@ ChargebackTransactionRelationships.JSON_PROPERTY_COUNTERPARTY_ACCOUNT, ChargebackTransactionRelationships.JSON_PROPERTY_CHARGEBACK }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ChargebackTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -68,14 +69,13 @@ public ChargebackTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public ChargebackTransactionRelationships customer(CustomerRelationship customer return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -118,14 +117,13 @@ public ChargebackTransactionRelationships customers(CustomersRelationship custom return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -143,14 +141,13 @@ public ChargebackTransactionRelationships counterpartyAccount(CounterpartyAccoun return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } @@ -168,14 +165,13 @@ public ChargebackTransactionRelationships chargeback(ChargebackRelationship char return this; } - /** + /** * Get chargeback * @return chargeback - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CHARGEBACK) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ChargebackRelationship getChargeback() { return chargeback; } diff --git a/src/main/java/unit/java/sdk/model/CheckDeposit.java b/src/main/java/unit/java/sdk/model/CheckDeposit.java index 42db8ebb..a1871548 100644 --- a/src/main/java/unit/java/sdk/model/CheckDeposit.java +++ b/src/main/java/unit/java/sdk/model/CheckDeposit.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckDeposit */ @@ -39,13 +40,13 @@ CheckDeposit.JSON_PROPERTY_ATTRIBUTES, CheckDeposit.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckDeposit { /** * Gets or Sets type */ public enum TypeEnum { - CHECKDEPOSIT("checkDeposit"); + CHECK_DEPOSIT("checkDeposit"); private String value; @@ -75,7 +76,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CHECKDEPOSIT; + private TypeEnum type = TypeEnum.CHECK_DEPOSIT; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -94,14 +95,13 @@ public CheckDeposit type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public CheckDeposit id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -144,14 +143,13 @@ public CheckDeposit attributes(CheckDepositAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositAttributes getAttributes() { return attributes; } @@ -169,14 +167,13 @@ public CheckDeposit relationships(CheckDepositRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CheckDepositAttributes.java b/src/main/java/unit/java/sdk/model/CheckDepositAttributes.java index ff7a6a1d..da415901 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositAttributes.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositAttributes.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckDepositAttributes */ @@ -59,7 +60,7 @@ CheckDepositAttributes.JSON_PROPERTY_COUNTERPARTY, CheckDepositAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckDepositAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -77,17 +78,17 @@ public class CheckDepositAttributes { * Gets or Sets status */ public enum StatusEnum { - AWAITINGIMAGES("AwaitingImages"), + AWAITING_IMAGES("AwaitingImages"), - AWAITINGFRONTIMAGE("AwaitingFrontImage"), + AWAITING_FRONT_IMAGE("AwaitingFrontImage"), - AWAITINGBACKIMAGE("AwaitingBackImage"), + AWAITING_BACK_IMAGE("AwaitingBackImage"), PENDING("Pending"), - PENDINGREVIEW("PendingReview"), + PENDING_REVIEW("PendingReview"), - AWAITINGCUSTOMERCONFIRMATION("AwaitingCustomerConfirmation"), + AWAITING_CUSTOMER_CONFIRMATION("AwaitingCustomerConfirmation"), REJECTED("Rejected"), @@ -164,14 +165,13 @@ public CheckDepositAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -189,14 +189,13 @@ public CheckDepositAttributes settlementDate(LocalDate settlementDate) { return this; } - /** + /** * Get settlementDate * @return settlementDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SETTLEMENT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getSettlementDate() { return settlementDate; } @@ -214,15 +213,14 @@ public CheckDepositAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -240,14 +238,13 @@ public CheckDepositAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -265,14 +262,13 @@ public CheckDepositAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -290,13 +286,12 @@ public CheckDepositAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getReason() { return reason.orElse(null); } @@ -323,14 +318,13 @@ public CheckDepositAttributes statusCreatedAt(OffsetDateTime statusCreatedAt) { return this; } - /** + /** * Get statusCreatedAt * @return statusCreatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getStatusCreatedAt() { return statusCreatedAt; } @@ -348,14 +342,13 @@ public CheckDepositAttributes statusSetBy(String statusSetBy) { return this; } - /** + /** * Get statusSetBy * @return statusSetBy - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS_SET_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatusSetBy() { return statusSetBy; } @@ -381,14 +374,13 @@ public CheckDepositAttributes addStatusHistoryItem(StatusEvent statusHistoryItem return this; } - /** + /** * Get statusHistory * @return statusHistory - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS_HISTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatusHistory() { return statusHistory; } @@ -406,14 +398,13 @@ public CheckDepositAttributes reasonText(String reasonText) { return this; } - /** + /** * Get reasonText * @return reasonText - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReasonText() { return reasonText; } @@ -431,14 +422,13 @@ public CheckDepositAttributes checkNumber(String checkNumber) { return this; } - /** + /** * Get checkNumber * @return checkNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHECK_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCheckNumber() { return checkNumber; } @@ -456,14 +446,13 @@ public CheckDepositAttributes vendor(String vendor) { return this; } - /** + /** * Get vendor * @return vendor - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VENDOR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVendor() { return vendor; } @@ -481,14 +470,13 @@ public CheckDepositAttributes counterparty(CheckDepositCounterparty counterparty return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CheckDepositCounterparty getCounterparty() { return counterparty; } @@ -514,14 +502,13 @@ public CheckDepositAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -645,42 +632,42 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `settlementDate` to the URL query string if (getSettlementDate() != null) { - joiner.add(String.format("%ssettlementDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSettlementDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssettlementDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSettlementDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `statusCreatedAt` to the URL query string if (getStatusCreatedAt() != null) { - joiner.add(String.format("%sstatusCreatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatusCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatusCreatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatusCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `statusSetBy` to the URL query string if (getStatusSetBy() != null) { - joiner.add(String.format("%sstatusSetBy%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatusSetBy()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatusSetBy%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatusSetBy()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `statusHistory` to the URL query string @@ -695,17 +682,17 @@ public String toUrlQueryString(String prefix) { // add `reasonText` to the URL query string if (getReasonText() != null) { - joiner.add(String.format("%sreasonText%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReasonText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreasonText%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReasonText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `checkNumber` to the URL query string if (getCheckNumber() != null) { - joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `vendor` to the URL query string if (getVendor() != null) { - joiner.add(String.format("%svendor%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVendor()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%svendor%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVendor()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -718,7 +705,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CheckDepositCounterparty.java b/src/main/java/unit/java/sdk/model/CheckDepositCounterparty.java index 19242eb4..649f930a 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositCounterparty.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositCounterparty.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckDepositCounterparty */ @@ -36,7 +37,7 @@ CheckDepositCounterparty.JSON_PROPERTY_ACCOUNT_NUMBER, CheckDepositCounterparty.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckDepositCounterparty { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; @@ -55,14 +56,13 @@ public CheckDepositCounterparty routingNumber(String routingNumber) { return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -80,14 +80,13 @@ public CheckDepositCounterparty accountNumber(String accountNumber) { return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { return accountNumber; } @@ -105,14 +104,13 @@ public CheckDepositCounterparty name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -203,17 +201,17 @@ public String toUrlQueryString(String prefix) { // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CheckDepositRelationship.java b/src/main/java/unit/java/sdk/model/CheckDepositRelationship.java index a1e8bf5d..1065aac3 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositRelationship.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckDepositRelationship */ @JsonPropertyOrder({ CheckDepositRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckDepositRelationship { public static final String JSON_PROPERTY_DATA = "data"; private CheckDepositRelationshipData data; @@ -48,14 +49,13 @@ public CheckDepositRelationship data(CheckDepositRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CheckDepositRelationshipData.java b/src/main/java/unit/java/sdk/model/CheckDepositRelationshipData.java index 149c07af..095a4fb3 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckDepositRelationshipData */ @@ -35,7 +36,7 @@ CheckDepositRelationshipData.JSON_PROPERTY_TYPE, CheckDepositRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckDepositRelationshipData { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "checkDeposit"; @@ -51,14 +52,13 @@ public CheckDepositRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public CheckDepositRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CheckDepositRelationships.java b/src/main/java/unit/java/sdk/model/CheckDepositRelationships.java index a316692e..3daf7138 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositRelationships.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckDepositRelationships */ @@ -41,7 +42,7 @@ CheckDepositRelationships.JSON_PROPERTY_CUSTOMER, CheckDepositRelationships.JSON_PROPERTY_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckDepositRelationships { public static final String JSON_PROPERTY_ORG = "org"; private OrgRelationship org; @@ -63,14 +64,13 @@ public CheckDepositRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrgRelationship getOrg() { return org; } @@ -88,14 +88,13 @@ public CheckDepositRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -113,14 +112,13 @@ public CheckDepositRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -138,14 +136,13 @@ public CheckDepositRelationships transaction(TransactionRelationship transaction return this; } - /** + /** * Get transaction * @return transaction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransactionRelationship getTransaction() { return transaction; } diff --git a/src/main/java/unit/java/sdk/model/CheckDepositStatus.java b/src/main/java/unit/java/sdk/model/CheckDepositStatus.java index e7c7585e..55ee280f 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositStatus.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositStatus.java @@ -30,17 +30,17 @@ */ public enum CheckDepositStatus { - AWAITINGIMAGES("AwaitingImages"), + AWAITING_IMAGES("AwaitingImages"), - AWAITINGFRONTIMAGE("AwaitingFrontImage"), + AWAITING_FRONT_IMAGE("AwaitingFrontImage"), - AWAITINGBACKIMAGE("AwaitingBackImage"), + AWAITING_BACK_IMAGE("AwaitingBackImage"), - AWAITINGCUSTOMERCONFIRMATION("AwaitingCustomerConfirmation"), + AWAITING_CUSTOMER_CONFIRMATION("AwaitingCustomerConfirmation"), PENDING("Pending"), - PENDINGREVIEW("PendingReview"), + PENDING_REVIEW("PendingReview"), REJECTED("Rejected"), diff --git a/src/main/java/unit/java/sdk/model/CheckDepositTransaction.java b/src/main/java/unit/java/sdk/model/CheckDepositTransaction.java index a094794c..0dfb9642 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositTransaction.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CheckDepositTransaction */ @@ -42,7 +43,7 @@ CheckDepositTransaction.JSON_PROPERTY_ATTRIBUTES, CheckDepositTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CheckDepositTransaction attributes(CheckDepositTransactionAllOfAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CheckDepositTransaction relationships(CheckDepositTransactionRelationship return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CheckDepositTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/CheckDepositTransactionAllOfAttributes.java index 021df8fe..4b18a68e 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckDepositTransactionAllOfAttributes */ @@ -42,7 +43,7 @@ CheckDepositTransactionAllOfAttributes.JSON_PROPERTY_SUMMARY, CheckDepositTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckDepositTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -105,14 +106,13 @@ public CheckDepositTransactionAllOfAttributes createdAt(OffsetDateTime createdAt return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -130,14 +130,13 @@ public CheckDepositTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -155,14 +154,13 @@ public CheckDepositTransactionAllOfAttributes direction(DirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -180,14 +178,13 @@ public CheckDepositTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -205,14 +202,13 @@ public CheckDepositTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -238,14 +234,13 @@ public CheckDepositTransactionAllOfAttributes putTagsItem(String key, String tag return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -342,27 +337,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -370,7 +365,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CheckDepositTransactionRelationships.java b/src/main/java/unit/java/sdk/model/CheckDepositTransactionRelationships.java index 9f7001b8..2bf1fa54 100644 --- a/src/main/java/unit/java/sdk/model/CheckDepositTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/CheckDepositTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckDepositTransactionRelationships */ @@ -41,7 +42,7 @@ CheckDepositTransactionRelationships.JSON_PROPERTY_CUSTOMERS, CheckDepositTransactionRelationships.JSON_PROPERTY_CHECK_DEPOSIT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckDepositTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public CheckDepositTransactionRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public CheckDepositTransactionRelationships customer(CustomerRelationship custom return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public CheckDepositTransactionRelationships customers(CustomersRelationship cust return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public CheckDepositTransactionRelationships checkDeposit(CheckDepositRelationshi return this; } - /** + /** * Get checkDeposit * @return checkDeposit - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CHECK_DEPOSIT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositRelationship getCheckDeposit() { return checkDeposit; } diff --git a/src/main/java/unit/java/sdk/model/CheckPayment.java b/src/main/java/unit/java/sdk/model/CheckPayment.java index 91d87517..b6e3461c 100644 --- a/src/main/java/unit/java/sdk/model/CheckPayment.java +++ b/src/main/java/unit/java/sdk/model/CheckPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckPayment */ @@ -39,13 +40,13 @@ CheckPayment.JSON_PROPERTY_ATTRIBUTES, CheckPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckPayment { /** * Gets or Sets type */ public enum TypeEnum { - CHECKPAYMENT("checkPayment"); + CHECK_PAYMENT("checkPayment"); private String value; @@ -75,7 +76,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CHECKPAYMENT; + private TypeEnum type = TypeEnum.CHECK_PAYMENT; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -94,14 +95,13 @@ public CheckPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public CheckPayment id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -144,14 +143,13 @@ public CheckPayment attributes(CheckPaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckPaymentAttributes getAttributes() { return attributes; } @@ -169,14 +167,13 @@ public CheckPayment relationships(CheckPaymentRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckPaymentRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CheckPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CheckPaymentAttributes.java index 95336947..ecdfbc95 100644 --- a/src/main/java/unit/java/sdk/model/CheckPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CheckPaymentAttributes.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckPaymentAttributes */ @@ -65,7 +66,7 @@ CheckPaymentAttributes.JSON_PROPERTY_COUNTERPARTY_ROUTING_NUMBER, CheckPaymentAttributes.JSON_PROPERTY_ADDITIONAL_VERIFICATION_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckPaymentAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -83,13 +84,13 @@ public class CheckPaymentAttributes { * Gets or Sets status */ public enum StatusEnum { - MARKEDFORRETURN("MarkedForReturn"), + MARKED_FOR_RETURN("MarkedForReturn"), RETURNED("Returned"), PROCESSED("Processed"), - PENDINGREVIEW("PendingReview"); + PENDING_REVIEW("PendingReview"); private String value; @@ -130,13 +131,13 @@ public static StatusEnum fromValue(String value) { public enum DeliveryStatusEnum { MAILED("Mailed"), - INLOCALAREA("InLocalArea"), + IN_LOCAL_AREA("InLocalArea"), DELIVERED("Delivered"), REROUTED("Rerouted"), - RETURNEDTOSENDER("ReturnedToSender"); + RETURNED_TO_SENDER("ReturnedToSender"); private String value; @@ -205,9 +206,9 @@ public static DeliveryStatusEnum fromValue(String value) { * Gets or Sets pendingReviewReasons */ public enum PendingReviewReasonsEnum { - NAMEMISSMATCH("NameMissMatch"), + NAME_MISS_MATCH("NameMissMatch"), - SOFTLIMIT("SoftLimit"); + SOFT_LIMIT("SoftLimit"); private String value; @@ -257,7 +258,7 @@ public static PendingReviewReasonsEnum fromValue(String value) { public enum AdditionalVerificationStatusEnum { REQUIRED("Required"), - NOTREQUIRED("NotRequired"), + NOT_REQUIRED("NotRequired"), APPROVED("Approved"); @@ -299,14 +300,13 @@ public CheckPaymentAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -324,14 +324,13 @@ public CheckPaymentAttributes updatedAt(OffsetDateTime updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -349,15 +348,14 @@ public CheckPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -375,14 +373,13 @@ public CheckPaymentAttributes returnCutoffTime(OffsetDateTime returnCutoffTime) return this; } - /** + /** * Get returnCutoffTime * @return returnCutoffTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN_CUTOFF_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getReturnCutoffTime() { return returnCutoffTime; } @@ -400,14 +397,13 @@ public CheckPaymentAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -425,14 +421,13 @@ public CheckPaymentAttributes memo(String memo) { return this; } - /** + /** * Get memo * @return memo - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MEMO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMemo() { return memo; } @@ -450,14 +445,13 @@ public CheckPaymentAttributes deliveryStatus(DeliveryStatusEnum deliveryStatus) return this; } - /** + /** * Get deliveryStatus * @return deliveryStatus - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DELIVERY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeliveryStatusEnum getDeliveryStatus() { return deliveryStatus; } @@ -475,14 +469,13 @@ public CheckPaymentAttributes sendAt(OffsetDateTime sendAt) { return this; } - /** + /** * Get sendAt * @return sendAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEND_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getSendAt() { return sendAt; } @@ -500,14 +493,13 @@ public CheckPaymentAttributes counterparty(CheckPaymentCounterparty counterparty return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CheckPaymentCounterparty getCounterparty() { return counterparty; } @@ -525,14 +517,13 @@ public CheckPaymentAttributes trackedAt(OffsetDateTime trackedAt) { return this; } - /** + /** * Get trackedAt * @return trackedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRACKED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getTrackedAt() { return trackedAt; } @@ -550,14 +541,13 @@ public CheckPaymentAttributes postalCode(String postalCode) { return this; } - /** + /** * Get postalCode * @return postalCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPostalCode() { return postalCode; } @@ -575,14 +565,13 @@ public CheckPaymentAttributes expectedDelivery(LocalDate expectedDelivery) { return this; } - /** + /** * Get expectedDelivery * @return expectedDelivery - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPECTED_DELIVERY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getExpectedDelivery() { return expectedDelivery; } @@ -600,14 +589,13 @@ public CheckPaymentAttributes originated(Boolean originated) { return this; } - /** + /** * Get originated * @return originated - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORIGINATED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getOriginated() { return originated; } @@ -625,14 +613,13 @@ public CheckPaymentAttributes expirationDate(LocalDate expirationDate) { return this; } - /** + /** * Get expirationDate * @return expirationDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getExpirationDate() { return expirationDate; } @@ -650,14 +637,13 @@ public CheckPaymentAttributes rejectReason(String rejectReason) { return this; } - /** + /** * Get rejectReason * @return rejectReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REJECT_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRejectReason() { return rejectReason; } @@ -683,14 +669,13 @@ public CheckPaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -708,14 +693,13 @@ public CheckPaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { return description; } @@ -733,14 +717,13 @@ public CheckPaymentAttributes returnReason(ReturnReason returnReason) { return this; } - /** + /** * Get returnReason * @return returnReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReturnReason getReturnReason() { return returnReason; } @@ -766,14 +749,13 @@ public CheckPaymentAttributes addPendingReviewReasonsItem(PendingReviewReasonsEn return this; } - /** + /** * Get pendingReviewReasons * @return pendingReviewReasons - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PENDING_REVIEW_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getPendingReviewReasons() { return pendingReviewReasons; } @@ -791,14 +773,13 @@ public CheckPaymentAttributes checkNumber(String checkNumber) { return this; } - /** + /** * Get checkNumber * @return checkNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHECK_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCheckNumber() { return checkNumber; } @@ -816,14 +797,13 @@ public CheckPaymentAttributes onUsAuxiliary(String onUsAuxiliary) { return this; } - /** + /** * Get onUsAuxiliary * @return onUsAuxiliary - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ON_US_AUXILIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOnUsAuxiliary() { return onUsAuxiliary; } @@ -841,14 +821,13 @@ public CheckPaymentAttributes onUs(String onUs) { return this; } - /** + /** * Get onUs * @return onUs - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ON_US) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOnUs() { return onUs; } @@ -866,14 +845,13 @@ public CheckPaymentAttributes counterpartyRoutingNumber(String counterpartyRouti return this; } - /** + /** * Get counterpartyRoutingNumber * @return counterpartyRoutingNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCounterpartyRoutingNumber() { return counterpartyRoutingNumber; } @@ -891,14 +869,13 @@ public CheckPaymentAttributes additionalVerificationStatus(AdditionalVerificatio return this; } - /** + /** * Get additionalVerificationStatus * @return additionalVerificationStatus - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDITIONAL_VERIFICATION_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AdditionalVerificationStatusEnum getAdditionalVerificationStatus() { return additionalVerificationStatus; } @@ -1031,42 +1008,42 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `returnCutoffTime` to the URL query string if (getReturnCutoffTime() != null) { - joiner.add(String.format("%sreturnCutoffTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReturnCutoffTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreturnCutoffTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReturnCutoffTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `memo` to the URL query string if (getMemo() != null) { - joiner.add(String.format("%smemo%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMemo()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smemo%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMemo()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `deliveryStatus` to the URL query string if (getDeliveryStatus() != null) { - joiner.add(String.format("%sdeliveryStatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeliveryStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdeliveryStatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeliveryStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sendAt` to the URL query string if (getSendAt() != null) { - joiner.add(String.format("%ssendAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSendAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssendAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSendAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -1076,32 +1053,32 @@ public String toUrlQueryString(String prefix) { // add `trackedAt` to the URL query string if (getTrackedAt() != null) { - joiner.add(String.format("%strackedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTrackedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%strackedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTrackedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `postalCode` to the URL query string if (getPostalCode() != null) { - joiner.add(String.format("%spostalCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPostalCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spostalCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPostalCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expectedDelivery` to the URL query string if (getExpectedDelivery() != null) { - joiner.add(String.format("%sexpectedDelivery%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpectedDelivery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpectedDelivery%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpectedDelivery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `originated` to the URL query string if (getOriginated() != null) { - joiner.add(String.format("%soriginated%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOriginated()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soriginated%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOriginated()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expirationDate` to the URL query string if (getExpirationDate() != null) { - joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `rejectReason` to the URL query string if (getRejectReason() != null) { - joiner.add(String.format("%srejectReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRejectReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srejectReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRejectReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -1109,18 +1086,18 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `returnReason` to the URL query string if (getReturnReason() != null) { - joiner.add(String.format("%sreturnReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReturnReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreturnReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReturnReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `pendingReviewReasons` to the URL query string @@ -1128,33 +1105,33 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getPendingReviewReasons().size(); i++) { joiner.add(String.format("%spendingReviewReasons%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getPendingReviewReasons().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getPendingReviewReasons().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `checkNumber` to the URL query string if (getCheckNumber() != null) { - joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `onUsAuxiliary` to the URL query string if (getOnUsAuxiliary() != null) { - joiner.add(String.format("%sonUsAuxiliary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOnUsAuxiliary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sonUsAuxiliary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOnUsAuxiliary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `onUs` to the URL query string if (getOnUs() != null) { - joiner.add(String.format("%sonUs%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOnUs()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sonUs%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOnUs()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyRoutingNumber` to the URL query string if (getCounterpartyRoutingNumber() != null) { - joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `additionalVerificationStatus` to the URL query string if (getAdditionalVerificationStatus() != null) { - joiner.add(String.format("%sadditionalVerificationStatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAdditionalVerificationStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sadditionalVerificationStatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAdditionalVerificationStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CheckPaymentCounterparty.java b/src/main/java/unit/java/sdk/model/CheckPaymentCounterparty.java index 14f2e01d..815a100e 100644 --- a/src/main/java/unit/java/sdk/model/CheckPaymentCounterparty.java +++ b/src/main/java/unit/java/sdk/model/CheckPaymentCounterparty.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckPaymentCounterparty */ @@ -37,7 +38,7 @@ CheckPaymentCounterparty.JSON_PROPERTY_ADDRESS, CheckPaymentCounterparty.JSON_PROPERTY_COUNTERPARTY_MOVED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckPaymentCounterparty { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -56,14 +57,13 @@ public CheckPaymentCounterparty name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { return name; } @@ -81,14 +81,13 @@ public CheckPaymentCounterparty address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -106,14 +105,13 @@ public CheckPaymentCounterparty counterpartyMoved(Boolean counterpartyMoved) { return this; } - /** + /** * Get counterpartyMoved * @return counterpartyMoved - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY_MOVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getCounterpartyMoved() { return counterpartyMoved; } @@ -204,7 +202,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -214,7 +212,7 @@ public String toUrlQueryString(String prefix) { // add `counterpartyMoved` to the URL query string if (getCounterpartyMoved() != null) { - joiner.add(String.format("%scounterpartyMoved%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyMoved()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyMoved%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyMoved()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CheckPaymentRelationship.java b/src/main/java/unit/java/sdk/model/CheckPaymentRelationship.java index 1ced035a..dd139411 100644 --- a/src/main/java/unit/java/sdk/model/CheckPaymentRelationship.java +++ b/src/main/java/unit/java/sdk/model/CheckPaymentRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckPaymentRelationship */ @JsonPropertyOrder({ CheckPaymentRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckPaymentRelationship { public static final String JSON_PROPERTY_DATA = "data"; private CheckPaymentRelationshipData data; @@ -48,14 +49,13 @@ public CheckPaymentRelationship data(CheckPaymentRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckPaymentRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CheckPaymentRelationshipData.java b/src/main/java/unit/java/sdk/model/CheckPaymentRelationshipData.java index 0129cb22..4b03c8d2 100644 --- a/src/main/java/unit/java/sdk/model/CheckPaymentRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/CheckPaymentRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckPaymentRelationshipData */ @@ -35,7 +36,7 @@ CheckPaymentRelationshipData.JSON_PROPERTY_TYPE, CheckPaymentRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckPaymentRelationshipData { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "payment"; @@ -51,14 +52,13 @@ public CheckPaymentRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public CheckPaymentRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CheckPaymentRelationships.java b/src/main/java/unit/java/sdk/model/CheckPaymentRelationships.java index 1365b4e8..16c2ec15 100644 --- a/src/main/java/unit/java/sdk/model/CheckPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CheckPaymentRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckPaymentRelationships */ @@ -41,7 +42,7 @@ CheckPaymentRelationships.JSON_PROPERTY_CUSTOMERS, CheckPaymentRelationships.JSON_PROPERTY_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public CheckPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public CheckPaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public CheckPaymentRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public CheckPaymentRelationships transaction(TransactionRelationship transaction return this; } - /** + /** * Get transaction * @return transaction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransactionRelationship getTransaction() { return transaction; } diff --git a/src/main/java/unit/java/sdk/model/CheckPaymentTransaction.java b/src/main/java/unit/java/sdk/model/CheckPaymentTransaction.java index a90560c2..9a66f025 100644 --- a/src/main/java/unit/java/sdk/model/CheckPaymentTransaction.java +++ b/src/main/java/unit/java/sdk/model/CheckPaymentTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CheckPaymentTransaction */ @@ -42,7 +43,7 @@ CheckPaymentTransaction.JSON_PROPERTY_ATTRIBUTES, CheckPaymentTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CheckPaymentTransaction attributes(CheckDepositTransactionAllOfAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CheckPaymentTransaction relationships(CheckPaymentTransactionRelationship return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckPaymentTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CheckPaymentTransactionRelationships.java b/src/main/java/unit/java/sdk/model/CheckPaymentTransactionRelationships.java index 7311aeb8..5b7b86cc 100644 --- a/src/main/java/unit/java/sdk/model/CheckPaymentTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/CheckPaymentTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckPaymentTransactionRelationships */ @@ -41,7 +42,7 @@ CheckPaymentTransactionRelationships.JSON_PROPERTY_CUSTOMERS, CheckPaymentTransactionRelationships.JSON_PROPERTY_CHECK_PAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckPaymentTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public CheckPaymentTransactionRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public CheckPaymentTransactionRelationships customer(CustomerRelationship custom return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public CheckPaymentTransactionRelationships customers(CustomersRelationship cust return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public CheckPaymentTransactionRelationships checkPayment(CheckPaymentRelationshi return this; } - /** + /** * Get checkPayment * @return checkPayment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CHECK_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckPaymentRelationship getCheckPayment() { return checkPayment; } diff --git a/src/main/java/unit/java/sdk/model/CheckStopPayment.java b/src/main/java/unit/java/sdk/model/CheckStopPayment.java index 96d95682..3adfa077 100644 --- a/src/main/java/unit/java/sdk/model/CheckStopPayment.java +++ b/src/main/java/unit/java/sdk/model/CheckStopPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckStopPayment */ @@ -37,7 +38,7 @@ CheckStopPayment.JSON_PROPERTY_ATTRIBUTES, CheckStopPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckStopPayment { public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CheckStopPaymentAttributes attributes; @@ -53,14 +54,13 @@ public CheckStopPayment attributes(CheckStopPaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CheckStopPaymentAttributes getAttributes() { return attributes; } @@ -78,14 +78,13 @@ public CheckStopPayment relationships(CheckStopPaymentRelationships relationship return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CheckStopPaymentRelationships getRelationships() { return relationships; } diff --git a/src/main/java/unit/java/sdk/model/CheckStopPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CheckStopPaymentAttributes.java index 4c7f7bf0..b82ec94b 100644 --- a/src/main/java/unit/java/sdk/model/CheckStopPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CheckStopPaymentAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckStopPaymentAttributes */ @@ -43,7 +44,7 @@ CheckStopPaymentAttributes.JSON_PROPERTY_TAGS, CheckStopPaymentAttributes.JSON_PROPERTY_CHECK_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckStopPaymentAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -71,14 +72,13 @@ public CheckStopPaymentAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -96,14 +96,13 @@ public CheckStopPaymentAttributes updatedAt(OffsetDateTime updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -121,14 +120,13 @@ public CheckStopPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getAmount() { return amount; } @@ -146,14 +144,13 @@ public CheckStopPaymentAttributes status(CheckStopPaymentStatus status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckStopPaymentStatus getStatus() { return status; } @@ -179,14 +176,13 @@ public CheckStopPaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Map getTags() { return tags; } @@ -204,14 +200,13 @@ public CheckStopPaymentAttributes checkNumber(String checkNumber) { return this; } - /** + /** * Get checkNumber * @return checkNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CHECK_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCheckNumber() { return checkNumber; } @@ -308,22 +303,22 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -331,13 +326,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `checkNumber` to the URL query string if (getCheckNumber() != null) { - joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CheckStopPaymentRelationships.java b/src/main/java/unit/java/sdk/model/CheckStopPaymentRelationships.java index e59b3401..3129101b 100644 --- a/src/main/java/unit/java/sdk/model/CheckStopPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CheckStopPaymentRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckStopPaymentRelationships */ @@ -41,7 +42,7 @@ CheckStopPaymentRelationships.JSON_PROPERTY_CUSTOMERS, CheckStopPaymentRelationships.JSON_PROPERTY_STOPPED_PAYMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckStopPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public CheckStopPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public CheckStopPaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public CheckStopPaymentRelationships customers(CustomersRelationship customers) return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public CheckStopPaymentRelationships stoppedPayments(CheckStopPaymentRelationshi return this; } - /** + /** * Get stoppedPayments * @return stoppedPayments - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STOPPED_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CheckStopPaymentRelationshipsAllOfStoppedPayments getStoppedPayments() { return stoppedPayments; } diff --git a/src/main/java/unit/java/sdk/model/CheckStopPaymentRelationshipsAllOfStoppedPayments.java b/src/main/java/unit/java/sdk/model/CheckStopPaymentRelationshipsAllOfStoppedPayments.java index 45bd0d37..fb7aa6e5 100644 --- a/src/main/java/unit/java/sdk/model/CheckStopPaymentRelationshipsAllOfStoppedPayments.java +++ b/src/main/java/unit/java/sdk/model/CheckStopPaymentRelationshipsAllOfStoppedPayments.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CheckStopPaymentRelationshipsAllOfStoppedPayments */ @JsonPropertyOrder({ CheckStopPaymentRelationshipsAllOfStoppedPayments.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CheckStopPaymentRelationshipsAllOfStoppedPayments { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public CheckStopPaymentRelationshipsAllOfStoppedPayments addDataItem(CheckPaymen return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CloseAccountRequest.java b/src/main/java/unit/java/sdk/model/CloseAccountRequest.java index 730b8c56..fefd2831 100644 --- a/src/main/java/unit/java/sdk/model/CloseAccountRequest.java +++ b/src/main/java/unit/java/sdk/model/CloseAccountRequest.java @@ -25,50 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; +import unit.java.sdk.model.CloseAccountRequestData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CloseAccountRequest */ @JsonPropertyOrder({ CloseAccountRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CloseAccountRequest { public static final String JSON_PROPERTY_DATA = "data"; - private CloseAccountRequest data; + private CloseAccountRequestData data; public CloseAccountRequest() { } - public CloseAccountRequest data(CloseAccountRequest data) { + public CloseAccountRequest data(CloseAccountRequestData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public CloseAccountRequest getData() { + public CloseAccountRequestData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(CloseAccountRequest data) { + public void setData(CloseAccountRequestData data) { this.data = data; } /** - * Return true if this Close_Account_Request object is equal to o. + * Return true if this CloseAccountRequest object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/unit/java/sdk/model/CloseAccountRequestData.java b/src/main/java/unit/java/sdk/model/CloseAccountRequestData.java new file mode 100644 index 00000000..5d125bda --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CloseAccountRequestData.java @@ -0,0 +1,223 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CloseAccountRequestDataAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CloseAccountRequestData + */ +@JsonPropertyOrder({ + CloseAccountRequestData.JSON_PROPERTY_TYPE, + CloseAccountRequestData.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CloseAccountRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + CREDIT_ACCOUNT_CLOSE("creditAccountClose"), + + DEPOSIT_ACCOUNT_CLOSE("depositAccountClose"), + + WALLET_ACCOUNT_CLOSE("walletAccountClose"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CloseAccountRequestDataAttributes attributes; + + public CloseAccountRequestData() { + } + + public CloseAccountRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public CloseAccountRequestData attributes(CloseAccountRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public CloseAccountRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAttributes(CloseAccountRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + /** + * Return true if this CloseAccountRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CloseAccountRequestData closeAccountRequestData = (CloseAccountRequestData) o; + return Objects.equals(this.type, closeAccountRequestData.type) && + Objects.equals(this.attributes, closeAccountRequestData.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CloseAccountRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CloseAccountRequestAttributes.java b/src/main/java/unit/java/sdk/model/CloseAccountRequestDataAttributes.java similarity index 60% rename from src/main/java/unit/java/sdk/model/CloseAccountRequestAttributes.java rename to src/main/java/unit/java/sdk/model/CloseAccountRequestDataAttributes.java index a3d77f68..0465b6b9 100644 --- a/src/main/java/unit/java/sdk/model/CloseAccountRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/CloseAccountRequestDataAttributes.java @@ -32,20 +32,22 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * CloseAccountRequestAttributes + * CloseAccountRequestDataAttributes */ @JsonPropertyOrder({ - CloseAccountRequestAttributes.JSON_PROPERTY_REASON, - CloseAccountRequestAttributes.JSON_PROPERTY_FRAUD_REASON + CloseAccountRequestDataAttributes.JSON_PROPERTY_REASON, + CloseAccountRequestDataAttributes.JSON_PROPERTY_FRAUD_REASON, + CloseAccountRequestDataAttributes.JSON_PROPERTY_BANK_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class CloseAccountRequestAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CloseAccountRequestDataAttributes { /** * Gets or Sets reason */ public enum ReasonEnum { - BYCUSTOMER("ByCustomer"), + BY_CUSTOMER("ByCustomer"), FRAUD("Fraud"); @@ -77,27 +79,27 @@ public static ReasonEnum fromValue(String value) { } public static final String JSON_PROPERTY_REASON = "reason"; - private ReasonEnum reason = ReasonEnum.BYCUSTOMER; + private ReasonEnum reason = ReasonEnum.BY_CUSTOMER; /** * Gets or Sets fraudReason */ public enum FraudReasonEnum { - ACHACTIVITY("ACHActivity"), + ACH_ACTIVITY("ACHActivity"), - CARDACTIVITY("CardActivity"), + CARD_ACTIVITY("CardActivity"), - CHECKACTIVITY("CheckActivity"), + CHECK_ACTIVITY("CheckActivity"), - APPLICATIONHISTORY("ApplicationHistory"), + APPLICATION_HISTORY("ApplicationHistory"), - ACCOUNTACTIVITY("AccountActivity"), + ACCOUNT_ACTIVITY("AccountActivity"), - CLIENTIDENTIFIED("ClientIdentified"), + CLIENT_IDENTIFIED("ClientIdentified"), - IDENTITYTHEFT("IdentityTheft"), + IDENTITY_THEFT("IdentityTheft"), - LINKEDTOFRAUDULENTCUSTOMER("LinkedToFraudulentCustomer"); + LINKED_TO_FRAUDULENT_CUSTOMER("LinkedToFraudulentCustomer"); private String value; @@ -129,22 +131,63 @@ public static FraudReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_FRAUD_REASON = "fraudReason"; private JsonNullable fraudReason = JsonNullable.undefined(); - public CloseAccountRequestAttributes() { + /** + * Gets or Sets bankReason + */ + public enum BankReasonEnum { + PROHIBITED_BUSINESS("ProhibitedBusiness"), + + MISSING_CDD_EDD("MissingCddEdd"), + + NON_US_OPERATION("NonUsOperation"), + + SUSPECTED_FRAUD("SuspectedFraud"); + + private String value; + + BankReasonEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static BankReasonEnum fromValue(String value) { + for (BankReasonEnum b : BankReasonEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + return null; + } } - public CloseAccountRequestAttributes reason(ReasonEnum reason) { + public static final String JSON_PROPERTY_BANK_REASON = "bankReason"; + private JsonNullable bankReason = JsonNullable.undefined(); + + public CloseAccountRequestDataAttributes() { + } + + public CloseAccountRequestDataAttributes reason(ReasonEnum reason) { this.reason = reason; return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReasonEnum getReason() { return reason; } @@ -157,18 +200,17 @@ public void setReason(ReasonEnum reason) { } - public CloseAccountRequestAttributes fraudReason(FraudReasonEnum fraudReason) { + public CloseAccountRequestDataAttributes fraudReason(FraudReasonEnum fraudReason) { this.fraudReason = JsonNullable.of(fraudReason); return this; } - /** + /** * Get fraudReason * @return fraudReason - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public FraudReasonEnum getFraudReason() { return fraudReason.orElse(null); } @@ -190,8 +232,40 @@ public void setFraudReason(FraudReasonEnum fraudReason) { } + public CloseAccountRequestDataAttributes bankReason(BankReasonEnum bankReason) { + this.bankReason = JsonNullable.of(bankReason); + return this; + } + + /** + * Get bankReason + * @return bankReason + */ + @jakarta.annotation.Nullable + @JsonIgnore + public BankReasonEnum getBankReason() { + return bankReason.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_BANK_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getBankReason_JsonNullable() { + return bankReason; + } + + @JsonProperty(JSON_PROPERTY_BANK_REASON) + public void setBankReason_JsonNullable(JsonNullable bankReason) { + this.bankReason = bankReason; + } + + public void setBankReason(BankReasonEnum bankReason) { + this.bankReason = JsonNullable.of(bankReason); + } + + /** - * Return true if this CloseAccountRequest_attributes object is equal to o. + * Return true if this CloseAccountRequest_data_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -201,9 +275,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CloseAccountRequestAttributes closeAccountRequestAttributes = (CloseAccountRequestAttributes) o; - return Objects.equals(this.reason, closeAccountRequestAttributes.reason) && - equalsNullable(this.fraudReason, closeAccountRequestAttributes.fraudReason); + CloseAccountRequestDataAttributes closeAccountRequestDataAttributes = (CloseAccountRequestDataAttributes) o; + return Objects.equals(this.reason, closeAccountRequestDataAttributes.reason) && + equalsNullable(this.fraudReason, closeAccountRequestDataAttributes.fraudReason) && + equalsNullable(this.bankReason, closeAccountRequestDataAttributes.bankReason); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -212,7 +287,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(reason, hashCodeNullable(fraudReason)); + return Objects.hash(reason, hashCodeNullable(fraudReason), hashCodeNullable(bankReason)); } private static int hashCodeNullable(JsonNullable a) { @@ -225,9 +300,10 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CloseAccountRequestAttributes {\n"); + sb.append("class CloseAccountRequestDataAttributes {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" fraudReason: ").append(toIndentedString(fraudReason)).append("\n"); + sb.append(" bankReason: ").append(toIndentedString(bankReason)).append("\n"); sb.append("}"); return sb.toString(); } @@ -277,12 +353,17 @@ public String toUrlQueryString(String prefix) { // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fraudReason` to the URL query string if (getFraudReason() != null) { - joiner.add(String.format("%sfraudReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFraudReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfraudReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFraudReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `bankReason` to the URL query string + if (getBankReason() != null) { + joiner.add(String.format("%sbankReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBankReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitReportLostCardResponse.java b/src/main/java/unit/java/sdk/model/ConfirmCheckDepositRequest.java similarity index 75% rename from src/main/java/unit/java/sdk/model/UnitReportLostCardResponse.java rename to src/main/java/unit/java/sdk/model/ConfirmCheckDepositRequest.java index 27ea2468..5dfa2651 100644 --- a/src/main/java/unit/java/sdk/model/UnitReportLostCardResponse.java +++ b/src/main/java/unit/java/sdk/model/ConfirmCheckDepositRequest.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.Card; +import unit.java.sdk.model.ConfirmCheckDepositRequestData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitReportLostCardResponse + * ConfirmCheckDepositRequest */ @JsonPropertyOrder({ - UnitReportLostCardResponse.JSON_PROPERTY_DATA + ConfirmCheckDepositRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitReportLostCardResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ConfirmCheckDepositRequest { public static final String JSON_PROPERTY_DATA = "data"; - private Card data; + private ConfirmCheckDepositRequestData data; - public UnitReportLostCardResponse() { + public ConfirmCheckDepositRequest() { } - public UnitReportLostCardResponse data(Card data) { + public ConfirmCheckDepositRequest data(ConfirmCheckDepositRequestData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Card getData() { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ConfirmCheckDepositRequestData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Card data) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(ConfirmCheckDepositRequestData data) { this.data = data; } /** - * Return true if this Unit_Report_Lost_Card_Response object is equal to o. + * Return true if this ConfirmCheckDepositRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitReportLostCardResponse unitReportLostCardResponse = (UnitReportLostCardResponse) o; - return Objects.equals(this.data, unitReportLostCardResponse.data); + ConfirmCheckDepositRequest confirmCheckDepositRequest = (ConfirmCheckDepositRequest) o; + return Objects.equals(this.data, confirmCheckDepositRequest.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitReportLostCardResponse {\n"); + sb.append("class ConfirmCheckDepositRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/ConfirmCheckDepositRequestData.java b/src/main/java/unit/java/sdk/model/ConfirmCheckDepositRequestData.java new file mode 100644 index 00000000..dd463be0 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ConfirmCheckDepositRequestData.java @@ -0,0 +1,150 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ConfirmCheckDepositRequestData + */ +@JsonPropertyOrder({ + ConfirmCheckDepositRequestData.JSON_PROPERTY_TYPE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ConfirmCheckDepositRequestData { + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public ConfirmCheckDepositRequestData() { + } + + public ConfirmCheckDepositRequestData type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(String type) { + this.type = type; + } + + + /** + * Return true if this ConfirmCheckDepositRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfirmCheckDepositRequestData confirmCheckDepositRequestData = (ConfirmCheckDepositRequestData) o; + return Objects.equals(this.type, confirmCheckDepositRequestData.type); + } + + @Override + public int hashCode() { + return Objects.hash(type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfirmCheckDepositRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/Contact.java b/src/main/java/unit/java/sdk/model/Contact.java index ebd4eb73..b73c69ce 100644 --- a/src/main/java/unit/java/sdk/model/Contact.java +++ b/src/main/java/unit/java/sdk/model/Contact.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Contact */ @@ -43,7 +44,7 @@ Contact.JSON_PROPERTY_PHONE, Contact.JSON_PROPERTY_JWT_SUBJECT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Contact { public static final String JSON_PROPERTY_FULL_NAME = "fullName"; private FullName fullName; @@ -65,14 +66,13 @@ public Contact fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -90,14 +90,13 @@ public Contact email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -115,14 +114,13 @@ public Contact phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -140,13 +138,12 @@ public Contact jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -264,7 +261,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -274,7 +271,7 @@ public String toUrlQueryString(String prefix) { // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Coordinates.java b/src/main/java/unit/java/sdk/model/Coordinates.java index a9a20a19..1e1e6545 100644 --- a/src/main/java/unit/java/sdk/model/Coordinates.java +++ b/src/main/java/unit/java/sdk/model/Coordinates.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Coordinates */ @@ -36,7 +37,7 @@ Coordinates.JSON_PROPERTY_LONGITUDE, Coordinates.JSON_PROPERTY_LATITUDE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Coordinates { public static final String JSON_PROPERTY_LONGITUDE = "longitude"; private BigDecimal longitude; @@ -52,14 +53,13 @@ public Coordinates longitude(BigDecimal longitude) { return this; } - /** + /** * Get longitude * @return longitude - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LONGITUDE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getLongitude() { return longitude; } @@ -77,14 +77,13 @@ public Coordinates latitude(BigDecimal latitude) { return this; } - /** + /** * Get latitude * @return latitude - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LATITUDE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getLatitude() { return latitude; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `longitude` to the URL query string if (getLongitude() != null) { - joiner.add(String.format("%slongitude%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLongitude()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slongitude%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLongitude()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `latitude` to the URL query string if (getLatitude() != null) { - joiner.add(String.format("%slatitude%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLatitude()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slatitude%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLatitude()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Counterparty.java b/src/main/java/unit/java/sdk/model/Counterparty.java index fbdf8bc1..e881d84a 100644 --- a/src/main/java/unit/java/sdk/model/Counterparty.java +++ b/src/main/java/unit/java/sdk/model/Counterparty.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Counterparty */ @@ -39,10 +40,43 @@ Counterparty.JSON_PROPERTY_ATTRIBUTES, Counterparty.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Counterparty { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ACH_COUNTERPARTY("achCounterparty"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + private TypeEnum type = TypeEnum.ACH_COUNTERPARTY; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -56,27 +90,26 @@ public class Counterparty { public Counterparty() { } - public Counterparty type(String type) { + public Counterparty type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -86,14 +119,13 @@ public Counterparty id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -111,14 +143,13 @@ public Counterparty attributes(CounterpartyAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CounterpartyAttributes getAttributes() { return attributes; } @@ -136,14 +167,13 @@ public Counterparty relationships(CounterpartyRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CounterpartyRelationships getRelationships() { return relationships; } @@ -236,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CounterpartyAccountRelationship.java b/src/main/java/unit/java/sdk/model/CounterpartyAccountRelationship.java index 51115cff..fbc47576 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyAccountRelationship.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyAccountRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyAccountRelationship */ @JsonPropertyOrder({ CounterpartyAccountRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyAccountRelationship { public static final String JSON_PROPERTY_DATA = "data"; private CounterpartyAccountRelationshipData data; @@ -48,14 +49,13 @@ public CounterpartyAccountRelationship data(CounterpartyAccountRelationshipData return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CounterpartyAccountRelationshipData.java b/src/main/java/unit/java/sdk/model/CounterpartyAccountRelationshipData.java index 331528f7..52f89929 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyAccountRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyAccountRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyAccountRelationshipData */ @@ -35,7 +36,7 @@ CounterpartyAccountRelationshipData.JSON_PROPERTY_TYPE, CounterpartyAccountRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyAccountRelationshipData { /** * Gets or Sets type @@ -43,7 +44,7 @@ public class CounterpartyAccountRelationshipData { public enum TypeEnum { ACCOUNT("account"), - DEPOSITACCOUNT("depositAccount"); + DEPOSIT_ACCOUNT("depositAccount"); private String value; @@ -86,14 +87,13 @@ public CounterpartyAccountRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -111,14 +111,13 @@ public CounterpartyAccountRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -207,12 +206,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CounterpartyAttributes.java b/src/main/java/unit/java/sdk/model/CounterpartyAttributes.java index 0bf5600c..44c51631 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyAttributes.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyAttributes */ @@ -45,7 +46,7 @@ CounterpartyAttributes.JSON_PROPERTY_TAGS, CounterpartyAttributes.JSON_PROPERTY_CREATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyAttributes { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; @@ -143,11 +144,11 @@ public static TypeEnum fromValue(String value) { * Gets or Sets permissions */ public enum PermissionsEnum { - CREDITONLY("CreditOnly"), + CREDIT_ONLY("CreditOnly"), - DEBITONLY("DebitOnly"), + DEBIT_ONLY("DebitOnly"), - CREDITANDDEBIT("CreditAndDebit"); + CREDIT_AND_DEBIT("CreditAndDebit"); private String value; @@ -193,14 +194,13 @@ public CounterpartyAttributes routingNumber(String routingNumber) { return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -218,14 +218,13 @@ public CounterpartyAttributes accountNumber(String accountNumber) { return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { return accountNumber; } @@ -243,14 +242,13 @@ public CounterpartyAttributes accountType(AccountTypeEnum accountType) { return this; } - /** + /** * Get accountType * @return accountType - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountTypeEnum getAccountType() { return accountType; } @@ -268,14 +266,13 @@ public CounterpartyAttributes type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -293,14 +290,13 @@ public CounterpartyAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -318,14 +314,13 @@ public CounterpartyAttributes bank(String bank) { return this; } - /** + /** * Get bank * @return bank - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BANK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBank() { return bank; } @@ -343,14 +338,13 @@ public CounterpartyAttributes permissions(PermissionsEnum permissions) { return this; } - /** + /** * Get permissions * @return permissions - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PERMISSIONS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PermissionsEnum getPermissions() { return permissions; } @@ -376,14 +370,13 @@ public CounterpartyAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -401,14 +394,13 @@ public CounterpartyAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -511,37 +503,37 @@ public String toUrlQueryString(String prefix) { // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountType` to the URL query string if (getAccountType() != null) { - joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `bank` to the URL query string if (getBank() != null) { - joiner.add(String.format("%sbank%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBank()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbank%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBank()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `permissions` to the URL query string if (getPermissions() != null) { - joiner.add(String.format("%spermissions%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermissions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spermissions%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPermissions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -549,13 +541,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CounterpartyBalance.java b/src/main/java/unit/java/sdk/model/CounterpartyBalance.java index 79099934..47969087 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyBalance.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyBalance.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyBalance */ @@ -39,13 +40,13 @@ CounterpartyBalance.JSON_PROPERTY_ATTRIBUTES, CounterpartyBalance.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyBalance { /** * Gets or Sets type */ public enum TypeEnum { - COUNTERPARTYBALANCE("counterpartyBalance"); + COUNTERPARTY_BALANCE("counterpartyBalance"); private String value; @@ -75,7 +76,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.COUNTERPARTYBALANCE; + private TypeEnum type = TypeEnum.COUNTERPARTY_BALANCE; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -94,14 +95,13 @@ public CounterpartyBalance type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public CounterpartyBalance id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -144,14 +143,13 @@ public CounterpartyBalance attributes(CounterpartyBalanceAttributes attributes) return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CounterpartyBalanceAttributes getAttributes() { return attributes; } @@ -169,14 +167,13 @@ public CounterpartyBalance relationships(CounterpartyBalanceRelationships relati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyBalanceRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CounterpartyBalanceAttributes.java b/src/main/java/unit/java/sdk/model/CounterpartyBalanceAttributes.java index 23fe3e31..3fe1b957 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyBalanceAttributes.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyBalanceAttributes.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyBalanceAttributes */ @@ -36,7 +37,7 @@ CounterpartyBalanceAttributes.JSON_PROPERTY_BALANCE, CounterpartyBalanceAttributes.JSON_PROPERTY_AVAILABLE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyBalanceAttributes { public static final String JSON_PROPERTY_BALANCE = "balance"; private BigDecimal balance; @@ -52,14 +53,13 @@ public CounterpartyBalanceAttributes balance(BigDecimal balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getBalance() { return balance; } @@ -77,14 +77,13 @@ public CounterpartyBalanceAttributes available(BigDecimal available) { return this; } - /** + /** * Get available * @return available - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getAvailable() { return available; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `available` to the URL query string if (getAvailable() != null) { - joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CounterpartyBalanceRelationships.java b/src/main/java/unit/java/sdk/model/CounterpartyBalanceRelationships.java index 68068654..8e21cc7b 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyBalanceRelationships.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyBalanceRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyBalanceRelationships */ @@ -37,7 +38,7 @@ CounterpartyBalanceRelationships.JSON_PROPERTY_COUNTERPARTY, CounterpartyBalanceRelationships.JSON_PROPERTY_CUSTOMER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyBalanceRelationships { public static final String JSON_PROPERTY_COUNTERPARTY = "counterparty"; private CounterpartyRelationship counterparty; @@ -53,14 +54,13 @@ public CounterpartyBalanceRelationships counterparty(CounterpartyRelationship co return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } @@ -78,14 +78,13 @@ public CounterpartyBalanceRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } diff --git a/src/main/java/unit/java/sdk/model/CounterpartyCustomerRelationship.java b/src/main/java/unit/java/sdk/model/CounterpartyCustomerRelationship.java index 0817e289..03716dc3 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyCustomerRelationship.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyCustomerRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyCustomerRelationship */ @JsonPropertyOrder({ CounterpartyCustomerRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyCustomerRelationship { public static final String JSON_PROPERTY_DATA = "data"; private CounterpartyCustomerRelationshipData data; @@ -48,14 +49,13 @@ public CounterpartyCustomerRelationship data(CounterpartyCustomerRelationshipDat return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyCustomerRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CounterpartyCustomerRelationshipData.java b/src/main/java/unit/java/sdk/model/CounterpartyCustomerRelationshipData.java index cf53e6ad..cc96b321 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyCustomerRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyCustomerRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyCustomerRelationshipData */ @@ -35,7 +36,7 @@ CounterpartyCustomerRelationshipData.JSON_PROPERTY_TYPE, CounterpartyCustomerRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyCustomerRelationshipData { /** * Gets or Sets type @@ -43,9 +44,9 @@ public class CounterpartyCustomerRelationshipData { public enum TypeEnum { CUSTOMER("customer"), - BUSINESSCUSTOMER("businessCustomer"), + BUSINESS_CUSTOMER("businessCustomer"), - INDIVIDUALCUSTOMER("individualCustomer"); + INDIVIDUAL_CUSTOMER("individualCustomer"); private String value; @@ -88,14 +89,13 @@ public CounterpartyCustomerRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -113,14 +113,13 @@ public CounterpartyCustomerRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -209,12 +208,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CounterpartyRelationship.java b/src/main/java/unit/java/sdk/model/CounterpartyRelationship.java index 076d0277..330172cf 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyRelationship.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyRelationship */ @JsonPropertyOrder({ CounterpartyRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyRelationship { public static final String JSON_PROPERTY_DATA = "data"; private CounterpartyRelationshipData data; @@ -48,14 +49,13 @@ public CounterpartyRelationship data(CounterpartyRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CounterpartyRelationshipData.java b/src/main/java/unit/java/sdk/model/CounterpartyRelationshipData.java index 1e5b9ea5..e49be4e1 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyRelationshipData */ @@ -35,10 +36,43 @@ CounterpartyRelationshipData.JSON_PROPERTY_TYPE, CounterpartyRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyRelationshipData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + COUNTERPARTY("counterparty"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + public static final String JSON_PROPERTY_TYPE = "type"; - private String type = "counterparty"; + private TypeEnum type = TypeEnum.COUNTERPARTY; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -46,27 +80,26 @@ public class CounterpartyRelationshipData { public CounterpartyRelationshipData() { } - public CounterpartyRelationshipData type(String type) { + public CounterpartyRelationshipData type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -76,14 +109,13 @@ public CounterpartyRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -172,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CounterpartyRelationships.java b/src/main/java/unit/java/sdk/model/CounterpartyRelationships.java index a99feb48..2885ce0d 100644 --- a/src/main/java/unit/java/sdk/model/CounterpartyRelationships.java +++ b/src/main/java/unit/java/sdk/model/CounterpartyRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CounterpartyRelationships */ @JsonPropertyOrder({ CounterpartyRelationships.JSON_PROPERTY_CUSTOMER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CounterpartyRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -48,14 +49,13 @@ public CounterpartyRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } diff --git a/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRelationships.java b/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRelationships.java new file mode 100644 index 00000000..17ab205d --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRelationships.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateACHReceivedPaymentTransactionRelationships + */ +@JsonPropertyOrder({ + CreateACHReceivedPaymentTransactionRelationships.JSON_PROPERTY_ACCOUNT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateACHReceivedPaymentTransactionRelationships { + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public CreateACHReceivedPaymentTransactionRelationships() { + } + + public CreateACHReceivedPaymentTransactionRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + /** + * Return true if this CreateACHReceivedPaymentTransactionRelationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateACHReceivedPaymentTransactionRelationships createACHReceivedPaymentTransactionRelationships = (CreateACHReceivedPaymentTransactionRelationships) o; + return Objects.equals(this.account, createACHReceivedPaymentTransactionRelationships.account); + } + + @Override + public int hashCode() { + return Objects.hash(account); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateACHReceivedPaymentTransactionRelationships {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequest.java b/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequest.java new file mode 100644 index 00000000..b464c644 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequest.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRequestData; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateACHReceivedPaymentTransactionRequest + */ +@JsonPropertyOrder({ + CreateACHReceivedPaymentTransactionRequest.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateACHReceivedPaymentTransactionRequest { + public static final String JSON_PROPERTY_DATA = "data"; + private CreateACHReceivedPaymentTransactionRequestData data; + + public CreateACHReceivedPaymentTransactionRequest() { + } + + public CreateACHReceivedPaymentTransactionRequest data(CreateACHReceivedPaymentTransactionRequestData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateACHReceivedPaymentTransactionRequestData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(CreateACHReceivedPaymentTransactionRequestData data) { + this.data = data; + } + + + /** + * Return true if this CreateACHReceivedPaymentTransactionRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateACHReceivedPaymentTransactionRequest createACHReceivedPaymentTransactionRequest = (CreateACHReceivedPaymentTransactionRequest) o; + return Objects.equals(this.data, createACHReceivedPaymentTransactionRequest.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateACHReceivedPaymentTransactionRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequestData.java b/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequestData.java new file mode 100644 index 00000000..ab104ec0 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequestData.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRelationships; +import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRequestDataAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateACHReceivedPaymentTransactionRequestData + */ +@JsonPropertyOrder({ + CreateACHReceivedPaymentTransactionRequestData.JSON_PROPERTY_TYPE, + CreateACHReceivedPaymentTransactionRequestData.JSON_PROPERTY_ATTRIBUTES, + CreateACHReceivedPaymentTransactionRequestData.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateACHReceivedPaymentTransactionRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ACH_RECEIVED_PAYMENT("achReceivedPayment"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.ACH_RECEIVED_PAYMENT; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CreateACHReceivedPaymentTransactionRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private CreateACHReceivedPaymentTransactionRelationships relationships; + + public CreateACHReceivedPaymentTransactionRequestData() { + } + + public CreateACHReceivedPaymentTransactionRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public CreateACHReceivedPaymentTransactionRequestData attributes(CreateACHReceivedPaymentTransactionRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateACHReceivedPaymentTransactionRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(CreateACHReceivedPaymentTransactionRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + public CreateACHReceivedPaymentTransactionRequestData relationships(CreateACHReceivedPaymentTransactionRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateACHReceivedPaymentTransactionRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(CreateACHReceivedPaymentTransactionRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this CreateACHReceivedPaymentTransactionRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateACHReceivedPaymentTransactionRequestData createACHReceivedPaymentTransactionRequestData = (CreateACHReceivedPaymentTransactionRequestData) o; + return Objects.equals(this.type, createACHReceivedPaymentTransactionRequestData.type) && + Objects.equals(this.attributes, createACHReceivedPaymentTransactionRequestData.attributes) && + Objects.equals(this.relationships, createACHReceivedPaymentTransactionRequestData.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateACHReceivedPaymentTransactionRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequestDataAttributes.java new file mode 100644 index 00000000..92787621 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateACHReceivedPaymentTransactionRequestDataAttributes.java @@ -0,0 +1,291 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.LocalDate; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateACHReceivedPaymentTransactionRequestDataAttributes + */ +@JsonPropertyOrder({ + CreateACHReceivedPaymentTransactionRequestDataAttributes.JSON_PROPERTY_AMOUNT, + CreateACHReceivedPaymentTransactionRequestDataAttributes.JSON_PROPERTY_COMPLETION_DATE, + CreateACHReceivedPaymentTransactionRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, + CreateACHReceivedPaymentTransactionRequestDataAttributes.JSON_PROPERTY_COMPANY_NAME, + CreateACHReceivedPaymentTransactionRequestDataAttributes.JSON_PROPERTY_SEC_CODE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateACHReceivedPaymentTransactionRequestDataAttributes { + public static final String JSON_PROPERTY_AMOUNT = "amount"; + private Integer amount; + + public static final String JSON_PROPERTY_COMPLETION_DATE = "completionDate"; + private LocalDate completionDate; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_COMPANY_NAME = "companyName"; + private String companyName; + + public static final String JSON_PROPERTY_SEC_CODE = "secCode"; + private String secCode; + + public CreateACHReceivedPaymentTransactionRequestDataAttributes() { + } + + public CreateACHReceivedPaymentTransactionRequestDataAttributes amount(Integer amount) { + this.amount = amount; + return this; + } + + /** + * Get amount + * @return amount + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getAmount() { + return amount; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmount(Integer amount) { + this.amount = amount; + } + + + public CreateACHReceivedPaymentTransactionRequestDataAttributes completionDate(LocalDate completionDate) { + this.completionDate = completionDate; + return this; + } + + /** + * Get completionDate + * @return completionDate + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COMPLETION_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getCompletionDate() { + return completionDate; + } + + + @JsonProperty(JSON_PROPERTY_COMPLETION_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCompletionDate(LocalDate completionDate) { + this.completionDate = completionDate; + } + + + public CreateACHReceivedPaymentTransactionRequestDataAttributes description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDescription(String description) { + this.description = description; + } + + + public CreateACHReceivedPaymentTransactionRequestDataAttributes companyName(String companyName) { + this.companyName = companyName; + return this; + } + + /** + * Get companyName + * @return companyName + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COMPANY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCompanyName() { + return companyName; + } + + + @JsonProperty(JSON_PROPERTY_COMPANY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + + public CreateACHReceivedPaymentTransactionRequestDataAttributes secCode(String secCode) { + this.secCode = secCode; + return this; + } + + /** + * Get secCode + * @return secCode + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEC_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSecCode() { + return secCode; + } + + + @JsonProperty(JSON_PROPERTY_SEC_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecCode(String secCode) { + this.secCode = secCode; + } + + + /** + * Return true if this CreateACHReceivedPaymentTransactionRequest_data_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateACHReceivedPaymentTransactionRequestDataAttributes createACHReceivedPaymentTransactionRequestDataAttributes = (CreateACHReceivedPaymentTransactionRequestDataAttributes) o; + return Objects.equals(this.amount, createACHReceivedPaymentTransactionRequestDataAttributes.amount) && + Objects.equals(this.completionDate, createACHReceivedPaymentTransactionRequestDataAttributes.completionDate) && + Objects.equals(this.description, createACHReceivedPaymentTransactionRequestDataAttributes.description) && + Objects.equals(this.companyName, createACHReceivedPaymentTransactionRequestDataAttributes.companyName) && + Objects.equals(this.secCode, createACHReceivedPaymentTransactionRequestDataAttributes.secCode); + } + + @Override + public int hashCode() { + return Objects.hash(amount, completionDate, description, companyName, secCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateACHReceivedPaymentTransactionRequestDataAttributes {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" completionDate: ").append(toIndentedString(completionDate)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" secCode: ").append(toIndentedString(secCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `amount` to the URL query string + if (getAmount() != null) { + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `completionDate` to the URL query string + if (getCompletionDate() != null) { + joiner.add(String.format("%scompletionDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompletionDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `description` to the URL query string + if (getDescription() != null) { + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `companyName` to the URL query string + if (getCompanyName() != null) { + joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `secCode` to the URL query string + if (getSecCode() != null) { + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateAccountRequest.java b/src/main/java/unit/java/sdk/model/CreateAccountRequest.java index 77397489..4b1ecb2c 100644 --- a/src/main/java/unit/java/sdk/model/CreateAccountRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateAccountRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAccountRequest */ @JsonPropertyOrder({ CreateAccountRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAccountRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateAccountRequestData data; @@ -48,14 +49,13 @@ public CreateAccountRequest data(CreateAccountRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAccountRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateAccountRequestData.java b/src/main/java/unit/java/sdk/model/CreateAccountRequestData.java index c29f298d..d14e9a0a 100644 --- a/src/main/java/unit/java/sdk/model/CreateAccountRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateAccountRequestData.java @@ -27,8 +27,9 @@ import java.util.Arrays; import unit.java.sdk.model.CreateCreditAccount; import unit.java.sdk.model.CreateDepositAccount; -import unit.java.sdk.model.CreateDepositAccountAttributes; -import unit.java.sdk.model.CreateDepositAccountRelationships; +import unit.java.sdk.model.CreateWalletAccount; +import unit.java.sdk.model.CreateWalletAccountAttributes; +import unit.java.sdk.model.CreateWalletAccountRelationships; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.type.TypeReference; @@ -55,7 +56,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreateAccountRequestData.CreateAccountRequestDataDeserializer.class) @JsonSerialize(using = CreateAccountRequestData.CreateAccountRequestDataSerializer.class) public class CreateAccountRequestData extends AbstractOpenApiSchema { @@ -144,6 +145,32 @@ public CreateAccountRequestData deserialize(JsonParser jp, DeserializationContex log.log(Level.FINER, "Input data does not match schema 'CreateDepositAccount'", e); } + // deserialize CreateWalletAccount + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (CreateWalletAccount.class.equals(Integer.class) || CreateWalletAccount.class.equals(Long.class) || CreateWalletAccount.class.equals(Float.class) || CreateWalletAccount.class.equals(Double.class) || CreateWalletAccount.class.equals(Boolean.class) || CreateWalletAccount.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((CreateWalletAccount.class.equals(Integer.class) || CreateWalletAccount.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((CreateWalletAccount.class.equals(Float.class) || CreateWalletAccount.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (CreateWalletAccount.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (CreateWalletAccount.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CreateWalletAccount.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CreateWalletAccount'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CreateWalletAccount'", e); + } + if (match == 1) { CreateAccountRequestData ret = new CreateAccountRequestData(); ret.setActualInstance(deserialized); @@ -178,9 +205,15 @@ public CreateAccountRequestData(CreateDepositAccount o) { setActualInstance(o); } + public CreateAccountRequestData(CreateWalletAccount o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + static { schemas.put("CreateCreditAccount", CreateCreditAccount.class); schemas.put("CreateDepositAccount", CreateDepositAccount.class); + schemas.put("CreateWalletAccount", CreateWalletAccount.class); JSON.registerDescendants(CreateAccountRequestData.class, Collections.unmodifiableMap(schemas)); } @@ -192,7 +225,7 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * CreateCreditAccount, CreateDepositAccount + * CreateCreditAccount, CreateDepositAccount, CreateWalletAccount * * It could be an instance of the 'oneOf' schemas. * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). @@ -209,14 +242,19 @@ public void setActualInstance(Object instance) { return; } - throw new RuntimeException("Invalid instance type. Must be CreateCreditAccount, CreateDepositAccount"); + if (JSON.isInstanceOf(CreateWalletAccount.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be CreateCreditAccount, CreateDepositAccount, CreateWalletAccount"); } /** * Get the actual instance, which can be the following: - * CreateCreditAccount, CreateDepositAccount + * CreateCreditAccount, CreateDepositAccount, CreateWalletAccount * - * @return The actual instance (CreateCreditAccount, CreateDepositAccount) + * @return The actual instance (CreateCreditAccount, CreateDepositAccount, CreateWalletAccount) */ @Override public Object getActualInstance() { @@ -245,6 +283,17 @@ public CreateDepositAccount getCreateDepositAccount() throws ClassCastException return (CreateDepositAccount)super.getActualInstance(); } + /** + * Get the actual instance of `CreateWalletAccount`. If the actual instance is not `CreateWalletAccount`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CreateWalletAccount` + * @throws ClassCastException if the instance is not `CreateWalletAccount` + */ + public CreateWalletAccount getCreateWalletAccount() throws ClassCastException { + return (CreateWalletAccount)super.getActualInstance(); + } + /** @@ -291,6 +340,12 @@ public String toUrlQueryString(String prefix) { } return joiner.toString(); } + if (getActualInstance() instanceof CreateWalletAccount) { + if (getActualInstance() != null) { + joiner.add(((CreateWalletAccount)getActualInstance()).toUrlQueryString(prefix + "one_of_2" + suffix)); + } + return joiner.toString(); + } return null; } diff --git a/src/main/java/unit/java/sdk/model/CreateAchCounterparty.java b/src/main/java/unit/java/sdk/model/CreateAchCounterparty.java index 25d14c20..4e666fab 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchCounterparty.java +++ b/src/main/java/unit/java/sdk/model/CreateAchCounterparty.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchCounterparty */ @@ -38,10 +39,43 @@ CreateAchCounterparty.JSON_PROPERTY_ATTRIBUTES, CreateAchCounterparty.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchCounterparty { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ACH_COUNTERPARTY("achCounterparty"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + private TypeEnum type = TypeEnum.ACH_COUNTERPARTY; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateAchCounterpartyAttributes attributes; @@ -52,27 +86,26 @@ public class CreateAchCounterparty { public CreateAchCounterparty() { } - public CreateAchCounterparty type(String type) { + public CreateAchCounterparty type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -82,14 +115,13 @@ public CreateAchCounterparty attributes(CreateAchCounterpartyAttributes attribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchCounterpartyAttributes getAttributes() { return attributes; } @@ -107,14 +139,13 @@ public CreateAchCounterparty relationships(CreateCounterpartyRelationships relat return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCounterpartyRelationships getRelationships() { return relationships; } @@ -205,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateAchCounterpartyAttributes.java b/src/main/java/unit/java/sdk/model/CreateAchCounterpartyAttributes.java index 86bfae28..af8ed522 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchCounterpartyAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateAchCounterpartyAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchCounterpartyAttributes */ @@ -43,7 +44,7 @@ CreateAchCounterpartyAttributes.JSON_PROPERTY_TAGS, CreateAchCounterpartyAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchCounterpartyAttributes { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; @@ -95,11 +96,11 @@ public static AccountTypeEnum fromValue(String value) { * Gets or Sets permissions */ public enum PermissionsEnum { - CREDITONLY("CreditOnly"), + CREDIT_ONLY("CreditOnly"), - DEBITONLY("DebitOnly"), + DEBIT_ONLY("DebitOnly"), - CREDITANDDEBIT("CreditAndDebit"); + CREDIT_AND_DEBIT("CreditAndDebit"); private String value; @@ -188,14 +189,13 @@ public CreateAchCounterpartyAttributes routingNumber(String routingNumber) { return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -213,14 +213,13 @@ public CreateAchCounterpartyAttributes accountNumber(String accountNumber) { return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { return accountNumber; } @@ -238,14 +237,13 @@ public CreateAchCounterpartyAttributes accountType(AccountTypeEnum accountType) return this; } - /** + /** * Get accountType * @return accountType - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountTypeEnum getAccountType() { return accountType; } @@ -263,14 +261,13 @@ public CreateAchCounterpartyAttributes permissions(PermissionsEnum permissions) return this; } - /** + /** * Get permissions * @return permissions - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PermissionsEnum getPermissions() { return permissions; } @@ -288,14 +285,13 @@ public CreateAchCounterpartyAttributes type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -313,14 +309,13 @@ public CreateAchCounterpartyAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -346,14 +341,13 @@ public CreateAchCounterpartyAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -371,14 +365,13 @@ public CreateAchCounterpartyAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -479,32 +472,32 @@ public String toUrlQueryString(String prefix) { // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountType` to the URL query string if (getAccountType() != null) { - joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `permissions` to the URL query string if (getPermissions() != null) { - joiner.add(String.format("%spermissions%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermissions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spermissions%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPermissions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -512,13 +505,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateAchPayment.java b/src/main/java/unit/java/sdk/model/CreateAchPayment.java index 7b3f3aaf..0adeb271 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPayment.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPayment */ @@ -38,13 +39,13 @@ CreateAchPayment.JSON_PROPERTY_ATTRIBUTES, CreateAchPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPayment { /** * Gets or Sets type */ public enum TypeEnum { - ACHPAYMENT("achPayment"); + ACH_PAYMENT("achPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ACHPAYMENT; + private TypeEnum type = TypeEnum.ACH_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateAchPaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateAchPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateAchPayment attributes(CreateAchPaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchPaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateAchPayment relationships(CreateAchPaymentRelationships relationship return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchPaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateAchPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateAchPaymentAttributes.java index 900a01ef..61f142ec 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPaymentAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPaymentAttributes */ @@ -45,7 +46,7 @@ CreateAchPaymentAttributes.JSON_PROPERTY_TAGS, CreateAchPaymentAttributes.JSON_PROPERTY_SEC_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPaymentAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -154,14 +155,13 @@ public CreateAchPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -179,14 +179,13 @@ public CreateAchPaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -204,14 +203,13 @@ public CreateAchPaymentAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -229,14 +227,13 @@ public CreateAchPaymentAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -254,14 +251,13 @@ public CreateAchPaymentAttributes counterparty(PaymentCounterparty counterparty) return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentCounterparty getCounterparty() { return counterparty; } @@ -279,14 +275,13 @@ public CreateAchPaymentAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -304,14 +299,13 @@ public CreateAchPaymentAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -337,14 +331,13 @@ public CreateAchPaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -362,14 +355,13 @@ public CreateAchPaymentAttributes secCode(SecCodeEnum secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SecCodeEnum getSecCode() { return secCode; } @@ -472,22 +464,22 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -497,12 +489,12 @@ public String toUrlQueryString(String prefix) { // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -510,13 +502,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterparty.java b/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterparty.java index 3d05da34..7478e1f5 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterparty.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterparty.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPaymentCounterparty */ @@ -38,13 +39,13 @@ CreateAchPaymentCounterparty.JSON_PROPERTY_ATTRIBUTES, CreateAchPaymentCounterparty.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPaymentCounterparty { /** * Gets or Sets type */ public enum TypeEnum { - ACHPAYMENT("achPayment"); + ACH_PAYMENT("achPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ACHPAYMENT; + private TypeEnum type = TypeEnum.ACH_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateAchPaymentCounterpartyAttributes attributes; @@ -90,14 +91,13 @@ public CreateAchPaymentCounterparty type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateAchPaymentCounterparty attributes(CreateAchPaymentCounterpartyAttri return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchPaymentCounterpartyAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateAchPaymentCounterparty relationships(CreateAchPaymentCounterpartyRe return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchPaymentCounterpartyRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterpartyAttributes.java b/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterpartyAttributes.java index caabfcb1..25598cfe 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterpartyAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterpartyAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPaymentCounterpartyAttributes */ @@ -44,7 +45,7 @@ CreateAchPaymentCounterpartyAttributes.JSON_PROPERTY_VERIFY_COUNTERPARTY_BALANCE, CreateAchPaymentCounterpartyAttributes.JSON_PROPERTY_SEC_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPaymentCounterpartyAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -153,14 +154,13 @@ public CreateAchPaymentCounterpartyAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -178,14 +178,13 @@ public CreateAchPaymentCounterpartyAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -203,14 +202,13 @@ public CreateAchPaymentCounterpartyAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -228,14 +226,13 @@ public CreateAchPaymentCounterpartyAttributes direction(DirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -253,14 +250,13 @@ public CreateAchPaymentCounterpartyAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -278,14 +274,13 @@ public CreateAchPaymentCounterpartyAttributes idempotencyKey(String idempotencyK return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -311,14 +306,13 @@ public CreateAchPaymentCounterpartyAttributes putTagsItem(String key, String tag return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -336,14 +330,13 @@ public CreateAchPaymentCounterpartyAttributes verifyCounterpartyBalance(Boolean return this; } - /** + /** * Get verifyCounterpartyBalance * @return verifyCounterpartyBalance - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFY_COUNTERPARTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getVerifyCounterpartyBalance() { return verifyCounterpartyBalance; } @@ -361,14 +354,13 @@ public CreateAchPaymentCounterpartyAttributes secCode(SecCodeEnum secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SecCodeEnum getSecCode() { return secCode; } @@ -471,32 +463,32 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -504,18 +496,18 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `verifyCounterpartyBalance` to the URL query string if (getVerifyCounterpartyBalance() != null) { - joiner.add(String.format("%sverifyCounterpartyBalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerifyCounterpartyBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverifyCounterpartyBalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerifyCounterpartyBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterpartyRelationships.java b/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterpartyRelationships.java index 02e09c84..5b2fdb95 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterpartyRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPaymentCounterpartyRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPaymentCounterpartyRelationships */ @@ -37,7 +38,7 @@ CreateAchPaymentCounterpartyRelationships.JSON_PROPERTY_ACCOUNT, CreateAchPaymentCounterpartyRelationships.JSON_PROPERTY_COUNTERPARTY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPaymentCounterpartyRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -53,14 +54,13 @@ public CreateAchPaymentCounterpartyRelationships account(AccountRelationship acc return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -78,14 +78,13 @@ public CreateAchPaymentCounterpartyRelationships counterparty(CounterpartyRelati return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } diff --git a/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaid.java b/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaid.java index 7a743f3a..0d3ab4dd 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaid.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaid.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPaymentPlaid */ @@ -38,13 +39,13 @@ CreateAchPaymentPlaid.JSON_PROPERTY_ATTRIBUTES, CreateAchPaymentPlaid.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPaymentPlaid { /** * Gets or Sets type */ public enum TypeEnum { - ACHPAYMENT("achPayment"); + ACH_PAYMENT("achPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ACHPAYMENT; + private TypeEnum type = TypeEnum.ACH_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateAchPaymentPlaidAttributes attributes; @@ -90,14 +91,13 @@ public CreateAchPaymentPlaid type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateAchPaymentPlaid attributes(CreateAchPaymentPlaidAttributes attribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchPaymentPlaidAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateAchPaymentPlaid relationships(CreateAchPaymentPlaidRelationships re return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchPaymentPlaidRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaidAttributes.java b/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaidAttributes.java index 52830476..bdb967da 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaidAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaidAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPaymentPlaidAttributes */ @@ -46,7 +47,7 @@ CreateAchPaymentPlaidAttributes.JSON_PROPERTY_VERIFY_COUNTERPARTY_BALANCE, CreateAchPaymentPlaidAttributes.JSON_PROPERTY_SEC_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPaymentPlaidAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -161,14 +162,13 @@ public CreateAchPaymentPlaidAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -186,14 +186,13 @@ public CreateAchPaymentPlaidAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -211,14 +210,13 @@ public CreateAchPaymentPlaidAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -236,14 +234,13 @@ public CreateAchPaymentPlaidAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -261,14 +258,13 @@ public CreateAchPaymentPlaidAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -294,14 +290,13 @@ public CreateAchPaymentPlaidAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -319,14 +314,13 @@ public CreateAchPaymentPlaidAttributes plaidProcessorToken(String plaidProcessor return this; } - /** + /** * Get plaidProcessorToken * @return plaidProcessorToken - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PLAID_PROCESSOR_TOKEN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPlaidProcessorToken() { return plaidProcessorToken; } @@ -344,14 +338,13 @@ public CreateAchPaymentPlaidAttributes counterpartyName(String counterpartyName) return this; } - /** + /** * Get counterpartyName * @return counterpartyName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCounterpartyName() { return counterpartyName; } @@ -369,14 +362,13 @@ public CreateAchPaymentPlaidAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -394,14 +386,13 @@ public CreateAchPaymentPlaidAttributes verifyCounterpartyBalance(Boolean verifyC return this; } - /** + /** * Get verifyCounterpartyBalance * @return verifyCounterpartyBalance - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFY_COUNTERPARTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getVerifyCounterpartyBalance() { return verifyCounterpartyBalance; } @@ -419,14 +410,13 @@ public CreateAchPaymentPlaidAttributes secCode(SecCodeEnum secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SecCodeEnum getSecCode() { return secCode; } @@ -533,27 +523,27 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -561,33 +551,33 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `plaidProcessorToken` to the URL query string if (getPlaidProcessorToken() != null) { - joiner.add(String.format("%splaidProcessorToken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPlaidProcessorToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%splaidProcessorToken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPlaidProcessorToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyName` to the URL query string if (getCounterpartyName() != null) { - joiner.add(String.format("%scounterpartyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `verifyCounterpartyBalance` to the URL query string if (getVerifyCounterpartyBalance() != null) { - joiner.add(String.format("%sverifyCounterpartyBalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerifyCounterpartyBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverifyCounterpartyBalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerifyCounterpartyBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaidRelationships.java b/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaidRelationships.java index 59d297cc..09f197d7 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaidRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPaymentPlaidRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPaymentPlaidRelationships */ @JsonPropertyOrder({ CreateAchPaymentPlaidRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPaymentPlaidRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreateAchPaymentPlaidRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreateAchPaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateAchPaymentRelationships.java index 3fc0bc60..513d479e 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateAchPaymentRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchPaymentRelationships */ @JsonPropertyOrder({ CreateAchPaymentRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreateAchPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreateAchRepayment.java b/src/main/java/unit/java/sdk/model/CreateAchRepayment.java index d4537f21..8bb9134a 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchRepayment.java +++ b/src/main/java/unit/java/sdk/model/CreateAchRepayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchRepayment */ @@ -38,13 +39,13 @@ CreateAchRepayment.JSON_PROPERTY_ATTRIBUTES, CreateAchRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchRepayment { /** * Gets or Sets type */ public enum TypeEnum { - ACHREPAYMENT("achRepayment"); + ACH_REPAYMENT("achRepayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ACHREPAYMENT; + private TypeEnum type; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateAchRepaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateAchRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateAchRepayment attributes(CreateAchRepaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchRepaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateAchRepayment relationships(CreateAchRepaymentRelationships relation return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchRepaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateAchRepaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateAchRepaymentAttributes.java index 9a88f2fb..9ad4c8d3 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchRepaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateAchRepaymentAttributes.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchRepaymentAttributes */ @@ -39,7 +40,7 @@ CreateAchRepaymentAttributes.JSON_PROPERTY_SAME_DAY, CreateAchRepaymentAttributes.JSON_PROPERTY_SEC_CODE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchRepaymentAttributes { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -64,14 +65,13 @@ public CreateAchRepaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -89,14 +89,13 @@ public CreateAchRepaymentAttributes amount(BigDecimal amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getAmount() { return amount; } @@ -114,14 +113,13 @@ public CreateAchRepaymentAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -139,14 +137,13 @@ public CreateAchRepaymentAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -164,14 +161,13 @@ public CreateAchRepaymentAttributes secCode(String secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecCode() { return secCode; } @@ -266,27 +262,27 @@ public String toUrlQueryString(String prefix) { // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateAchRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateAchRepaymentRelationships.java index 95abe40f..83419d50 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateAchRepaymentRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchRepaymentRelationships */ @@ -39,7 +40,7 @@ CreateAchRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT, CreateAchRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchRepaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public CreateAchRepaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public CreateAchRepaymentRelationships creditAccount(CreditAccountRelationship c return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -108,14 +107,13 @@ public CreateAchRepaymentRelationships counterparty(CounterpartyRelationship cou return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } diff --git a/src/main/java/unit/java/sdk/model/CreateAchStopPayment.java b/src/main/java/unit/java/sdk/model/CreateAchStopPayment.java index 47bc1b18..2cfa064f 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchStopPayment.java +++ b/src/main/java/unit/java/sdk/model/CreateAchStopPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchStopPayment */ @@ -38,13 +39,13 @@ CreateAchStopPayment.JSON_PROPERTY_ATTRIBUTES, CreateAchStopPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchStopPayment { /** * Gets or Sets type */ public enum TypeEnum { - ACHSTOPPAYMENT("achStopPayment"); + ACH_STOP_PAYMENT("achStopPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ACHSTOPPAYMENT; + private TypeEnum type = TypeEnum.ACH_STOP_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateAchStopPaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateAchStopPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateAchStopPayment attributes(CreateAchStopPaymentAttributes attributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchStopPaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateAchStopPayment relationships(CreateAchStopPaymentRelationships rela return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchStopPaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateAchStopPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateAchStopPaymentAttributes.java index 365dda9e..012ee097 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchStopPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateAchStopPaymentAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchStopPaymentAttributes */ @@ -46,7 +47,7 @@ CreateAchStopPaymentAttributes.JSON_PROPERTY_TAGS, CreateAchStopPaymentAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchStopPaymentAttributes { public static final String JSON_PROPERTY_MIN_AMOUNT = "minAmount"; private Integer minAmount; @@ -80,14 +81,13 @@ public CreateAchStopPaymentAttributes minAmount(Integer minAmount) { return this; } - /** + /** * Get minAmount * @return minAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MIN_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getMinAmount() { return minAmount; } @@ -113,14 +113,13 @@ public CreateAchStopPaymentAttributes addOriginatorNameItem(String originatorNam return this; } - /** + /** * Get originatorName * @return originatorName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGINATOR_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getOriginatorName() { return originatorName; } @@ -138,14 +137,13 @@ public CreateAchStopPaymentAttributes direction(String direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDirection() { return direction; } @@ -163,14 +161,13 @@ public CreateAchStopPaymentAttributes expiration(LocalDate expiration) { return this; } - /** + /** * Get expiration * @return expiration - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getExpiration() { return expiration; } @@ -188,14 +185,13 @@ public CreateAchStopPaymentAttributes isMultiUse(Boolean isMultiUse) { return this; } - /** + /** * Get isMultiUse * @return isMultiUse - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_MULTI_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsMultiUse() { return isMultiUse; } @@ -213,14 +209,13 @@ public CreateAchStopPaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -246,14 +241,13 @@ public CreateAchStopPaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -271,14 +265,13 @@ public CreateAchStopPaymentAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -379,7 +372,7 @@ public String toUrlQueryString(String prefix) { // add `minAmount` to the URL query string if (getMinAmount() != null) { - joiner.add(String.format("%sminAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMinAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sminAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMinAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `originatorName` to the URL query string @@ -387,28 +380,28 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getOriginatorName().size(); i++) { joiner.add(String.format("%soriginatorName%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getOriginatorName().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getOriginatorName().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiration` to the URL query string if (getExpiration() != null) { - joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `isMultiUse` to the URL query string if (getIsMultiUse() != null) { - joiner.add(String.format("%sisMultiUse%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsMultiUse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sisMultiUse%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsMultiUse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -416,13 +409,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateAchStopPaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateAchStopPaymentRelationships.java index 4e6da70c..c9713e29 100644 --- a/src/main/java/unit/java/sdk/model/CreateAchStopPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateAchStopPaymentRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateAchStopPaymentRelationships */ @JsonPropertyOrder({ CreateAchStopPaymentRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateAchStopPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreateAchStopPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreateApiTokenRequest.java b/src/main/java/unit/java/sdk/model/CreateApiTokenRequest.java index 893bc10d..3d2f0727 100644 --- a/src/main/java/unit/java/sdk/model/CreateApiTokenRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateApiTokenRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApiTokenRequest */ @JsonPropertyOrder({ CreateApiTokenRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApiTokenRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateApiTokenRequestData data; @@ -48,14 +49,13 @@ public CreateApiTokenRequest data(CreateApiTokenRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateApiTokenRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateApiTokenRequestData.java b/src/main/java/unit/java/sdk/model/CreateApiTokenRequestData.java index 01fe9ff0..3b2642cd 100644 --- a/src/main/java/unit/java/sdk/model/CreateApiTokenRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateApiTokenRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApiTokenRequestData */ @@ -36,13 +37,13 @@ CreateApiTokenRequestData.JSON_PROPERTY_TYPE, CreateApiTokenRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApiTokenRequestData { /** * Gets or Sets type */ public enum TypeEnum { - APITOKEN("apiToken"); + API_TOKEN("apiToken"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.APITOKEN; + private TypeEnum type = TypeEnum.API_TOKEN; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateApiTokenRequestDataAttributes attributes; @@ -85,14 +86,13 @@ public CreateApiTokenRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CreateApiTokenRequestData attributes(CreateApiTokenRequestDataAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateApiTokenRequestDataAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateApiTokenRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateApiTokenRequestDataAttributes.java index 65436e79..d3260fc3 100644 --- a/src/main/java/unit/java/sdk/model/CreateApiTokenRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateApiTokenRequestDataAttributes.java @@ -28,10 +28,15 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import unit.java.sdk.model.CreateApiTokenRequestDataAttributesResourcesInner; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApiTokenRequestDataAttributes */ @@ -42,7 +47,7 @@ CreateApiTokenRequestDataAttributes.JSON_PROPERTY_SOURCE_IP, CreateApiTokenRequestDataAttributes.JSON_PROPERTY_RESOURCES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApiTokenRequestDataAttributes { public static final String JSON_PROPERTY_SCOPE = "scope"; private String scope; @@ -57,7 +62,7 @@ public class CreateApiTokenRequestDataAttributes { private String sourceIp; public static final String JSON_PROPERTY_RESOURCES = "resources"; - private List resources = new ArrayList<>(); + private JsonNullable> resources = JsonNullable.>undefined(); public CreateApiTokenRequestDataAttributes() { } @@ -67,14 +72,13 @@ public CreateApiTokenRequestDataAttributes scope(String scope) { return this; } - /** + /** * Get scope * @return scope - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getScope() { return scope; } @@ -92,14 +96,13 @@ public CreateApiTokenRequestDataAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -117,14 +120,13 @@ public CreateApiTokenRequestDataAttributes expiration(OffsetDateTime expiration) return this; } - /** + /** * Get expiration * @return expiration - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getExpiration() { return expiration; } @@ -142,14 +144,13 @@ public CreateApiTokenRequestDataAttributes sourceIp(String sourceIp) { return this; } - /** + /** * Get sourceIp * @return sourceIp - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_IP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSourceIp() { return sourceIp; } @@ -163,37 +164,48 @@ public void setSourceIp(String sourceIp) { public CreateApiTokenRequestDataAttributes resources(List resources) { - this.resources = resources; + this.resources = JsonNullable.>of(resources); return this; } public CreateApiTokenRequestDataAttributes addResourcesItem(CreateApiTokenRequestDataAttributesResourcesInner resourcesItem) { - if (this.resources == null) { - this.resources = new ArrayList<>(); + if (this.resources == null || !this.resources.isPresent()) { + this.resources = JsonNullable.>of(new ArrayList<>()); + } + try { + this.resources.get().add(resourcesItem); + } catch (java.util.NoSuchElementException e) { + // this can never happen, as we make sure above that the value is present } - this.resources.add(resourcesItem); return this; } - /** + /** * Get resources * @return resources - **/ + */ @jakarta.annotation.Nullable + @JsonIgnore + public List getResources() { + return resources.orElse(null); + } + @JsonProperty(JSON_PROPERTY_RESOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getResources() { + public JsonNullable> getResources_JsonNullable() { return resources; } - - + @JsonProperty(JSON_PROPERTY_RESOURCES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResources(List resources) { + public void setResources_JsonNullable(JsonNullable> resources) { this.resources = resources; } + public void setResources(List resources) { + this.resources = JsonNullable.>of(resources); + } + /** * Return true if this CreateApiTokenRequest_data_attributes object is equal to o. @@ -211,12 +223,23 @@ public boolean equals(Object o) { Objects.equals(this.description, createApiTokenRequestDataAttributes.description) && Objects.equals(this.expiration, createApiTokenRequestDataAttributes.expiration) && Objects.equals(this.sourceIp, createApiTokenRequestDataAttributes.sourceIp) && - Objects.equals(this.resources, createApiTokenRequestDataAttributes.resources); + equalsNullable(this.resources, createApiTokenRequestDataAttributes.resources); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(scope, description, expiration, sourceIp, resources); + return Objects.hash(scope, description, expiration, sourceIp, hashCodeNullable(resources)); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -277,22 +300,22 @@ public String toUrlQueryString(String prefix) { // add `scope` to the URL query string if (getScope() != null) { - joiner.add(String.format("%sscope%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getScope()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sscope%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getScope()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiration` to the URL query string if (getExpiration() != null) { - joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceIp` to the URL query string if (getSourceIp() != null) { - joiner.add(String.format("%ssourceIp%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceIp%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `resources` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateApiTokenRequestDataAttributesResourcesInner.java b/src/main/java/unit/java/sdk/model/CreateApiTokenRequestDataAttributesResourcesInner.java index aea7425e..7ba76058 100644 --- a/src/main/java/unit/java/sdk/model/CreateApiTokenRequestDataAttributesResourcesInner.java +++ b/src/main/java/unit/java/sdk/model/CreateApiTokenRequestDataAttributesResourcesInner.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApiTokenRequestDataAttributesResourcesInner */ @@ -37,7 +38,7 @@ CreateApiTokenRequestDataAttributesResourcesInner.JSON_PROPERTY_TYPE, CreateApiTokenRequestDataAttributesResourcesInner.JSON_PROPERTY_IDS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApiTokenRequestDataAttributesResourcesInner { /** * Gets or Sets type @@ -88,14 +89,13 @@ public CreateApiTokenRequestDataAttributesResourcesInner type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -121,14 +121,13 @@ public CreateApiTokenRequestDataAttributesResourcesInner addIdsItem(String idsIt return this; } - /** + /** * Get ids * @return ids - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIds() { return ids; } @@ -217,7 +216,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ids` to the URL query string @@ -225,7 +224,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getIds().size(); i++) { joiner.add(String.format("%sids%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getIds().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CreateApplicationFormRequest.java b/src/main/java/unit/java/sdk/model/CreateApplicationFormRequest.java index 72514cc5..55676e73 100644 --- a/src/main/java/unit/java/sdk/model/CreateApplicationFormRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateApplicationFormRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApplicationFormRequest */ @JsonPropertyOrder({ CreateApplicationFormRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApplicationFormRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateApplicationFormRequestData data; @@ -48,14 +49,13 @@ public CreateApplicationFormRequest data(CreateApplicationFormRequestData data) return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateApplicationFormRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestData.java b/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestData.java index 4580c51f..3d2adafa 100644 --- a/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestData.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApplicationFormRequestData */ @@ -38,13 +39,13 @@ CreateApplicationFormRequestData.JSON_PROPERTY_ATTRIBUTES, CreateApplicationFormRequestData.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApplicationFormRequestData { /** * Gets or Sets type */ public enum TypeEnum { - APPLICATIONFORM("applicationForm"); + APPLICATION_FORM("applicationForm"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.APPLICATIONFORM; + private TypeEnum type = TypeEnum.APPLICATION_FORM; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateApplicationFormRequestDataAttributes attributes; @@ -90,14 +91,13 @@ public CreateApplicationFormRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateApplicationFormRequestData attributes(CreateApplicationFormRequestD return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateApplicationFormRequestDataAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateApplicationFormRequestData relationships(CreateApplicationFormReque return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateApplicationFormRequestDataRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestDataAttributes.java index f9ba6331..6d94c684 100644 --- a/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestDataAttributes.java @@ -35,6 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApplicationFormRequestDataAttributes */ @@ -47,7 +48,7 @@ CreateApplicationFormRequestDataAttributes.JSON_PROPERTY_LANG, CreateApplicationFormRequestDataAttributes.JSON_PROPERTY_HIDE_APPLICATION_PROGRESS_TRACKER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApplicationFormRequestDataAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -69,7 +70,7 @@ public enum AllowedApplicationTypesEnum { BUSINESS("Business"), - SOLEPROPRIETORSHIP("SoleProprietorship"); + SOLE_PROPRIETORSHIP("SoleProprietorship"); private String value; @@ -158,14 +159,13 @@ public CreateApplicationFormRequestDataAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -183,14 +183,13 @@ public CreateApplicationFormRequestDataAttributes applicantDetails(ApplicationFo return this; } - /** + /** * Get applicantDetails * @return applicantDetails - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPLICANT_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationFormPrefill getApplicantDetails() { return applicantDetails; } @@ -208,14 +207,13 @@ public CreateApplicationFormRequestDataAttributes settingsOverride(ApplicationFo return this; } - /** + /** * Get settingsOverride * @return settingsOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SETTINGS_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationFormSettingsOverride getSettingsOverride() { return settingsOverride; } @@ -233,14 +231,13 @@ public CreateApplicationFormRequestDataAttributes requireIdVerification(RequireI return this; } - /** + /** * Get requireIdVerification * @return requireIdVerification - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRE_ID_VERIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RequireIdVerification getRequireIdVerification() { return requireIdVerification; } @@ -266,14 +263,13 @@ public CreateApplicationFormRequestDataAttributes addAllowedApplicationTypesItem return this; } - /** + /** * Get allowedApplicationTypes * @return allowedApplicationTypes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ALLOWED_APPLICATION_TYPES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAllowedApplicationTypes() { return allowedApplicationTypes; } @@ -291,14 +287,13 @@ public CreateApplicationFormRequestDataAttributes lang(LangEnum lang) { return this; } - /** + /** * Get lang * @return lang - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LANG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LangEnum getLang() { return lang; } @@ -316,14 +311,13 @@ public CreateApplicationFormRequestDataAttributes hideApplicationProgressTracker return this; } - /** + /** * Get hideApplicationProgressTracker * @return hideApplicationProgressTracker - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_HIDE_APPLICATION_PROGRESS_TRACKER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getHideApplicationProgressTracker() { return hideApplicationProgressTracker; } @@ -425,7 +419,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -449,18 +443,18 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getAllowedApplicationTypes().size(); i++) { joiner.add(String.format("%sallowedApplicationTypes%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getAllowedApplicationTypes().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getAllowedApplicationTypes().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `lang` to the URL query string if (getLang() != null) { - joiner.add(String.format("%slang%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLang()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slang%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLang()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `hideApplicationProgressTracker` to the URL query string if (getHideApplicationProgressTracker() != null) { - joiner.add(String.format("%shideApplicationProgressTracker%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHideApplicationProgressTracker()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%shideApplicationProgressTracker%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getHideApplicationProgressTracker()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestDataRelationships.java b/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestDataRelationships.java index 720d7904..8c6d90b9 100644 --- a/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestDataRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateApplicationFormRequestDataRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApplicationFormRequestDataRelationships */ @JsonPropertyOrder({ CreateApplicationFormRequestDataRelationships.JSON_PROPERTY_APPLICATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApplicationFormRequestDataRelationships { public static final String JSON_PROPERTY_APPLICATION = "application"; private ApplicationRelationship application; @@ -48,14 +49,13 @@ public CreateApplicationFormRequestDataRelationships application(ApplicationRela return this; } - /** + /** * Get application * @return application - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_APPLICATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ApplicationRelationship getApplication() { return application; } diff --git a/src/main/java/unit/java/sdk/model/CreateApplicationRequest.java b/src/main/java/unit/java/sdk/model/CreateApplicationRequest.java index 79163491..3812291a 100644 --- a/src/main/java/unit/java/sdk/model/CreateApplicationRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateApplicationRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateApplicationRequest */ @JsonPropertyOrder({ CreateApplicationRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateApplicationRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateApplicationRequestData data; @@ -48,14 +49,13 @@ public CreateApplicationRequest data(CreateApplicationRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateApplicationRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateApplicationRequestData.java b/src/main/java/unit/java/sdk/model/CreateApplicationRequestData.java index 71c102a3..b128e0b4 100644 --- a/src/main/java/unit/java/sdk/model/CreateApplicationRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateApplicationRequestData.java @@ -55,7 +55,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreateApplicationRequestData.CreateApplicationRequestDataDeserializer.class) @JsonSerialize(using = CreateApplicationRequestData.CreateApplicationRequestDataSerializer.class) public class CreateApplicationRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRelationships.java b/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRelationships.java new file mode 100644 index 00000000..be44aab1 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRelationships.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateAtmDepositSimulationRelationships + */ +@JsonPropertyOrder({ + CreateAtmDepositSimulationRelationships.JSON_PROPERTY_ACCOUNT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateAtmDepositSimulationRelationships { + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public CreateAtmDepositSimulationRelationships() { + } + + public CreateAtmDepositSimulationRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + /** + * Return true if this CreateAtmDepositSimulationRelationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateAtmDepositSimulationRelationships createAtmDepositSimulationRelationships = (CreateAtmDepositSimulationRelationships) o; + return Objects.equals(this.account, createAtmDepositSimulationRelationships.account); + } + + @Override + public int hashCode() { + return Objects.hash(account); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateAtmDepositSimulationRelationships {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequest.java b/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequest.java new file mode 100644 index 00000000..0568a812 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequest.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CreateAtmDepositSimulationRequestData; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateAtmDepositSimulationRequest + */ +@JsonPropertyOrder({ + CreateAtmDepositSimulationRequest.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateAtmDepositSimulationRequest { + public static final String JSON_PROPERTY_DATA = "data"; + private CreateAtmDepositSimulationRequestData data; + + public CreateAtmDepositSimulationRequest() { + } + + public CreateAtmDepositSimulationRequest data(CreateAtmDepositSimulationRequestData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateAtmDepositSimulationRequestData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(CreateAtmDepositSimulationRequestData data) { + this.data = data; + } + + + /** + * Return true if this CreateAtmDepositSimulationRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateAtmDepositSimulationRequest createAtmDepositSimulationRequest = (CreateAtmDepositSimulationRequest) o; + return Objects.equals(this.data, createAtmDepositSimulationRequest.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateAtmDepositSimulationRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequestData.java b/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequestData.java new file mode 100644 index 00000000..430e0edf --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequestData.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CreateAtmDepositSimulationRelationships; +import unit.java.sdk.model.CreateAtmDepositSimulationRequestDataAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateAtmDepositSimulationRequestData + */ +@JsonPropertyOrder({ + CreateAtmDepositSimulationRequestData.JSON_PROPERTY_TYPE, + CreateAtmDepositSimulationRequestData.JSON_PROPERTY_ATTRIBUTES, + CreateAtmDepositSimulationRequestData.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateAtmDepositSimulationRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ATM_TRANSACTION("atmTransaction"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.ATM_TRANSACTION; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CreateAtmDepositSimulationRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private CreateAtmDepositSimulationRelationships relationships; + + public CreateAtmDepositSimulationRequestData() { + } + + public CreateAtmDepositSimulationRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public CreateAtmDepositSimulationRequestData attributes(CreateAtmDepositSimulationRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateAtmDepositSimulationRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(CreateAtmDepositSimulationRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + public CreateAtmDepositSimulationRequestData relationships(CreateAtmDepositSimulationRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateAtmDepositSimulationRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(CreateAtmDepositSimulationRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this CreateAtmDepositSimulationRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateAtmDepositSimulationRequestData createAtmDepositSimulationRequestData = (CreateAtmDepositSimulationRequestData) o; + return Objects.equals(this.type, createAtmDepositSimulationRequestData.type) && + Objects.equals(this.attributes, createAtmDepositSimulationRequestData.attributes) && + Objects.equals(this.relationships, createAtmDepositSimulationRequestData.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateAtmDepositSimulationRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequestDataAttributes.java new file mode 100644 index 00000000..ca4cdb80 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateAtmDepositSimulationRequestDataAttributes.java @@ -0,0 +1,366 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateAtmDepositSimulationRequestDataAttributes + */ +@JsonPropertyOrder({ + CreateAtmDepositSimulationRequestDataAttributes.JSON_PROPERTY_AMOUNT, + CreateAtmDepositSimulationRequestDataAttributes.JSON_PROPERTY_ATM_NAME, + CreateAtmDepositSimulationRequestDataAttributes.JSON_PROPERTY_ATM_LOCATION, + CreateAtmDepositSimulationRequestDataAttributes.JSON_PROPERTY_LAST4_DIGITS, + CreateAtmDepositSimulationRequestDataAttributes.JSON_PROPERTY_CARD_NETWORK, + CreateAtmDepositSimulationRequestDataAttributes.JSON_PROPERTY_SURCHARGE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateAtmDepositSimulationRequestDataAttributes { + public static final String JSON_PROPERTY_AMOUNT = "amount"; + private Integer amount; + + public static final String JSON_PROPERTY_ATM_NAME = "atmName"; + private String atmName; + + public static final String JSON_PROPERTY_ATM_LOCATION = "atmLocation"; + private String atmLocation; + + public static final String JSON_PROPERTY_LAST4_DIGITS = "last4Digits"; + private String last4Digits; + + /** + * Gets or Sets cardNetwork + */ + public enum CardNetworkEnum { + VISA("Visa"), + + INTERLINK("Interlink"), + + ACCEL("Accel"), + + ALLPOINT("Allpoint"), + + OTHER("Other"); + + private String value; + + CardNetworkEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CardNetworkEnum fromValue(String value) { + for (CardNetworkEnum b : CardNetworkEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CARD_NETWORK = "cardNetwork"; + private CardNetworkEnum cardNetwork; + + public static final String JSON_PROPERTY_SURCHARGE = "surcharge"; + private Integer surcharge; + + public CreateAtmDepositSimulationRequestDataAttributes() { + } + + public CreateAtmDepositSimulationRequestDataAttributes amount(Integer amount) { + this.amount = amount; + return this; + } + + /** + * Get amount + * @return amount + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getAmount() { + return amount; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmount(Integer amount) { + this.amount = amount; + } + + + public CreateAtmDepositSimulationRequestDataAttributes atmName(String atmName) { + this.atmName = atmName; + return this; + } + + /** + * Get atmName + * @return atmName + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATM_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getAtmName() { + return atmName; + } + + + @JsonProperty(JSON_PROPERTY_ATM_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAtmName(String atmName) { + this.atmName = atmName; + } + + + public CreateAtmDepositSimulationRequestDataAttributes atmLocation(String atmLocation) { + this.atmLocation = atmLocation; + return this; + } + + /** + * Get atmLocation + * @return atmLocation + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATM_LOCATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAtmLocation() { + return atmLocation; + } + + + @JsonProperty(JSON_PROPERTY_ATM_LOCATION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAtmLocation(String atmLocation) { + this.atmLocation = atmLocation; + } + + + public CreateAtmDepositSimulationRequestDataAttributes last4Digits(String last4Digits) { + this.last4Digits = last4Digits; + return this; + } + + /** + * Get last4Digits + * @return last4Digits + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LAST4_DIGITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getLast4Digits() { + return last4Digits; + } + + + @JsonProperty(JSON_PROPERTY_LAST4_DIGITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLast4Digits(String last4Digits) { + this.last4Digits = last4Digits; + } + + + public CreateAtmDepositSimulationRequestDataAttributes cardNetwork(CardNetworkEnum cardNetwork) { + this.cardNetwork = cardNetwork; + return this; + } + + /** + * Get cardNetwork + * @return cardNetwork + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CARD_NETWORK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public CardNetworkEnum getCardNetwork() { + return cardNetwork; + } + + + @JsonProperty(JSON_PROPERTY_CARD_NETWORK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCardNetwork(CardNetworkEnum cardNetwork) { + this.cardNetwork = cardNetwork; + } + + + public CreateAtmDepositSimulationRequestDataAttributes surcharge(Integer surcharge) { + this.surcharge = surcharge; + return this; + } + + /** + * Get surcharge + * @return surcharge + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SURCHARGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getSurcharge() { + return surcharge; + } + + + @JsonProperty(JSON_PROPERTY_SURCHARGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSurcharge(Integer surcharge) { + this.surcharge = surcharge; + } + + + /** + * Return true if this CreateAtmDepositSimulationRequest_data_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateAtmDepositSimulationRequestDataAttributes createAtmDepositSimulationRequestDataAttributes = (CreateAtmDepositSimulationRequestDataAttributes) o; + return Objects.equals(this.amount, createAtmDepositSimulationRequestDataAttributes.amount) && + Objects.equals(this.atmName, createAtmDepositSimulationRequestDataAttributes.atmName) && + Objects.equals(this.atmLocation, createAtmDepositSimulationRequestDataAttributes.atmLocation) && + Objects.equals(this.last4Digits, createAtmDepositSimulationRequestDataAttributes.last4Digits) && + Objects.equals(this.cardNetwork, createAtmDepositSimulationRequestDataAttributes.cardNetwork) && + Objects.equals(this.surcharge, createAtmDepositSimulationRequestDataAttributes.surcharge); + } + + @Override + public int hashCode() { + return Objects.hash(amount, atmName, atmLocation, last4Digits, cardNetwork, surcharge); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateAtmDepositSimulationRequestDataAttributes {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" atmName: ").append(toIndentedString(atmName)).append("\n"); + sb.append(" atmLocation: ").append(toIndentedString(atmLocation)).append("\n"); + sb.append(" last4Digits: ").append(toIndentedString(last4Digits)).append("\n"); + sb.append(" cardNetwork: ").append(toIndentedString(cardNetwork)).append("\n"); + sb.append(" surcharge: ").append(toIndentedString(surcharge)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `amount` to the URL query string + if (getAmount() != null) { + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `atmName` to the URL query string + if (getAtmName() != null) { + joiner.add(String.format("%satmName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAtmName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `atmLocation` to the URL query string + if (getAtmLocation() != null) { + joiner.add(String.format("%satmLocation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAtmLocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `last4Digits` to the URL query string + if (getLast4Digits() != null) { + joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `cardNetwork` to the URL query string + if (getCardNetwork() != null) { + joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `surcharge` to the URL query string + if (getSurcharge() != null) { + joiner.add(String.format("%ssurcharge%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSurcharge()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateBeneficialOwner.java b/src/main/java/unit/java/sdk/model/CreateBeneficialOwner.java index ca463dbb..5138229e 100644 --- a/src/main/java/unit/java/sdk/model/CreateBeneficialOwner.java +++ b/src/main/java/unit/java/sdk/model/CreateBeneficialOwner.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBeneficialOwner */ @@ -55,7 +56,7 @@ CreateBeneficialOwner.JSON_PROPERTY_ANNUAL_INCOME, CreateBeneficialOwner.JSON_PROPERTY_SOURCE_OF_INCOME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBeneficialOwner { public static final String JSON_PROPERTY_FULL_NAME = "fullName"; private FullName fullName; @@ -107,14 +108,13 @@ public CreateBeneficialOwner fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -132,14 +132,13 @@ public CreateBeneficialOwner email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -157,14 +156,13 @@ public CreateBeneficialOwner phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -182,14 +180,13 @@ public CreateBeneficialOwner ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -207,14 +204,13 @@ public CreateBeneficialOwner passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -232,14 +228,13 @@ public CreateBeneficialOwner nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -257,14 +252,13 @@ public CreateBeneficialOwner matriculaConsular(String matriculaConsular) { return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -282,14 +276,13 @@ public CreateBeneficialOwner address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -307,14 +300,13 @@ public CreateBeneficialOwner dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -332,16 +324,15 @@ public CreateBeneficialOwner percentage(Integer percentage) { return this; } - /** + /** * Get percentage * minimum: 0 * maximum: 100 * @return percentage - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERCENTAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getPercentage() { return percentage; } @@ -359,14 +350,13 @@ public CreateBeneficialOwner evaluationParams(EvaluationParams evaluationParams) return this; } - /** + /** * Get evaluationParams * @return evaluationParams - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EvaluationParams getEvaluationParams() { return evaluationParams; } @@ -384,14 +374,13 @@ public CreateBeneficialOwner occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -409,14 +398,13 @@ public CreateBeneficialOwner annualIncome(AnnualIncome annualIncome) { return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -434,14 +422,13 @@ public CreateBeneficialOwner sourceOfIncome(SourceOfIncome sourceOfIncome) { return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -559,7 +546,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -569,22 +556,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -594,12 +581,12 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `percentage` to the URL query string if (getPercentage() != null) { - joiner.add(String.format("%spercentage%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPercentage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spercentage%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPercentage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `EvaluationParams` to the URL query string @@ -609,17 +596,17 @@ public String toUrlQueryString(String prefix) { // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateBookPayment.java b/src/main/java/unit/java/sdk/model/CreateBookPayment.java index daee198f..504bc885 100644 --- a/src/main/java/unit/java/sdk/model/CreateBookPayment.java +++ b/src/main/java/unit/java/sdk/model/CreateBookPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBookPayment */ @@ -38,13 +39,13 @@ CreateBookPayment.JSON_PROPERTY_ATTRIBUTES, CreateBookPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBookPayment { /** * Gets or Sets type */ public enum TypeEnum { - BOOKPAYMENT("bookPayment"); + BOOK_PAYMENT("bookPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BOOKPAYMENT; + private TypeEnum type = TypeEnum.BOOK_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateBookPaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateBookPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateBookPayment attributes(CreateBookPaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateBookPaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateBookPayment relationships(CreateBookPaymentRelationships relationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateBookPaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateBookPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateBookPaymentAttributes.java index a0547a76..721e4305 100644 --- a/src/main/java/unit/java/sdk/model/CreateBookPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateBookPaymentAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBookPaymentAttributes */ @@ -40,7 +41,7 @@ CreateBookPaymentAttributes.JSON_PROPERTY_TAGS, CreateBookPaymentAttributes.JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBookPaymentAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -65,14 +66,13 @@ public CreateBookPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -90,14 +90,13 @@ public CreateBookPaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -115,14 +114,13 @@ public CreateBookPaymentAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -148,14 +146,13 @@ public CreateBookPaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -173,14 +170,13 @@ public CreateBookPaymentAttributes transactionSummaryOverride(String transaction return this; } - /** + /** * Get transactionSummaryOverride * @return transactionSummaryOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionSummaryOverride() { return transactionSummaryOverride; } @@ -275,17 +271,17 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -293,13 +289,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `transactionSummaryOverride` to the URL query string if (getTransactionSummaryOverride() != null) { - joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateBookPaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateBookPaymentRelationships.java index e77afb2e..a0853407 100644 --- a/src/main/java/unit/java/sdk/model/CreateBookPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateBookPaymentRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBookPaymentRelationships */ @@ -37,7 +38,7 @@ CreateBookPaymentRelationships.JSON_PROPERTY_ACCOUNT, CreateBookPaymentRelationships.JSON_PROPERTY_COUNTERPARTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBookPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -53,14 +54,13 @@ public CreateBookPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -78,14 +78,13 @@ public CreateBookPaymentRelationships counterpartyAccount(CounterpartyAccountRel return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } diff --git a/src/main/java/unit/java/sdk/model/CreateBookRepayment.java b/src/main/java/unit/java/sdk/model/CreateBookRepayment.java index 5330f830..9fe1a74c 100644 --- a/src/main/java/unit/java/sdk/model/CreateBookRepayment.java +++ b/src/main/java/unit/java/sdk/model/CreateBookRepayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBookRepayment */ @@ -38,13 +39,13 @@ CreateBookRepayment.JSON_PROPERTY_ATTRIBUTES, CreateBookRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBookRepayment { /** * Gets or Sets type */ public enum TypeEnum { - BOOKREPAYMENT("bookRepayment"); + BOOK_REPAYMENT("bookRepayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BOOKREPAYMENT; + private TypeEnum type = TypeEnum.BOOK_REPAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateBookRepaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateBookRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateBookRepayment attributes(CreateBookRepaymentAttributes attributes) return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateBookRepaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateBookRepayment relationships(CreateBookRepaymentRelationships relati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateBookRepaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateBookRepaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateBookRepaymentAttributes.java index 44552fdb..48d5394e 100644 --- a/src/main/java/unit/java/sdk/model/CreateBookRepaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateBookRepaymentAttributes.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBookRepaymentAttributes */ @@ -37,7 +38,7 @@ CreateBookRepaymentAttributes.JSON_PROPERTY_AMOUNT, CreateBookRepaymentAttributes.JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBookRepaymentAttributes { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -56,14 +57,13 @@ public CreateBookRepaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -81,14 +81,13 @@ public CreateBookRepaymentAttributes amount(BigDecimal amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getAmount() { return amount; } @@ -106,14 +105,13 @@ public CreateBookRepaymentAttributes transactionSummaryOverride(String transacti return this; } - /** + /** * Get transactionSummaryOverride * @return transactionSummaryOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionSummaryOverride() { return transactionSummaryOverride; } @@ -204,17 +202,17 @@ public String toUrlQueryString(String prefix) { // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `transactionSummaryOverride` to the URL query string if (getTransactionSummaryOverride() != null) { - joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateBookRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateBookRepaymentRelationships.java index 7327ae86..b84323ca 100644 --- a/src/main/java/unit/java/sdk/model/CreateBookRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateBookRepaymentRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBookRepaymentRelationships */ @@ -39,7 +40,7 @@ CreateBookRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT, CreateBookRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBookRepaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public CreateBookRepaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public CreateBookRepaymentRelationships creditAccount(CreditAccountRelationship return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -108,14 +107,13 @@ public CreateBookRepaymentRelationships counterpartyAccount(CounterpartyAccountR return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } diff --git a/src/main/java/unit/java/sdk/model/CreateBusinessApplication.java b/src/main/java/unit/java/sdk/model/CreateBusinessApplication.java index 4fa1a22c..26e80afe 100644 --- a/src/main/java/unit/java/sdk/model/CreateBusinessApplication.java +++ b/src/main/java/unit/java/sdk/model/CreateBusinessApplication.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBusinessApplication */ @@ -36,13 +37,13 @@ CreateBusinessApplication.JSON_PROPERTY_TYPE, CreateBusinessApplication.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBusinessApplication { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSAPPLICATION("businessApplication"); + BUSINESS_APPLICATION("businessApplication"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSAPPLICATION; + private TypeEnum type = TypeEnum.BUSINESS_APPLICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateBusinessApplicationAttributes attributes; @@ -85,14 +86,13 @@ public CreateBusinessApplication type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CreateBusinessApplication attributes(CreateBusinessApplicationAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateBusinessApplicationAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateBusinessApplicationAttributes.java b/src/main/java/unit/java/sdk/model/CreateBusinessApplicationAttributes.java index 152c14b0..0687779a 100644 --- a/src/main/java/unit/java/sdk/model/CreateBusinessApplicationAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateBusinessApplicationAttributes.java @@ -45,6 +45,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBusinessApplicationAttributes */ @@ -75,7 +76,7 @@ CreateBusinessApplicationAttributes.JSON_PROPERTY_STOCK_SYMBOL, CreateBusinessApplicationAttributes.JSON_PROPERTY_BUSINESS_VERTICAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBusinessApplicationAttributes { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -160,14 +161,13 @@ public CreateBusinessApplicationAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -185,14 +185,13 @@ public CreateBusinessApplicationAttributes dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DBA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDba() { return dba; } @@ -210,14 +209,13 @@ public CreateBusinessApplicationAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEin() { return ein; } @@ -235,14 +233,13 @@ public CreateBusinessApplicationAttributes entityType(EntityType entityType) { return this; } - /** + /** * Get entityType * @return entityType - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ENTITY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public EntityType getEntityType() { return entityType; } @@ -260,14 +257,13 @@ public CreateBusinessApplicationAttributes dateOfIncorporation(LocalDate dateOfI return this; } - /** + /** * Get dateOfIncorporation * @return dateOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfIncorporation() { return dateOfIncorporation; } @@ -285,14 +281,13 @@ public CreateBusinessApplicationAttributes stateOfIncorporation(String stateOfIn return this; } - /** + /** * Get stateOfIncorporation * @return stateOfIncorporation - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATE_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStateOfIncorporation() { return stateOfIncorporation; } @@ -310,14 +305,13 @@ public CreateBusinessApplicationAttributes purpose(String purpose) { return this; } - /** + /** * Get purpose * @return purpose - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PURPOSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPurpose() { return purpose; } @@ -335,14 +329,13 @@ public CreateBusinessApplicationAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -360,14 +353,13 @@ public CreateBusinessApplicationAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -385,14 +377,13 @@ public CreateBusinessApplicationAttributes contact(Contact contact) { return this; } - /** + /** * Get contact * @return contact - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Contact getContact() { return contact; } @@ -410,14 +401,13 @@ public CreateBusinessApplicationAttributes officer(CreateOfficer officer) { return this; } - /** + /** * Get officer * @return officer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_OFFICER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateOfficer getOfficer() { return officer; } @@ -435,14 +425,13 @@ public CreateBusinessApplicationAttributes ip(String ip) { return this; } - /** + /** * Get ip * @return ip - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIp() { return ip; } @@ -460,14 +449,13 @@ public CreateBusinessApplicationAttributes website(String website) { return this; } - /** + /** * Get website * @return website - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWebsite() { return website; } @@ -493,14 +481,13 @@ public CreateBusinessApplicationAttributes addBeneficialOwnersItem(CreateBenefic return this; } - /** + /** * Get beneficialOwners * @return beneficialOwners - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BENEFICIAL_OWNERS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getBeneficialOwners() { return beneficialOwners; } @@ -526,14 +513,13 @@ public CreateBusinessApplicationAttributes putTagsItem(String key, String tagsIt return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -551,14 +537,13 @@ public CreateBusinessApplicationAttributes idempotencyKey(String idempotencyKey) return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -584,14 +569,13 @@ public CreateBusinessApplicationAttributes addDeviceFingerprintsItem(DeviceFinge return this; } - /** + /** * Get deviceFingerprints * @return deviceFingerprints - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDeviceFingerprints() { return deviceFingerprints; } @@ -609,14 +593,13 @@ public CreateBusinessApplicationAttributes industry(Industry industry) { return this; } - /** + /** * Get industry * @return industry - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Industry getIndustry() { return industry; } @@ -634,14 +617,13 @@ public CreateBusinessApplicationAttributes annualRevenue(BusinessAnnualRevenue a return this; } - /** + /** * Get annualRevenue * @return annualRevenue - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_REVENUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessAnnualRevenue getAnnualRevenue() { return annualRevenue; } @@ -659,14 +641,13 @@ public CreateBusinessApplicationAttributes numberOfEmployees(BusinessNumberOfEmp return this; } - /** + /** * Get numberOfEmployees * @return numberOfEmployees - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessNumberOfEmployees getNumberOfEmployees() { return numberOfEmployees; } @@ -684,14 +665,13 @@ public CreateBusinessApplicationAttributes cashFlow(CashFlow cashFlow) { return this; } - /** + /** * Get cashFlow * @return cashFlow - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CASH_FLOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CashFlow getCashFlow() { return cashFlow; } @@ -709,14 +689,13 @@ public CreateBusinessApplicationAttributes yearOfIncorporation(String yearOfInco return this; } - /** + /** * Get yearOfIncorporation * @return yearOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_YEAR_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getYearOfIncorporation() { return yearOfIncorporation; } @@ -742,14 +721,13 @@ public CreateBusinessApplicationAttributes addCountriesOfOperationItem(String co return this; } - /** + /** * Get countriesOfOperation * @return countriesOfOperation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTRIES_OF_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCountriesOfOperation() { return countriesOfOperation; } @@ -767,14 +745,13 @@ public CreateBusinessApplicationAttributes stockSymbol(String stockSymbol) { return this; } - /** + /** * Get stockSymbol * @return stockSymbol - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STOCK_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStockSymbol() { return stockSymbol; } @@ -792,14 +769,13 @@ public CreateBusinessApplicationAttributes businessVertical(BusinessVertical bus return this; } - /** + /** * Get businessVertical * @return businessVertical - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUSINESS_VERTICAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessVertical getBusinessVertical() { return businessVertical; } @@ -934,37 +910,37 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `entityType` to the URL query string if (getEntityType() != null) { - joiner.add(String.format("%sentityType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sentityType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEntityType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfIncorporation` to the URL query string if (getDateOfIncorporation() != null) { - joiner.add(String.format("%sdateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `stateOfIncorporation` to the URL query string if (getStateOfIncorporation() != null) { - joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstateOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStateOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `purpose` to the URL query string if (getPurpose() != null) { - joiner.add(String.format("%spurpose%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPurpose()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spurpose%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPurpose()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -989,12 +965,12 @@ public String toUrlQueryString(String prefix) { // add `ip` to the URL query string if (getIp() != null) { - joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `website` to the URL query string if (getWebsite() != null) { - joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `beneficialOwners` to the URL query string @@ -1012,13 +988,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `deviceFingerprints` to the URL query string @@ -1033,27 +1009,27 @@ public String toUrlQueryString(String prefix) { // add `industry` to the URL query string if (getIndustry() != null) { - joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualRevenue` to the URL query string if (getAnnualRevenue() != null) { - joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `numberOfEmployees` to the URL query string if (getNumberOfEmployees() != null) { - joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cashFlow` to the URL query string if (getCashFlow() != null) { - joiner.add(String.format("%scashFlow%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCashFlow()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scashFlow%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCashFlow()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `yearOfIncorporation` to the URL query string if (getYearOfIncorporation() != null) { - joiner.add(String.format("%syearOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getYearOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%syearOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getYearOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `countriesOfOperation` to the URL query string @@ -1061,18 +1037,18 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getCountriesOfOperation().size(); i++) { joiner.add(String.format("%scountriesOfOperation%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getCountriesOfOperation().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getCountriesOfOperation().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `stockSymbol` to the URL query string if (getStockSymbol() != null) { - joiner.add(String.format("%sstockSymbol%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStockSymbol()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstockSymbol%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStockSymbol()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessVertical` to the URL query string if (getBusinessVertical() != null) { - joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateBusinessDebitCardRequestAttributes.java b/src/main/java/unit/java/sdk/model/CreateBusinessCardAttributes.java similarity index 73% rename from src/main/java/unit/java/sdk/model/CreateBusinessDebitCardRequestAttributes.java rename to src/main/java/unit/java/sdk/model/CreateBusinessCardAttributes.java index 54e396a3..909e6525 100644 --- a/src/main/java/unit/java/sdk/model/CreateBusinessDebitCardRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateBusinessCardAttributes.java @@ -35,30 +35,31 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * CreateBusinessDebitCardRequestAttributes + * CreateBusinessCardAttributes */ @JsonPropertyOrder({ - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_SHIPPING_ADDRESS, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_ADDRESS, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_FULL_NAME, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_PHONE, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_EMAIL, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_DATE_OF_BIRTH, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_NATIONALITY, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_SSN, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_PASSPORT, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_DESIGN, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_ADDITIONAL_EMBOSSED_TEXT, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_TAGS, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_LIMITS, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_ACTIVE_FOR_ONLINE_USE, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_PRINT_ONLY_BUSINESS_NAME, - CreateBusinessDebitCardRequestAttributes.JSON_PROPERTY_EXPIRY_DATE + CreateBusinessCardAttributes.JSON_PROPERTY_SHIPPING_ADDRESS, + CreateBusinessCardAttributes.JSON_PROPERTY_ADDRESS, + CreateBusinessCardAttributes.JSON_PROPERTY_FULL_NAME, + CreateBusinessCardAttributes.JSON_PROPERTY_PHONE, + CreateBusinessCardAttributes.JSON_PROPERTY_EMAIL, + CreateBusinessCardAttributes.JSON_PROPERTY_DATE_OF_BIRTH, + CreateBusinessCardAttributes.JSON_PROPERTY_NATIONALITY, + CreateBusinessCardAttributes.JSON_PROPERTY_SSN, + CreateBusinessCardAttributes.JSON_PROPERTY_PASSPORT, + CreateBusinessCardAttributes.JSON_PROPERTY_DESIGN, + CreateBusinessCardAttributes.JSON_PROPERTY_ADDITIONAL_EMBOSSED_TEXT, + CreateBusinessCardAttributes.JSON_PROPERTY_TAGS, + CreateBusinessCardAttributes.JSON_PROPERTY_LIMITS, + CreateBusinessCardAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY, + CreateBusinessCardAttributes.JSON_PROPERTY_ACTIVE_FOR_ONLINE_USE, + CreateBusinessCardAttributes.JSON_PROPERTY_PRINT_ONLY_BUSINESS_NAME, + CreateBusinessCardAttributes.JSON_PROPERTY_EXPIRY_DATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class CreateBusinessDebitCardRequestAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateBusinessCardAttributes { public static final String JSON_PROPERTY_SHIPPING_ADDRESS = "shippingAddress"; private Address shippingAddress; @@ -110,22 +111,21 @@ public class CreateBusinessDebitCardRequestAttributes { public static final String JSON_PROPERTY_EXPIRY_DATE = "expiryDate"; private String expiryDate; - public CreateBusinessDebitCardRequestAttributes() { + public CreateBusinessCardAttributes() { } - public CreateBusinessDebitCardRequestAttributes shippingAddress(Address shippingAddress) { + public CreateBusinessCardAttributes shippingAddress(Address shippingAddress) { this.shippingAddress = shippingAddress; return this; } - /** + /** * Get shippingAddress * @return shippingAddress - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIPPING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getShippingAddress() { return shippingAddress; } @@ -138,19 +138,18 @@ public void setShippingAddress(Address shippingAddress) { } - public CreateBusinessDebitCardRequestAttributes address(Address address) { + public CreateBusinessCardAttributes address(Address address) { this.address = address; return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -163,19 +162,18 @@ public void setAddress(Address address) { } - public CreateBusinessDebitCardRequestAttributes fullName(FullName fullName) { + public CreateBusinessCardAttributes fullName(FullName fullName) { this.fullName = fullName; return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -188,19 +186,18 @@ public void setFullName(FullName fullName) { } - public CreateBusinessDebitCardRequestAttributes phone(Phone phone) { + public CreateBusinessCardAttributes phone(Phone phone) { this.phone = phone; return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -213,19 +210,18 @@ public void setPhone(Phone phone) { } - public CreateBusinessDebitCardRequestAttributes email(String email) { + public CreateBusinessCardAttributes email(String email) { this.email = email; return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -238,19 +234,18 @@ public void setEmail(String email) { } - public CreateBusinessDebitCardRequestAttributes dateOfBirth(LocalDate dateOfBirth) { + public CreateBusinessCardAttributes dateOfBirth(LocalDate dateOfBirth) { this.dateOfBirth = dateOfBirth; return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -263,19 +258,18 @@ public void setDateOfBirth(LocalDate dateOfBirth) { } - public CreateBusinessDebitCardRequestAttributes nationality(String nationality) { + public CreateBusinessCardAttributes nationality(String nationality) { this.nationality = nationality; return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -288,19 +282,18 @@ public void setNationality(String nationality) { } - public CreateBusinessDebitCardRequestAttributes ssn(String ssn) { + public CreateBusinessCardAttributes ssn(String ssn) { this.ssn = ssn; return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -313,19 +306,18 @@ public void setSsn(String ssn) { } - public CreateBusinessDebitCardRequestAttributes passport(String passport) { + public CreateBusinessCardAttributes passport(String passport) { this.passport = passport; return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -338,19 +330,18 @@ public void setPassport(String passport) { } - public CreateBusinessDebitCardRequestAttributes design(String design) { + public CreateBusinessCardAttributes design(String design) { this.design = design; return this; } - /** + /** * Get design * @return design - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesign() { return design; } @@ -363,19 +354,18 @@ public void setDesign(String design) { } - public CreateBusinessDebitCardRequestAttributes additionalEmbossedText(String additionalEmbossedText) { + public CreateBusinessCardAttributes additionalEmbossedText(String additionalEmbossedText) { this.additionalEmbossedText = additionalEmbossedText; return this; } - /** + /** * Get additionalEmbossedText * @return additionalEmbossedText - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDITIONAL_EMBOSSED_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAdditionalEmbossedText() { return additionalEmbossedText; } @@ -388,12 +378,12 @@ public void setAdditionalEmbossedText(String additionalEmbossedText) { } - public CreateBusinessDebitCardRequestAttributes tags(Map tags) { + public CreateBusinessCardAttributes tags(Map tags) { this.tags = tags; return this; } - public CreateBusinessDebitCardRequestAttributes putTagsItem(String key, String tagsItem) { + public CreateBusinessCardAttributes putTagsItem(String key, String tagsItem) { if (this.tags == null) { this.tags = new HashMap<>(); } @@ -401,14 +391,13 @@ public CreateBusinessDebitCardRequestAttributes putTagsItem(String key, String t return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -421,19 +410,18 @@ public void setTags(Map tags) { } - public CreateBusinessDebitCardRequestAttributes limits(CardLevelLimits limits) { + public CreateBusinessCardAttributes limits(CardLevelLimits limits) { this.limits = limits; return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -446,19 +434,18 @@ public void setLimits(CardLevelLimits limits) { } - public CreateBusinessDebitCardRequestAttributes idempotencyKey(String idempotencyKey) { + public CreateBusinessCardAttributes idempotencyKey(String idempotencyKey) { this.idempotencyKey = idempotencyKey; return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -471,19 +458,18 @@ public void setIdempotencyKey(String idempotencyKey) { } - public CreateBusinessDebitCardRequestAttributes activeForOnlineUse(Boolean activeForOnlineUse) { + public CreateBusinessCardAttributes activeForOnlineUse(Boolean activeForOnlineUse) { this.activeForOnlineUse = activeForOnlineUse; return this; } - /** + /** * Get activeForOnlineUse * @return activeForOnlineUse - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTIVE_FOR_ONLINE_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getActiveForOnlineUse() { return activeForOnlineUse; } @@ -496,19 +482,18 @@ public void setActiveForOnlineUse(Boolean activeForOnlineUse) { } - public CreateBusinessDebitCardRequestAttributes printOnlyBusinessName(Boolean printOnlyBusinessName) { + public CreateBusinessCardAttributes printOnlyBusinessName(Boolean printOnlyBusinessName) { this.printOnlyBusinessName = printOnlyBusinessName; return this; } - /** + /** * Get printOnlyBusinessName * @return printOnlyBusinessName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRINT_ONLY_BUSINESS_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getPrintOnlyBusinessName() { return printOnlyBusinessName; } @@ -521,19 +506,18 @@ public void setPrintOnlyBusinessName(Boolean printOnlyBusinessName) { } - public CreateBusinessDebitCardRequestAttributes expiryDate(String expiryDate) { + public CreateBusinessCardAttributes expiryDate(String expiryDate) { this.expiryDate = expiryDate; return this; } - /** + /** * Get expiryDate * @return expiryDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExpiryDate() { return expiryDate; } @@ -547,7 +531,7 @@ public void setExpiryDate(String expiryDate) { /** - * Return true if this CreateBusinessDebitCardRequest_attributes object is equal to o. + * Return true if this CreateBusinessCardAttributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -557,24 +541,24 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateBusinessDebitCardRequestAttributes createBusinessDebitCardRequestAttributes = (CreateBusinessDebitCardRequestAttributes) o; - return Objects.equals(this.shippingAddress, createBusinessDebitCardRequestAttributes.shippingAddress) && - Objects.equals(this.address, createBusinessDebitCardRequestAttributes.address) && - Objects.equals(this.fullName, createBusinessDebitCardRequestAttributes.fullName) && - Objects.equals(this.phone, createBusinessDebitCardRequestAttributes.phone) && - Objects.equals(this.email, createBusinessDebitCardRequestAttributes.email) && - Objects.equals(this.dateOfBirth, createBusinessDebitCardRequestAttributes.dateOfBirth) && - Objects.equals(this.nationality, createBusinessDebitCardRequestAttributes.nationality) && - Objects.equals(this.ssn, createBusinessDebitCardRequestAttributes.ssn) && - Objects.equals(this.passport, createBusinessDebitCardRequestAttributes.passport) && - Objects.equals(this.design, createBusinessDebitCardRequestAttributes.design) && - Objects.equals(this.additionalEmbossedText, createBusinessDebitCardRequestAttributes.additionalEmbossedText) && - Objects.equals(this.tags, createBusinessDebitCardRequestAttributes.tags) && - Objects.equals(this.limits, createBusinessDebitCardRequestAttributes.limits) && - Objects.equals(this.idempotencyKey, createBusinessDebitCardRequestAttributes.idempotencyKey) && - Objects.equals(this.activeForOnlineUse, createBusinessDebitCardRequestAttributes.activeForOnlineUse) && - Objects.equals(this.printOnlyBusinessName, createBusinessDebitCardRequestAttributes.printOnlyBusinessName) && - Objects.equals(this.expiryDate, createBusinessDebitCardRequestAttributes.expiryDate); + CreateBusinessCardAttributes createBusinessCardAttributes = (CreateBusinessCardAttributes) o; + return Objects.equals(this.shippingAddress, createBusinessCardAttributes.shippingAddress) && + Objects.equals(this.address, createBusinessCardAttributes.address) && + Objects.equals(this.fullName, createBusinessCardAttributes.fullName) && + Objects.equals(this.phone, createBusinessCardAttributes.phone) && + Objects.equals(this.email, createBusinessCardAttributes.email) && + Objects.equals(this.dateOfBirth, createBusinessCardAttributes.dateOfBirth) && + Objects.equals(this.nationality, createBusinessCardAttributes.nationality) && + Objects.equals(this.ssn, createBusinessCardAttributes.ssn) && + Objects.equals(this.passport, createBusinessCardAttributes.passport) && + Objects.equals(this.design, createBusinessCardAttributes.design) && + Objects.equals(this.additionalEmbossedText, createBusinessCardAttributes.additionalEmbossedText) && + Objects.equals(this.tags, createBusinessCardAttributes.tags) && + Objects.equals(this.limits, createBusinessCardAttributes.limits) && + Objects.equals(this.idempotencyKey, createBusinessCardAttributes.idempotencyKey) && + Objects.equals(this.activeForOnlineUse, createBusinessCardAttributes.activeForOnlineUse) && + Objects.equals(this.printOnlyBusinessName, createBusinessCardAttributes.printOnlyBusinessName) && + Objects.equals(this.expiryDate, createBusinessCardAttributes.expiryDate); } @Override @@ -585,7 +569,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateBusinessDebitCardRequestAttributes {\n"); + sb.append("class CreateBusinessCardAttributes {\n"); sb.append(" shippingAddress: ").append(toIndentedString(shippingAddress)).append("\n"); sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n"); @@ -672,37 +656,37 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `design` to the URL query string if (getDesign() != null) { - joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `additionalEmbossedText` to the URL query string if (getAdditionalEmbossedText() != null) { - joiner.add(String.format("%sadditionalEmbossedText%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAdditionalEmbossedText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sadditionalEmbossedText%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAdditionalEmbossedText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -710,7 +694,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -721,22 +705,22 @@ public String toUrlQueryString(String prefix) { // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `activeForOnlineUse` to the URL query string if (getActiveForOnlineUse() != null) { - joiner.add(String.format("%sactiveForOnlineUse%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getActiveForOnlineUse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sactiveForOnlineUse%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getActiveForOnlineUse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `printOnlyBusinessName` to the URL query string if (getPrintOnlyBusinessName() != null) { - joiner.add(String.format("%sprintOnlyBusinessName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPrintOnlyBusinessName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sprintOnlyBusinessName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPrintOnlyBusinessName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiryDate` to the URL query string if (getExpiryDate() != null) { - joiner.add(String.format("%sexpiryDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiryDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateBusinessCreditCardRequest.java b/src/main/java/unit/java/sdk/model/CreateBusinessCreditCardRequest.java index 177a10b7..dea951a1 100644 --- a/src/main/java/unit/java/sdk/model/CreateBusinessCreditCardRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateBusinessCreditCardRequest.java @@ -25,11 +25,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CreateBusinessDebitCardRequestAttributes; +import unit.java.sdk.model.CreateBusinessCardAttributes; import unit.java.sdk.model.CreateCardRelationships; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBusinessCreditCardRequest */ @@ -38,13 +39,13 @@ CreateBusinessCreditCardRequest.JSON_PROPERTY_ATTRIBUTES, CreateBusinessCreditCardRequest.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBusinessCreditCardRequest { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSCREDITCARD("businessCreditCard"); + BUSINESS_CREDIT_CARD("businessCreditCard"); private String value; @@ -74,10 +75,10 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSCREDITCARD; + private TypeEnum type = TypeEnum.BUSINESS_CREDIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private CreateBusinessDebitCardRequestAttributes attributes; + private CreateBusinessCardAttributes attributes; public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; private CreateCardRelationships relationships; @@ -90,14 +91,13 @@ public CreateBusinessCreditCardRequest type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,27 +110,26 @@ public void setType(TypeEnum type) { } - public CreateBusinessCreditCardRequest attributes(CreateBusinessDebitCardRequestAttributes attributes) { + public CreateBusinessCreditCardRequest attributes(CreateBusinessCardAttributes attributes) { this.attributes = attributes; return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CreateBusinessDebitCardRequestAttributes getAttributes() { + public CreateBusinessCardAttributes getAttributes() { return attributes; } @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAttributes(CreateBusinessDebitCardRequestAttributes attributes) { + public void setAttributes(CreateBusinessCardAttributes attributes) { this.attributes = attributes; } @@ -140,14 +139,13 @@ public CreateBusinessCreditCardRequest relationships(CreateCardRelationships rel return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCardRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateBusinessDebitCardRequest.java b/src/main/java/unit/java/sdk/model/CreateBusinessDebitCardRequest.java index 13950700..43c7beb9 100644 --- a/src/main/java/unit/java/sdk/model/CreateBusinessDebitCardRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateBusinessDebitCardRequest.java @@ -25,11 +25,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CreateBusinessDebitCardRequestAttributes; +import unit.java.sdk.model.CreateBusinessCardAttributes; import unit.java.sdk.model.CreateCardRelationships; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBusinessDebitCardRequest */ @@ -38,13 +39,13 @@ CreateBusinessDebitCardRequest.JSON_PROPERTY_ATTRIBUTES, CreateBusinessDebitCardRequest.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBusinessDebitCardRequest { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSDEBITCARD("businessDebitCard"); + BUSINESS_DEBIT_CARD("businessDebitCard"); private String value; @@ -74,10 +75,10 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSDEBITCARD; + private TypeEnum type = TypeEnum.BUSINESS_DEBIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private CreateBusinessDebitCardRequestAttributes attributes; + private CreateBusinessCardAttributes attributes; public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; private CreateCardRelationships relationships; @@ -90,14 +91,13 @@ public CreateBusinessDebitCardRequest type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,27 +110,26 @@ public void setType(TypeEnum type) { } - public CreateBusinessDebitCardRequest attributes(CreateBusinessDebitCardRequestAttributes attributes) { + public CreateBusinessDebitCardRequest attributes(CreateBusinessCardAttributes attributes) { this.attributes = attributes; return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CreateBusinessDebitCardRequestAttributes getAttributes() { + public CreateBusinessCardAttributes getAttributes() { return attributes; } @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAttributes(CreateBusinessDebitCardRequestAttributes attributes) { + public void setAttributes(CreateBusinessCardAttributes attributes) { this.attributes = attributes; } @@ -140,14 +139,13 @@ public CreateBusinessDebitCardRequest relationships(CreateCardRelationships rela return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCardRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateBusinessVirtualCreditCardRequest.java b/src/main/java/unit/java/sdk/model/CreateBusinessVirtualCreditCardRequest.java index 75375756..1fb09011 100644 --- a/src/main/java/unit/java/sdk/model/CreateBusinessVirtualCreditCardRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateBusinessVirtualCreditCardRequest.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBusinessVirtualCreditCardRequest */ @@ -38,13 +39,13 @@ CreateBusinessVirtualCreditCardRequest.JSON_PROPERTY_ATTRIBUTES, CreateBusinessVirtualCreditCardRequest.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBusinessVirtualCreditCardRequest { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSVIRTUALCREDITCARD("businessVirtualCreditCard"); + BUSINESS_VIRTUAL_CREDIT_CARD("businessVirtualCreditCard"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSVIRTUALCREDITCARD; + private TypeEnum type = TypeEnum.BUSINESS_VIRTUAL_CREDIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateBusinessVirtualDebitCardRequestAttributes attributes; @@ -90,14 +91,13 @@ public CreateBusinessVirtualCreditCardRequest type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateBusinessVirtualCreditCardRequest attributes(CreateBusinessVirtualDe return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateBusinessVirtualDebitCardRequestAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateBusinessVirtualCreditCardRequest relationships(CreateCardRelationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCardRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateBusinessVirtualDebitCardRequest.java b/src/main/java/unit/java/sdk/model/CreateBusinessVirtualDebitCardRequest.java index 870c5431..2a23e4a2 100644 --- a/src/main/java/unit/java/sdk/model/CreateBusinessVirtualDebitCardRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateBusinessVirtualDebitCardRequest.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBusinessVirtualDebitCardRequest */ @@ -38,13 +39,13 @@ CreateBusinessVirtualDebitCardRequest.JSON_PROPERTY_ATTRIBUTES, CreateBusinessVirtualDebitCardRequest.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBusinessVirtualDebitCardRequest { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSVIRTUALDEBITCARD("businessVirtualDebitCard"); + BUSINESS_VIRTUAL_DEBIT_CARD("businessVirtualDebitCard"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSVIRTUALDEBITCARD; + private TypeEnum type = TypeEnum.BUSINESS_VIRTUAL_DEBIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateBusinessVirtualDebitCardRequestAttributes attributes; @@ -90,14 +91,13 @@ public CreateBusinessVirtualDebitCardRequest type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateBusinessVirtualDebitCardRequest attributes(CreateBusinessVirtualDeb return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateBusinessVirtualDebitCardRequestAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateBusinessVirtualDebitCardRequest relationships(CreateCardRelationshi return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCardRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateBusinessVirtualDebitCardRequestAttributes.java b/src/main/java/unit/java/sdk/model/CreateBusinessVirtualDebitCardRequestAttributes.java index f3896099..51bf6fc0 100644 --- a/src/main/java/unit/java/sdk/model/CreateBusinessVirtualDebitCardRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateBusinessVirtualDebitCardRequestAttributes.java @@ -35,6 +35,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateBusinessVirtualDebitCardRequestAttributes */ @@ -52,7 +53,7 @@ CreateBusinessVirtualDebitCardRequestAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY, CreateBusinessVirtualDebitCardRequestAttributes.JSON_PROPERTY_EXPIRY_DATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateBusinessVirtualDebitCardRequestAttributes { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -98,14 +99,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes address(Address address) return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -123,14 +123,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes fullName(FullName fullNam return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -148,14 +147,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -173,14 +171,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -198,14 +195,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes dateOfBirth(LocalDate dat return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -223,14 +219,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes nationality(String nation return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -248,14 +243,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -273,14 +267,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes passport(String passport) return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -306,14 +299,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes putTagsItem(String key, S return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -331,14 +323,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes limits(CardLevelLimits li return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -356,14 +347,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes idempotencyKey(String ide return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -381,14 +371,13 @@ public CreateBusinessVirtualDebitCardRequestAttributes expiryDate(String expiryD return this; } - /** + /** * Get expiryDate * @return expiryDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExpiryDate() { return expiryDate; } @@ -512,27 +501,27 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -540,7 +529,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -551,12 +540,12 @@ public String toUrlQueryString(String prefix) { // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiryDate` to the URL query string if (getExpiryDate() != null) { - joiner.add(String.format("%sexpiryDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiryDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateCapitalPartnerAchRepayment.java b/src/main/java/unit/java/sdk/model/CreateCapitalPartnerAchRepayment.java index ebb2099d..c9aad160 100644 --- a/src/main/java/unit/java/sdk/model/CreateCapitalPartnerAchRepayment.java +++ b/src/main/java/unit/java/sdk/model/CreateCapitalPartnerAchRepayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCapitalPartnerAchRepayment */ @@ -38,13 +39,13 @@ CreateCapitalPartnerAchRepayment.JSON_PROPERTY_ATTRIBUTES, CreateCapitalPartnerAchRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCapitalPartnerAchRepayment { /** * Gets or Sets type */ public enum TypeEnum { - CAPITALPARTNERACHREPAYMENT("capitalPartnerAchRepayment"); + CAPITAL_PARTNER_ACH_REPAYMENT("capitalPartnerAchRepayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CAPITALPARTNERACHREPAYMENT; + private TypeEnum type = TypeEnum.CAPITAL_PARTNER_ACH_REPAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateAchRepaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateCapitalPartnerAchRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateCapitalPartnerAchRepayment attributes(CreateAchRepaymentAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateAchRepaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateCapitalPartnerAchRepayment relationships(CreateCapitalPartnerAchRep return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCapitalPartnerAchRepaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateCapitalPartnerAchRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateCapitalPartnerAchRepaymentRelationships.java index e5f48408..4c02219f 100644 --- a/src/main/java/unit/java/sdk/model/CreateCapitalPartnerAchRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateCapitalPartnerAchRepaymentRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCapitalPartnerAchRepaymentRelationships */ @@ -37,7 +38,7 @@ CreateCapitalPartnerAchRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT, CreateCapitalPartnerAchRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCapitalPartnerAchRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private CreditAccountRelationship creditAccount; @@ -53,14 +54,13 @@ public CreateCapitalPartnerAchRepaymentRelationships creditAccount(CreditAccount return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -78,14 +78,13 @@ public CreateCapitalPartnerAchRepaymentRelationships counterparty(CounterpartyRe return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } diff --git a/src/main/java/unit/java/sdk/model/CreateCapitalPartnerBookRepayment.java b/src/main/java/unit/java/sdk/model/CreateCapitalPartnerBookRepayment.java index b944102d..fd0ace31 100644 --- a/src/main/java/unit/java/sdk/model/CreateCapitalPartnerBookRepayment.java +++ b/src/main/java/unit/java/sdk/model/CreateCapitalPartnerBookRepayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCapitalPartnerBookRepayment */ @@ -38,13 +39,13 @@ CreateCapitalPartnerBookRepayment.JSON_PROPERTY_ATTRIBUTES, CreateCapitalPartnerBookRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCapitalPartnerBookRepayment { /** * Gets or Sets type */ public enum TypeEnum { - CAPITALPARTNERBOOKREPAYMENT("capitalPartnerBookRepayment"); + CAPITAL_PARTNER_BOOK_REPAYMENT("capitalPartnerBookRepayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CAPITALPARTNERBOOKREPAYMENT; + private TypeEnum type = TypeEnum.CAPITAL_PARTNER_BOOK_REPAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateBookRepaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateCapitalPartnerBookRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateCapitalPartnerBookRepayment attributes(CreateBookRepaymentAttribute return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateBookRepaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateCapitalPartnerBookRepayment relationships(CreateCapitalPartnerBookR return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCapitalPartnerBookRepaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateCapitalPartnerBookRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateCapitalPartnerBookRepaymentRelationships.java index 88ebc28d..5ee8505b 100644 --- a/src/main/java/unit/java/sdk/model/CreateCapitalPartnerBookRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateCapitalPartnerBookRepaymentRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCapitalPartnerBookRepaymentRelationships */ @@ -37,7 +38,7 @@ CreateCapitalPartnerBookRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT, CreateCapitalPartnerBookRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCapitalPartnerBookRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private CreditAccountRelationship creditAccount; @@ -53,14 +54,13 @@ public CreateCapitalPartnerBookRepaymentRelationships creditAccount(CreditAccoun return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -78,14 +78,13 @@ public CreateCapitalPartnerBookRepaymentRelationships counterpartyAccount(Counte return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } diff --git a/src/main/java/unit/java/sdk/model/CreateCardRelationships.java b/src/main/java/unit/java/sdk/model/CreateCardRelationships.java index ccce8a8f..21633014 100644 --- a/src/main/java/unit/java/sdk/model/CreateCardRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateCardRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCardRelationships */ @@ -39,7 +40,7 @@ CreateCardRelationships.JSON_PROPERTY_CUSTOMER, CreateCardRelationships.JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCardRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public CreateCardRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public CreateCardRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public CreateCardRelationships defaultFundingAccount(Relationship defaultFunding return this; } - /** + /** * Get defaultFundingAccount * @return defaultFundingAccount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Relationship getDefaultFundingAccount() { return defaultFundingAccount; } diff --git a/src/main/java/unit/java/sdk/model/CreateCardRequest.java b/src/main/java/unit/java/sdk/model/CreateCardRequest.java index 7e9ffae9..eab95d81 100644 --- a/src/main/java/unit/java/sdk/model/CreateCardRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateCardRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCardRequest */ @JsonPropertyOrder({ CreateCardRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCardRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateCardRequestData data; @@ -48,14 +49,13 @@ public CreateCardRequest data(CreateCardRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateCardRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateCardRequestData.java b/src/main/java/unit/java/sdk/model/CreateCardRequestData.java index 3cfe9197..1e70680f 100644 --- a/src/main/java/unit/java/sdk/model/CreateCardRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateCardRequestData.java @@ -59,7 +59,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreateCardRequestData.CreateCardRequestDataDeserializer.class) @JsonSerialize(using = CreateCardRequestData.CreateCardRequestDataSerializer.class) public class CreateCardRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/CreateCheckDepositRelationships.java b/src/main/java/unit/java/sdk/model/CreateCheckDepositRelationships.java index 885bc9bf..15b6f349 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckDepositRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckDepositRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckDepositRelationships */ @JsonPropertyOrder({ CreateCheckDepositRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckDepositRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreateCheckDepositRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreateCheckDepositRequest.java b/src/main/java/unit/java/sdk/model/CreateCheckDepositRequest.java index 2d6f6ad4..79442349 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckDepositRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckDepositRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckDepositRequest */ @JsonPropertyOrder({ CreateCheckDepositRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckDepositRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateCheckDepositRequestData data; @@ -48,14 +49,13 @@ public CreateCheckDepositRequest data(CreateCheckDepositRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateCheckDepositRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateCheckDepositRequestData.java b/src/main/java/unit/java/sdk/model/CreateCheckDepositRequestData.java index 4c95fc98..29206842 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckDepositRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckDepositRequestData.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckDepositRequestData */ @@ -38,13 +39,13 @@ CreateCheckDepositRequestData.JSON_PROPERTY_ATTRIBUTES, CreateCheckDepositRequestData.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckDepositRequestData { /** * Gets or Sets type */ public enum TypeEnum { - CHECKDEPOSIT("checkDeposit"); + CHECK_DEPOSIT("checkDeposit"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CHECKDEPOSIT; + private TypeEnum type = TypeEnum.CHECK_DEPOSIT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateCheckDepositRequestDataAttributes attributes; @@ -90,14 +91,13 @@ public CreateCheckDepositRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateCheckDepositRequestData attributes(CreateCheckDepositRequestDataAtt return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCheckDepositRequestDataAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateCheckDepositRequestData relationships(CreateCheckDepositRelationshi return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCheckDepositRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateCheckDepositRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateCheckDepositRequestDataAttributes.java index d1ef935d..30a152ee 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckDepositRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckDepositRequestDataAttributes.java @@ -30,20 +30,25 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckDepositRequestDataAttributes */ @JsonPropertyOrder({ CreateCheckDepositRequestDataAttributes.JSON_PROPERTY_AMOUNT, + CreateCheckDepositRequestDataAttributes.JSON_PROPERTY_CLEARING_DAYS_OVERRIDE, CreateCheckDepositRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, CreateCheckDepositRequestDataAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY, CreateCheckDepositRequestDataAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckDepositRequestDataAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; + public static final String JSON_PROPERTY_CLEARING_DAYS_OVERRIDE = "clearingDaysOverride"; + private Integer clearingDaysOverride; + public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -61,15 +66,14 @@ public CreateCheckDepositRequestDataAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -82,19 +86,43 @@ public void setAmount(Integer amount) { } + public CreateCheckDepositRequestDataAttributes clearingDaysOverride(Integer clearingDaysOverride) { + this.clearingDaysOverride = clearingDaysOverride; + return this; + } + + /** + * Get clearingDaysOverride + * minimum: 1 + * @return clearingDaysOverride + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CLEARING_DAYS_OVERRIDE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getClearingDaysOverride() { + return clearingDaysOverride; + } + + + @JsonProperty(JSON_PROPERTY_CLEARING_DAYS_OVERRIDE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setClearingDaysOverride(Integer clearingDaysOverride) { + this.clearingDaysOverride = clearingDaysOverride; + } + + public CreateCheckDepositRequestDataAttributes description(String description) { this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -112,14 +140,13 @@ public CreateCheckDepositRequestDataAttributes idempotencyKey(String idempotency return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -145,14 +172,13 @@ public CreateCheckDepositRequestDataAttributes putTagsItem(String key, String ta return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -178,6 +204,7 @@ public boolean equals(Object o) { } CreateCheckDepositRequestDataAttributes createCheckDepositRequestDataAttributes = (CreateCheckDepositRequestDataAttributes) o; return Objects.equals(this.amount, createCheckDepositRequestDataAttributes.amount) && + Objects.equals(this.clearingDaysOverride, createCheckDepositRequestDataAttributes.clearingDaysOverride) && Objects.equals(this.description, createCheckDepositRequestDataAttributes.description) && Objects.equals(this.idempotencyKey, createCheckDepositRequestDataAttributes.idempotencyKey) && Objects.equals(this.tags, createCheckDepositRequestDataAttributes.tags); @@ -185,7 +212,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(amount, description, idempotencyKey, tags); + return Objects.hash(amount, clearingDaysOverride, description, idempotencyKey, tags); } @Override @@ -193,6 +220,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateCheckDepositRequestDataAttributes {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" clearingDaysOverride: ").append(toIndentedString(clearingDaysOverride)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); @@ -245,17 +273,22 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `clearingDaysOverride` to the URL query string + if (getClearingDaysOverride() != null) { + joiner.add(String.format("%sclearingDaysOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getClearingDaysOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -263,7 +296,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRelationships.java index 734d97d2..8bde9989 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckPaymentRelationships */ @@ -37,7 +38,7 @@ CreateCheckPaymentRelationships.JSON_PROPERTY_ACCOUNT, CreateCheckPaymentRelationships.JSON_PROPERTY_CUSTOMER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -53,14 +54,13 @@ public CreateCheckPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -78,14 +78,13 @@ public CreateCheckPaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } diff --git a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequest.java b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequest.java index 474f7a12..47c830ef 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckPaymentRequest */ @JsonPropertyOrder({ CreateCheckPaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckPaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateCheckPaymentRequestData data; @@ -48,14 +49,13 @@ public CreateCheckPaymentRequest data(CreateCheckPaymentRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCheckPaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestData.java b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestData.java index c4a55b91..24b7634b 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestData.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckPaymentRequestData */ @@ -38,13 +39,13 @@ CreateCheckPaymentRequestData.JSON_PROPERTY_ATTRIBUTES, CreateCheckPaymentRequestData.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckPaymentRequestData { /** * Gets or Sets type */ public enum TypeEnum { - CHECKPAYMENT("checkPayment"); + CHECK_PAYMENT("checkPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CHECKPAYMENT; + private TypeEnum type = TypeEnum.CHECK_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateCheckPaymentRequestDataAttributes attributes; @@ -90,14 +91,13 @@ public CreateCheckPaymentRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateCheckPaymentRequestData attributes(CreateCheckPaymentRequestDataAtt return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCheckPaymentRequestDataAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateCheckPaymentRequestData relationships(CreateCheckPaymentRelationshi return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCheckPaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestDataAttributes.java index 99cc703c..42a4f820 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestDataAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckPaymentRequestDataAttributes */ @@ -44,7 +45,7 @@ CreateCheckPaymentRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, CreateCheckPaymentRequestDataAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckPaymentRequestDataAttributes { public static final String JSON_PROPERTY_COUNTERPARTY = "counterparty"; private CreateCheckPaymentRequestDataAttributesCounterparty counterparty; @@ -75,14 +76,13 @@ public CreateCheckPaymentRequestDataAttributes counterparty(CreateCheckPaymentRe return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCheckPaymentRequestDataAttributesCounterparty getCounterparty() { return counterparty; } @@ -100,15 +100,14 @@ public CreateCheckPaymentRequestDataAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -126,14 +125,13 @@ public CreateCheckPaymentRequestDataAttributes idempotencyKey(String idempotency return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -151,14 +149,13 @@ public CreateCheckPaymentRequestDataAttributes sendDate(LocalDate sendDate) { return this; } - /** + /** * Get sendDate * @return sendDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEND_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getSendDate() { return sendDate; } @@ -176,14 +173,13 @@ public CreateCheckPaymentRequestDataAttributes memo(String memo) { return this; } - /** + /** * Get memo * @return memo - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MEMO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMemo() { return memo; } @@ -201,14 +197,13 @@ public CreateCheckPaymentRequestDataAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -234,14 +229,13 @@ public CreateCheckPaymentRequestDataAttributes putTagsItem(String key, String ta return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -345,27 +339,27 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sendDate` to the URL query string if (getSendDate() != null) { - joiner.add(String.format("%ssendDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSendDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssendDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSendDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `memo` to the URL query string if (getMemo() != null) { - joiner.add(String.format("%smemo%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMemo()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smemo%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMemo()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -373,7 +367,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestDataAttributesCounterparty.java b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestDataAttributesCounterparty.java index 16d830e7..b73f73c7 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestDataAttributesCounterparty.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckPaymentRequestDataAttributesCounterparty.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckPaymentRequestDataAttributesCounterparty */ @@ -37,7 +38,7 @@ CreateCheckPaymentRequestDataAttributesCounterparty.JSON_PROPERTY_ADDRESS, CreateCheckPaymentRequestDataAttributesCounterparty.JSON_PROPERTY_COUNTERPARTY_MOVED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckPaymentRequestDataAttributesCounterparty { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -56,14 +57,13 @@ public CreateCheckPaymentRequestDataAttributesCounterparty name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -81,14 +81,13 @@ public CreateCheckPaymentRequestDataAttributesCounterparty address(Address addre return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -106,14 +105,13 @@ public CreateCheckPaymentRequestDataAttributesCounterparty counterpartyMoved(Boo return this; } - /** + /** * Get counterpartyMoved * @return counterpartyMoved - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY_MOVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getCounterpartyMoved() { return counterpartyMoved; } @@ -204,7 +202,7 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -214,7 +212,7 @@ public String toUrlQueryString(String prefix) { // add `counterpartyMoved` to the URL query string if (getCounterpartyMoved() != null) { - joiner.add(String.format("%scounterpartyMoved%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyMoved()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyMoved%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyMoved()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateCheckStopPayment.java b/src/main/java/unit/java/sdk/model/CreateCheckStopPayment.java index fce11487..a186f235 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckStopPayment.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckStopPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckStopPayment */ @@ -38,13 +39,13 @@ CreateCheckStopPayment.JSON_PROPERTY_ATTRIBUTES, CreateCheckStopPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckStopPayment { /** * Gets or Sets type */ public enum TypeEnum { - CHECKSTOPPAYMENT("checkStopPayment"); + CHECK_STOP_PAYMENT("checkStopPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CHECKSTOPPAYMENT; + private TypeEnum type = TypeEnum.CHECK_STOP_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateCheckStopPaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateCheckStopPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateCheckStopPayment attributes(CreateCheckStopPaymentAttributes attrib return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCheckStopPaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateCheckStopPayment relationships(CreateCheckStopPaymentRelationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCheckStopPaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateCheckStopPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateCheckStopPaymentAttributes.java index 98674ae7..85a1090d 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckStopPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckStopPaymentAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckStopPaymentAttributes */ @@ -39,7 +40,7 @@ CreateCheckStopPaymentAttributes.JSON_PROPERTY_TAGS, CreateCheckStopPaymentAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckStopPaymentAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -61,15 +62,14 @@ public CreateCheckStopPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getAmount() { return amount; } @@ -87,14 +87,13 @@ public CreateCheckStopPaymentAttributes checkNumber(String checkNumber) { return this; } - /** + /** * Get checkNumber * @return checkNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CHECK_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCheckNumber() { return checkNumber; } @@ -120,14 +119,13 @@ public CreateCheckStopPaymentAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -145,14 +143,13 @@ public CreateCheckStopPaymentAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -245,12 +242,12 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `checkNumber` to the URL query string if (getCheckNumber() != null) { - joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -258,13 +255,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateCheckStopPaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateCheckStopPaymentRelationships.java index 086bbe3a..6b30202e 100644 --- a/src/main/java/unit/java/sdk/model/CreateCheckStopPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateCheckStopPaymentRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCheckStopPaymentRelationships */ @JsonPropertyOrder({ CreateCheckStopPaymentRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCheckStopPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreateCheckStopPaymentRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreateCounterpartyRelationships.java b/src/main/java/unit/java/sdk/model/CreateCounterpartyRelationships.java index 8e4e5083..5979a4b6 100644 --- a/src/main/java/unit/java/sdk/model/CreateCounterpartyRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateCounterpartyRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCounterpartyRelationships */ @JsonPropertyOrder({ CreateCounterpartyRelationships.JSON_PROPERTY_CUSTOMER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCounterpartyRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -48,14 +49,13 @@ public CreateCounterpartyRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } diff --git a/src/main/java/unit/java/sdk/model/CreateCounterpartyRequest.java b/src/main/java/unit/java/sdk/model/CreateCounterpartyRequest.java index c91f600f..ade49376 100644 --- a/src/main/java/unit/java/sdk/model/CreateCounterpartyRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateCounterpartyRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCounterpartyRequest */ @JsonPropertyOrder({ CreateCounterpartyRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCounterpartyRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateCounterpartyRequestData data; @@ -48,14 +49,13 @@ public CreateCounterpartyRequest data(CreateCounterpartyRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateCounterpartyRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateCounterpartyRequestData.java b/src/main/java/unit/java/sdk/model/CreateCounterpartyRequestData.java index 48eb7938..38e24d36 100644 --- a/src/main/java/unit/java/sdk/model/CreateCounterpartyRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateCounterpartyRequestData.java @@ -55,7 +55,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreateCounterpartyRequestData.CreateCounterpartyRequestDataDeserializer.class) @JsonSerialize(using = CreateCounterpartyRequestData.CreateCounterpartyRequestDataSerializer.class) public class CreateCounterpartyRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/CreateCreditAccount.java b/src/main/java/unit/java/sdk/model/CreateCreditAccount.java index 1ecbc69c..b945f9ec 100644 --- a/src/main/java/unit/java/sdk/model/CreateCreditAccount.java +++ b/src/main/java/unit/java/sdk/model/CreateCreditAccount.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCreditAccount */ @@ -38,13 +39,13 @@ CreateCreditAccount.JSON_PROPERTY_ATTRIBUTES, CreateCreditAccount.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCreditAccount { /** * Gets or Sets type */ public enum TypeEnum { - CREDITACCOUNT("creditAccount"); + CREDIT_ACCOUNT("creditAccount"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CREDITACCOUNT; + private TypeEnum type = TypeEnum.CREDIT_ACCOUNT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateCreditAccountAttributes attributes; @@ -90,14 +91,13 @@ public CreateCreditAccount type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateCreditAccount attributes(CreateCreditAccountAttributes attributes) return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateCreditAccountAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateCreditAccount relationships(CreateCreditAccountRelationships relati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateCreditAccountRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateCreditAccountAttributes.java b/src/main/java/unit/java/sdk/model/CreateCreditAccountAttributes.java index dcc66969..0b900ae8 100644 --- a/src/main/java/unit/java/sdk/model/CreateCreditAccountAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateCreditAccountAttributes.java @@ -25,13 +25,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; +import java.util.HashMap; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCreditAccountAttributes */ @@ -41,7 +40,7 @@ CreateCreditAccountAttributes.JSON_PROPERTY_TAGS, CreateCreditAccountAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCreditAccountAttributes { public static final String JSON_PROPERTY_CREDIT_TERMS = "creditTerms"; private String creditTerms; @@ -50,7 +49,7 @@ public class CreateCreditAccountAttributes { private Integer creditLimit; public static final String JSON_PROPERTY_TAGS = "tags"; - private JsonNullable tags = JsonNullable.undefined(); + private Map tags = new HashMap<>(); public static final String JSON_PROPERTY_IDEMPOTENCY_KEY = "idempotencyKey"; private String idempotencyKey; @@ -63,14 +62,13 @@ public CreateCreditAccountAttributes creditTerms(String creditTerms) { return this; } - /** + /** * Get creditTerms * @return creditTerms - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_TERMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCreditTerms() { return creditTerms; } @@ -88,14 +86,13 @@ public CreateCreditAccountAttributes creditLimit(Integer creditLimit) { return this; } - /** + /** * Get creditLimit * @return creditLimit - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_LIMIT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getCreditLimit() { return creditLimit; } @@ -108,52 +105,50 @@ public void setCreditLimit(Integer creditLimit) { } - public CreateCreditAccountAttributes tags(Object tags) { - this.tags = JsonNullable.of(tags); + public CreateCreditAccountAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public CreateCreditAccountAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable - @JsonIgnore - - public Object getTags() { - return tags.orElse(null); - } - @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public JsonNullable getTags_JsonNullable() { + public Map getTags() { return tags; } - + + @JsonProperty(JSON_PROPERTY_TAGS) - public void setTags_JsonNullable(JsonNullable tags) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { this.tags = tags; } - public void setTags(Object tags) { - this.tags = JsonNullable.of(tags); - } - public CreateCreditAccountAttributes idempotencyKey(String idempotencyKey) { this.idempotencyKey = idempotencyKey; return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -180,24 +175,13 @@ public boolean equals(Object o) { CreateCreditAccountAttributes createCreditAccountAttributes = (CreateCreditAccountAttributes) o; return Objects.equals(this.creditTerms, createCreditAccountAttributes.creditTerms) && Objects.equals(this.creditLimit, createCreditAccountAttributes.creditLimit) && - equalsNullable(this.tags, createCreditAccountAttributes.tags) && + Objects.equals(this.tags, createCreditAccountAttributes.tags) && Objects.equals(this.idempotencyKey, createCreditAccountAttributes.idempotencyKey); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { - return Objects.hash(creditTerms, creditLimit, hashCodeNullable(tags), idempotencyKey); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(creditTerms, creditLimit, tags, idempotencyKey); } @Override @@ -257,22 +241,26 @@ public String toUrlQueryString(String prefix) { // add `creditTerms` to the URL query string if (getCreditTerms() != null) { - joiner.add(String.format("%screditTerms%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreditTerms()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screditTerms%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreditTerms()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `creditLimit` to the URL query string if (getCreditLimit() != null) { - joiner.add(String.format("%screditLimit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreditLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screditLimit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreditLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string if (getTags() != null) { - joiner.add(String.format("%stags%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTags()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateCreditAccountRelationships.java b/src/main/java/unit/java/sdk/model/CreateCreditAccountRelationships.java index 0d2e849f..775dd671 100644 --- a/src/main/java/unit/java/sdk/model/CreateCreditAccountRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateCreditAccountRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCreditAccountRelationships */ @JsonPropertyOrder({ CreateCreditAccountRelationships.JSON_PROPERTY_CUSTOMER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCreditAccountRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -48,14 +49,13 @@ public CreateCreditAccountRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } diff --git a/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequest.java b/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequest.java index 0b229eef..d88b3799 100644 --- a/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCustomerTokenRequest */ @JsonPropertyOrder({ CreateCustomerTokenRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCustomerTokenRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateCustomerTokenRequestData data; @@ -48,14 +49,13 @@ public CreateCustomerTokenRequest data(CreateCustomerTokenRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateCustomerTokenRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequestData.java b/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequestData.java index 33bff998..cb6a951f 100644 --- a/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCustomerTokenRequestData */ @@ -36,13 +37,13 @@ CreateCustomerTokenRequestData.JSON_PROPERTY_TYPE, CreateCustomerTokenRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCustomerTokenRequestData { /** * Gets or Sets type */ public enum TypeEnum { - CUSTOMERTOKEN("customerToken"); + CUSTOMER_TOKEN("customerToken"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CUSTOMERTOKEN; + private TypeEnum type = TypeEnum.CUSTOMER_TOKEN; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateCustomerTokenRequestDataAttributes attributes; @@ -85,14 +86,13 @@ public CreateCustomerTokenRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CreateCustomerTokenRequestData attributes(CreateCustomerTokenRequestDataA return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateCustomerTokenRequestDataAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequestDataAttributes.java index 56c8ef5b..0cae9206 100644 --- a/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateCustomerTokenRequestDataAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCustomerTokenRequestDataAttributes */ @@ -43,7 +44,7 @@ CreateCustomerTokenRequestDataAttributes.JSON_PROPERTY_RESOURCES, CreateCustomerTokenRequestDataAttributes.JSON_PROPERTY_UPGRADABLE_SCOPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCustomerTokenRequestDataAttributes { public static final String JSON_PROPERTY_SCOPE = "scope"; private String scope; @@ -74,14 +75,13 @@ public CreateCustomerTokenRequestDataAttributes scope(String scope) { return this; } - /** + /** * Get scope * @return scope - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SCOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getScope() { return scope; } @@ -99,14 +99,13 @@ public CreateCustomerTokenRequestDataAttributes verificationToken(String verific return this; } - /** + /** * Get verificationToken * @return verificationToken - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFICATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVerificationToken() { return verificationToken; } @@ -124,14 +123,13 @@ public CreateCustomerTokenRequestDataAttributes jwtToken(String jwtToken) { return this; } - /** + /** * Get jwtToken * @return jwtToken - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JWT_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getJwtToken() { return jwtToken; } @@ -149,14 +147,13 @@ public CreateCustomerTokenRequestDataAttributes expiresIn(Integer expiresIn) { return this; } - /** + /** * Get expiresIn * @return expiresIn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_IN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getExpiresIn() { return expiresIn; } @@ -174,14 +171,13 @@ public CreateCustomerTokenRequestDataAttributes verificationCode(String verifica return this; } - /** + /** * Get verificationCode * @return verificationCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFICATION_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVerificationCode() { return verificationCode; } @@ -207,14 +203,13 @@ public CreateCustomerTokenRequestDataAttributes addResourcesItem(CreateApiTokenR return this; } - /** + /** * Get resources * @return resources - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getResources() { return resources; } @@ -232,14 +227,13 @@ public CreateCustomerTokenRequestDataAttributes upgradableScope(String upgradabl return this; } - /** + /** * Get upgradableScope * @return upgradableScope - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPGRADABLE_SCOPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUpgradableScope() { return upgradableScope; } @@ -338,27 +332,27 @@ public String toUrlQueryString(String prefix) { // add `scope` to the URL query string if (getScope() != null) { - joiner.add(String.format("%sscope%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getScope()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sscope%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getScope()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `verificationToken` to the URL query string if (getVerificationToken() != null) { - joiner.add(String.format("%sverificationToken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerificationToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverificationToken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerificationToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `jwtToken` to the URL query string if (getJwtToken() != null) { - joiner.add(String.format("%sjwtToken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtToken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiresIn` to the URL query string if (getExpiresIn() != null) { - joiner.add(String.format("%sexpiresIn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiresIn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiresIn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiresIn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `verificationCode` to the URL query string if (getVerificationCode() != null) { - joiner.add(String.format("%sverificationCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerificationCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverificationCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerificationCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `resources` to the URL query string @@ -373,7 +367,7 @@ public String toUrlQueryString(String prefix) { // add `upgradableScope` to the URL query string if (getUpgradableScope() != null) { - joiner.add(String.format("%supgradableScope%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpgradableScope()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supgradableScope%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpgradableScope()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequest.java b/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequest.java index bc92de3a..dfe945a9 100644 --- a/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCustomerTokenVerificationRequest */ @JsonPropertyOrder({ CreateCustomerTokenVerificationRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCustomerTokenVerificationRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateCustomerTokenVerificationRequestData data; @@ -48,14 +49,13 @@ public CreateCustomerTokenVerificationRequest data(CreateCustomerTokenVerificati return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateCustomerTokenVerificationRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequestData.java b/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequestData.java index 869629a4..2fa23067 100644 --- a/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCustomerTokenVerificationRequestData */ @@ -36,13 +37,13 @@ CreateCustomerTokenVerificationRequestData.JSON_PROPERTY_TYPE, CreateCustomerTokenVerificationRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCustomerTokenVerificationRequestData { /** * Gets or Sets type */ public enum TypeEnum { - CUSTOMERTOKENVERIFICATION("customerTokenVerification"); + CUSTOMER_TOKEN_VERIFICATION("customerTokenVerification"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CUSTOMERTOKENVERIFICATION; + private TypeEnum type = TypeEnum.CUSTOMER_TOKEN_VERIFICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateCustomerTokenVerificationRequestDataAttributes attributes; @@ -85,14 +86,13 @@ public CreateCustomerTokenVerificationRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CreateCustomerTokenVerificationRequestData attributes(CreateCustomerToken return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCustomerTokenVerificationRequestDataAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequestDataAttributes.java index f7218fc6..71f536e8 100644 --- a/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateCustomerTokenVerificationRequestDataAttributes.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateCustomerTokenVerificationRequestDataAttributes */ @@ -38,7 +39,7 @@ CreateCustomerTokenVerificationRequestDataAttributes.JSON_PROPERTY_APP_HASH, CreateCustomerTokenVerificationRequestDataAttributes.JSON_PROPERTY_LANGUAGE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateCustomerTokenVerificationRequestDataAttributes { /** * Gets or Sets channel @@ -208,14 +209,13 @@ public CreateCustomerTokenVerificationRequestDataAttributes channel(ChannelEnum return this; } - /** + /** * Get channel * @return channel - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CHANNEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ChannelEnum getChannel() { return channel; } @@ -233,14 +233,13 @@ public CreateCustomerTokenVerificationRequestDataAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -258,14 +257,13 @@ public CreateCustomerTokenVerificationRequestDataAttributes appHash(String appHa return this; } - /** + /** * Get appHash * @return appHash - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APP_HASH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAppHash() { return appHash; } @@ -283,14 +281,13 @@ public CreateCustomerTokenVerificationRequestDataAttributes language(LanguageEnu return this; } - /** + /** * Get language * @return language - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LANGUAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LanguageEnum getLanguage() { return language; } @@ -383,7 +380,7 @@ public String toUrlQueryString(String prefix) { // add `channel` to the URL query string if (getChannel() != null) { - joiner.add(String.format("%schannel%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getChannel()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%schannel%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getChannel()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -393,12 +390,12 @@ public String toUrlQueryString(String prefix) { // add `appHash` to the URL query string if (getAppHash() != null) { - joiner.add(String.format("%sappHash%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAppHash()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sappHash%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAppHash()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `language` to the URL query string if (getLanguage() != null) { - joiner.add(String.format("%slanguage%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLanguage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slanguage%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLanguage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateDepositAccount.java b/src/main/java/unit/java/sdk/model/CreateDepositAccount.java index db484851..f248287b 100644 --- a/src/main/java/unit/java/sdk/model/CreateDepositAccount.java +++ b/src/main/java/unit/java/sdk/model/CreateDepositAccount.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateDepositAccount */ @@ -38,13 +39,13 @@ CreateDepositAccount.JSON_PROPERTY_ATTRIBUTES, CreateDepositAccount.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateDepositAccount { /** * Gets or Sets type */ public enum TypeEnum { - DEPOSITACCOUNT("depositAccount"); + DEPOSIT_ACCOUNT("depositAccount"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.DEPOSITACCOUNT; + private TypeEnum type = TypeEnum.DEPOSIT_ACCOUNT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateDepositAccountAttributes attributes; @@ -90,14 +91,13 @@ public CreateDepositAccount type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateDepositAccount attributes(CreateDepositAccountAttributes attributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateDepositAccountAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateDepositAccount relationships(CreateDepositAccountRelationships rela return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateDepositAccountRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateDepositAccountAttributes.java b/src/main/java/unit/java/sdk/model/CreateDepositAccountAttributes.java index b9696b89..865d964e 100644 --- a/src/main/java/unit/java/sdk/model/CreateDepositAccountAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateDepositAccountAttributes.java @@ -25,13 +25,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; +import java.util.HashMap; +import java.util.Map; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateDepositAccountAttributes */ @@ -40,13 +39,13 @@ CreateDepositAccountAttributes.JSON_PROPERTY_TAGS, CreateDepositAccountAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateDepositAccountAttributes { public static final String JSON_PROPERTY_DEPOSIT_PRODUCT = "depositProduct"; private String depositProduct; public static final String JSON_PROPERTY_TAGS = "tags"; - private JsonNullable tags = JsonNullable.undefined(); + private Map tags = new HashMap<>(); public static final String JSON_PROPERTY_IDEMPOTENCY_KEY = "idempotencyKey"; private String idempotencyKey; @@ -59,14 +58,13 @@ public CreateDepositAccountAttributes depositProduct(String depositProduct) { return this; } - /** + /** * Get depositProduct * @return depositProduct - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DEPOSIT_PRODUCT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDepositProduct() { return depositProduct; } @@ -79,52 +77,50 @@ public void setDepositProduct(String depositProduct) { } - public CreateDepositAccountAttributes tags(Object tags) { - this.tags = JsonNullable.of(tags); + public CreateDepositAccountAttributes tags(Map tags) { + this.tags = tags; return this; } - /** + public CreateDepositAccountAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable - @JsonIgnore - - public Object getTags() { - return tags.orElse(null); - } - @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public JsonNullable getTags_JsonNullable() { + public Map getTags() { return tags; } - + + @JsonProperty(JSON_PROPERTY_TAGS) - public void setTags_JsonNullable(JsonNullable tags) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { this.tags = tags; } - public void setTags(Object tags) { - this.tags = JsonNullable.of(tags); - } - public CreateDepositAccountAttributes idempotencyKey(String idempotencyKey) { this.idempotencyKey = idempotencyKey; return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -150,24 +146,13 @@ public boolean equals(Object o) { } CreateDepositAccountAttributes createDepositAccountAttributes = (CreateDepositAccountAttributes) o; return Objects.equals(this.depositProduct, createDepositAccountAttributes.depositProduct) && - equalsNullable(this.tags, createDepositAccountAttributes.tags) && + Objects.equals(this.tags, createDepositAccountAttributes.tags) && Objects.equals(this.idempotencyKey, createDepositAccountAttributes.idempotencyKey); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { - return Objects.hash(depositProduct, hashCodeNullable(tags), idempotencyKey); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(depositProduct, tags, idempotencyKey); } @Override @@ -226,17 +211,21 @@ public String toUrlQueryString(String prefix) { // add `depositProduct` to the URL query string if (getDepositProduct() != null) { - joiner.add(String.format("%sdepositProduct%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDepositProduct()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdepositProduct%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDepositProduct()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string if (getTags() != null) { - joiner.add(String.format("%stags%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTags()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateDepositAccountRelationships.java b/src/main/java/unit/java/sdk/model/CreateDepositAccountRelationships.java index 23537db4..f00cadf8 100644 --- a/src/main/java/unit/java/sdk/model/CreateDepositAccountRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateDepositAccountRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateDepositAccountRelationships */ @@ -37,7 +38,7 @@ CreateDepositAccountRelationships.JSON_PROPERTY_CUSTOMER, CreateDepositAccountRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateDepositAccountRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -53,14 +54,13 @@ public CreateDepositAccountRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -78,14 +78,13 @@ public CreateDepositAccountRelationships customers(CustomersRelationship custome return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/main/java/unit/java/sdk/model/CreateFeeRelationships.java b/src/main/java/unit/java/sdk/model/CreateFeeRelationships.java index 22cad6aa..64ce7ad5 100644 --- a/src/main/java/unit/java/sdk/model/CreateFeeRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateFeeRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateFeeRelationships */ @JsonPropertyOrder({ CreateFeeRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateFeeRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreateFeeRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreateFeeRequest.java b/src/main/java/unit/java/sdk/model/CreateFeeRequest.java index f2f2b26c..79564545 100644 --- a/src/main/java/unit/java/sdk/model/CreateFeeRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateFeeRequest.java @@ -25,138 +25,46 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CreateFeeRelationships; -import unit.java.sdk.model.CreateFeeRequestAttributes; +import unit.java.sdk.model.CreateFeeRequestData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateFeeRequest */ @JsonPropertyOrder({ - CreateFeeRequest.JSON_PROPERTY_TYPE, - CreateFeeRequest.JSON_PROPERTY_ATTRIBUTES, - CreateFeeRequest.JSON_PROPERTY_RELATIONSHIPS + CreateFeeRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateFeeRequest { - /** - * Gets or Sets type - */ - public enum TypeEnum { - FEE("fee"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.FEE; - - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private CreateFeeRequestAttributes attributes; - - public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; - private CreateFeeRelationships relationships; + public static final String JSON_PROPERTY_DATA = "data"; + private CreateFeeRequestData data; public CreateFeeRequest() { } - public CreateFeeRequest type(TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TypeEnum getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(TypeEnum type) { - this.type = type; - } - - - public CreateFeeRequest attributes(CreateFeeRequestAttributes attributes) { - this.attributes = attributes; - return this; - } - - /** - * Get attributes - * @return attributes - **/ - @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CreateFeeRequestAttributes getAttributes() { - return attributes; - } - - - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAttributes(CreateFeeRequestAttributes attributes) { - this.attributes = attributes; - } - - - public CreateFeeRequest relationships(CreateFeeRelationships relationships) { - this.relationships = relationships; + public CreateFeeRequest data(CreateFeeRequestData data) { + this.data = data; return this; } - /** - * Get relationships - * @return relationships - **/ + /** + * Get data + * @return data + */ @jakarta.annotation.Nonnull - @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CreateFeeRelationships getRelationships() { - return relationships; + public CreateFeeRequestData getData() { + return data; } - @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRelationships(CreateFeeRelationships relationships) { - this.relationships = relationships; + public void setData(CreateFeeRequestData data) { + this.data = data; } @@ -172,23 +80,19 @@ public boolean equals(Object o) { return false; } CreateFeeRequest createFeeRequest = (CreateFeeRequest) o; - return Objects.equals(this.type, createFeeRequest.type) && - Objects.equals(this.attributes, createFeeRequest.attributes) && - Objects.equals(this.relationships, createFeeRequest.relationships); + return Objects.equals(this.data, createFeeRequest.data); } @Override public int hashCode() { - return Objects.hash(type, attributes, relationships); + return Objects.hash(data); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateFeeRequest {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); } @@ -236,19 +140,9 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `type` to the URL query string - if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - - // add `attributes` to the URL query string - if (getAttributes() != null) { - joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); - } - - // add `relationships` to the URL query string - if (getRelationships() != null) { - joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + // add `data` to the URL query string + if (getData() != null) { + joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateFeeRequestData.java b/src/main/java/unit/java/sdk/model/CreateFeeRequestData.java new file mode 100644 index 00000000..6eb5d07c --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateFeeRequestData.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CreateFeeRelationships; +import unit.java.sdk.model.CreateFeeRequestDataAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateFeeRequestData + */ +@JsonPropertyOrder({ + CreateFeeRequestData.JSON_PROPERTY_TYPE, + CreateFeeRequestData.JSON_PROPERTY_ATTRIBUTES, + CreateFeeRequestData.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateFeeRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + FEE("fee"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.FEE; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CreateFeeRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private CreateFeeRelationships relationships; + + public CreateFeeRequestData() { + } + + public CreateFeeRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public CreateFeeRequestData attributes(CreateFeeRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateFeeRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(CreateFeeRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + public CreateFeeRequestData relationships(CreateFeeRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateFeeRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(CreateFeeRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this CreateFeeRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateFeeRequestData createFeeRequestData = (CreateFeeRequestData) o; + return Objects.equals(this.type, createFeeRequestData.type) && + Objects.equals(this.attributes, createFeeRequestData.attributes) && + Objects.equals(this.relationships, createFeeRequestData.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateFeeRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateFeeRequestAttributes.java b/src/main/java/unit/java/sdk/model/CreateFeeRequestDataAttributes.java similarity index 75% rename from src/main/java/unit/java/sdk/model/CreateFeeRequestAttributes.java rename to src/main/java/unit/java/sdk/model/CreateFeeRequestDataAttributes.java index 7325ffad..97bb57fa 100644 --- a/src/main/java/unit/java/sdk/model/CreateFeeRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateFeeRequestDataAttributes.java @@ -30,17 +30,18 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * CreateFeeRequestAttributes + * CreateFeeRequestDataAttributes */ @JsonPropertyOrder({ - CreateFeeRequestAttributes.JSON_PROPERTY_AMOUNT, - CreateFeeRequestAttributes.JSON_PROPERTY_DESCRIPTION, - CreateFeeRequestAttributes.JSON_PROPERTY_TAGS, - CreateFeeRequestAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY + CreateFeeRequestDataAttributes.JSON_PROPERTY_AMOUNT, + CreateFeeRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, + CreateFeeRequestDataAttributes.JSON_PROPERTY_TAGS, + CreateFeeRequestDataAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class CreateFeeRequestAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateFeeRequestDataAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -53,23 +54,22 @@ public class CreateFeeRequestAttributes { public static final String JSON_PROPERTY_IDEMPOTENCY_KEY = "idempotencyKey"; private String idempotencyKey; - public CreateFeeRequestAttributes() { + public CreateFeeRequestDataAttributes() { } - public CreateFeeRequestAttributes amount(Integer amount) { + public CreateFeeRequestDataAttributes amount(Integer amount) { this.amount = amount; return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -82,19 +82,18 @@ public void setAmount(Integer amount) { } - public CreateFeeRequestAttributes description(String description) { + public CreateFeeRequestDataAttributes description(String description) { this.description = description; return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -107,12 +106,12 @@ public void setDescription(String description) { } - public CreateFeeRequestAttributes tags(Map tags) { + public CreateFeeRequestDataAttributes tags(Map tags) { this.tags = tags; return this; } - public CreateFeeRequestAttributes putTagsItem(String key, String tagsItem) { + public CreateFeeRequestDataAttributes putTagsItem(String key, String tagsItem) { if (this.tags == null) { this.tags = new HashMap<>(); } @@ -120,14 +119,13 @@ public CreateFeeRequestAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -140,19 +138,18 @@ public void setTags(Map tags) { } - public CreateFeeRequestAttributes idempotencyKey(String idempotencyKey) { + public CreateFeeRequestDataAttributes idempotencyKey(String idempotencyKey) { this.idempotencyKey = idempotencyKey; return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -166,7 +163,7 @@ public void setIdempotencyKey(String idempotencyKey) { /** - * Return true if this CreateFeeRequest_attributes object is equal to o. + * Return true if this CreateFeeRequest_data_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -176,11 +173,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateFeeRequestAttributes createFeeRequestAttributes = (CreateFeeRequestAttributes) o; - return Objects.equals(this.amount, createFeeRequestAttributes.amount) && - Objects.equals(this.description, createFeeRequestAttributes.description) && - Objects.equals(this.tags, createFeeRequestAttributes.tags) && - Objects.equals(this.idempotencyKey, createFeeRequestAttributes.idempotencyKey); + CreateFeeRequestDataAttributes createFeeRequestDataAttributes = (CreateFeeRequestDataAttributes) o; + return Objects.equals(this.amount, createFeeRequestDataAttributes.amount) && + Objects.equals(this.description, createFeeRequestDataAttributes.description) && + Objects.equals(this.tags, createFeeRequestDataAttributes.tags) && + Objects.equals(this.idempotencyKey, createFeeRequestDataAttributes.idempotencyKey); } @Override @@ -191,7 +188,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateFeeRequestAttributes {\n"); + sb.append("class CreateFeeRequestDataAttributes {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); @@ -245,12 +242,12 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -258,13 +255,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitListCheckDepositsResponse1.java b/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequest.java similarity index 73% rename from src/main/java/unit/java/sdk/model/UnitListCheckDepositsResponse1.java rename to src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequest.java index da2a847d..633ca9ff 100644 --- a/src/main/java/unit/java/sdk/model/UnitListCheckDepositsResponse1.java +++ b/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequest.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CheckDeposit; +import unit.java.sdk.model.CreateIncomingAchPaymentRequestData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitListCheckDepositsResponse1 + * CreateIncomingAchPaymentRequest */ @JsonPropertyOrder({ - UnitListCheckDepositsResponse1.JSON_PROPERTY_DATA + CreateIncomingAchPaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitListCheckDepositsResponse1 { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateIncomingAchPaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; - private CheckDeposit data; + private CreateIncomingAchPaymentRequestData data; - public UnitListCheckDepositsResponse1() { + public CreateIncomingAchPaymentRequest() { } - public UnitListCheckDepositsResponse1 data(CheckDeposit data) { + public CreateIncomingAchPaymentRequest data(CreateIncomingAchPaymentRequestData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public CheckDeposit getData() { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateIncomingAchPaymentRequestData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(CheckDeposit data) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(CreateIncomingAchPaymentRequestData data) { this.data = data; } /** - * Return true if this Unit_List_Check_Deposits_Response_1 object is equal to o. + * Return true if this CreateIncomingAchPaymentRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitListCheckDepositsResponse1 unitListCheckDepositsResponse1 = (UnitListCheckDepositsResponse1) o; - return Objects.equals(this.data, unitListCheckDepositsResponse1.data); + CreateIncomingAchPaymentRequest createIncomingAchPaymentRequest = (CreateIncomingAchPaymentRequest) o; + return Objects.equals(this.data, createIncomingAchPaymentRequest.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitListCheckDepositsResponse1 {\n"); + sb.append("class CreateIncomingAchPaymentRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequestData.java b/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequestData.java new file mode 100644 index 00000000..837b7c9e --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequestData.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CreateIncomingAchPaymentRequestDataAttributes; +import unit.java.sdk.model.CreateIncomingAchPaymentTransactionRelationships; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateIncomingAchPaymentRequestData + */ +@JsonPropertyOrder({ + CreateIncomingAchPaymentRequestData.JSON_PROPERTY_TYPE, + CreateIncomingAchPaymentRequestData.JSON_PROPERTY_ATTRIBUTES, + CreateIncomingAchPaymentRequestData.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateIncomingAchPaymentRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ACH_RECEIVED_PAYMENT("achReceivedPayment"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.ACH_RECEIVED_PAYMENT; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CreateIncomingAchPaymentRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private CreateIncomingAchPaymentTransactionRelationships relationships; + + public CreateIncomingAchPaymentRequestData() { + } + + public CreateIncomingAchPaymentRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public CreateIncomingAchPaymentRequestData attributes(CreateIncomingAchPaymentRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateIncomingAchPaymentRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(CreateIncomingAchPaymentRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + public CreateIncomingAchPaymentRequestData relationships(CreateIncomingAchPaymentTransactionRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreateIncomingAchPaymentTransactionRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(CreateIncomingAchPaymentTransactionRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this CreateIncomingAchPaymentRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateIncomingAchPaymentRequestData createIncomingAchPaymentRequestData = (CreateIncomingAchPaymentRequestData) o; + return Objects.equals(this.type, createIncomingAchPaymentRequestData.type) && + Objects.equals(this.attributes, createIncomingAchPaymentRequestData.attributes) && + Objects.equals(this.relationships, createIncomingAchPaymentRequestData.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateIncomingAchPaymentRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequestDataAttributes.java new file mode 100644 index 00000000..fee50075 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentRequestDataAttributes.java @@ -0,0 +1,361 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.LocalDate; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateIncomingAchPaymentRequestDataAttributes + */ +@JsonPropertyOrder({ + CreateIncomingAchPaymentRequestDataAttributes.JSON_PROPERTY_AMOUNT, + CreateIncomingAchPaymentRequestDataAttributes.JSON_PROPERTY_SETTLEMENT_DATE, + CreateIncomingAchPaymentRequestDataAttributes.JSON_PROPERTY_COMPANY_NAME, + CreateIncomingAchPaymentRequestDataAttributes.JSON_PROPERTY_RECEIVING_ENTITY_NAME, + CreateIncomingAchPaymentRequestDataAttributes.JSON_PROPERTY_SEC_CODE, + CreateIncomingAchPaymentRequestDataAttributes.JSON_PROPERTY_DIRECTION +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateIncomingAchPaymentRequestDataAttributes { + public static final String JSON_PROPERTY_AMOUNT = "amount"; + private Integer amount; + + public static final String JSON_PROPERTY_SETTLEMENT_DATE = "settlementDate"; + private LocalDate settlementDate; + + public static final String JSON_PROPERTY_COMPANY_NAME = "companyName"; + private String companyName; + + public static final String JSON_PROPERTY_RECEIVING_ENTITY_NAME = "receivingEntityName"; + private String receivingEntityName; + + public static final String JSON_PROPERTY_SEC_CODE = "secCode"; + private String secCode; + + /** + * Gets or Sets direction + */ + public enum DirectionEnum { + DEBIT("Debit"), + + CREDIT("Credit"); + + private String value; + + DirectionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DirectionEnum fromValue(String value) { + for (DirectionEnum b : DirectionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_DIRECTION = "direction"; + private DirectionEnum direction; + + public CreateIncomingAchPaymentRequestDataAttributes() { + } + + public CreateIncomingAchPaymentRequestDataAttributes amount(Integer amount) { + this.amount = amount; + return this; + } + + /** + * Get amount + * @return amount + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getAmount() { + return amount; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAmount(Integer amount) { + this.amount = amount; + } + + + public CreateIncomingAchPaymentRequestDataAttributes settlementDate(LocalDate settlementDate) { + this.settlementDate = settlementDate; + return this; + } + + /** + * Get settlementDate + * @return settlementDate + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SETTLEMENT_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public LocalDate getSettlementDate() { + return settlementDate; + } + + + @JsonProperty(JSON_PROPERTY_SETTLEMENT_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSettlementDate(LocalDate settlementDate) { + this.settlementDate = settlementDate; + } + + + public CreateIncomingAchPaymentRequestDataAttributes companyName(String companyName) { + this.companyName = companyName; + return this; + } + + /** + * Get companyName + * @return companyName + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COMPANY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCompanyName() { + return companyName; + } + + + @JsonProperty(JSON_PROPERTY_COMPANY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCompanyName(String companyName) { + this.companyName = companyName; + } + + + public CreateIncomingAchPaymentRequestDataAttributes receivingEntityName(String receivingEntityName) { + this.receivingEntityName = receivingEntityName; + return this; + } + + /** + * Get receivingEntityName + * @return receivingEntityName + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RECEIVING_ENTITY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReceivingEntityName() { + return receivingEntityName; + } + + + @JsonProperty(JSON_PROPERTY_RECEIVING_ENTITY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReceivingEntityName(String receivingEntityName) { + this.receivingEntityName = receivingEntityName; + } + + + public CreateIncomingAchPaymentRequestDataAttributes secCode(String secCode) { + this.secCode = secCode; + return this; + } + + /** + * Get secCode + * @return secCode + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SEC_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSecCode() { + return secCode; + } + + + @JsonProperty(JSON_PROPERTY_SEC_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecCode(String secCode) { + this.secCode = secCode; + } + + + public CreateIncomingAchPaymentRequestDataAttributes direction(DirectionEnum direction) { + this.direction = direction; + return this; + } + + /** + * Get direction + * @return direction + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DIRECTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DirectionEnum getDirection() { + return direction; + } + + + @JsonProperty(JSON_PROPERTY_DIRECTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDirection(DirectionEnum direction) { + this.direction = direction; + } + + + /** + * Return true if this CreateIncomingAchPaymentRequest_data_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateIncomingAchPaymentRequestDataAttributes createIncomingAchPaymentRequestDataAttributes = (CreateIncomingAchPaymentRequestDataAttributes) o; + return Objects.equals(this.amount, createIncomingAchPaymentRequestDataAttributes.amount) && + Objects.equals(this.settlementDate, createIncomingAchPaymentRequestDataAttributes.settlementDate) && + Objects.equals(this.companyName, createIncomingAchPaymentRequestDataAttributes.companyName) && + Objects.equals(this.receivingEntityName, createIncomingAchPaymentRequestDataAttributes.receivingEntityName) && + Objects.equals(this.secCode, createIncomingAchPaymentRequestDataAttributes.secCode) && + Objects.equals(this.direction, createIncomingAchPaymentRequestDataAttributes.direction); + } + + @Override + public int hashCode() { + return Objects.hash(amount, settlementDate, companyName, receivingEntityName, secCode, direction); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateIncomingAchPaymentRequestDataAttributes {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" settlementDate: ").append(toIndentedString(settlementDate)).append("\n"); + sb.append(" companyName: ").append(toIndentedString(companyName)).append("\n"); + sb.append(" receivingEntityName: ").append(toIndentedString(receivingEntityName)).append("\n"); + sb.append(" secCode: ").append(toIndentedString(secCode)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `amount` to the URL query string + if (getAmount() != null) { + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `settlementDate` to the URL query string + if (getSettlementDate() != null) { + joiner.add(String.format("%ssettlementDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSettlementDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `companyName` to the URL query string + if (getCompanyName() != null) { + joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `receivingEntityName` to the URL query string + if (getReceivingEntityName() != null) { + joiner.add(String.format("%sreceivingEntityName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReceivingEntityName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `secCode` to the URL query string + if (getSecCode() != null) { + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `direction` to the URL query string + if (getDirection() != null) { + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentTransactionRelationships.java b/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentTransactionRelationships.java new file mode 100644 index 00000000..57e54238 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateIncomingAchPaymentTransactionRelationships.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateIncomingAchPaymentTransactionRelationships + */ +@JsonPropertyOrder({ + CreateIncomingAchPaymentTransactionRelationships.JSON_PROPERTY_ACCOUNT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateIncomingAchPaymentTransactionRelationships { + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public CreateIncomingAchPaymentTransactionRelationships() { + } + + public CreateIncomingAchPaymentTransactionRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + /** + * Return true if this CreateIncomingAchPaymentTransactionRelationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateIncomingAchPaymentTransactionRelationships createIncomingAchPaymentTransactionRelationships = (CreateIncomingAchPaymentTransactionRelationships) o; + return Objects.equals(this.account, createIncomingAchPaymentTransactionRelationships.account); + } + + @Override + public int hashCode() { + return Objects.hash(account); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateIncomingAchPaymentTransactionRelationships {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateIndividualApplication.java b/src/main/java/unit/java/sdk/model/CreateIndividualApplication.java index 088d40f8..fa7e0570 100644 --- a/src/main/java/unit/java/sdk/model/CreateIndividualApplication.java +++ b/src/main/java/unit/java/sdk/model/CreateIndividualApplication.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateIndividualApplication */ @@ -36,13 +37,13 @@ CreateIndividualApplication.JSON_PROPERTY_TYPE, CreateIndividualApplication.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateIndividualApplication { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALAPPLICATION("individualApplication"); + INDIVIDUAL_APPLICATION("individualApplication"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALAPPLICATION; + private TypeEnum type = TypeEnum.INDIVIDUAL_APPLICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateIndividualApplicationAttributes attributes; @@ -85,14 +86,13 @@ public CreateIndividualApplication type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CreateIndividualApplication attributes(CreateIndividualApplicationAttribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateIndividualApplicationAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateIndividualApplicationAttributes.java b/src/main/java/unit/java/sdk/model/CreateIndividualApplicationAttributes.java index a4aa320f..563942b5 100644 --- a/src/main/java/unit/java/sdk/model/CreateIndividualApplicationAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateIndividualApplicationAttributes.java @@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateIndividualApplicationAttributes */ @@ -71,7 +72,7 @@ CreateIndividualApplicationAttributes.JSON_PROPERTY_ANNUAL_INCOME, CreateIndividualApplicationAttributes.JSON_PROPERTY_SOURCE_OF_INCOME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateIndividualApplicationAttributes { public static final String JSON_PROPERTY_FULL_NAME = "fullName"; private FullName fullName; @@ -138,14 +139,13 @@ public CreateIndividualApplicationAttributes fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -163,14 +163,13 @@ public CreateIndividualApplicationAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -188,14 +187,13 @@ public CreateIndividualApplicationAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -213,13 +211,12 @@ public CreateIndividualApplicationAttributes ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getSsn() { return ssn.orElse(null); } @@ -246,13 +243,12 @@ public CreateIndividualApplicationAttributes passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getPassport() { return passport.orElse(null); } @@ -279,14 +275,13 @@ public CreateIndividualApplicationAttributes nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -304,14 +299,13 @@ public CreateIndividualApplicationAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -329,14 +323,13 @@ public CreateIndividualApplicationAttributes dateOfBirth(LocalDate dateOfBirth) return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -354,14 +347,13 @@ public CreateIndividualApplicationAttributes ip(String ip) { return this; } - /** + /** * Get ip * @return ip - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIp() { return ip; } @@ -387,14 +379,13 @@ public CreateIndividualApplicationAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -412,14 +403,13 @@ public CreateIndividualApplicationAttributes idempotencyKey(String idempotencyKe return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -445,14 +435,13 @@ public CreateIndividualApplicationAttributes addDeviceFingerprintsItem(DeviceFin return this; } - /** + /** * Get deviceFingerprints * @return deviceFingerprints - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDeviceFingerprints() { return deviceFingerprints; } @@ -470,13 +459,12 @@ public CreateIndividualApplicationAttributes jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -503,14 +491,13 @@ public CreateIndividualApplicationAttributes powerOfAttorneyAgent(CreatePowerOfA return this; } - /** + /** * Get powerOfAttorneyAgent * @return powerOfAttorneyAgent - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_POWER_OF_ATTORNEY_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreatePowerOfAttorneyAgent getPowerOfAttorneyAgent() { return powerOfAttorneyAgent; } @@ -528,14 +515,13 @@ public CreateIndividualApplicationAttributes industry(Industry industry) { return this; } - /** + /** * Get industry * @return industry - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Industry getIndustry() { return industry; } @@ -553,14 +539,13 @@ public CreateIndividualApplicationAttributes evaluationParams(EvaluationParams e return this; } - /** + /** * Get evaluationParams * @return evaluationParams - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EvaluationParams getEvaluationParams() { return evaluationParams; } @@ -578,14 +563,13 @@ public CreateIndividualApplicationAttributes occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -603,14 +587,13 @@ public CreateIndividualApplicationAttributes annualIncome(AnnualIncome annualInc return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -628,14 +611,13 @@ public CreateIndividualApplicationAttributes sourceOfIncome(SourceOfIncome sourc return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -774,7 +756,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -784,17 +766,17 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -804,12 +786,12 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ip` to the URL query string if (getIp() != null) { - joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -817,13 +799,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `deviceFingerprints` to the URL query string @@ -838,7 +820,7 @@ public String toUrlQueryString(String prefix) { // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `powerOfAttorneyAgent` to the URL query string @@ -848,7 +830,7 @@ public String toUrlQueryString(String prefix) { // add `industry` to the URL query string if (getIndustry() != null) { - joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `EvaluationParams` to the URL query string @@ -858,17 +840,17 @@ public String toUrlQueryString(String prefix) { // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateIndividualDebitCardRequest.java b/src/main/java/unit/java/sdk/model/CreateIndividualDebitCardRequest.java index 672f25c6..bd784f9e 100644 --- a/src/main/java/unit/java/sdk/model/CreateIndividualDebitCardRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateIndividualDebitCardRequest.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateIndividualDebitCardRequest */ @@ -38,13 +39,13 @@ CreateIndividualDebitCardRequest.JSON_PROPERTY_ATTRIBUTES, CreateIndividualDebitCardRequest.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateIndividualDebitCardRequest { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALDEBITCARD("individualDebitCard"); + INDIVIDUAL_DEBIT_CARD("individualDebitCard"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALDEBITCARD; + private TypeEnum type = TypeEnum.INDIVIDUAL_DEBIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateIndividualDebitCardRequestAttributes attributes; @@ -90,14 +91,13 @@ public CreateIndividualDebitCardRequest type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateIndividualDebitCardRequest attributes(CreateIndividualDebitCardRequ return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateIndividualDebitCardRequestAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateIndividualDebitCardRequest relationships(CreateCardRelationships re return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCardRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateIndividualDebitCardRequestAttributes.java b/src/main/java/unit/java/sdk/model/CreateIndividualDebitCardRequestAttributes.java index beb42a22..7118695e 100644 --- a/src/main/java/unit/java/sdk/model/CreateIndividualDebitCardRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateIndividualDebitCardRequestAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateIndividualDebitCardRequestAttributes */ @@ -50,7 +51,7 @@ CreateIndividualDebitCardRequestAttributes.JSON_PROPERTY_PRINT_ONLY_BUSINESS_NAME, CreateIndividualDebitCardRequestAttributes.JSON_PROPERTY_EXPIRY_DATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateIndividualDebitCardRequestAttributes { public static final String JSON_PROPERTY_SHIPPING_ADDRESS = "shippingAddress"; private Address shippingAddress; @@ -96,14 +97,13 @@ public CreateIndividualDebitCardRequestAttributes shippingAddress(Address shippi return this; } - /** + /** * Get shippingAddress * @return shippingAddress - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIPPING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getShippingAddress() { return shippingAddress; } @@ -121,14 +121,13 @@ public CreateIndividualDebitCardRequestAttributes design(String design) { return this; } - /** + /** * Get design * @return design - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesign() { return design; } @@ -154,14 +153,13 @@ public CreateIndividualDebitCardRequestAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -179,14 +177,13 @@ public CreateIndividualDebitCardRequestAttributes limits(CardLevelLimits limits) return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -204,14 +201,13 @@ public CreateIndividualDebitCardRequestAttributes idempotencyKey(String idempote return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -229,14 +225,13 @@ public CreateIndividualDebitCardRequestAttributes bin(Bin bin) { return this; } - /** + /** * Get bin * @return bin - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Bin getBin() { return bin; } @@ -254,14 +249,13 @@ public CreateIndividualDebitCardRequestAttributes cardQualifier(String cardQuali return this; } - /** + /** * Get cardQualifier * @return cardQualifier - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_QUALIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardQualifier() { return cardQualifier; } @@ -279,14 +273,13 @@ public CreateIndividualDebitCardRequestAttributes cardDesignId(String cardDesign return this; } - /** + /** * Get cardDesignId * @return cardDesignId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_DESIGN_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardDesignId() { return cardDesignId; } @@ -304,14 +297,13 @@ public CreateIndividualDebitCardRequestAttributes additionalEmbossedText(String return this; } - /** + /** * Get additionalEmbossedText * @return additionalEmbossedText - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDITIONAL_EMBOSSED_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAdditionalEmbossedText() { return additionalEmbossedText; } @@ -329,14 +321,13 @@ public CreateIndividualDebitCardRequestAttributes activeForOnlineUse(Boolean act return this; } - /** + /** * Get activeForOnlineUse * @return activeForOnlineUse - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACTIVE_FOR_ONLINE_USE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getActiveForOnlineUse() { return activeForOnlineUse; } @@ -354,14 +345,13 @@ public CreateIndividualDebitCardRequestAttributes printOnlyBusinessName(Boolean return this; } - /** + /** * Get printOnlyBusinessName * @return printOnlyBusinessName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PRINT_ONLY_BUSINESS_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getPrintOnlyBusinessName() { return printOnlyBusinessName; } @@ -379,14 +369,13 @@ public CreateIndividualDebitCardRequestAttributes expiryDate(String expiryDate) return this; } - /** + /** * Get expiryDate * @return expiryDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExpiryDate() { return expiryDate; } @@ -500,7 +489,7 @@ public String toUrlQueryString(String prefix) { // add `design` to the URL query string if (getDesign() != null) { - joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -508,7 +497,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -519,7 +508,7 @@ public String toUrlQueryString(String prefix) { // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `bin` to the URL query string @@ -529,32 +518,32 @@ public String toUrlQueryString(String prefix) { // add `cardQualifier` to the URL query string if (getCardQualifier() != null) { - joiner.add(String.format("%scardQualifier%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardQualifier()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardQualifier%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardQualifier()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardDesignId` to the URL query string if (getCardDesignId() != null) { - joiner.add(String.format("%scardDesignId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardDesignId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardDesignId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardDesignId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `additionalEmbossedText` to the URL query string if (getAdditionalEmbossedText() != null) { - joiner.add(String.format("%sadditionalEmbossedText%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAdditionalEmbossedText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sadditionalEmbossedText%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAdditionalEmbossedText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `activeForOnlineUse` to the URL query string if (getActiveForOnlineUse() != null) { - joiner.add(String.format("%sactiveForOnlineUse%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getActiveForOnlineUse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sactiveForOnlineUse%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getActiveForOnlineUse()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `printOnlyBusinessName` to the URL query string if (getPrintOnlyBusinessName() != null) { - joiner.add(String.format("%sprintOnlyBusinessName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPrintOnlyBusinessName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sprintOnlyBusinessName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPrintOnlyBusinessName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiryDate` to the URL query string if (getExpiryDate() != null) { - joiner.add(String.format("%sexpiryDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiryDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateIndividualVirtualDebitCardRequest.java b/src/main/java/unit/java/sdk/model/CreateIndividualVirtualDebitCardRequest.java index 86f1a234..d1a3880f 100644 --- a/src/main/java/unit/java/sdk/model/CreateIndividualVirtualDebitCardRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateIndividualVirtualDebitCardRequest.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateIndividualVirtualDebitCardRequest */ @@ -38,13 +39,13 @@ CreateIndividualVirtualDebitCardRequest.JSON_PROPERTY_ATTRIBUTES, CreateIndividualVirtualDebitCardRequest.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateIndividualVirtualDebitCardRequest { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALVIRTUALDEBITCARD("individualVirtualDebitCard"); + INDIVIDUAL_VIRTUAL_DEBIT_CARD("individualVirtualDebitCard"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALVIRTUALDEBITCARD; + private TypeEnum type = TypeEnum.INDIVIDUAL_VIRTUAL_DEBIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateIndividualVirtualDebitCardRequestAttributes attributes; @@ -90,14 +91,13 @@ public CreateIndividualVirtualDebitCardRequest type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateIndividualVirtualDebitCardRequest attributes(CreateIndividualVirtua return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateIndividualVirtualDebitCardRequestAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateIndividualVirtualDebitCardRequest relationships(CreateCardRelations return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCardRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateIndividualVirtualDebitCardRequestAttributes.java b/src/main/java/unit/java/sdk/model/CreateIndividualVirtualDebitCardRequestAttributes.java index 41335b6f..98e6280d 100644 --- a/src/main/java/unit/java/sdk/model/CreateIndividualVirtualDebitCardRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateIndividualVirtualDebitCardRequestAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateIndividualVirtualDebitCardRequestAttributes */ @@ -43,7 +44,7 @@ CreateIndividualVirtualDebitCardRequestAttributes.JSON_PROPERTY_CARD_QUALIFIER, CreateIndividualVirtualDebitCardRequestAttributes.JSON_PROPERTY_EXPIRY_DATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateIndividualVirtualDebitCardRequestAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -79,14 +80,13 @@ public CreateIndividualVirtualDebitCardRequestAttributes putTagsItem(String key, return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -104,14 +104,13 @@ public CreateIndividualVirtualDebitCardRequestAttributes limits(CardLevelLimits return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -129,14 +128,13 @@ public CreateIndividualVirtualDebitCardRequestAttributes idempotencyKey(String i return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -154,14 +152,13 @@ public CreateIndividualVirtualDebitCardRequestAttributes bin(Bin bin) { return this; } - /** + /** * Get bin * @return bin - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Bin getBin() { return bin; } @@ -179,14 +176,13 @@ public CreateIndividualVirtualDebitCardRequestAttributes cardQualifier(String ca return this; } - /** + /** * Get cardQualifier * @return cardQualifier - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_QUALIFIER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardQualifier() { return cardQualifier; } @@ -204,14 +200,13 @@ public CreateIndividualVirtualDebitCardRequestAttributes expiryDate(String expir return this; } - /** + /** * Get expiryDate * @return expiryDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRY_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExpiryDate() { return expiryDate; } @@ -311,7 +306,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -322,7 +317,7 @@ public String toUrlQueryString(String prefix) { // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `bin` to the URL query string @@ -332,12 +327,12 @@ public String toUrlQueryString(String prefix) { // add `cardQualifier` to the URL query string if (getCardQualifier() != null) { - joiner.add(String.format("%scardQualifier%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardQualifier()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardQualifier%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardQualifier()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiryDate` to the URL query string if (getExpiryDate() != null) { - joiner.add(String.format("%sexpiryDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiryDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiryDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateOfficer.java b/src/main/java/unit/java/sdk/model/CreateOfficer.java index 83a3268c..0b130d6a 100644 --- a/src/main/java/unit/java/sdk/model/CreateOfficer.java +++ b/src/main/java/unit/java/sdk/model/CreateOfficer.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateOfficer */ @@ -55,7 +56,7 @@ CreateOfficer.JSON_PROPERTY_ANNUAL_INCOME, CreateOfficer.JSON_PROPERTY_SOURCE_OF_INCOME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateOfficer { public static final String JSON_PROPERTY_FULL_NAME = "fullName"; private FullName fullName; @@ -96,7 +97,7 @@ public enum TitleEnum { CFO("CFO"), - BENEFITSADMINISTRATIONOFFICER("BenefitsAdministrationOfficer"), + BENEFITS_ADMINISTRATION_OFFICER("BenefitsAdministrationOfficer"), CIO("CIO"), @@ -166,14 +167,13 @@ public CreateOfficer fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -191,14 +191,13 @@ public CreateOfficer email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -216,14 +215,13 @@ public CreateOfficer phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -241,14 +239,13 @@ public CreateOfficer ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -266,14 +263,13 @@ public CreateOfficer passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -291,14 +287,13 @@ public CreateOfficer nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -316,14 +311,13 @@ public CreateOfficer matriculaConsular(String matriculaConsular) { return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -341,14 +335,13 @@ public CreateOfficer address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -366,14 +359,13 @@ public CreateOfficer dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -391,14 +383,13 @@ public CreateOfficer title(TitleEnum title) { return this; } - /** + /** * Get title * @return title - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TitleEnum getTitle() { return title; } @@ -416,14 +407,13 @@ public CreateOfficer evaluationParams(EvaluationParams evaluationParams) { return this; } - /** + /** * Get evaluationParams * @return evaluationParams - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EvaluationParams getEvaluationParams() { return evaluationParams; } @@ -441,14 +431,13 @@ public CreateOfficer occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Occupation getOccupation() { return occupation; } @@ -466,14 +455,13 @@ public CreateOfficer annualIncome(AnnualIncome annualIncome) { return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -491,14 +479,13 @@ public CreateOfficer sourceOfIncome(SourceOfIncome sourceOfIncome) { return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -616,7 +603,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -626,22 +613,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -651,12 +638,12 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `title` to the URL query string if (getTitle() != null) { - joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `EvaluationParams` to the URL query string @@ -666,17 +653,17 @@ public String toUrlQueryString(String prefix) { // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreatePaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreatePaymentRelationships.java index 47fc7bb0..2b909a13 100644 --- a/src/main/java/unit/java/sdk/model/CreatePaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreatePaymentRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePaymentRelationships */ @JsonPropertyOrder({ CreatePaymentRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreatePaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreatePaymentRelationshipsWithCounterparty.java b/src/main/java/unit/java/sdk/model/CreatePaymentRelationshipsWithCounterparty.java index f79ef3b3..423c5461 100644 --- a/src/main/java/unit/java/sdk/model/CreatePaymentRelationshipsWithCounterparty.java +++ b/src/main/java/unit/java/sdk/model/CreatePaymentRelationshipsWithCounterparty.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePaymentRelationshipsWithCounterparty */ @@ -37,7 +38,7 @@ CreatePaymentRelationshipsWithCounterparty.JSON_PROPERTY_ACCOUNT, CreatePaymentRelationshipsWithCounterparty.JSON_PROPERTY_COUNTERPARTY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePaymentRelationshipsWithCounterparty { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -53,14 +54,13 @@ public CreatePaymentRelationshipsWithCounterparty account(AccountRelationship ac return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -78,14 +78,13 @@ public CreatePaymentRelationshipsWithCounterparty counterparty(CounterpartyRelat return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } diff --git a/src/main/java/unit/java/sdk/model/CreatePaymentRelationshipsWithCounterpartyAccount.java b/src/main/java/unit/java/sdk/model/CreatePaymentRelationshipsWithCounterpartyAccount.java index 0515591a..d842ca69 100644 --- a/src/main/java/unit/java/sdk/model/CreatePaymentRelationshipsWithCounterpartyAccount.java +++ b/src/main/java/unit/java/sdk/model/CreatePaymentRelationshipsWithCounterpartyAccount.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePaymentRelationshipsWithCounterpartyAccount */ @@ -37,7 +38,7 @@ CreatePaymentRelationshipsWithCounterpartyAccount.JSON_PROPERTY_ACCOUNT, CreatePaymentRelationshipsWithCounterpartyAccount.JSON_PROPERTY_COUNTERPARTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePaymentRelationshipsWithCounterpartyAccount { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -53,14 +54,13 @@ public CreatePaymentRelationshipsWithCounterpartyAccount account(AccountRelation return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -78,14 +78,13 @@ public CreatePaymentRelationshipsWithCounterpartyAccount counterpartyAccount(Cou return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } diff --git a/src/main/java/unit/java/sdk/model/CreatePaymentRequest.java b/src/main/java/unit/java/sdk/model/CreatePaymentRequest.java index 84e1c673..770afcac 100644 --- a/src/main/java/unit/java/sdk/model/CreatePaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/CreatePaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePaymentRequest */ @JsonPropertyOrder({ CreatePaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreatePaymentRequestData data; @@ -48,14 +49,13 @@ public CreatePaymentRequest data(CreatePaymentRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreatePaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreatePaymentRequestData.java b/src/main/java/unit/java/sdk/model/CreatePaymentRequestData.java index 02c9ebf9..24e84ed4 100644 --- a/src/main/java/unit/java/sdk/model/CreatePaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreatePaymentRequestData.java @@ -59,7 +59,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreatePaymentRequestData.CreatePaymentRequestDataDeserializer.class) @JsonSerialize(using = CreatePaymentRequestData.CreatePaymentRequestDataSerializer.class) public class CreatePaymentRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/CreatePlaidCounterparty.java b/src/main/java/unit/java/sdk/model/CreatePlaidCounterparty.java index 9c9553d3..3839a167 100644 --- a/src/main/java/unit/java/sdk/model/CreatePlaidCounterparty.java +++ b/src/main/java/unit/java/sdk/model/CreatePlaidCounterparty.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePlaidCounterparty */ @@ -38,10 +39,43 @@ CreatePlaidCounterparty.JSON_PROPERTY_ATTRIBUTES, CreatePlaidCounterparty.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePlaidCounterparty { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ACH_COUNTERPARTY("achCounterparty"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + private TypeEnum type = TypeEnum.ACH_COUNTERPARTY; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreatePlaidCounterpartyAttributes attributes; @@ -52,27 +86,26 @@ public class CreatePlaidCounterparty { public CreatePlaidCounterparty() { } - public CreatePlaidCounterparty type(String type) { + public CreatePlaidCounterparty type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -82,14 +115,13 @@ public CreatePlaidCounterparty attributes(CreatePlaidCounterpartyAttributes attr return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreatePlaidCounterpartyAttributes getAttributes() { return attributes; } @@ -107,14 +139,13 @@ public CreatePlaidCounterparty relationships(CreateCounterpartyRelationships rel return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateCounterpartyRelationships getRelationships() { return relationships; } @@ -205,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreatePlaidCounterpartyAttributes.java b/src/main/java/unit/java/sdk/model/CreatePlaidCounterpartyAttributes.java index 411f6d43..8fb9ac91 100644 --- a/src/main/java/unit/java/sdk/model/CreatePlaidCounterpartyAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreatePlaidCounterpartyAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePlaidCounterpartyAttributes */ @@ -42,7 +43,7 @@ CreatePlaidCounterpartyAttributes.JSON_PROPERTY_TAGS, CreatePlaidCounterpartyAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePlaidCounterpartyAttributes { /** * Gets or Sets type @@ -97,11 +98,11 @@ public static TypeEnum fromValue(String value) { * Gets or Sets permissions */ public enum PermissionsEnum { - CREDITONLY("CreditOnly"), + CREDIT_ONLY("CreditOnly"), - DEBITONLY("DebitOnly"), + DEBIT_ONLY("DebitOnly"), - CREDITANDDEBIT("CreditAndDebit"); + CREDIT_AND_DEBIT("CreditAndDebit"); private String value; @@ -147,14 +148,13 @@ public CreatePlaidCounterpartyAttributes type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -172,14 +172,13 @@ public CreatePlaidCounterpartyAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { return name; } @@ -197,14 +196,13 @@ public CreatePlaidCounterpartyAttributes verifyName(Boolean verifyName) { return this; } - /** + /** * Get verifyName * @return verifyName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getVerifyName() { return verifyName; } @@ -222,14 +220,13 @@ public CreatePlaidCounterpartyAttributes plaidProcessorToken(String plaidProcess return this; } - /** + /** * Get plaidProcessorToken * @return plaidProcessorToken - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PLAID_PROCESSOR_TOKEN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getPlaidProcessorToken() { return plaidProcessorToken; } @@ -247,14 +244,13 @@ public CreatePlaidCounterpartyAttributes permissions(PermissionsEnum permissions return this; } - /** + /** * Get permissions * @return permissions - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PermissionsEnum getPermissions() { return permissions; } @@ -280,14 +276,13 @@ public CreatePlaidCounterpartyAttributes putTagsItem(String key, String tagsItem return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -305,14 +300,13 @@ public CreatePlaidCounterpartyAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -411,27 +405,27 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `verifyName` to the URL query string if (getVerifyName() != null) { - joiner.add(String.format("%sverifyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerifyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverifyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerifyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `plaidProcessorToken` to the URL query string if (getPlaidProcessorToken() != null) { - joiner.add(String.format("%splaidProcessorToken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPlaidProcessorToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%splaidProcessorToken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPlaidProcessorToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `permissions` to the URL query string if (getPermissions() != null) { - joiner.add(String.format("%spermissions%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermissions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spermissions%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPermissions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -439,13 +433,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreatePowerOfAttorneyAgent.java b/src/main/java/unit/java/sdk/model/CreatePowerOfAttorneyAgent.java index c7ed41e7..86906487 100644 --- a/src/main/java/unit/java/sdk/model/CreatePowerOfAttorneyAgent.java +++ b/src/main/java/unit/java/sdk/model/CreatePowerOfAttorneyAgent.java @@ -37,6 +37,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePowerOfAttorneyAgent */ @@ -53,7 +54,7 @@ CreatePowerOfAttorneyAgent.JSON_PROPERTY_JWT_SUBJECT, CreatePowerOfAttorneyAgent.JSON_PROPERTY_EVALUATION_PARAMS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePowerOfAttorneyAgent { public static final String JSON_PROPERTY_FULL_NAME = "fullName"; private FullName fullName; @@ -96,14 +97,13 @@ public CreatePowerOfAttorneyAgent fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -121,14 +121,13 @@ public CreatePowerOfAttorneyAgent email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -146,14 +145,13 @@ public CreatePowerOfAttorneyAgent phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -171,14 +169,13 @@ public CreatePowerOfAttorneyAgent ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -196,14 +193,13 @@ public CreatePowerOfAttorneyAgent passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -221,14 +217,13 @@ public CreatePowerOfAttorneyAgent nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -246,14 +241,13 @@ public CreatePowerOfAttorneyAgent matriculaConsular(String matriculaConsular) { return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -271,14 +265,13 @@ public CreatePowerOfAttorneyAgent address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -296,14 +289,13 @@ public CreatePowerOfAttorneyAgent dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -321,13 +313,12 @@ public CreatePowerOfAttorneyAgent jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -354,14 +345,13 @@ public CreatePowerOfAttorneyAgent evaluationParams(EvaluationParams evaluationPa return this; } - /** + /** * Get evaluationParams * @return evaluationParams - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EvaluationParams getEvaluationParams() { return evaluationParams; } @@ -484,7 +474,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -494,22 +484,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -519,12 +509,12 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `EvaluationParams` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreatePushToCardPayment.java b/src/main/java/unit/java/sdk/model/CreatePushToCardPayment.java index e776856a..13c0e2c2 100644 --- a/src/main/java/unit/java/sdk/model/CreatePushToCardPayment.java +++ b/src/main/java/unit/java/sdk/model/CreatePushToCardPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePushToCardPayment */ @@ -38,13 +39,13 @@ CreatePushToCardPayment.JSON_PROPERTY_ATTRIBUTES, CreatePushToCardPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePushToCardPayment { /** * Gets or Sets type */ public enum TypeEnum { - PUSHTOCARDPAYMENT("pushToCardPayment"); + PUSH_TO_CARD_PAYMENT("pushToCardPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.PUSHTOCARDPAYMENT; + private TypeEnum type = TypeEnum.PUSH_TO_CARD_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreatePushToCardPaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreatePushToCardPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreatePushToCardPayment attributes(CreatePushToCardPaymentAttributes attr return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreatePushToCardPaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreatePushToCardPayment relationships(CreatePushToCardPaymentRelationship return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreatePushToCardPaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentAttributes.java index 33ac1a8a..b8b86e21 100644 --- a/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePushToCardPaymentAttributes */ @@ -41,7 +42,7 @@ CreatePushToCardPaymentAttributes.JSON_PROPERTY_DESCRIPTION, CreatePushToCardPaymentAttributes.JSON_PROPERTY_CONFIGURATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePushToCardPaymentAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -66,14 +67,13 @@ public CreatePushToCardPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -91,14 +91,13 @@ public CreatePushToCardPaymentAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -124,14 +123,13 @@ public CreatePushToCardPaymentAttributes putTagsItem(String key, String tagsItem return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -149,14 +147,13 @@ public CreatePushToCardPaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -174,14 +171,13 @@ public CreatePushToCardPaymentAttributes _configuration(CreatePushToCardPaymentA return this; } - /** + /** * Get _configuration * @return _configuration - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CONFIGURATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreatePushToCardPaymentAttributesConfiguration getConfiguration() { return _configuration; } @@ -276,12 +272,12 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -289,13 +285,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `configuration` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentAttributesConfiguration.java b/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentAttributesConfiguration.java index 5c98551e..d468bb27 100644 --- a/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentAttributesConfiguration.java +++ b/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentAttributesConfiguration.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePushToCardPaymentAttributesConfiguration */ @JsonPropertyOrder({ CreatePushToCardPaymentAttributesConfiguration.JSON_PROPERTY_ASTRA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePushToCardPaymentAttributesConfiguration { public static final String JSON_PROPERTY_ASTRA = "astra"; private Astra astra; @@ -48,14 +49,13 @@ public CreatePushToCardPaymentAttributesConfiguration astra(Astra astra) { return this; } - /** + /** * Get astra * @return astra - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ASTRA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Astra getAstra() { return astra; } diff --git a/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentRelationships.java index edbe38ed..cce05dea 100644 --- a/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreatePushToCardPaymentRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreatePushToCardPaymentRelationships */ @JsonPropertyOrder({ CreatePushToCardPaymentRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreatePushToCardPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreatePushToCardPaymentRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringAchRepayment.java b/src/main/java/unit/java/sdk/model/CreateRecurringAchRepayment.java index 9f856dff..80089241 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringAchRepayment.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringAchRepayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringAchRepayment */ @@ -38,13 +39,13 @@ CreateRecurringAchRepayment.JSON_PROPERTY_ATTRIBUTES, CreateRecurringAchRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringAchRepayment { /** * Gets or Sets type */ public enum TypeEnum { - RECURRINGACHREPAYMENT("recurringAchRepayment"); + RECURRING_ACH_REPAYMENT("recurringAchRepayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.RECURRINGACHREPAYMENT; + private TypeEnum type = TypeEnum.RECURRING_ACH_REPAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateRecurringAchRepaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateRecurringAchRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateRecurringAchRepayment attributes(CreateRecurringAchRepaymentAttribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringAchRepaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateRecurringAchRepayment relationships(CreateRecurringAchRepaymentRela return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringAchRepaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringAchRepaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateRecurringAchRepaymentAttributes.java index 8e52499d..869ac7c9 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringAchRepaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringAchRepaymentAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringAchRepaymentAttributes */ @@ -41,7 +42,7 @@ CreateRecurringAchRepaymentAttributes.JSON_PROPERTY_SEC_CODE, CreateRecurringAchRepaymentAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringAchRepaymentAttributes { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -69,14 +70,13 @@ public CreateRecurringAchRepaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -94,14 +94,13 @@ public CreateRecurringAchRepaymentAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -119,14 +118,13 @@ public CreateRecurringAchRepaymentAttributes idempotencyKey(String idempotencyKe return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -144,14 +142,13 @@ public CreateRecurringAchRepaymentAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -169,14 +166,13 @@ public CreateRecurringAchRepaymentAttributes secCode(String secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecCode() { return secCode; } @@ -202,14 +198,13 @@ public CreateRecurringAchRepaymentAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -306,27 +301,27 @@ public String toUrlQueryString(String prefix) { // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -334,7 +329,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringAchRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateRecurringAchRepaymentRelationships.java index 0e7f70f1..4d904d35 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringAchRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringAchRepaymentRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringAchRepaymentRelationships */ @@ -39,7 +40,7 @@ CreateRecurringAchRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT, CreateRecurringAchRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringAchRepaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public CreateRecurringAchRepaymentRelationships account(AccountRelationship acco return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public CreateRecurringAchRepaymentRelationships creditAccount(CreditAccountRelat return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -108,14 +107,13 @@ public CreateRecurringAchRepaymentRelationships counterparty(CounterpartyRelatio return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringBookRepayment.java b/src/main/java/unit/java/sdk/model/CreateRecurringBookRepayment.java index bcf6b1e0..3ff47794 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringBookRepayment.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringBookRepayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringBookRepayment */ @@ -38,13 +39,13 @@ CreateRecurringBookRepayment.JSON_PROPERTY_ATTRIBUTES, CreateRecurringBookRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringBookRepayment { /** * Gets or Sets type */ public enum TypeEnum { - RECURRINGBOOKREPAYMENT("recurringBookRepayment"); + RECURRING_BOOK_REPAYMENT("recurringBookRepayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.RECURRINGBOOKREPAYMENT; + private TypeEnum type = TypeEnum.RECURRING_BOOK_REPAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateRecurringBookRepaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateRecurringBookRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateRecurringBookRepayment attributes(CreateRecurringBookRepaymentAttri return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringBookRepaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateRecurringBookRepayment relationships(CreateRecurringBookRepaymentRe return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringBookRepaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringBookRepaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateRecurringBookRepaymentAttributes.java index e417f4a3..fa275ca2 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringBookRepaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringBookRepaymentAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringBookRepaymentAttributes */ @@ -39,7 +40,7 @@ CreateRecurringBookRepaymentAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY, CreateRecurringBookRepaymentAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringBookRepaymentAttributes { public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; @@ -61,14 +62,13 @@ public CreateRecurringBookRepaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -86,14 +86,13 @@ public CreateRecurringBookRepaymentAttributes transactionSummaryOverride(String return this; } - /** + /** * Get transactionSummaryOverride * @return transactionSummaryOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionSummaryOverride() { return transactionSummaryOverride; } @@ -111,14 +110,13 @@ public CreateRecurringBookRepaymentAttributes idempotencyKey(String idempotencyK return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -144,14 +142,13 @@ public CreateRecurringBookRepaymentAttributes putTagsItem(String key, String tag return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -244,17 +241,17 @@ public String toUrlQueryString(String prefix) { // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `transactionSummaryOverride` to the URL query string if (getTransactionSummaryOverride() != null) { - joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -262,7 +259,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringBookRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateRecurringBookRepaymentRelationships.java index cb030066..be8987f7 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringBookRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringBookRepaymentRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringBookRepaymentRelationships */ @@ -39,7 +40,7 @@ CreateRecurringBookRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT, CreateRecurringBookRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringBookRepaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public CreateRecurringBookRepaymentRelationships account(AccountRelationship acc return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public CreateRecurringBookRepaymentRelationships creditAccount(CreditAccountRela return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -108,14 +107,13 @@ public CreateRecurringBookRepaymentRelationships counterpartyAccount(Counterpart return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerAchRepayment.java b/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerAchRepayment.java index 2d507299..1156da13 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerAchRepayment.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerAchRepayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringCapitalPartnerAchRepayment */ @@ -38,13 +39,13 @@ CreateRecurringCapitalPartnerAchRepayment.JSON_PROPERTY_ATTRIBUTES, CreateRecurringCapitalPartnerAchRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringCapitalPartnerAchRepayment { /** * Gets or Sets type */ public enum TypeEnum { - RECURRINGCAPITALPARTNERACHREPAYMENT("recurringCapitalPartnerAchRepayment"); + RECURRING_CAPITAL_PARTNER_ACH_REPAYMENT("recurringCapitalPartnerAchRepayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.RECURRINGCAPITALPARTNERACHREPAYMENT; + private TypeEnum type = TypeEnum.RECURRING_CAPITAL_PARTNER_ACH_REPAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateRecurringAchRepaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateRecurringCapitalPartnerAchRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateRecurringCapitalPartnerAchRepayment attributes(CreateRecurringAchRe return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringAchRepaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateRecurringCapitalPartnerAchRepayment relationships(CreateRecurringCa return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringCapitalPartnerAchRepaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerAchRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerAchRepaymentRelationships.java index 0964dc43..5cd2c237 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerAchRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerAchRepaymentRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringCapitalPartnerAchRepaymentRelationships */ @@ -39,7 +40,7 @@ CreateRecurringCapitalPartnerAchRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT, CreateRecurringCapitalPartnerAchRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringCapitalPartnerAchRepaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public CreateRecurringCapitalPartnerAchRepaymentRelationships account(AccountRel return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public CreateRecurringCapitalPartnerAchRepaymentRelationships creditAccount(Cred return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -108,14 +107,13 @@ public CreateRecurringCapitalPartnerAchRepaymentRelationships counterparty(Count return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerBookRepayment.java b/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerBookRepayment.java index 4d1b0f4c..e6b5f7e4 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerBookRepayment.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerBookRepayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringCapitalPartnerBookRepayment */ @@ -38,13 +39,13 @@ CreateRecurringCapitalPartnerBookRepayment.JSON_PROPERTY_ATTRIBUTES, CreateRecurringCapitalPartnerBookRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringCapitalPartnerBookRepayment { /** * Gets or Sets type */ public enum TypeEnum { - RECURRINGCAPITALPARTNERBOOKREPAYMENT("recurringCapitalPartnerBookRepayment"); + RECURRING_CAPITAL_PARTNER_BOOK_REPAYMENT("recurringCapitalPartnerBookRepayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.RECURRINGCAPITALPARTNERBOOKREPAYMENT; + private TypeEnum type = TypeEnum.RECURRING_CAPITAL_PARTNER_BOOK_REPAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateRecurringBookRepaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateRecurringCapitalPartnerBookRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateRecurringCapitalPartnerBookRepayment attributes(CreateRecurringBook return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringBookRepaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateRecurringCapitalPartnerBookRepayment relationships(CreateRecurringC return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringCapitalPartnerBookRepaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerBookRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerBookRepaymentRelationships.java index 8466d5d9..0af01abf 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerBookRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringCapitalPartnerBookRepaymentRelationships.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringCapitalPartnerBookRepaymentRelationships */ @@ -37,7 +38,7 @@ CreateRecurringCapitalPartnerBookRepaymentRelationships.JSON_PROPERTY_CREDIT_ACCOUNT, CreateRecurringCapitalPartnerBookRepaymentRelationships.JSON_PROPERTY_COUNTERPARTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringCapitalPartnerBookRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private CreditAccountRelationship creditAccount; @@ -53,14 +54,13 @@ public CreateRecurringCapitalPartnerBookRepaymentRelationships creditAccount(Cre return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -78,14 +78,13 @@ public CreateRecurringCapitalPartnerBookRepaymentRelationships counterpartyAccou return this; } - /** + /** * Get counterpartyAccount * @return counterpartyAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyAccountRelationship getCounterpartyAccount() { return counterpartyAccount; } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringCreditAchPayment.java b/src/main/java/unit/java/sdk/model/CreateRecurringCreditAchPayment.java index 53cedeef..686b2024 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringCreditAchPayment.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringCreditAchPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringCreditAchPayment */ @@ -38,13 +39,13 @@ CreateRecurringCreditAchPayment.JSON_PROPERTY_ATTRIBUTES, CreateRecurringCreditAchPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringCreditAchPayment { /** * Gets or Sets type */ public enum TypeEnum { - RECURRINGCREDITACHPAYMENT("recurringCreditAchPayment"); + RECURRING_CREDIT_ACH_PAYMENT("recurringCreditAchPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.RECURRINGCREDITACHPAYMENT; + private TypeEnum type = TypeEnum.RECURRING_CREDIT_ACH_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateRecurringCreditAchPaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateRecurringCreditAchPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateRecurringCreditAchPayment attributes(CreateRecurringCreditAchPaymen return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringCreditAchPaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateRecurringCreditAchPayment relationships(CreatePaymentRelationshipsW return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreatePaymentRelationshipsWithCounterparty getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringCreditAchPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateRecurringCreditAchPaymentAttributes.java index 5668d8f3..37ca0629 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringCreditAchPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringCreditAchPaymentAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringCreditAchPaymentAttributes */ @@ -42,7 +43,7 @@ CreateRecurringCreditAchPaymentAttributes.JSON_PROPERTY_TAGS, CreateRecurringCreditAchPaymentAttributes.JSON_PROPERTY_SCHEDULE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringCreditAchPaymentAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -70,15 +71,14 @@ public CreateRecurringCreditAchPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -96,14 +96,13 @@ public CreateRecurringCreditAchPaymentAttributes description(String description) return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -121,14 +120,13 @@ public CreateRecurringCreditAchPaymentAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -146,14 +144,13 @@ public CreateRecurringCreditAchPaymentAttributes idempotencyKey(String idempoten return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -179,14 +176,13 @@ public CreateRecurringCreditAchPaymentAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -204,14 +200,13 @@ public CreateRecurringCreditAchPaymentAttributes schedule(Schedule schedule) { return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Schedule getSchedule() { return schedule; } @@ -308,22 +303,22 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -331,7 +326,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringCreditBookPayment.java b/src/main/java/unit/java/sdk/model/CreateRecurringCreditBookPayment.java index 1f4937e1..a9ff15fa 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringCreditBookPayment.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringCreditBookPayment.java @@ -25,11 +25,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CreatePaymentRelationshipsWithCounterparty; +import unit.java.sdk.model.CreatePaymentRelationshipsWithCounterpartyAccount; import unit.java.sdk.model.CreateRecurringCreditBookPaymentAttributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringCreditBookPayment */ @@ -38,13 +39,13 @@ CreateRecurringCreditBookPayment.JSON_PROPERTY_ATTRIBUTES, CreateRecurringCreditBookPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringCreditBookPayment { /** * Gets or Sets type */ public enum TypeEnum { - RECURRINGCREDITBOOKPAYMENT("recurringCreditBookPayment"); + RECURRING_CREDIT_BOOK_PAYMENT("recurringCreditBookPayment"); private String value; @@ -74,13 +75,13 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.RECURRINGCREDITBOOKPAYMENT; + private TypeEnum type = TypeEnum.RECURRING_CREDIT_BOOK_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateRecurringCreditBookPaymentAttributes attributes; public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; - private CreatePaymentRelationshipsWithCounterparty relationships; + private CreatePaymentRelationshipsWithCounterpartyAccount relationships; public CreateRecurringCreditBookPayment() { } @@ -90,14 +91,13 @@ public CreateRecurringCreditBookPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateRecurringCreditBookPayment attributes(CreateRecurringCreditBookPaym return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringCreditBookPaymentAttributes getAttributes() { return attributes; } @@ -135,27 +134,26 @@ public void setAttributes(CreateRecurringCreditBookPaymentAttributes attributes) } - public CreateRecurringCreditBookPayment relationships(CreatePaymentRelationshipsWithCounterparty relationships) { + public CreateRecurringCreditBookPayment relationships(CreatePaymentRelationshipsWithCounterpartyAccount relationships) { this.relationships = relationships; return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public CreatePaymentRelationshipsWithCounterparty getRelationships() { + public CreatePaymentRelationshipsWithCounterpartyAccount getRelationships() { return relationships; } @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setRelationships(CreatePaymentRelationshipsWithCounterparty relationships) { + public void setRelationships(CreatePaymentRelationshipsWithCounterpartyAccount relationships) { this.relationships = relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringCreditBookPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateRecurringCreditBookPaymentAttributes.java index 6809aa1a..87b99f45 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringCreditBookPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringCreditBookPaymentAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringCreditBookPaymentAttributes */ @@ -42,7 +43,7 @@ CreateRecurringCreditBookPaymentAttributes.JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE, CreateRecurringCreditBookPaymentAttributes.JSON_PROPERTY_SCHEDULE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringCreditBookPaymentAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -70,15 +71,14 @@ public CreateRecurringCreditBookPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -96,14 +96,13 @@ public CreateRecurringCreditBookPaymentAttributes description(String description return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -121,14 +120,13 @@ public CreateRecurringCreditBookPaymentAttributes idempotencyKey(String idempote return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -154,14 +152,13 @@ public CreateRecurringCreditBookPaymentAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -179,14 +176,13 @@ public CreateRecurringCreditBookPaymentAttributes transactionSummaryOverride(Str return this; } - /** + /** * Get transactionSummaryOverride * @return transactionSummaryOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionSummaryOverride() { return transactionSummaryOverride; } @@ -204,14 +200,13 @@ public CreateRecurringCreditBookPaymentAttributes schedule(Schedule schedule) { return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Schedule getSchedule() { return schedule; } @@ -308,17 +303,17 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -326,13 +321,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `transactionSummaryOverride` to the URL query string if (getTransactionSummaryOverride() != null) { - joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `schedule` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringDebitAchPayment.java b/src/main/java/unit/java/sdk/model/CreateRecurringDebitAchPayment.java index e46fb199..c70ff4df 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringDebitAchPayment.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringDebitAchPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringDebitAchPayment */ @@ -38,13 +39,13 @@ CreateRecurringDebitAchPayment.JSON_PROPERTY_ATTRIBUTES, CreateRecurringDebitAchPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringDebitAchPayment { /** * Gets or Sets type */ public enum TypeEnum { - RECURRINGDEBITACHPAYMENT("recurringDebitAchPayment"); + RECURRING_DEBIT_ACH_PAYMENT("recurringDebitAchPayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.RECURRINGDEBITACHPAYMENT; + private TypeEnum type = TypeEnum.RECURRING_DEBIT_ACH_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateRecurringDebitAchPaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateRecurringDebitAchPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateRecurringDebitAchPayment attributes(CreateRecurringDebitAchPaymentA return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringDebitAchPaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateRecurringDebitAchPayment relationships(CreatePaymentRelationshipsWi return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreatePaymentRelationshipsWithCounterparty getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringDebitAchPaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateRecurringDebitAchPaymentAttributes.java index ba7516d2..c892004e 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringDebitAchPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringDebitAchPaymentAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringDebitAchPaymentAttributes */ @@ -45,7 +46,7 @@ CreateRecurringDebitAchPaymentAttributes.JSON_PROPERTY_SCHEDULE, CreateRecurringDebitAchPaymentAttributes.JSON_PROPERTY_CLEARING_DAYS_OVERRIDE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringDebitAchPaymentAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -82,15 +83,14 @@ public CreateRecurringDebitAchPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -108,14 +108,13 @@ public CreateRecurringDebitAchPaymentAttributes description(String description) return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -133,14 +132,13 @@ public CreateRecurringDebitAchPaymentAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -158,14 +156,13 @@ public CreateRecurringDebitAchPaymentAttributes idempotencyKey(String idempotenc return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -183,14 +180,13 @@ public CreateRecurringDebitAchPaymentAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -208,14 +204,13 @@ public CreateRecurringDebitAchPaymentAttributes verifyCounterpartyBalance(Boolea return this; } - /** + /** * Get verifyCounterpartyBalance * @return verifyCounterpartyBalance - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFY_COUNTERPARTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getVerifyCounterpartyBalance() { return verifyCounterpartyBalance; } @@ -241,14 +236,13 @@ public CreateRecurringDebitAchPaymentAttributes putTagsItem(String key, String t return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -266,14 +260,13 @@ public CreateRecurringDebitAchPaymentAttributes schedule(Schedule schedule) { return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Schedule getSchedule() { return schedule; } @@ -291,15 +284,14 @@ public CreateRecurringDebitAchPaymentAttributes clearingDaysOverride(Integer cle return this; } - /** + /** * Get clearingDaysOverride * minimum: 0 * @return clearingDaysOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLEARING_DAYS_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getClearingDaysOverride() { return clearingDaysOverride; } @@ -402,32 +394,32 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `verifyCounterpartyBalance` to the URL query string if (getVerifyCounterpartyBalance() != null) { - joiner.add(String.format("%sverifyCounterpartyBalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerifyCounterpartyBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverifyCounterpartyBalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerifyCounterpartyBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -435,7 +427,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -446,7 +438,7 @@ public String toUrlQueryString(String prefix) { // add `clearingDaysOverride` to the URL query string if (getClearingDaysOverride() != null) { - joiner.add(String.format("%sclearingDaysOverride%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getClearingDaysOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sclearingDaysOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getClearingDaysOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringPaymentRequest.java b/src/main/java/unit/java/sdk/model/CreateRecurringPaymentRequest.java index 3010d6d3..095cc7c5 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringPaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringPaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringPaymentRequest */ @JsonPropertyOrder({ CreateRecurringPaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringPaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateRecurringPaymentRequestData data; @@ -48,14 +49,13 @@ public CreateRecurringPaymentRequest data(CreateRecurringPaymentRequestData data return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRecurringPaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringPaymentRequestData.java b/src/main/java/unit/java/sdk/model/CreateRecurringPaymentRequestData.java index 73768067..d699c05b 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringPaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringPaymentRequestData.java @@ -19,13 +19,16 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CreatePaymentRelationshipsWithCounterparty; +import unit.java.sdk.model.CreatePaymentRelationshipsWithCounterpartyAccount; import unit.java.sdk.model.CreateRecurringCreditAchPayment; import unit.java.sdk.model.CreateRecurringCreditBookPayment; import unit.java.sdk.model.CreateRecurringCreditBookPaymentAttributes; @@ -56,7 +59,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreateRecurringPaymentRequestData.CreateRecurringPaymentRequestDataDeserializer.class) @JsonSerialize(using = CreateRecurringPaymentRequestData.CreateRecurringPaymentRequestDataSerializer.class) public class CreateRecurringPaymentRequestData extends AbstractOpenApiSchema { @@ -215,6 +218,16 @@ public CreateRecurringPaymentRequestData(CreateRecurringDebitAchPayment o) { schemas.put("CreateRecurringCreditBookPayment", CreateRecurringCreditBookPayment.class); schemas.put("CreateRecurringDebitAchPayment", CreateRecurringDebitAchPayment.class); JSON.registerDescendants(CreateRecurringPaymentRequestData.class, Collections.unmodifiableMap(schemas)); + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap>(); + mappings.put("$recurringCreditAchPayment", CreateRecurringCreditAchPayment.class); + mappings.put("recurringCreditBookPayment", CreateRecurringCreditBookPayment.class); + mappings.put("recurringDebitAchPayment", CreateRecurringDebitAchPayment.class); + mappings.put("CreateRecurringCreditAchPayment", CreateRecurringCreditAchPayment.class); + mappings.put("CreateRecurringCreditBookPayment", CreateRecurringCreditBookPayment.class); + mappings.put("CreateRecurringDebitAchPayment", CreateRecurringDebitAchPayment.class); + mappings.put("CreateRecurringPaymentRequest_data", CreateRecurringPaymentRequestData.class); + JSON.registerDiscriminator(CreateRecurringPaymentRequestData.class, "type", mappings); } @Override diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringRepaymentRequest.java b/src/main/java/unit/java/sdk/model/CreateRecurringRepaymentRequest.java index 9afad9dc..e673956b 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringRepaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringRepaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRecurringRepaymentRequest */ @JsonPropertyOrder({ CreateRecurringRepaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRecurringRepaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateRecurringRepaymentRequestData data; @@ -48,14 +49,13 @@ public CreateRecurringRepaymentRequest data(CreateRecurringRepaymentRequestData return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateRecurringRepaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateRecurringRepaymentRequestData.java b/src/main/java/unit/java/sdk/model/CreateRecurringRepaymentRequestData.java index efce52aa..55ca2f3d 100644 --- a/src/main/java/unit/java/sdk/model/CreateRecurringRepaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateRecurringRepaymentRequestData.java @@ -60,7 +60,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreateRecurringRepaymentRequestData.CreateRecurringRepaymentRequestDataDeserializer.class) @JsonSerialize(using = CreateRecurringRepaymentRequestData.CreateRecurringRepaymentRequestDataSerializer.class) public class CreateRecurringRepaymentRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/CreateRepaymentRequest.java b/src/main/java/unit/java/sdk/model/CreateRepaymentRequest.java index 71981536..b3895d04 100644 --- a/src/main/java/unit/java/sdk/model/CreateRepaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateRepaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRepaymentRequest */ @JsonPropertyOrder({ CreateRepaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRepaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateRepaymentRequestData data; @@ -48,14 +49,13 @@ public CreateRepaymentRequest data(CreateRepaymentRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRepaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateRepaymentRequestData.java b/src/main/java/unit/java/sdk/model/CreateRepaymentRequestData.java index 41b89291..0faed835 100644 --- a/src/main/java/unit/java/sdk/model/CreateRepaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateRepaymentRequestData.java @@ -57,7 +57,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreateRepaymentRequestData.CreateRepaymentRequestDataDeserializer.class) @JsonSerialize(using = CreateRepaymentRequestData.CreateRepaymentRequestDataSerializer.class) public class CreateRepaymentRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/CreateRewardRelationships.java b/src/main/java/unit/java/sdk/model/CreateRewardRelationships.java index 7a91313a..a8a1647d 100644 --- a/src/main/java/unit/java/sdk/model/CreateRewardRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateRewardRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRewardRelationships */ @@ -39,7 +40,7 @@ CreateRewardRelationships.JSON_PROPERTY_RECEIVING_ACCOUNT, CreateRewardRelationships.JSON_PROPERTY_REWARDED_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRewardRelationships { public static final String JSON_PROPERTY_FUNDING_ACCOUNT = "fundingAccount"; private FundingAccountRelationship fundingAccount; @@ -58,14 +59,13 @@ public CreateRewardRelationships fundingAccount(FundingAccountRelationship fundi return this; } - /** + /** * Get fundingAccount * @return fundingAccount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FUNDING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FundingAccountRelationship getFundingAccount() { return fundingAccount; } @@ -83,14 +83,13 @@ public CreateRewardRelationships receivingAccount(ReceivingAccountRelationship r return this; } - /** + /** * Get receivingAccount * @return receivingAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivingAccountRelationship getReceivingAccount() { return receivingAccount; } @@ -108,14 +107,13 @@ public CreateRewardRelationships rewardedTransaction(RewardedTransactionRelation return this; } - /** + /** * Get rewardedTransaction * @return rewardedTransaction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REWARDED_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RewardedTransactionRelationship getRewardedTransaction() { return rewardedTransaction; } diff --git a/src/main/java/unit/java/sdk/model/CreateRewardRequest.java b/src/main/java/unit/java/sdk/model/CreateRewardRequest.java index d0293994..a6d1057d 100644 --- a/src/main/java/unit/java/sdk/model/CreateRewardRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateRewardRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRewardRequest */ @JsonPropertyOrder({ CreateRewardRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRewardRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateRewardRequestData data; @@ -48,14 +49,13 @@ public CreateRewardRequest data(CreateRewardRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreateRewardRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateRewardRequestData.java b/src/main/java/unit/java/sdk/model/CreateRewardRequestData.java index fecb238d..2e1c4c6b 100644 --- a/src/main/java/unit/java/sdk/model/CreateRewardRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateRewardRequestData.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRewardRequestData */ @@ -38,7 +39,7 @@ CreateRewardRequestData.JSON_PROPERTY_ATTRIBUTES, CreateRewardRequestData.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRewardRequestData { /** * Gets or Sets type @@ -90,14 +91,13 @@ public CreateRewardRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateRewardRequestData attributes(CreateRewardRequestDataAttributes attr return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRewardRequestDataAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateRewardRequestData relationships(CreateRewardRelationships relations return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateRewardRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateRewardRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateRewardRequestDataAttributes.java index aaa7405d..44c06134 100644 --- a/src/main/java/unit/java/sdk/model/CreateRewardRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateRewardRequestDataAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateRewardRequestDataAttributes */ @@ -39,7 +40,7 @@ CreateRewardRequestDataAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY, CreateRewardRequestDataAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateRewardRequestDataAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -61,15 +62,14 @@ public CreateRewardRequestDataAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -87,14 +87,13 @@ public CreateRewardRequestDataAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -112,14 +111,13 @@ public CreateRewardRequestDataAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -145,14 +143,13 @@ public CreateRewardRequestDataAttributes putTagsItem(String key, String tagsItem return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -245,17 +242,17 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -263,7 +260,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CreateSoleProprietorApplication.java b/src/main/java/unit/java/sdk/model/CreateSoleProprietorApplication.java index 310fe77d..a79fe0ae 100644 --- a/src/main/java/unit/java/sdk/model/CreateSoleProprietorApplication.java +++ b/src/main/java/unit/java/sdk/model/CreateSoleProprietorApplication.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateSoleProprietorApplication */ @@ -36,13 +37,13 @@ CreateSoleProprietorApplication.JSON_PROPERTY_TYPE, CreateSoleProprietorApplication.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateSoleProprietorApplication { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALAPPLICATION("individualApplication"); + INDIVIDUAL_APPLICATION("individualApplication"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALAPPLICATION; + private TypeEnum type = TypeEnum.INDIVIDUAL_APPLICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateSoleProprietorApplicationAttributes attributes; @@ -85,14 +86,13 @@ public CreateSoleProprietorApplication type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CreateSoleProprietorApplication attributes(CreateSoleProprietorApplicatio return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateSoleProprietorApplicationAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateSoleProprietorApplicationAttributes.java b/src/main/java/unit/java/sdk/model/CreateSoleProprietorApplicationAttributes.java index 437f4459..7c246c73 100644 --- a/src/main/java/unit/java/sdk/model/CreateSoleProprietorApplicationAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateSoleProprietorApplicationAttributes.java @@ -50,6 +50,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateSoleProprietorApplicationAttributes */ @@ -82,7 +83,7 @@ CreateSoleProprietorApplicationAttributes.JSON_PROPERTY_BUSINESS_VERTICAL, CreateSoleProprietorApplicationAttributes.JSON_PROPERTY_WEBSITE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateSoleProprietorApplicationAttributes { public static final String JSON_PROPERTY_FULL_NAME = "fullName"; private FullName fullName; @@ -173,14 +174,13 @@ public CreateSoleProprietorApplicationAttributes fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -198,14 +198,13 @@ public CreateSoleProprietorApplicationAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -223,14 +222,13 @@ public CreateSoleProprietorApplicationAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -248,13 +246,12 @@ public CreateSoleProprietorApplicationAttributes ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getSsn() { return ssn.orElse(null); } @@ -281,13 +278,12 @@ public CreateSoleProprietorApplicationAttributes passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getPassport() { return passport.orElse(null); } @@ -314,14 +310,13 @@ public CreateSoleProprietorApplicationAttributes nationality(String nationality) return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -339,13 +334,12 @@ public CreateSoleProprietorApplicationAttributes matriculaConsular(String matric return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getMatriculaConsular() { return matriculaConsular.orElse(null); } @@ -372,14 +366,13 @@ public CreateSoleProprietorApplicationAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -397,14 +390,13 @@ public CreateSoleProprietorApplicationAttributes dateOfBirth(LocalDate dateOfBir return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -422,13 +414,12 @@ public CreateSoleProprietorApplicationAttributes dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getDba() { return dba.orElse(null); } @@ -455,13 +446,12 @@ public CreateSoleProprietorApplicationAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getEin() { return ein.orElse(null); } @@ -488,14 +478,13 @@ public CreateSoleProprietorApplicationAttributes ip(String ip) { return this; } - /** + /** * Get ip * @return ip - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIp() { return ip; } @@ -513,14 +502,13 @@ public CreateSoleProprietorApplicationAttributes soleProprietorship(Boolean sole return this; } - /** + /** * Get soleProprietorship * @return soleProprietorship - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSoleProprietorship() { return soleProprietorship; } @@ -546,14 +534,13 @@ public CreateSoleProprietorApplicationAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -571,14 +558,13 @@ public CreateSoleProprietorApplicationAttributes idempotencyKey(String idempoten return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -604,14 +590,13 @@ public CreateSoleProprietorApplicationAttributes addDeviceFingerprintsItem(Devic return this; } - /** + /** * Get deviceFingerprints * @return deviceFingerprints - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEVICE_FINGERPRINTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDeviceFingerprints() { return deviceFingerprints; } @@ -629,13 +614,12 @@ public CreateSoleProprietorApplicationAttributes jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -662,14 +646,13 @@ public CreateSoleProprietorApplicationAttributes powerOfAttorneyAgent(CreatePowe return this; } - /** + /** * Get powerOfAttorneyAgent * @return powerOfAttorneyAgent - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_POWER_OF_ATTORNEY_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CreatePowerOfAttorneyAgent getPowerOfAttorneyAgent() { return powerOfAttorneyAgent; } @@ -687,14 +670,13 @@ public CreateSoleProprietorApplicationAttributes industry(Industry industry) { return this; } - /** + /** * Get industry * @return industry - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Industry getIndustry() { return industry; } @@ -712,14 +694,13 @@ public CreateSoleProprietorApplicationAttributes evaluationParams(EvaluationPara return this; } - /** + /** * Get evaluationParams * @return evaluationParams - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_PARAMS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public EvaluationParams getEvaluationParams() { return evaluationParams; } @@ -737,14 +718,13 @@ public CreateSoleProprietorApplicationAttributes occupation(Occupation occupatio return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -762,14 +742,13 @@ public CreateSoleProprietorApplicationAttributes annualIncome(AnnualIncome annua return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -787,14 +766,13 @@ public CreateSoleProprietorApplicationAttributes sourceOfIncome(SourceOfIncome s return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -812,14 +790,13 @@ public CreateSoleProprietorApplicationAttributes annualRevenue(SoleProprietorshi return this; } - /** + /** * Get annualRevenue * @return annualRevenue - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_REVENUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SoleProprietorshipAnnualRevenue getAnnualRevenue() { return annualRevenue; } @@ -837,14 +814,13 @@ public CreateSoleProprietorApplicationAttributes numberOfEmployees(SoleProprieto return this; } - /** + /** * Get numberOfEmployees * @return numberOfEmployees - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SoleProprietorshipNumberOfEmployees getNumberOfEmployees() { return numberOfEmployees; } @@ -862,14 +838,13 @@ public CreateSoleProprietorApplicationAttributes businessVertical(BusinessVertic return this; } - /** + /** * Get businessVertical * @return businessVertical - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUSINESS_VERTICAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessVertical getBusinessVertical() { return businessVertical; } @@ -887,14 +862,13 @@ public CreateSoleProprietorApplicationAttributes website(String website) { return this; } - /** + /** * Get website * @return website - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWebsite() { return website; } @@ -1049,7 +1023,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -1059,22 +1033,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -1084,27 +1058,27 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ip` to the URL query string if (getIp() != null) { - joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `soleProprietorship` to the URL query string if (getSoleProprietorship() != null) { - joiner.add(String.format("%ssoleProprietorship%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSoleProprietorship()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssoleProprietorship%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSoleProprietorship()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -1112,13 +1086,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `deviceFingerprints` to the URL query string @@ -1133,7 +1107,7 @@ public String toUrlQueryString(String prefix) { // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `powerOfAttorneyAgent` to the URL query string @@ -1143,7 +1117,7 @@ public String toUrlQueryString(String prefix) { // add `industry` to the URL query string if (getIndustry() != null) { - joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `EvaluationParams` to the URL query string @@ -1153,37 +1127,37 @@ public String toUrlQueryString(String prefix) { // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualRevenue` to the URL query string if (getAnnualRevenue() != null) { - joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `numberOfEmployees` to the URL query string if (getNumberOfEmployees() != null) { - joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessVertical` to the URL query string if (getBusinessVertical() != null) { - joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `website` to the URL query string if (getWebsite() != null) { - joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateStopPaymentRequest.java b/src/main/java/unit/java/sdk/model/CreateStopPaymentRequest.java index a9fab470..d9c5040f 100644 --- a/src/main/java/unit/java/sdk/model/CreateStopPaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/CreateStopPaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateStopPaymentRequest */ @JsonPropertyOrder({ CreateStopPaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateStopPaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private CreateStopPaymentRequestData data; @@ -48,14 +49,13 @@ public CreateStopPaymentRequest data(CreateStopPaymentRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateStopPaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreateStopPaymentRequestData.java b/src/main/java/unit/java/sdk/model/CreateStopPaymentRequestData.java index 0968aed6..54a6beff 100644 --- a/src/main/java/unit/java/sdk/model/CreateStopPaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/CreateStopPaymentRequestData.java @@ -55,7 +55,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = CreateStopPaymentRequestData.CreateStopPaymentRequestDataDeserializer.class) @JsonSerialize(using = CreateStopPaymentRequestData.CreateStopPaymentRequestDataSerializer.class) public class CreateStopPaymentRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/CreateWalletAccount.java b/src/main/java/unit/java/sdk/model/CreateWalletAccount.java new file mode 100644 index 00000000..dff97390 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateWalletAccount.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CreateWalletAccountAttributes; +import unit.java.sdk.model.CreateWalletAccountRelationships; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateWalletAccount + */ +@JsonPropertyOrder({ + CreateWalletAccount.JSON_PROPERTY_TYPE, + CreateWalletAccount.JSON_PROPERTY_ATTRIBUTES, + CreateWalletAccount.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateWalletAccount { + /** + * Gets or Sets type + */ + public enum TypeEnum { + WALLET_ACCOUNT("walletAccount"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.WALLET_ACCOUNT; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CreateWalletAccountAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private CreateWalletAccountRelationships relationships; + + public CreateWalletAccount() { + } + + public CreateWalletAccount type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public CreateWalletAccount attributes(CreateWalletAccountAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public CreateWalletAccountAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAttributes(CreateWalletAccountAttributes attributes) { + this.attributes = attributes; + } + + + public CreateWalletAccount relationships(CreateWalletAccountRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public CreateWalletAccountRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRelationships(CreateWalletAccountRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this CreateWalletAccount object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWalletAccount createWalletAccount = (CreateWalletAccount) o; + return Objects.equals(this.type, createWalletAccount.type) && + Objects.equals(this.attributes, createWalletAccount.attributes) && + Objects.equals(this.relationships, createWalletAccount.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWalletAccount {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateWalletAccountAttributes.java b/src/main/java/unit/java/sdk/model/CreateWalletAccountAttributes.java new file mode 100644 index 00000000..25f4473f --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateWalletAccountAttributes.java @@ -0,0 +1,234 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateWalletAccountAttributes + */ +@JsonPropertyOrder({ + CreateWalletAccountAttributes.JSON_PROPERTY_WALLET_TERMS, + CreateWalletAccountAttributes.JSON_PROPERTY_TAGS, + CreateWalletAccountAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateWalletAccountAttributes { + public static final String JSON_PROPERTY_WALLET_TERMS = "walletTerms"; + private String walletTerms; + + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + public static final String JSON_PROPERTY_IDEMPOTENCY_KEY = "idempotencyKey"; + private String idempotencyKey; + + public CreateWalletAccountAttributes() { + } + + public CreateWalletAccountAttributes walletTerms(String walletTerms) { + this.walletTerms = walletTerms; + return this; + } + + /** + * Get walletTerms + * @return walletTerms + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_WALLET_TERMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getWalletTerms() { + return walletTerms; + } + + + @JsonProperty(JSON_PROPERTY_WALLET_TERMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setWalletTerms(String walletTerms) { + this.walletTerms = walletTerms; + } + + + public CreateWalletAccountAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public CreateWalletAccountAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { + this.tags = tags; + } + + + public CreateWalletAccountAttributes idempotencyKey(String idempotencyKey) { + this.idempotencyKey = idempotencyKey; + return this; + } + + /** + * Get idempotencyKey + * @return idempotencyKey + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIdempotencyKey() { + return idempotencyKey; + } + + + @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdempotencyKey(String idempotencyKey) { + this.idempotencyKey = idempotencyKey; + } + + + /** + * Return true if this CreateWalletAccount_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWalletAccountAttributes createWalletAccountAttributes = (CreateWalletAccountAttributes) o; + return Objects.equals(this.walletTerms, createWalletAccountAttributes.walletTerms) && + Objects.equals(this.tags, createWalletAccountAttributes.tags) && + Objects.equals(this.idempotencyKey, createWalletAccountAttributes.idempotencyKey); + } + + @Override + public int hashCode() { + return Objects.hash(walletTerms, tags, idempotencyKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWalletAccountAttributes {\n"); + sb.append(" walletTerms: ").append(toIndentedString(walletTerms)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `walletTerms` to the URL query string + if (getWalletTerms() != null) { + joiner.add(String.format("%swalletTerms%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWalletTerms()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + // add `idempotencyKey` to the URL query string + if (getIdempotencyKey() != null) { + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateWalletAccountRelationships.java b/src/main/java/unit/java/sdk/model/CreateWalletAccountRelationships.java new file mode 100644 index 00000000..45c9ff46 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreateWalletAccountRelationships.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CustomerRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * CreateWalletAccountRelationships + */ +@JsonPropertyOrder({ + CreateWalletAccountRelationships.JSON_PROPERTY_CUSTOMER +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateWalletAccountRelationships { + public static final String JSON_PROPERTY_CUSTOMER = "customer"; + private CustomerRelationship customer; + + public CreateWalletAccountRelationships() { + } + + public CreateWalletAccountRelationships customer(CustomerRelationship customer) { + this.customer = customer; + return this; + } + + /** + * Get customer + * @return customer + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CustomerRelationship getCustomer() { + return customer; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCustomer(CustomerRelationship customer) { + this.customer = customer; + } + + + /** + * Return true if this CreateWalletAccount_relationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWalletAccountRelationships createWalletAccountRelationships = (CreateWalletAccountRelationships) o; + return Objects.equals(this.customer, createWalletAccountRelationships.customer); + } + + @Override + public int hashCode() { + return Objects.hash(customer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWalletAccountRelationships {\n"); + sb.append(" customer: ").append(toIndentedString(customer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `customer` to the URL query string + if (getCustomer() != null) { + joiner.add(getCustomer().toUrlQueryString(prefix + "customer" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/CreateWebhook.java b/src/main/java/unit/java/sdk/model/CreateWebhookRequest.java similarity index 80% rename from src/main/java/unit/java/sdk/model/CreateWebhook.java rename to src/main/java/unit/java/sdk/model/CreateWebhookRequest.java index 90e78dc0..ab5a7070 100644 --- a/src/main/java/unit/java/sdk/model/CreateWebhook.java +++ b/src/main/java/unit/java/sdk/model/CreateWebhookRequest.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CreateWebhookData; +import unit.java.sdk.model.CreateWebhookRequestData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * CreateWebhook + * CreateWebhookRequest */ @JsonPropertyOrder({ - CreateWebhook.JSON_PROPERTY_DATA + CreateWebhookRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class CreateWebhook { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateWebhookRequest { public static final String JSON_PROPERTY_DATA = "data"; - private CreateWebhookData data; + private CreateWebhookRequestData data; - public CreateWebhook() { + public CreateWebhookRequest() { } - public CreateWebhook data(CreateWebhookData data) { + public CreateWebhookRequest data(CreateWebhookRequestData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public CreateWebhookData getData() { + public CreateWebhookRequestData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(CreateWebhookData data) { + public void setData(CreateWebhookRequestData data) { this.data = data; } /** - * Return true if this Create_Webhook object is equal to o. + * Return true if this Create_Webhook_Request object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateWebhook createWebhook = (CreateWebhook) o; - return Objects.equals(this.data, createWebhook.data); + CreateWebhookRequest createWebhookRequest = (CreateWebhookRequest) o; + return Objects.equals(this.data, createWebhookRequest.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateWebhook {\n"); + sb.append("class CreateWebhookRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateWebhookData.java b/src/main/java/unit/java/sdk/model/CreateWebhookRequestData.java similarity index 76% rename from src/main/java/unit/java/sdk/model/CreateWebhookData.java rename to src/main/java/unit/java/sdk/model/CreateWebhookRequestData.java index 340f6001..6e525c89 100644 --- a/src/main/java/unit/java/sdk/model/CreateWebhookData.java +++ b/src/main/java/unit/java/sdk/model/CreateWebhookRequestData.java @@ -25,41 +25,41 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CreateWebhookDataAttributes; +import unit.java.sdk.model.CreateWebhookRequestDataAttributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * CreateWebhookData + * CreateWebhookRequestData */ @JsonPropertyOrder({ - CreateWebhookData.JSON_PROPERTY_TYPE, - CreateWebhookData.JSON_PROPERTY_ATTRIBUTES + CreateWebhookRequestData.JSON_PROPERTY_TYPE, + CreateWebhookRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class CreateWebhookData { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateWebhookRequestData { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "webhook"; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private CreateWebhookDataAttributes attributes; + private CreateWebhookRequestDataAttributes attributes; - public CreateWebhookData() { + public CreateWebhookRequestData() { } - public CreateWebhookData type(String type) { + public CreateWebhookRequestData type(String type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -72,33 +72,32 @@ public void setType(String type) { } - public CreateWebhookData attributes(CreateWebhookDataAttributes attributes) { + public CreateWebhookRequestData attributes(CreateWebhookRequestDataAttributes attributes) { this.attributes = attributes; return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public CreateWebhookDataAttributes getAttributes() { + public CreateWebhookRequestDataAttributes getAttributes() { return attributes; } @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(CreateWebhookDataAttributes attributes) { + public void setAttributes(CreateWebhookRequestDataAttributes attributes) { this.attributes = attributes; } /** - * Return true if this Create_Webhook_data object is equal to o. + * Return true if this Create_Webhook_Request_data object is equal to o. */ @Override public boolean equals(Object o) { @@ -108,9 +107,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateWebhookData createWebhookData = (CreateWebhookData) o; - return Objects.equals(this.type, createWebhookData.type) && - Objects.equals(this.attributes, createWebhookData.attributes); + CreateWebhookRequestData createWebhookRequestData = (CreateWebhookRequestData) o; + return Objects.equals(this.type, createWebhookRequestData.type) && + Objects.equals(this.attributes, createWebhookRequestData.attributes); } @Override @@ -121,7 +120,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateWebhookData {\n"); + sb.append("class CreateWebhookRequestData {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append("}"); @@ -173,7 +172,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateWebhookDataAttributes.java b/src/main/java/unit/java/sdk/model/CreateWebhookRequestDataAttributes.java similarity index 75% rename from src/main/java/unit/java/sdk/model/CreateWebhookDataAttributes.java rename to src/main/java/unit/java/sdk/model/CreateWebhookRequestDataAttributes.java index aaf02c2b..705685d7 100644 --- a/src/main/java/unit/java/sdk/model/CreateWebhookDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateWebhookRequestDataAttributes.java @@ -28,20 +28,21 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * CreateWebhookDataAttributes + * CreateWebhookRequestDataAttributes */ @JsonPropertyOrder({ - CreateWebhookDataAttributes.JSON_PROPERTY_LABEL, - CreateWebhookDataAttributes.JSON_PROPERTY_URL, - CreateWebhookDataAttributes.JSON_PROPERTY_TOKEN, - CreateWebhookDataAttributes.JSON_PROPERTY_CONTENT_TYPE, - CreateWebhookDataAttributes.JSON_PROPERTY_DELIVERY_MODE, - CreateWebhookDataAttributes.JSON_PROPERTY_INCLUDE_RESOURCES, - CreateWebhookDataAttributes.JSON_PROPERTY_SUBSCRIPTION_TYPE + CreateWebhookRequestDataAttributes.JSON_PROPERTY_LABEL, + CreateWebhookRequestDataAttributes.JSON_PROPERTY_URL, + CreateWebhookRequestDataAttributes.JSON_PROPERTY_TOKEN, + CreateWebhookRequestDataAttributes.JSON_PROPERTY_CONTENT_TYPE, + CreateWebhookRequestDataAttributes.JSON_PROPERTY_DELIVERY_MODE, + CreateWebhookRequestDataAttributes.JSON_PROPERTY_INCLUDE_RESOURCES, + CreateWebhookRequestDataAttributes.JSON_PROPERTY_SUBSCRIPTION_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class CreateWebhookDataAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreateWebhookRequestDataAttributes { public static final String JSON_PROPERTY_LABEL = "label"; private String label; @@ -57,7 +58,7 @@ public class CreateWebhookDataAttributes { public enum ContentTypeEnum { JSON("Json"), - JSONAPI("JsonAPI"); + JSON_API("JsonAPI"); private String value; @@ -101,7 +102,7 @@ public static ContentTypeEnum fromValue(String value) { public enum SubscriptionTypeEnum { ALL("All"), - ONLYAUTHORIZATIONREQUEST("OnlyAuthorizationRequest"); + ONLY_AUTHORIZATION_REQUEST("OnlyAuthorizationRequest"); private String value; @@ -133,22 +134,21 @@ public static SubscriptionTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SUBSCRIPTION_TYPE = "subscriptionType"; private SubscriptionTypeEnum subscriptionType; - public CreateWebhookDataAttributes() { + public CreateWebhookRequestDataAttributes() { } - public CreateWebhookDataAttributes label(String label) { + public CreateWebhookRequestDataAttributes label(String label) { this.label = label; return this; } - /** + /** * Get label * @return label - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLabel() { return label; } @@ -161,19 +161,18 @@ public void setLabel(String label) { } - public CreateWebhookDataAttributes url(String url) { + public CreateWebhookRequestDataAttributes url(String url) { this.url = url; return this; } - /** + /** * Get url * @return url - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getUrl() { return url; } @@ -186,19 +185,18 @@ public void setUrl(String url) { } - public CreateWebhookDataAttributes token(String token) { + public CreateWebhookRequestDataAttributes token(String token) { this.token = token; return this; } - /** + /** * Get token * @return token - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getToken() { return token; } @@ -211,19 +209,18 @@ public void setToken(String token) { } - public CreateWebhookDataAttributes contentType(ContentTypeEnum contentType) { + public CreateWebhookRequestDataAttributes contentType(ContentTypeEnum contentType) { this.contentType = contentType; return this; } - /** + /** * Get contentType * @return contentType - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ContentTypeEnum getContentType() { return contentType; } @@ -236,19 +233,18 @@ public void setContentType(ContentTypeEnum contentType) { } - public CreateWebhookDataAttributes deliveryMode(String deliveryMode) { + public CreateWebhookRequestDataAttributes deliveryMode(String deliveryMode) { this.deliveryMode = deliveryMode; return this; } - /** + /** * Get deliveryMode * @return deliveryMode - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DELIVERY_MODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDeliveryMode() { return deliveryMode; } @@ -261,19 +257,18 @@ public void setDeliveryMode(String deliveryMode) { } - public CreateWebhookDataAttributes includeResources(Boolean includeResources) { + public CreateWebhookRequestDataAttributes includeResources(Boolean includeResources) { this.includeResources = includeResources; return this; } - /** + /** * Get includeResources * @return includeResources - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDE_RESOURCES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIncludeResources() { return includeResources; } @@ -286,19 +281,18 @@ public void setIncludeResources(Boolean includeResources) { } - public CreateWebhookDataAttributes subscriptionType(SubscriptionTypeEnum subscriptionType) { + public CreateWebhookRequestDataAttributes subscriptionType(SubscriptionTypeEnum subscriptionType) { this.subscriptionType = subscriptionType; return this; } - /** + /** * Get subscriptionType * @return subscriptionType - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SubscriptionTypeEnum getSubscriptionType() { return subscriptionType; } @@ -312,7 +306,7 @@ public void setSubscriptionType(SubscriptionTypeEnum subscriptionType) { /** - * Return true if this Create_Webhook_data_attributes object is equal to o. + * Return true if this Create_Webhook_Request_data_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -322,14 +316,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - CreateWebhookDataAttributes createWebhookDataAttributes = (CreateWebhookDataAttributes) o; - return Objects.equals(this.label, createWebhookDataAttributes.label) && - Objects.equals(this.url, createWebhookDataAttributes.url) && - Objects.equals(this.token, createWebhookDataAttributes.token) && - Objects.equals(this.contentType, createWebhookDataAttributes.contentType) && - Objects.equals(this.deliveryMode, createWebhookDataAttributes.deliveryMode) && - Objects.equals(this.includeResources, createWebhookDataAttributes.includeResources) && - Objects.equals(this.subscriptionType, createWebhookDataAttributes.subscriptionType); + CreateWebhookRequestDataAttributes createWebhookRequestDataAttributes = (CreateWebhookRequestDataAttributes) o; + return Objects.equals(this.label, createWebhookRequestDataAttributes.label) && + Objects.equals(this.url, createWebhookRequestDataAttributes.url) && + Objects.equals(this.token, createWebhookRequestDataAttributes.token) && + Objects.equals(this.contentType, createWebhookRequestDataAttributes.contentType) && + Objects.equals(this.deliveryMode, createWebhookRequestDataAttributes.deliveryMode) && + Objects.equals(this.includeResources, createWebhookRequestDataAttributes.includeResources) && + Objects.equals(this.subscriptionType, createWebhookRequestDataAttributes.subscriptionType); } @Override @@ -340,7 +334,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class CreateWebhookDataAttributes {\n"); + sb.append("class CreateWebhookRequestDataAttributes {\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); @@ -397,37 +391,37 @@ public String toUrlQueryString(String prefix) { // add `label` to the URL query string if (getLabel() != null) { - joiner.add(String.format("%slabel%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLabel()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slabel%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLabel()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `url` to the URL query string if (getUrl() != null) { - joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `token` to the URL query string if (getToken() != null) { - joiner.add(String.format("%stoken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `contentType` to the URL query string if (getContentType() != null) { - joiner.add(String.format("%scontentType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContentType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scontentType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getContentType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `deliveryMode` to the URL query string if (getDeliveryMode() != null) { - joiner.add(String.format("%sdeliveryMode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeliveryMode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdeliveryMode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeliveryMode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `includeResources` to the URL query string if (getIncludeResources() != null) { - joiner.add(String.format("%sincludeResources%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIncludeResources()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sincludeResources%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIncludeResources()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `subscriptionType` to the URL query string if (getSubscriptionType() != null) { - joiner.add(String.format("%ssubscriptionType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSubscriptionType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssubscriptionType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSubscriptionType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreateWirePayment.java b/src/main/java/unit/java/sdk/model/CreateWirePayment.java index 19bf4942..a58e6719 100644 --- a/src/main/java/unit/java/sdk/model/CreateWirePayment.java +++ b/src/main/java/unit/java/sdk/model/CreateWirePayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateWirePayment */ @@ -38,13 +39,13 @@ CreateWirePayment.JSON_PROPERTY_ATTRIBUTES, CreateWirePayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateWirePayment { /** * Gets or Sets type */ public enum TypeEnum { - WIREPAYMENT("wirePayment"); + WIRE_PAYMENT("wirePayment"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.WIREPAYMENT; + private TypeEnum type = TypeEnum.WIRE_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CreateWirePaymentAttributes attributes; @@ -90,14 +91,13 @@ public CreateWirePayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public CreateWirePayment attributes(CreateWirePaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateWirePaymentAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public CreateWirePayment relationships(CreateWirePaymentRelationships relationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreateWirePaymentRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreateWirePaymentAttributes.java b/src/main/java/unit/java/sdk/model/CreateWirePaymentAttributes.java index 9ae1c139..9316f5f1 100644 --- a/src/main/java/unit/java/sdk/model/CreateWirePaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreateWirePaymentAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateWirePaymentAttributes */ @@ -42,7 +43,7 @@ CreateWirePaymentAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY, CreateWirePaymentAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateWirePaymentAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -103,14 +104,13 @@ public CreateWirePaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -128,14 +128,13 @@ public CreateWirePaymentAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DirectionEnum getDirection() { return direction; } @@ -153,14 +152,13 @@ public CreateWirePaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -178,14 +176,13 @@ public CreateWirePaymentAttributes counterparty(WirePaymentCounterparty counterp return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WirePaymentCounterparty getCounterparty() { return counterparty; } @@ -203,14 +200,13 @@ public CreateWirePaymentAttributes idempotencyKey(String idempotencyKey) { return this; } - /** + /** * Get idempotencyKey * @return idempotencyKey - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIdempotencyKey() { return idempotencyKey; } @@ -236,14 +232,13 @@ public CreateWirePaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -340,17 +335,17 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -360,7 +355,7 @@ public String toUrlQueryString(String prefix) { // add `idempotencyKey` to the URL query string if (getIdempotencyKey() != null) { - joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -368,7 +363,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/CreateWirePaymentRelationships.java b/src/main/java/unit/java/sdk/model/CreateWirePaymentRelationships.java index 4ffb02f5..8f125b7d 100644 --- a/src/main/java/unit/java/sdk/model/CreateWirePaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreateWirePaymentRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreateWirePaymentRelationships */ @JsonPropertyOrder({ CreateWirePaymentRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreateWirePaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public CreateWirePaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/CreditAccount.java b/src/main/java/unit/java/sdk/model/CreditAccount.java index dfea3857..c5c74d17 100644 --- a/src/main/java/unit/java/sdk/model/CreditAccount.java +++ b/src/main/java/unit/java/sdk/model/CreditAccount.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CreditAccount */ @@ -42,7 +43,7 @@ CreditAccount.JSON_PROPERTY_ATTRIBUTES, CreditAccount.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CreditAccount attributes(CreditAccountAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CreditAccount relationships(CreditAccountAllOfRelationships relationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountAllOfRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CreditAccountAllOfAttributes.java b/src/main/java/unit/java/sdk/model/CreditAccountAllOfAttributes.java index a44cfbcd..83196ada 100644 --- a/src/main/java/unit/java/sdk/model/CreditAccountAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreditAccountAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreditAccountAllOfAttributes */ @@ -51,7 +52,7 @@ CreditAccountAllOfAttributes.JSON_PROPERTY_CREDIT_LIMIT, CreditAccountAllOfAttributes.JSON_PROPERTY_UPDATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreditAccountAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -121,21 +122,21 @@ public static StatusEnum fromValue(String value) { * Gets or Sets closeReason */ public enum CloseReasonEnum { - BYCUSTOMER("ByCustomer"), + BY_CUSTOMER("ByCustomer"), FRAUD("Fraud"), OVERDUE("Overdue"), - NEGATIVEBALANCE("NegativeBalance"), + NEGATIVE_BALANCE("NegativeBalance"), - BYBANK("ByBank"), + BY_BANK("ByBank"), - BREACHOFTERMSANDCONDITIONS("BreachOfTermsAndConditions"), + BREACH_OF_TERMS_AND_CONDITIONS("BreachOfTermsAndConditions"), - NOACCOUNTACTIVITY("NoAccountActivity"), + NO_ACCOUNT_ACTIVITY("NoAccountActivity"), - PROGRAMCHANGE("ProgramChange"); + PROGRAM_CHANGE("ProgramChange"); private String value; @@ -171,21 +172,21 @@ public static CloseReasonEnum fromValue(String value) { * Gets or Sets fraudReason */ public enum FraudReasonEnum { - ACHACTIVITY("ACHActivity"), + ACH_ACTIVITY("ACHActivity"), - CARDACTIVITY("CardActivity"), + CARD_ACTIVITY("CardActivity"), - CHECKACTIVITY("CheckActivity"), + CHECK_ACTIVITY("CheckActivity"), - APPLICATIONHISTORY("ApplicationHistory"), + APPLICATION_HISTORY("ApplicationHistory"), - ACCOUNTACTIVITY("AccountActivity"), + ACCOUNT_ACTIVITY("AccountActivity"), - CLIENTIDENTIFIED("ClientIdentified"), + CLIENT_IDENTIFIED("ClientIdentified"), - IDENTITYTHEFT("IdentityTheft"), + IDENTITY_THEFT("IdentityTheft"), - LINKEDTOFRAUDULENTCUSTOMER("LinkedToFraudulentCustomer"); + LINKED_TO_FRAUDULENT_CUSTOMER("LinkedToFraudulentCustomer"); private String value; @@ -237,14 +238,13 @@ public CreditAccountAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -262,14 +262,13 @@ public CreditAccountAllOfAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -287,14 +286,13 @@ public CreditAccountAllOfAttributes creditTerms(String creditTerms) { return this; } - /** + /** * Get creditTerms * @return creditTerms - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_TERMS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCreditTerms() { return creditTerms; } @@ -312,14 +310,13 @@ public CreditAccountAllOfAttributes currency(String currency) { return this; } - /** + /** * Get currency * @return currency - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCurrency() { return currency; } @@ -337,14 +334,13 @@ public CreditAccountAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -362,14 +358,13 @@ public CreditAccountAllOfAttributes hold(Integer hold) { return this; } - /** + /** * Get hold * @return hold - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_HOLD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getHold() { return hold; } @@ -387,14 +382,13 @@ public CreditAccountAllOfAttributes available(Integer available) { return this; } - /** + /** * Get available * @return available - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAvailable() { return available; } @@ -420,14 +414,13 @@ public CreditAccountAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Map getTags() { return tags; } @@ -445,14 +438,13 @@ public CreditAccountAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -470,14 +462,13 @@ public CreditAccountAllOfAttributes closeReason(CloseReasonEnum closeReason) { return this; } - /** + /** * Get closeReason * @return closeReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLOSE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CloseReasonEnum getCloseReason() { return closeReason; } @@ -495,14 +486,13 @@ public CreditAccountAllOfAttributes fraudReason(FraudReasonEnum fraudReason) { return this; } - /** + /** * Get fraudReason * @return fraudReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FRAUD_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FraudReasonEnum getFraudReason() { return fraudReason; } @@ -520,14 +510,13 @@ public CreditAccountAllOfAttributes closeReasonText(String closeReasonText) { return this; } - /** + /** * Get closeReasonText * @return closeReasonText - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLOSE_REASON_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCloseReasonText() { return closeReasonText; } @@ -545,14 +534,13 @@ public CreditAccountAllOfAttributes freezeReason(String freezeReason) { return this; } - /** + /** * Get freezeReason * @return freezeReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FREEZE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFreezeReason() { return freezeReason; } @@ -570,15 +558,14 @@ public CreditAccountAllOfAttributes creditLimit(Integer creditLimit) { return this; } - /** + /** * Get creditLimit * minimum: 0 * @return creditLimit - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_LIMIT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getCreditLimit() { return creditLimit; } @@ -596,14 +583,13 @@ public CreditAccountAllOfAttributes updatedAt(OffsetDateTime updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -718,37 +704,37 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `creditTerms` to the URL query string if (getCreditTerms() != null) { - joiner.add(String.format("%screditTerms%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreditTerms()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screditTerms%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreditTerms()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `currency` to the URL query string if (getCurrency() != null) { - joiner.add(String.format("%scurrency%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCurrency()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scurrency%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCurrency()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `hold` to the URL query string if (getHold() != null) { - joiner.add(String.format("%shold%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHold()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%shold%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getHold()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `available` to the URL query string if (getAvailable() != null) { - joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -756,43 +742,43 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `closeReason` to the URL query string if (getCloseReason() != null) { - joiner.add(String.format("%scloseReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCloseReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scloseReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCloseReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fraudReason` to the URL query string if (getFraudReason() != null) { - joiner.add(String.format("%sfraudReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFraudReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfraudReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFraudReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `closeReasonText` to the URL query string if (getCloseReasonText() != null) { - joiner.add(String.format("%scloseReasonText%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCloseReasonText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scloseReasonText%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCloseReasonText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `freezeReason` to the URL query string if (getFreezeReason() != null) { - joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `creditLimit` to the URL query string if (getCreditLimit() != null) { - joiner.add(String.format("%screditLimit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreditLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screditLimit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreditLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreditAccountAllOfRelationships.java b/src/main/java/unit/java/sdk/model/CreditAccountAllOfRelationships.java index c9cf588d..a273898e 100644 --- a/src/main/java/unit/java/sdk/model/CreditAccountAllOfRelationships.java +++ b/src/main/java/unit/java/sdk/model/CreditAccountAllOfRelationships.java @@ -30,13 +30,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreditAccountAllOfRelationships */ @JsonPropertyOrder({ CreditAccountAllOfRelationships.JSON_PROPERTY_CUSTOMER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreditAccountAllOfRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -49,14 +50,13 @@ public CreditAccountAllOfRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } diff --git a/src/main/java/unit/java/sdk/model/CreditAccountRelationship.java b/src/main/java/unit/java/sdk/model/CreditAccountRelationship.java index 546828d9..c5e13dad 100644 --- a/src/main/java/unit/java/sdk/model/CreditAccountRelationship.java +++ b/src/main/java/unit/java/sdk/model/CreditAccountRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreditAccountRelationship */ @JsonPropertyOrder({ CreditAccountRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreditAccountRelationship { public static final String JSON_PROPERTY_DATA = "data"; private CreditAccountRelationshipData data; @@ -48,14 +49,13 @@ public CreditAccountRelationship data(CreditAccountRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CreditAccountRelationshipData.java b/src/main/java/unit/java/sdk/model/CreditAccountRelationshipData.java index 6937c31f..39b92d18 100644 --- a/src/main/java/unit/java/sdk/model/CreditAccountRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/CreditAccountRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CreditAccountRelationshipData */ @@ -35,13 +36,13 @@ CreditAccountRelationshipData.JSON_PROPERTY_TYPE, CreditAccountRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CreditAccountRelationshipData { /** * Gets or Sets type */ public enum TypeEnum { - CREDITACCOUNT("creditAccount"); + CREDIT_ACCOUNT("creditAccount"); private String value; @@ -84,14 +85,13 @@ public CreditAccountRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -109,14 +109,13 @@ public CreditAccountRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -205,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CreditLimits.java b/src/main/java/unit/java/sdk/model/CreditLimits.java new file mode 100644 index 00000000..8192ad2f --- /dev/null +++ b/src/main/java/unit/java/sdk/model/CreditLimits.java @@ -0,0 +1,181 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.CreditLimitsAllOfAttributes; +import unit.java.sdk.model.Limits; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; +/** + * CreditLimits + */ +@JsonPropertyOrder({ + CreditLimits.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@JsonIgnoreProperties( + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + +public class CreditLimits extends Limits { + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private CreditLimitsAllOfAttributes attributes; + + public CreditLimits() { + } + + public CreditLimits attributes(CreditLimitsAllOfAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CreditLimitsAllOfAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(CreditLimitsAllOfAttributes attributes) { + this.attributes = attributes; + } + + + @Override + public CreditLimits type(TypeEnum type) { + this.setType(type); + return this; + } + + /** + * Return true if this CreditLimits object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreditLimits creditLimits = (CreditLimits) o; + return Objects.equals(this.attributes, creditLimits.attributes) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreditLimits {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +static { + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap>(); + mappings.put("CreditLimits", CreditLimits.class); + JSON.registerDiscriminator(CreditLimits.class, "type", mappings); +} +} + diff --git a/src/main/java/unit/java/sdk/model/LimitsAttributes.java b/src/main/java/unit/java/sdk/model/CreditLimitsAllOfAttributes.java similarity index 74% rename from src/main/java/unit/java/sdk/model/LimitsAttributes.java rename to src/main/java/unit/java/sdk/model/CreditLimitsAllOfAttributes.java index 07dc727c..fc3bb64f 100644 --- a/src/main/java/unit/java/sdk/model/LimitsAttributes.java +++ b/src/main/java/unit/java/sdk/model/CreditLimitsAllOfAttributes.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.LimitsAttributesCard; +import unit.java.sdk.model.DepositLimitsAllOfAttributesCard; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * LimitsAttributes + * CreditLimitsAllOfAttributes */ @JsonPropertyOrder({ - LimitsAttributes.JSON_PROPERTY_CARD + CreditLimitsAllOfAttributes.JSON_PROPERTY_CARD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class LimitsAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class CreditLimitsAllOfAttributes { public static final String JSON_PROPERTY_CARD = "card"; - private LimitsAttributesCard card; + private DepositLimitsAllOfAttributesCard card; - public LimitsAttributes() { + public CreditLimitsAllOfAttributes() { } - public LimitsAttributes card(LimitsAttributesCard card) { + public CreditLimitsAllOfAttributes card(DepositLimitsAllOfAttributesCard card) { this.card = card; return this; } - /** + /** * Get card * @return card - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public LimitsAttributesCard getCard() { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesCard getCard() { return card; } @JsonProperty(JSON_PROPERTY_CARD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCard(LimitsAttributesCard card) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCard(DepositLimitsAllOfAttributesCard card) { this.card = card; } /** - * Return true if this Limits_attributes object is equal to o. + * Return true if this CreditLimits_allOf_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LimitsAttributes limitsAttributes = (LimitsAttributes) o; - return Objects.equals(this.card, limitsAttributes.card); + CreditLimitsAllOfAttributes creditLimitsAllOfAttributes = (CreditLimitsAllOfAttributes) o; + return Objects.equals(this.card, creditLimitsAllOfAttributes.card); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LimitsAttributes {\n"); + sb.append("class CreditLimitsAllOfAttributes {\n"); sb.append(" card: ").append(toIndentedString(card)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/Customer.java b/src/main/java/unit/java/sdk/model/Customer.java index c3e33785..8c0b9c71 100644 --- a/src/main/java/unit/java/sdk/model/Customer.java +++ b/src/main/java/unit/java/sdk/model/Customer.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * Customer */ @@ -39,7 +40,7 @@ Customer.JSON_PROPERTY_ID, Customer.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -59,9 +60,9 @@ public class Customer { * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALCUSTOMER("individualCustomer"), + INDIVIDUAL_CUSTOMER("individualCustomer"), - BUSINESSCUSTOMER("businessCustomer"); + BUSINESS_CUSTOMER("businessCustomer"); private String value; @@ -101,14 +102,13 @@ public Customer id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -126,14 +126,13 @@ public Customer type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -222,12 +221,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CustomerRelationship.java b/src/main/java/unit/java/sdk/model/CustomerRelationship.java index 193b8589..81f860d4 100644 --- a/src/main/java/unit/java/sdk/model/CustomerRelationship.java +++ b/src/main/java/unit/java/sdk/model/CustomerRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerRelationship */ @JsonPropertyOrder({ CustomerRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerRelationship { public static final String JSON_PROPERTY_DATA = "data"; private CustomerRelationshipData data; @@ -48,14 +49,13 @@ public CustomerRelationship data(CustomerRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CustomerRelationshipData.java b/src/main/java/unit/java/sdk/model/CustomerRelationshipData.java index 3af838b6..b52375be 100644 --- a/src/main/java/unit/java/sdk/model/CustomerRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/CustomerRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerRelationshipData */ @@ -35,7 +36,7 @@ CustomerRelationshipData.JSON_PROPERTY_TYPE, CustomerRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerRelationshipData { /** * Gets or Sets type @@ -43,9 +44,9 @@ public class CustomerRelationshipData { public enum TypeEnum { CUSTOMER("customer"), - BUSINESSCUSTOMER("businessCustomer"), + BUSINESS_CUSTOMER("businessCustomer"), - INDIVIDUALCUSTOMER("individualCustomer"); + INDIVIDUAL_CUSTOMER("individualCustomer"); private String value; @@ -88,14 +89,13 @@ public CustomerRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -113,14 +113,13 @@ public CustomerRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -209,12 +208,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CustomerRelationships.java b/src/main/java/unit/java/sdk/model/CustomerRelationships.java index 6a74f3c8..46110cf9 100644 --- a/src/main/java/unit/java/sdk/model/CustomerRelationships.java +++ b/src/main/java/unit/java/sdk/model/CustomerRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerRelationships */ @@ -38,7 +39,7 @@ CustomerRelationships.JSON_PROPERTY_ORG, CustomerRelationships.JSON_PROPERTY_APPLICATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerRelationships { public static final String JSON_PROPERTY_ORG = "org"; private OrgRelationship org; @@ -54,14 +55,13 @@ public CustomerRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrgRelationship getOrg() { return org; } @@ -79,14 +79,13 @@ public CustomerRelationships application(ApplicationRelationship application) { return this; } - /** + /** * Get application * @return application - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPLICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationRelationship getApplication() { return application; } diff --git a/src/main/java/unit/java/sdk/model/CustomerRepaymentReturnedTransaction.java b/src/main/java/unit/java/sdk/model/CustomerRepaymentReturnedTransaction.java index 8df1e3cf..d3a2b2fb 100644 --- a/src/main/java/unit/java/sdk/model/CustomerRepaymentReturnedTransaction.java +++ b/src/main/java/unit/java/sdk/model/CustomerRepaymentReturnedTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CustomerRepaymentReturnedTransaction */ @@ -42,7 +43,7 @@ CustomerRepaymentReturnedTransaction.JSON_PROPERTY_ATTRIBUTES, CustomerRepaymentReturnedTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CustomerRepaymentReturnedTransaction attributes(FeeTransactionAllOfAttrib return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CustomerRepaymentReturnedTransaction relationships(CustomerRepaymentRetur return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRepaymentReturnedTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CustomerRepaymentReturnedTransactionRelationships.java b/src/main/java/unit/java/sdk/model/CustomerRepaymentReturnedTransactionRelationships.java index af67c1b0..7bf2f407 100644 --- a/src/main/java/unit/java/sdk/model/CustomerRepaymentReturnedTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/CustomerRepaymentReturnedTransactionRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerRepaymentReturnedTransactionRelationships */ @@ -43,7 +44,7 @@ CustomerRepaymentReturnedTransactionRelationships.JSON_PROPERTY_ORG, CustomerRepaymentReturnedTransactionRelationships.JSON_PROPERTY_REPAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerRepaymentReturnedTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -68,14 +69,13 @@ public CustomerRepaymentReturnedTransactionRelationships account(AccountRelation return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public CustomerRepaymentReturnedTransactionRelationships customer(CustomerRelati return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -118,14 +117,13 @@ public CustomerRepaymentReturnedTransactionRelationships customers(CustomersRela return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -143,14 +141,13 @@ public CustomerRepaymentReturnedTransactionRelationships org(OrgRelationship org return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrgRelationship getOrg() { return org; } @@ -168,14 +165,13 @@ public CustomerRepaymentReturnedTransactionRelationships repayment(RepaymentRela return this; } - /** + /** * Get repayment * @return repayment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RepaymentRelationship getRepayment() { return repayment; } diff --git a/src/main/java/unit/java/sdk/model/CustomerRepaymentTransaction.java b/src/main/java/unit/java/sdk/model/CustomerRepaymentTransaction.java index 27db6c32..a7ecae3d 100644 --- a/src/main/java/unit/java/sdk/model/CustomerRepaymentTransaction.java +++ b/src/main/java/unit/java/sdk/model/CustomerRepaymentTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * CustomerRepaymentTransaction */ @@ -42,7 +43,7 @@ CustomerRepaymentTransaction.JSON_PROPERTY_ATTRIBUTES, CustomerRepaymentTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public CustomerRepaymentTransaction attributes(FeeTransactionAllOfAttributes att return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public CustomerRepaymentTransaction relationships(CustomerRepaymentTransactionRe return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRepaymentTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CustomerRepaymentTransactionRelationships.java b/src/main/java/unit/java/sdk/model/CustomerRepaymentTransactionRelationships.java index f4874a6d..57a17ae8 100644 --- a/src/main/java/unit/java/sdk/model/CustomerRepaymentTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/CustomerRepaymentTransactionRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerRepaymentTransactionRelationships */ @@ -43,7 +44,7 @@ CustomerRepaymentTransactionRelationships.JSON_PROPERTY_ORG, CustomerRepaymentTransactionRelationships.JSON_PROPERTY_REPAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerRepaymentTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -68,14 +69,13 @@ public CustomerRepaymentTransactionRelationships account(AccountRelationship acc return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public CustomerRepaymentTransactionRelationships customer(CustomerRelationship c return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -118,14 +117,13 @@ public CustomerRepaymentTransactionRelationships customers(CustomersRelationship return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -143,14 +141,13 @@ public CustomerRepaymentTransactionRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrgRelationship getOrg() { return org; } @@ -168,14 +165,13 @@ public CustomerRepaymentTransactionRelationships repayment(RepaymentRelationship return this; } - /** + /** * Get repayment * @return repayment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REPAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RepaymentRelationship getRepayment() { return repayment; } diff --git a/src/main/java/unit/java/sdk/model/CustomerToken.java b/src/main/java/unit/java/sdk/model/CustomerToken.java index 5f1f299d..15d3d76b 100644 --- a/src/main/java/unit/java/sdk/model/CustomerToken.java +++ b/src/main/java/unit/java/sdk/model/CustomerToken.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerToken */ @@ -36,13 +37,13 @@ CustomerToken.JSON_PROPERTY_TYPE, CustomerToken.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerToken { /** * Gets or Sets type */ public enum TypeEnum { - CUSTOMERBEARERTOKEN("customerBearerToken"); + CUSTOMER_BEARER_TOKEN("customerBearerToken"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CUSTOMERBEARERTOKEN; + private TypeEnum type = TypeEnum.CUSTOMER_BEARER_TOKEN; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CustomerTokenAttributes attributes; @@ -85,14 +86,13 @@ public CustomerToken type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CustomerToken attributes(CustomerTokenAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerTokenAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CustomerTokenAttributes.java b/src/main/java/unit/java/sdk/model/CustomerTokenAttributes.java index d041f362..297631be 100644 --- a/src/main/java/unit/java/sdk/model/CustomerTokenAttributes.java +++ b/src/main/java/unit/java/sdk/model/CustomerTokenAttributes.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerTokenAttributes */ @@ -35,7 +36,7 @@ CustomerTokenAttributes.JSON_PROPERTY_TOKEN, CustomerTokenAttributes.JSON_PROPERTY_EXPIRES_IN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerTokenAttributes { public static final String JSON_PROPERTY_TOKEN = "token"; private String token; @@ -51,14 +52,13 @@ public CustomerTokenAttributes token(String token) { return this; } - /** + /** * Get token * @return token - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getToken() { return token; } @@ -76,14 +76,13 @@ public CustomerTokenAttributes expiresIn(Integer expiresIn) { return this; } - /** + /** * Get expiresIn * @return expiresIn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRES_IN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getExpiresIn() { return expiresIn; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `token` to the URL query string if (getToken() != null) { - joiner.add(String.format("%stoken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expiresIn` to the URL query string if (getExpiresIn() != null) { - joiner.add(String.format("%sexpiresIn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiresIn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiresIn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiresIn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CustomerTokenVerification.java b/src/main/java/unit/java/sdk/model/CustomerTokenVerification.java index e68857ef..4e772b4e 100644 --- a/src/main/java/unit/java/sdk/model/CustomerTokenVerification.java +++ b/src/main/java/unit/java/sdk/model/CustomerTokenVerification.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerTokenVerification */ @@ -36,13 +37,13 @@ CustomerTokenVerification.JSON_PROPERTY_TYPE, CustomerTokenVerification.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerTokenVerification { /** * Gets or Sets type */ public enum TypeEnum { - CUSTOMERTOKENVERIFICATION("customerTokenVerification"); + CUSTOMER_TOKEN_VERIFICATION("customerTokenVerification"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CUSTOMERTOKENVERIFICATION; + private TypeEnum type = TypeEnum.CUSTOMER_TOKEN_VERIFICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private CustomerTokenVerificationAttributes attributes; @@ -85,14 +86,13 @@ public CustomerTokenVerification type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public CustomerTokenVerification attributes(CustomerTokenVerificationAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerTokenVerificationAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/CustomerTokenVerificationAttributes.java b/src/main/java/unit/java/sdk/model/CustomerTokenVerificationAttributes.java index 87ec88d9..cf3e0fd7 100644 --- a/src/main/java/unit/java/sdk/model/CustomerTokenVerificationAttributes.java +++ b/src/main/java/unit/java/sdk/model/CustomerTokenVerificationAttributes.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomerTokenVerificationAttributes */ @JsonPropertyOrder({ CustomerTokenVerificationAttributes.JSON_PROPERTY_VERIFICATION_TOKEN }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomerTokenVerificationAttributes { public static final String JSON_PROPERTY_VERIFICATION_TOKEN = "verificationToken"; private String verificationToken; @@ -47,14 +48,13 @@ public CustomerTokenVerificationAttributes verificationToken(String verification return this; } - /** + /** * Get verificationToken * @return verificationToken - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFICATION_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVerificationToken() { return verificationToken; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `verificationToken` to the URL query string if (getVerificationToken() != null) { - joiner.add(String.format("%sverificationToken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerificationToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverificationToken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerificationToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/CustomersRelationship.java b/src/main/java/unit/java/sdk/model/CustomersRelationship.java index 3e03ab3e..c7f784cb 100644 --- a/src/main/java/unit/java/sdk/model/CustomersRelationship.java +++ b/src/main/java/unit/java/sdk/model/CustomersRelationship.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomersRelationship */ @JsonPropertyOrder({ CustomersRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomersRelationship { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public CustomersRelationship addDataItem(CustomersRelationshipDataInner dataItem return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/CustomersRelationshipDataInner.java b/src/main/java/unit/java/sdk/model/CustomersRelationshipDataInner.java index 2bbff2ee..724312cf 100644 --- a/src/main/java/unit/java/sdk/model/CustomersRelationshipDataInner.java +++ b/src/main/java/unit/java/sdk/model/CustomersRelationshipDataInner.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * CustomersRelationshipDataInner */ @@ -35,7 +36,7 @@ CustomersRelationshipDataInner.JSON_PROPERTY_ID, CustomersRelationshipDataInner.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class CustomersRelationshipDataInner { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -51,14 +52,13 @@ public CustomersRelationshipDataInner id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -76,14 +76,13 @@ public CustomersRelationshipDataInner type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/DeclineAuthorizationRequest.java b/src/main/java/unit/java/sdk/model/DeclineAuthorizationRequest.java index d4f0c474..20b9b3c0 100644 --- a/src/main/java/unit/java/sdk/model/DeclineAuthorizationRequest.java +++ b/src/main/java/unit/java/sdk/model/DeclineAuthorizationRequest.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DeclineAuthorizationRequest */ @JsonPropertyOrder({ DeclineAuthorizationRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DeclineAuthorizationRequest { public static final String JSON_PROPERTY_DATA = "data"; private DeclineAuthorizationRequest data; @@ -47,14 +48,13 @@ public DeclineAuthorizationRequest data(DeclineAuthorizationRequest data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeclineAuthorizationRequest getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/DeclineAuthorizationRequestAttributes.java b/src/main/java/unit/java/sdk/model/DeclineAuthorizationRequestAttributes.java index 3b5e38ca..6fafeb94 100644 --- a/src/main/java/unit/java/sdk/model/DeclineAuthorizationRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/DeclineAuthorizationRequestAttributes.java @@ -28,33 +28,34 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DeclineAuthorizationRequestAttributes */ @JsonPropertyOrder({ DeclineAuthorizationRequestAttributes.JSON_PROPERTY_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DeclineAuthorizationRequestAttributes { /** * Gets or Sets reason */ public enum ReasonEnum { - ACCOUNTCLOSED("AccountClosed"), + ACCOUNT_CLOSED("AccountClosed"), - CARDEXCEEDSAMOUNTLIMIT("CardExceedsAmountLimit"), + CARD_EXCEEDS_AMOUNT_LIMIT("CardExceedsAmountLimit"), - DONOTHONOR("DoNotHonor"), + DO_NOT_HONOR("DoNotHonor"), - INSUFFICIENTFUNDS("InsufficientFunds"), + INSUFFICIENT_FUNDS("InsufficientFunds"), - INVALIDMERCHANT("InvalidMerchant"), + INVALID_MERCHANT("InvalidMerchant"), - REFERTOCARDISSUER("ReferToCardIssuer"), + REFER_TO_CARD_ISSUER("ReferToCardIssuer"), - RESTRICTEDCARD("RestrictedCard"), + RESTRICTED_CARD("RestrictedCard"), - TRANSACTIONNOTPERMITTEDTOCARDHOLDER("TransactionNotPermittedToCardholder"); + TRANSACTION_NOT_PERMITTED_TO_CARDHOLDER("TransactionNotPermittedToCardholder"); private String value; @@ -94,14 +95,13 @@ public DeclineAuthorizationRequestAttributes reason(ReasonEnum reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReasonEnum getReason() { return reason; } @@ -188,7 +188,7 @@ public String toUrlQueryString(String prefix) { // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/DefaultTransactionRelationships.java b/src/main/java/unit/java/sdk/model/DefaultTransactionRelationships.java index d7210f4b..2325a188 100644 --- a/src/main/java/unit/java/sdk/model/DefaultTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/DefaultTransactionRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DefaultTransactionRelationships */ @@ -39,7 +40,7 @@ DefaultTransactionRelationships.JSON_PROPERTY_CUSTOMER, DefaultTransactionRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DefaultTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public DefaultTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public DefaultTransactionRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public DefaultTransactionRelationships customers(CustomersRelationship customers return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/main/java/unit/java/sdk/model/DepositAccount.java b/src/main/java/unit/java/sdk/model/DepositAccount.java index 927e8b9b..feaf9b16 100644 --- a/src/main/java/unit/java/sdk/model/DepositAccount.java +++ b/src/main/java/unit/java/sdk/model/DepositAccount.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * DepositAccount */ @@ -42,7 +43,7 @@ DepositAccount.JSON_PROPERTY_ATTRIBUTES, DepositAccount.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public DepositAccount attributes(DepositAccountAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DepositAccountAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public DepositAccount relationships(DepositAccountAllOfRelationships relationshi return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DepositAccountAllOfRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/DepositAccountAllOfAttributes.java b/src/main/java/unit/java/sdk/model/DepositAccountAllOfAttributes.java index 683a99e0..12b1a607 100644 --- a/src/main/java/unit/java/sdk/model/DepositAccountAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/DepositAccountAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DepositAccountAllOfAttributes */ @@ -58,7 +59,7 @@ DepositAccountAllOfAttributes.JSON_PROPERTY_DACA_STATUS, DepositAccountAllOfAttributes.JSON_PROPERTY_UPDATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DepositAccountAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -140,19 +141,19 @@ public static StatusEnum fromValue(String value) { * Gets or Sets closeReason */ public enum CloseReasonEnum { - BYCUSTOMER("ByCustomer"), + BY_CUSTOMER("ByCustomer"), FRAUD("Fraud"), - NEGATIVEBALANCE("NegativeBalance"), + NEGATIVE_BALANCE("NegativeBalance"), - BYBANK("ByBank"), + BY_BANK("ByBank"), - BREACHOFTERMSANDCONDITIONS("BreachOfTermsAndConditions"), + BREACH_OF_TERMS_AND_CONDITIONS("BreachOfTermsAndConditions"), - NOACCOUNTACTIVITY("NoAccountActivity"), + NO_ACCOUNT_ACTIVITY("NoAccountActivity"), - PROGRAMCHANGE("ProgramChange"); + PROGRAM_CHANGE("ProgramChange"); private String value; @@ -188,21 +189,21 @@ public static CloseReasonEnum fromValue(String value) { * Gets or Sets fraudReason */ public enum FraudReasonEnum { - ACHACTIVITY("ACHActivity"), + ACH_ACTIVITY("ACHActivity"), - CARDACTIVITY("CardActivity"), + CARD_ACTIVITY("CardActivity"), - CHECKACTIVITY("CheckActivity"), + CHECK_ACTIVITY("CheckActivity"), - APPLICATIONHISTORY("ApplicationHistory"), + APPLICATION_HISTORY("ApplicationHistory"), - ACCOUNTACTIVITY("AccountActivity"), + ACCOUNT_ACTIVITY("AccountActivity"), - CLIENTIDENTIFIED("ClientIdentified"), + CLIENT_IDENTIFIED("ClientIdentified"), - IDENTITYTHEFT("IdentityTheft"), + IDENTITY_THEFT("IdentityTheft"), - LINKEDTOFRAUDULENTCUSTOMER("LinkedToFraudulentCustomer"); + LINKED_TO_FRAUDULENT_CUSTOMER("LinkedToFraudulentCustomer"); private String value; @@ -295,14 +296,13 @@ public DepositAccountAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -320,14 +320,13 @@ public DepositAccountAllOfAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -345,14 +344,13 @@ public DepositAccountAllOfAttributes depositProduct(String depositProduct) { return this; } - /** + /** * Get depositProduct * @return depositProduct - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DEPOSIT_PRODUCT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDepositProduct() { return depositProduct; } @@ -370,14 +368,13 @@ public DepositAccountAllOfAttributes routingNumber(String routingNumber) { return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -395,14 +392,13 @@ public DepositAccountAllOfAttributes accountNumber(String accountNumber) { return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountNumber() { return accountNumber; } @@ -420,14 +416,13 @@ public DepositAccountAllOfAttributes secondaryAccountNumber(DepositAccountAllOfA return this; } - /** + /** * Get secondaryAccountNumber * @return secondaryAccountNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SECONDARY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DepositAccountAllOfAttributesSecondaryAccountNumber getSecondaryAccountNumber() { return secondaryAccountNumber; } @@ -445,14 +440,13 @@ public DepositAccountAllOfAttributes currency(String currency) { return this; } - /** + /** * Get currency * @return currency - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CURRENCY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCurrency() { return currency; } @@ -470,14 +464,13 @@ public DepositAccountAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -495,15 +488,14 @@ public DepositAccountAllOfAttributes overdraftLimit(Integer overdraftLimit) { return this; } - /** + /** * Get overdraftLimit * minimum: 0 * @return overdraftLimit - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OVERDRAFT_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getOverdraftLimit() { return overdraftLimit; } @@ -521,14 +513,13 @@ public DepositAccountAllOfAttributes hold(Integer hold) { return this; } - /** + /** * Get hold * @return hold - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_HOLD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getHold() { return hold; } @@ -546,14 +537,13 @@ public DepositAccountAllOfAttributes available(Integer available) { return this; } - /** + /** * Get available * @return available - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AVAILABLE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAvailable() { return available; } @@ -579,14 +569,13 @@ public DepositAccountAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Map getTags() { return tags; } @@ -604,14 +593,13 @@ public DepositAccountAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -629,14 +617,13 @@ public DepositAccountAllOfAttributes closeReason(CloseReasonEnum closeReason) { return this; } - /** + /** * Get closeReason * @return closeReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLOSE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CloseReasonEnum getCloseReason() { return closeReason; } @@ -654,14 +641,13 @@ public DepositAccountAllOfAttributes fraudReason(FraudReasonEnum fraudReason) { return this; } - /** + /** * Get fraudReason * @return fraudReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FRAUD_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FraudReasonEnum getFraudReason() { return fraudReason; } @@ -679,14 +665,13 @@ public DepositAccountAllOfAttributes closeReasonText(String closeReasonText) { return this; } - /** + /** * Get closeReasonText * @return closeReasonText - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CLOSE_REASON_TEXT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCloseReasonText() { return closeReasonText; } @@ -704,14 +689,13 @@ public DepositAccountAllOfAttributes freezeReason(String freezeReason) { return this; } - /** + /** * Get freezeReason * @return freezeReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FREEZE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFreezeReason() { return freezeReason; } @@ -729,14 +713,13 @@ public DepositAccountAllOfAttributes maskedAccountNumber(String maskedAccountNum return this; } - /** + /** * Get maskedAccountNumber * @return maskedAccountNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedAccountNumber() { return maskedAccountNumber; } @@ -754,14 +737,13 @@ public DepositAccountAllOfAttributes isOverdrawnWithinLimit(Boolean isOverdrawnW return this; } - /** + /** * Get isOverdrawnWithinLimit * @return isOverdrawnWithinLimit - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_OVERDRAWN_WITHIN_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsOverdrawnWithinLimit() { return isOverdrawnWithinLimit; } @@ -779,14 +761,13 @@ public DepositAccountAllOfAttributes dacaStatus(DacaStatusEnum dacaStatus) { return this; } - /** + /** * Get dacaStatus * @return dacaStatus - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DACA_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DacaStatusEnum getDacaStatus() { return dacaStatus; } @@ -804,14 +785,13 @@ public DepositAccountAllOfAttributes updatedAt(OffsetDateTime updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -938,27 +918,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `depositProduct` to the URL query string if (getDepositProduct() != null) { - joiner.add(String.format("%sdepositProduct%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDepositProduct()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdepositProduct%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDepositProduct()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secondaryAccountNumber` to the URL query string @@ -968,27 +948,27 @@ public String toUrlQueryString(String prefix) { // add `currency` to the URL query string if (getCurrency() != null) { - joiner.add(String.format("%scurrency%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCurrency()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scurrency%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCurrency()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `overdraftLimit` to the URL query string if (getOverdraftLimit() != null) { - joiner.add(String.format("%soverdraftLimit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOverdraftLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soverdraftLimit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOverdraftLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `hold` to the URL query string if (getHold() != null) { - joiner.add(String.format("%shold%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getHold()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%shold%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getHold()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `available` to the URL query string if (getAvailable() != null) { - joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -996,53 +976,53 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `closeReason` to the URL query string if (getCloseReason() != null) { - joiner.add(String.format("%scloseReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCloseReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scloseReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCloseReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fraudReason` to the URL query string if (getFraudReason() != null) { - joiner.add(String.format("%sfraudReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFraudReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfraudReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFraudReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `closeReasonText` to the URL query string if (getCloseReasonText() != null) { - joiner.add(String.format("%scloseReasonText%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCloseReasonText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scloseReasonText%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCloseReasonText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `freezeReason` to the URL query string if (getFreezeReason() != null) { - joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedAccountNumber` to the URL query string if (getMaskedAccountNumber() != null) { - joiner.add(String.format("%smaskedAccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedAccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `isOverdrawnWithinLimit` to the URL query string if (getIsOverdrawnWithinLimit() != null) { - joiner.add(String.format("%sisOverdrawnWithinLimit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsOverdrawnWithinLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sisOverdrawnWithinLimit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsOverdrawnWithinLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dacaStatus` to the URL query string if (getDacaStatus() != null) { - joiner.add(String.format("%sdacaStatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDacaStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdacaStatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDacaStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/DepositAccountAllOfAttributesSecondaryAccountNumber.java b/src/main/java/unit/java/sdk/model/DepositAccountAllOfAttributesSecondaryAccountNumber.java index c5cc6c41..ce857e08 100644 --- a/src/main/java/unit/java/sdk/model/DepositAccountAllOfAttributesSecondaryAccountNumber.java +++ b/src/main/java/unit/java/sdk/model/DepositAccountAllOfAttributesSecondaryAccountNumber.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DepositAccountAllOfAttributesSecondaryAccountNumber */ @@ -35,7 +36,7 @@ DepositAccountAllOfAttributesSecondaryAccountNumber.JSON_PROPERTY_ROUTING_NUMBER, DepositAccountAllOfAttributesSecondaryAccountNumber.JSON_PROPERTY_ACCOUNT_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DepositAccountAllOfAttributesSecondaryAccountNumber { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; @@ -51,14 +52,13 @@ public DepositAccountAllOfAttributesSecondaryAccountNumber routingNumber(String return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -76,14 +76,13 @@ public DepositAccountAllOfAttributesSecondaryAccountNumber accountNumber(String return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { return accountNumber; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/DepositAccountAllOfRelationships.java b/src/main/java/unit/java/sdk/model/DepositAccountAllOfRelationships.java index 8cd6708c..7865f5d7 100644 --- a/src/main/java/unit/java/sdk/model/DepositAccountAllOfRelationships.java +++ b/src/main/java/unit/java/sdk/model/DepositAccountAllOfRelationships.java @@ -30,13 +30,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DepositAccountAllOfRelationships */ @JsonPropertyOrder({ DepositAccountAllOfRelationships.JSON_PROPERTY_CUSTOMER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DepositAccountAllOfRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -49,14 +50,13 @@ public DepositAccountAllOfRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } diff --git a/src/main/java/unit/java/sdk/model/DepositAccountOwner.java b/src/main/java/unit/java/sdk/model/DepositAccountOwner.java new file mode 100644 index 00000000..55609910 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositAccountOwner.java @@ -0,0 +1,218 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositAccountOwner + */ +@JsonPropertyOrder({ + DepositAccountOwner.JSON_PROPERTY_TYPE, + DepositAccountOwner.JSON_PROPERTY_ID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositAccountOwner { + /** + * Gets or Sets type + */ + public enum TypeEnum { + CUSTOMER("customer"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.CUSTOMER; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public DepositAccountOwner() { + } + + public DepositAccountOwner type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public DepositAccountOwner id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + /** + * Return true if this DepositAccountOwner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositAccountOwner depositAccountOwner = (DepositAccountOwner) o; + return Objects.equals(this.type, depositAccountOwner.type) && + Objects.equals(this.id, depositAccountOwner.id); + } + + @Override + public int hashCode() { + return Objects.hash(type, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositAccountOwner {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `id` to the URL query string + if (getId() != null) { + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/DepositLimits.java b/src/main/java/unit/java/sdk/model/DepositLimits.java new file mode 100644 index 00000000..71216b3b --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositLimits.java @@ -0,0 +1,181 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.DepositLimitsAllOfAttributes; +import unit.java.sdk.model.Limits; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; +/** + * DepositLimits + */ +@JsonPropertyOrder({ + DepositLimits.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@JsonIgnoreProperties( + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + +public class DepositLimits extends Limits { + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private DepositLimitsAllOfAttributes attributes; + + public DepositLimits() { + } + + public DepositLimits attributes(DepositLimitsAllOfAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(DepositLimitsAllOfAttributes attributes) { + this.attributes = attributes; + } + + + @Override + public DepositLimits type(TypeEnum type) { + this.setType(type); + return this; + } + + /** + * Return true if this DepositLimits object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositLimits depositLimits = (DepositLimits) o; + return Objects.equals(this.attributes, depositLimits.attributes) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositLimits {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +static { + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap>(); + mappings.put("DepositLimits", DepositLimits.class); + JSON.registerDiscriminator(DepositLimits.class, "type", mappings); +} +} + diff --git a/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributes.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributes.java new file mode 100644 index 00000000..286d9a1a --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributes.java @@ -0,0 +1,223 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.DepositLimitsAllOfAttributesAch; +import unit.java.sdk.model.DepositLimitsAllOfAttributesCard; +import unit.java.sdk.model.DepositLimitsAllOfAttributesCheckDeposit; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositLimitsAllOfAttributes + */ +@JsonPropertyOrder({ + DepositLimitsAllOfAttributes.JSON_PROPERTY_ACH, + DepositLimitsAllOfAttributes.JSON_PROPERTY_CARD, + DepositLimitsAllOfAttributes.JSON_PROPERTY_CHECK_DEPOSIT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributes { + public static final String JSON_PROPERTY_ACH = "ach"; + private DepositLimitsAllOfAttributesAch ach; + + public static final String JSON_PROPERTY_CARD = "card"; + private DepositLimitsAllOfAttributesCard card; + + public static final String JSON_PROPERTY_CHECK_DEPOSIT = "checkDeposit"; + private DepositLimitsAllOfAttributesCheckDeposit checkDeposit; + + public DepositLimitsAllOfAttributes() { + } + + public DepositLimitsAllOfAttributes ach(DepositLimitsAllOfAttributesAch ach) { + this.ach = ach; + return this; + } + + /** + * Get ach + * @return ach + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesAch getAch() { + return ach; + } + + + @JsonProperty(JSON_PROPERTY_ACH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAch(DepositLimitsAllOfAttributesAch ach) { + this.ach = ach; + } + + + public DepositLimitsAllOfAttributes card(DepositLimitsAllOfAttributesCard card) { + this.card = card; + return this; + } + + /** + * Get card + * @return card + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CARD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesCard getCard() { + return card; + } + + + @JsonProperty(JSON_PROPERTY_CARD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCard(DepositLimitsAllOfAttributesCard card) { + this.card = card; + } + + + public DepositLimitsAllOfAttributes checkDeposit(DepositLimitsAllOfAttributesCheckDeposit checkDeposit) { + this.checkDeposit = checkDeposit; + return this; + } + + /** + * Get checkDeposit + * @return checkDeposit + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CHECK_DEPOSIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesCheckDeposit getCheckDeposit() { + return checkDeposit; + } + + + @JsonProperty(JSON_PROPERTY_CHECK_DEPOSIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCheckDeposit(DepositLimitsAllOfAttributesCheckDeposit checkDeposit) { + this.checkDeposit = checkDeposit; + } + + + /** + * Return true if this DepositLimits_allOf_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositLimitsAllOfAttributes depositLimitsAllOfAttributes = (DepositLimitsAllOfAttributes) o; + return Objects.equals(this.ach, depositLimitsAllOfAttributes.ach) && + Objects.equals(this.card, depositLimitsAllOfAttributes.card) && + Objects.equals(this.checkDeposit, depositLimitsAllOfAttributes.checkDeposit); + } + + @Override + public int hashCode() { + return Objects.hash(ach, card, checkDeposit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositLimitsAllOfAttributes {\n"); + sb.append(" ach: ").append(toIndentedString(ach)).append("\n"); + sb.append(" card: ").append(toIndentedString(card)).append("\n"); + sb.append(" checkDeposit: ").append(toIndentedString(checkDeposit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `ach` to the URL query string + if (getAch() != null) { + joiner.add(getAch().toUrlQueryString(prefix + "ach" + suffix)); + } + + // add `card` to the URL query string + if (getCard() != null) { + joiner.add(getCard().toUrlQueryString(prefix + "card" + suffix)); + } + + // add `checkDeposit` to the URL query string + if (getCheckDeposit() != null) { + joiner.add(getCheckDeposit().toUrlQueryString(prefix + "checkDeposit" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAch.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAch.java new file mode 100644 index 00000000..aaab0d88 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAch.java @@ -0,0 +1,222 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.DepositLimitsAllOfAttributesAchLimits; +import unit.java.sdk.model.DepositLimitsAllOfAttributesAchTotalsDaily; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositLimitsAllOfAttributesAch + */ +@JsonPropertyOrder({ + DepositLimitsAllOfAttributesAch.JSON_PROPERTY_LIMITS, + DepositLimitsAllOfAttributesAch.JSON_PROPERTY_TOTALS_DAILY, + DepositLimitsAllOfAttributesAch.JSON_PROPERTY_TOTALS_MONTHLY +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributesAch { + public static final String JSON_PROPERTY_LIMITS = "limits"; + private DepositLimitsAllOfAttributesAchLimits limits; + + public static final String JSON_PROPERTY_TOTALS_DAILY = "totalsDaily"; + private DepositLimitsAllOfAttributesAchTotalsDaily totalsDaily; + + public static final String JSON_PROPERTY_TOTALS_MONTHLY = "totalsMonthly"; + private DepositLimitsAllOfAttributesAchTotalsDaily totalsMonthly; + + public DepositLimitsAllOfAttributesAch() { + } + + public DepositLimitsAllOfAttributesAch limits(DepositLimitsAllOfAttributesAchLimits limits) { + this.limits = limits; + return this; + } + + /** + * Get limits + * @return limits + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LIMITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesAchLimits getLimits() { + return limits; + } + + + @JsonProperty(JSON_PROPERTY_LIMITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLimits(DepositLimitsAllOfAttributesAchLimits limits) { + this.limits = limits; + } + + + public DepositLimitsAllOfAttributesAch totalsDaily(DepositLimitsAllOfAttributesAchTotalsDaily totalsDaily) { + this.totalsDaily = totalsDaily; + return this; + } + + /** + * Get totalsDaily + * @return totalsDaily + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesAchTotalsDaily getTotalsDaily() { + return totalsDaily; + } + + + @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsDaily(DepositLimitsAllOfAttributesAchTotalsDaily totalsDaily) { + this.totalsDaily = totalsDaily; + } + + + public DepositLimitsAllOfAttributesAch totalsMonthly(DepositLimitsAllOfAttributesAchTotalsDaily totalsMonthly) { + this.totalsMonthly = totalsMonthly; + return this; + } + + /** + * Get totalsMonthly + * @return totalsMonthly + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTALS_MONTHLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesAchTotalsDaily getTotalsMonthly() { + return totalsMonthly; + } + + + @JsonProperty(JSON_PROPERTY_TOTALS_MONTHLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsMonthly(DepositLimitsAllOfAttributesAchTotalsDaily totalsMonthly) { + this.totalsMonthly = totalsMonthly; + } + + + /** + * Return true if this DepositLimits_allOf_attributes_ach object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositLimitsAllOfAttributesAch depositLimitsAllOfAttributesAch = (DepositLimitsAllOfAttributesAch) o; + return Objects.equals(this.limits, depositLimitsAllOfAttributesAch.limits) && + Objects.equals(this.totalsDaily, depositLimitsAllOfAttributesAch.totalsDaily) && + Objects.equals(this.totalsMonthly, depositLimitsAllOfAttributesAch.totalsMonthly); + } + + @Override + public int hashCode() { + return Objects.hash(limits, totalsDaily, totalsMonthly); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositLimitsAllOfAttributesAch {\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" totalsDaily: ").append(toIndentedString(totalsDaily)).append("\n"); + sb.append(" totalsMonthly: ").append(toIndentedString(totalsMonthly)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `limits` to the URL query string + if (getLimits() != null) { + joiner.add(getLimits().toUrlQueryString(prefix + "limits" + suffix)); + } + + // add `totalsDaily` to the URL query string + if (getTotalsDaily() != null) { + joiner.add(getTotalsDaily().toUrlQueryString(prefix + "totalsDaily" + suffix)); + } + + // add `totalsMonthly` to the URL query string + if (getTotalsMonthly() != null) { + joiner.add(getTotalsMonthly().toUrlQueryString(prefix + "totalsMonthly" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAchLimits.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAchLimits.java new file mode 100644 index 00000000..82c90b8a --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAchLimits.java @@ -0,0 +1,326 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositLimitsAllOfAttributesAchLimits + */ +@JsonPropertyOrder({ + DepositLimitsAllOfAttributesAchLimits.JSON_PROPERTY_DAILY_DEBIT, + DepositLimitsAllOfAttributesAchLimits.JSON_PROPERTY_DAILY_CREDIT, + DepositLimitsAllOfAttributesAchLimits.JSON_PROPERTY_MONTHLY_DEBIT, + DepositLimitsAllOfAttributesAchLimits.JSON_PROPERTY_MONTHLY_DEBIT_SOFT, + DepositLimitsAllOfAttributesAchLimits.JSON_PROPERTY_DAILY_DEBIT_SOFT, + DepositLimitsAllOfAttributesAchLimits.JSON_PROPERTY_MONTHLY_CREDIT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributesAchLimits { + public static final String JSON_PROPERTY_DAILY_DEBIT = "dailyDebit"; + private BigDecimal dailyDebit; + + public static final String JSON_PROPERTY_DAILY_CREDIT = "dailyCredit"; + private BigDecimal dailyCredit; + + public static final String JSON_PROPERTY_MONTHLY_DEBIT = "monthlyDebit"; + private BigDecimal monthlyDebit; + + public static final String JSON_PROPERTY_MONTHLY_DEBIT_SOFT = "monthlyDebitSoft"; + private BigDecimal monthlyDebitSoft; + + public static final String JSON_PROPERTY_DAILY_DEBIT_SOFT = "dailyDebitSoft"; + private BigDecimal dailyDebitSoft; + + public static final String JSON_PROPERTY_MONTHLY_CREDIT = "monthlyCredit"; + private BigDecimal monthlyCredit; + + public DepositLimitsAllOfAttributesAchLimits() { + } + + public DepositLimitsAllOfAttributesAchLimits dailyDebit(BigDecimal dailyDebit) { + this.dailyDebit = dailyDebit; + return this; + } + + /** + * Get dailyDebit + * @return dailyDebit + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DAILY_DEBIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDailyDebit() { + return dailyDebit; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_DEBIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDailyDebit(BigDecimal dailyDebit) { + this.dailyDebit = dailyDebit; + } + + + public DepositLimitsAllOfAttributesAchLimits dailyCredit(BigDecimal dailyCredit) { + this.dailyCredit = dailyCredit; + return this; + } + + /** + * Get dailyCredit + * @return dailyCredit + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DAILY_CREDIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDailyCredit() { + return dailyCredit; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_CREDIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDailyCredit(BigDecimal dailyCredit) { + this.dailyCredit = dailyCredit; + } + + + public DepositLimitsAllOfAttributesAchLimits monthlyDebit(BigDecimal monthlyDebit) { + this.monthlyDebit = monthlyDebit; + return this; + } + + /** + * Get monthlyDebit + * @return monthlyDebit + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTHLY_DEBIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getMonthlyDebit() { + return monthlyDebit; + } + + + @JsonProperty(JSON_PROPERTY_MONTHLY_DEBIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonthlyDebit(BigDecimal monthlyDebit) { + this.monthlyDebit = monthlyDebit; + } + + + public DepositLimitsAllOfAttributesAchLimits monthlyDebitSoft(BigDecimal monthlyDebitSoft) { + this.monthlyDebitSoft = monthlyDebitSoft; + return this; + } + + /** + * Get monthlyDebitSoft + * @return monthlyDebitSoft + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MONTHLY_DEBIT_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMonthlyDebitSoft() { + return monthlyDebitSoft; + } + + + @JsonProperty(JSON_PROPERTY_MONTHLY_DEBIT_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMonthlyDebitSoft(BigDecimal monthlyDebitSoft) { + this.monthlyDebitSoft = monthlyDebitSoft; + } + + + public DepositLimitsAllOfAttributesAchLimits dailyDebitSoft(BigDecimal dailyDebitSoft) { + this.dailyDebitSoft = dailyDebitSoft; + return this; + } + + /** + * Get dailyDebitSoft + * @return dailyDebitSoft + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DAILY_DEBIT_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getDailyDebitSoft() { + return dailyDebitSoft; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_DEBIT_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDailyDebitSoft(BigDecimal dailyDebitSoft) { + this.dailyDebitSoft = dailyDebitSoft; + } + + + public DepositLimitsAllOfAttributesAchLimits monthlyCredit(BigDecimal monthlyCredit) { + this.monthlyCredit = monthlyCredit; + return this; + } + + /** + * Get monthlyCredit + * @return monthlyCredit + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTHLY_CREDIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getMonthlyCredit() { + return monthlyCredit; + } + + + @JsonProperty(JSON_PROPERTY_MONTHLY_CREDIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonthlyCredit(BigDecimal monthlyCredit) { + this.monthlyCredit = monthlyCredit; + } + + + /** + * Return true if this DepositLimits_allOf_attributes_ach_limits object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositLimitsAllOfAttributesAchLimits depositLimitsAllOfAttributesAchLimits = (DepositLimitsAllOfAttributesAchLimits) o; + return Objects.equals(this.dailyDebit, depositLimitsAllOfAttributesAchLimits.dailyDebit) && + Objects.equals(this.dailyCredit, depositLimitsAllOfAttributesAchLimits.dailyCredit) && + Objects.equals(this.monthlyDebit, depositLimitsAllOfAttributesAchLimits.monthlyDebit) && + Objects.equals(this.monthlyDebitSoft, depositLimitsAllOfAttributesAchLimits.monthlyDebitSoft) && + Objects.equals(this.dailyDebitSoft, depositLimitsAllOfAttributesAchLimits.dailyDebitSoft) && + Objects.equals(this.monthlyCredit, depositLimitsAllOfAttributesAchLimits.monthlyCredit); + } + + @Override + public int hashCode() { + return Objects.hash(dailyDebit, dailyCredit, monthlyDebit, monthlyDebitSoft, dailyDebitSoft, monthlyCredit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositLimitsAllOfAttributesAchLimits {\n"); + sb.append(" dailyDebit: ").append(toIndentedString(dailyDebit)).append("\n"); + sb.append(" dailyCredit: ").append(toIndentedString(dailyCredit)).append("\n"); + sb.append(" monthlyDebit: ").append(toIndentedString(monthlyDebit)).append("\n"); + sb.append(" monthlyDebitSoft: ").append(toIndentedString(monthlyDebitSoft)).append("\n"); + sb.append(" dailyDebitSoft: ").append(toIndentedString(dailyDebitSoft)).append("\n"); + sb.append(" monthlyCredit: ").append(toIndentedString(monthlyCredit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `dailyDebit` to the URL query string + if (getDailyDebit() != null) { + joiner.add(String.format("%sdailyDebit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyDebit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `dailyCredit` to the URL query string + if (getDailyCredit() != null) { + joiner.add(String.format("%sdailyCredit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyCredit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `monthlyDebit` to the URL query string + if (getMonthlyDebit() != null) { + joiner.add(String.format("%smonthlyDebit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonthlyDebit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `monthlyDebitSoft` to the URL query string + if (getMonthlyDebitSoft() != null) { + joiner.add(String.format("%smonthlyDebitSoft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonthlyDebitSoft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `dailyDebitSoft` to the URL query string + if (getDailyDebitSoft() != null) { + joiner.add(String.format("%sdailyDebitSoft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyDebitSoft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `monthlyCredit` to the URL query string + if (getMonthlyCredit() != null) { + joiner.add(String.format("%smonthlyCredit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonthlyCredit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAchTotalsDaily.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAchTotalsDaily.java new file mode 100644 index 00000000..42e489ec --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesAchTotalsDaily.java @@ -0,0 +1,186 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositLimitsAllOfAttributesAchTotalsDaily + */ +@JsonPropertyOrder({ + DepositLimitsAllOfAttributesAchTotalsDaily.JSON_PROPERTY_DEBITS, + DepositLimitsAllOfAttributesAchTotalsDaily.JSON_PROPERTY_CREDITS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributesAchTotalsDaily { + public static final String JSON_PROPERTY_DEBITS = "debits"; + private BigDecimal debits; + + public static final String JSON_PROPERTY_CREDITS = "credits"; + private BigDecimal credits; + + public DepositLimitsAllOfAttributesAchTotalsDaily() { + } + + public DepositLimitsAllOfAttributesAchTotalsDaily debits(BigDecimal debits) { + this.debits = debits; + return this; + } + + /** + * Get debits + * @return debits + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DEBITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDebits() { + return debits; + } + + + @JsonProperty(JSON_PROPERTY_DEBITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDebits(BigDecimal debits) { + this.debits = debits; + } + + + public DepositLimitsAllOfAttributesAchTotalsDaily credits(BigDecimal credits) { + this.credits = credits; + return this; + } + + /** + * Get credits + * @return credits + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREDITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getCredits() { + return credits; + } + + + @JsonProperty(JSON_PROPERTY_CREDITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCredits(BigDecimal credits) { + this.credits = credits; + } + + + /** + * Return true if this DepositLimits_allOf_attributes_ach_totalsDaily object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositLimitsAllOfAttributesAchTotalsDaily depositLimitsAllOfAttributesAchTotalsDaily = (DepositLimitsAllOfAttributesAchTotalsDaily) o; + return Objects.equals(this.debits, depositLimitsAllOfAttributesAchTotalsDaily.debits) && + Objects.equals(this.credits, depositLimitsAllOfAttributesAchTotalsDaily.credits); + } + + @Override + public int hashCode() { + return Objects.hash(debits, credits); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositLimitsAllOfAttributesAchTotalsDaily {\n"); + sb.append(" debits: ").append(toIndentedString(debits)).append("\n"); + sb.append(" credits: ").append(toIndentedString(credits)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `debits` to the URL query string + if (getDebits() != null) { + joiner.add(String.format("%sdebits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDebits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `credits` to the URL query string + if (getCredits() != null) { + joiner.add(String.format("%scredits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCredits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/LimitsAttributesCard.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCard.java similarity index 66% rename from src/main/java/unit/java/sdk/model/LimitsAttributesCard.java rename to src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCard.java index ef156578..4352fa5e 100644 --- a/src/main/java/unit/java/sdk/model/LimitsAttributesCard.java +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCard.java @@ -25,81 +25,80 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.LimitsAttributesCardLimits; -import unit.java.sdk.model.LimitsAttributesCardTotalsDaily; +import unit.java.sdk.model.DepositLimitsAllOfAttributesCardLimits; +import unit.java.sdk.model.DepositLimitsAllOfAttributesCardTotalsDaily; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * LimitsAttributesCard + * DepositLimitsAllOfAttributesCard */ @JsonPropertyOrder({ - LimitsAttributesCard.JSON_PROPERTY_LIMITS, - LimitsAttributesCard.JSON_PROPERTY_TOTALS_DAILY + DepositLimitsAllOfAttributesCard.JSON_PROPERTY_LIMITS, + DepositLimitsAllOfAttributesCard.JSON_PROPERTY_TOTALS_DAILY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class LimitsAttributesCard { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributesCard { public static final String JSON_PROPERTY_LIMITS = "limits"; - private LimitsAttributesCardLimits limits; + private DepositLimitsAllOfAttributesCardLimits limits; public static final String JSON_PROPERTY_TOTALS_DAILY = "totalsDaily"; - private LimitsAttributesCardTotalsDaily totalsDaily; + private DepositLimitsAllOfAttributesCardTotalsDaily totalsDaily; - public LimitsAttributesCard() { + public DepositLimitsAllOfAttributesCard() { } - public LimitsAttributesCard limits(LimitsAttributesCardLimits limits) { + public DepositLimitsAllOfAttributesCard limits(DepositLimitsAllOfAttributesCardLimits limits) { this.limits = limits; return this; } - /** + /** * Get limits * @return limits - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LIMITS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public LimitsAttributesCardLimits getLimits() { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesCardLimits getLimits() { return limits; } @JsonProperty(JSON_PROPERTY_LIMITS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLimits(LimitsAttributesCardLimits limits) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLimits(DepositLimitsAllOfAttributesCardLimits limits) { this.limits = limits; } - public LimitsAttributesCard totalsDaily(LimitsAttributesCardTotalsDaily totalsDaily) { + public DepositLimitsAllOfAttributesCard totalsDaily(DepositLimitsAllOfAttributesCardTotalsDaily totalsDaily) { this.totalsDaily = totalsDaily; return this; } - /** + /** * Get totalsDaily * @return totalsDaily - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public LimitsAttributesCardTotalsDaily getTotalsDaily() { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesCardTotalsDaily getTotalsDaily() { return totalsDaily; } @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotalsDaily(LimitsAttributesCardTotalsDaily totalsDaily) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsDaily(DepositLimitsAllOfAttributesCardTotalsDaily totalsDaily) { this.totalsDaily = totalsDaily; } /** - * Return true if this Limits_attributes_card object is equal to o. + * Return true if this DepositLimits_allOf_attributes_card object is equal to o. */ @Override public boolean equals(Object o) { @@ -109,9 +108,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LimitsAttributesCard limitsAttributesCard = (LimitsAttributesCard) o; - return Objects.equals(this.limits, limitsAttributesCard.limits) && - Objects.equals(this.totalsDaily, limitsAttributesCard.totalsDaily); + DepositLimitsAllOfAttributesCard depositLimitsAllOfAttributesCard = (DepositLimitsAllOfAttributesCard) o; + return Objects.equals(this.limits, depositLimitsAllOfAttributesCard.limits) && + Objects.equals(this.totalsDaily, depositLimitsAllOfAttributesCard.totalsDaily); } @Override @@ -122,7 +121,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LimitsAttributesCard {\n"); + sb.append("class DepositLimitsAllOfAttributesCard {\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append(" totalsDaily: ").append(toIndentedString(totalsDaily)).append("\n"); sb.append("}"); diff --git a/src/main/java/unit/java/sdk/model/LimitsAttributesCardLimits.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCardLimits.java similarity index 67% rename from src/main/java/unit/java/sdk/model/LimitsAttributesCardLimits.java rename to src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCardLimits.java index caaa38b0..33799ddf 100644 --- a/src/main/java/unit/java/sdk/model/LimitsAttributesCardLimits.java +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCardLimits.java @@ -29,17 +29,18 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * LimitsAttributesCardLimits + * DepositLimitsAllOfAttributesCardLimits */ @JsonPropertyOrder({ - LimitsAttributesCardLimits.JSON_PROPERTY_DAILY_WITHDRAWAL, - LimitsAttributesCardLimits.JSON_PROPERTY_DAILY_DEPOSIT, - LimitsAttributesCardLimits.JSON_PROPERTY_DAILY_PURCHASE, - LimitsAttributesCardLimits.JSON_PROPERTY_DAILY_CARD_TRANSACTION + DepositLimitsAllOfAttributesCardLimits.JSON_PROPERTY_DAILY_WITHDRAWAL, + DepositLimitsAllOfAttributesCardLimits.JSON_PROPERTY_DAILY_DEPOSIT, + DepositLimitsAllOfAttributesCardLimits.JSON_PROPERTY_DAILY_PURCHASE, + DepositLimitsAllOfAttributesCardLimits.JSON_PROPERTY_DAILY_CARD_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class LimitsAttributesCardLimits { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributesCardLimits { public static final String JSON_PROPERTY_DAILY_WITHDRAWAL = "dailyWithdrawal"; private BigDecimal dailyWithdrawal; @@ -52,111 +53,107 @@ public class LimitsAttributesCardLimits { public static final String JSON_PROPERTY_DAILY_CARD_TRANSACTION = "dailyCardTransaction"; private BigDecimal dailyCardTransaction; - public LimitsAttributesCardLimits() { + public DepositLimitsAllOfAttributesCardLimits() { } - public LimitsAttributesCardLimits dailyWithdrawal(BigDecimal dailyWithdrawal) { + public DepositLimitsAllOfAttributesCardLimits dailyWithdrawal(BigDecimal dailyWithdrawal) { this.dailyWithdrawal = dailyWithdrawal; return this; } - /** + /** * Get dailyWithdrawal * @return dailyWithdrawal - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DAILY_WITHDRAWAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - + @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getDailyWithdrawal() { return dailyWithdrawal; } @JsonProperty(JSON_PROPERTY_DAILY_WITHDRAWAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDailyWithdrawal(BigDecimal dailyWithdrawal) { this.dailyWithdrawal = dailyWithdrawal; } - public LimitsAttributesCardLimits dailyDeposit(BigDecimal dailyDeposit) { + public DepositLimitsAllOfAttributesCardLimits dailyDeposit(BigDecimal dailyDeposit) { this.dailyDeposit = dailyDeposit; return this; } - /** + /** * Get dailyDeposit * @return dailyDeposit - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DAILY_DEPOSIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - + @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getDailyDeposit() { return dailyDeposit; } @JsonProperty(JSON_PROPERTY_DAILY_DEPOSIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDailyDeposit(BigDecimal dailyDeposit) { this.dailyDeposit = dailyDeposit; } - public LimitsAttributesCardLimits dailyPurchase(BigDecimal dailyPurchase) { + public DepositLimitsAllOfAttributesCardLimits dailyPurchase(BigDecimal dailyPurchase) { this.dailyPurchase = dailyPurchase; return this; } - /** + /** * Get dailyPurchase * @return dailyPurchase - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DAILY_PURCHASE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - + @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getDailyPurchase() { return dailyPurchase; } @JsonProperty(JSON_PROPERTY_DAILY_PURCHASE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDailyPurchase(BigDecimal dailyPurchase) { this.dailyPurchase = dailyPurchase; } - public LimitsAttributesCardLimits dailyCardTransaction(BigDecimal dailyCardTransaction) { + public DepositLimitsAllOfAttributesCardLimits dailyCardTransaction(BigDecimal dailyCardTransaction) { this.dailyCardTransaction = dailyCardTransaction; return this; } - /** + /** * Get dailyCardTransaction * @return dailyCardTransaction - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DAILY_CARD_TRANSACTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - + @JsonInclude(value = JsonInclude.Include.ALWAYS) public BigDecimal getDailyCardTransaction() { return dailyCardTransaction; } @JsonProperty(JSON_PROPERTY_DAILY_CARD_TRANSACTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDailyCardTransaction(BigDecimal dailyCardTransaction) { this.dailyCardTransaction = dailyCardTransaction; } /** - * Return true if this Limits_attributes_card_limits object is equal to o. + * Return true if this DepositLimits_allOf_attributes_card_limits object is equal to o. */ @Override public boolean equals(Object o) { @@ -166,11 +163,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - LimitsAttributesCardLimits limitsAttributesCardLimits = (LimitsAttributesCardLimits) o; - return Objects.equals(this.dailyWithdrawal, limitsAttributesCardLimits.dailyWithdrawal) && - Objects.equals(this.dailyDeposit, limitsAttributesCardLimits.dailyDeposit) && - Objects.equals(this.dailyPurchase, limitsAttributesCardLimits.dailyPurchase) && - Objects.equals(this.dailyCardTransaction, limitsAttributesCardLimits.dailyCardTransaction); + DepositLimitsAllOfAttributesCardLimits depositLimitsAllOfAttributesCardLimits = (DepositLimitsAllOfAttributesCardLimits) o; + return Objects.equals(this.dailyWithdrawal, depositLimitsAllOfAttributesCardLimits.dailyWithdrawal) && + Objects.equals(this.dailyDeposit, depositLimitsAllOfAttributesCardLimits.dailyDeposit) && + Objects.equals(this.dailyPurchase, depositLimitsAllOfAttributesCardLimits.dailyPurchase) && + Objects.equals(this.dailyCardTransaction, depositLimitsAllOfAttributesCardLimits.dailyCardTransaction); } @Override @@ -181,7 +178,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class LimitsAttributesCardLimits {\n"); + sb.append("class DepositLimitsAllOfAttributesCardLimits {\n"); sb.append(" dailyWithdrawal: ").append(toIndentedString(dailyWithdrawal)).append("\n"); sb.append(" dailyDeposit: ").append(toIndentedString(dailyDeposit)).append("\n"); sb.append(" dailyPurchase: ").append(toIndentedString(dailyPurchase)).append("\n"); @@ -235,22 +232,22 @@ public String toUrlQueryString(String prefix) { // add `dailyWithdrawal` to the URL query string if (getDailyWithdrawal() != null) { - joiner.add(String.format("%sdailyWithdrawal%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDailyWithdrawal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdailyWithdrawal%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyWithdrawal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dailyDeposit` to the URL query string if (getDailyDeposit() != null) { - joiner.add(String.format("%sdailyDeposit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDailyDeposit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdailyDeposit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyDeposit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dailyPurchase` to the URL query string if (getDailyPurchase() != null) { - joiner.add(String.format("%sdailyPurchase%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDailyPurchase()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdailyPurchase%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyPurchase()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dailyCardTransaction` to the URL query string if (getDailyCardTransaction() != null) { - joiner.add(String.format("%sdailyCardTransaction%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDailyCardTransaction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdailyCardTransaction%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyCardTransaction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCardTotalsDaily.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCardTotalsDaily.java new file mode 100644 index 00000000..763d2789 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCardTotalsDaily.java @@ -0,0 +1,256 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositLimitsAllOfAttributesCardTotalsDaily + */ +@JsonPropertyOrder({ + DepositLimitsAllOfAttributesCardTotalsDaily.JSON_PROPERTY_WITHDRAWALS, + DepositLimitsAllOfAttributesCardTotalsDaily.JSON_PROPERTY_DEPOSITS, + DepositLimitsAllOfAttributesCardTotalsDaily.JSON_PROPERTY_PURCHASES, + DepositLimitsAllOfAttributesCardTotalsDaily.JSON_PROPERTY_CARD_TRANSACTIONS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributesCardTotalsDaily { + public static final String JSON_PROPERTY_WITHDRAWALS = "withdrawals"; + private BigDecimal withdrawals; + + public static final String JSON_PROPERTY_DEPOSITS = "deposits"; + private BigDecimal deposits; + + public static final String JSON_PROPERTY_PURCHASES = "purchases"; + private BigDecimal purchases; + + public static final String JSON_PROPERTY_CARD_TRANSACTIONS = "cardTransactions"; + private BigDecimal cardTransactions; + + public DepositLimitsAllOfAttributesCardTotalsDaily() { + } + + public DepositLimitsAllOfAttributesCardTotalsDaily withdrawals(BigDecimal withdrawals) { + this.withdrawals = withdrawals; + return this; + } + + /** + * Get withdrawals + * @return withdrawals + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_WITHDRAWALS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getWithdrawals() { + return withdrawals; + } + + + @JsonProperty(JSON_PROPERTY_WITHDRAWALS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setWithdrawals(BigDecimal withdrawals) { + this.withdrawals = withdrawals; + } + + + public DepositLimitsAllOfAttributesCardTotalsDaily deposits(BigDecimal deposits) { + this.deposits = deposits; + return this; + } + + /** + * Get deposits + * @return deposits + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DEPOSITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDeposits() { + return deposits; + } + + + @JsonProperty(JSON_PROPERTY_DEPOSITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDeposits(BigDecimal deposits) { + this.deposits = deposits; + } + + + public DepositLimitsAllOfAttributesCardTotalsDaily purchases(BigDecimal purchases) { + this.purchases = purchases; + return this; + } + + /** + * Get purchases + * @return purchases + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PURCHASES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getPurchases() { + return purchases; + } + + + @JsonProperty(JSON_PROPERTY_PURCHASES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPurchases(BigDecimal purchases) { + this.purchases = purchases; + } + + + public DepositLimitsAllOfAttributesCardTotalsDaily cardTransactions(BigDecimal cardTransactions) { + this.cardTransactions = cardTransactions; + return this; + } + + /** + * Get cardTransactions + * @return cardTransactions + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CARD_TRANSACTIONS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getCardTransactions() { + return cardTransactions; + } + + + @JsonProperty(JSON_PROPERTY_CARD_TRANSACTIONS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCardTransactions(BigDecimal cardTransactions) { + this.cardTransactions = cardTransactions; + } + + + /** + * Return true if this DepositLimits_allOf_attributes_card_totalsDaily object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositLimitsAllOfAttributesCardTotalsDaily depositLimitsAllOfAttributesCardTotalsDaily = (DepositLimitsAllOfAttributesCardTotalsDaily) o; + return Objects.equals(this.withdrawals, depositLimitsAllOfAttributesCardTotalsDaily.withdrawals) && + Objects.equals(this.deposits, depositLimitsAllOfAttributesCardTotalsDaily.deposits) && + Objects.equals(this.purchases, depositLimitsAllOfAttributesCardTotalsDaily.purchases) && + Objects.equals(this.cardTransactions, depositLimitsAllOfAttributesCardTotalsDaily.cardTransactions); + } + + @Override + public int hashCode() { + return Objects.hash(withdrawals, deposits, purchases, cardTransactions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositLimitsAllOfAttributesCardTotalsDaily {\n"); + sb.append(" withdrawals: ").append(toIndentedString(withdrawals)).append("\n"); + sb.append(" deposits: ").append(toIndentedString(deposits)).append("\n"); + sb.append(" purchases: ").append(toIndentedString(purchases)).append("\n"); + sb.append(" cardTransactions: ").append(toIndentedString(cardTransactions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `withdrawals` to the URL query string + if (getWithdrawals() != null) { + joiner.add(String.format("%swithdrawals%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWithdrawals()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `deposits` to the URL query string + if (getDeposits() != null) { + joiner.add(String.format("%sdeposits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeposits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `purchases` to the URL query string + if (getPurchases() != null) { + joiner.add(String.format("%spurchases%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPurchases()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `cardTransactions` to the URL query string + if (getCardTransactions() != null) { + joiner.add(String.format("%scardTransactions%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardTransactions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCheckDeposit.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCheckDeposit.java new file mode 100644 index 00000000..51341cd0 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCheckDeposit.java @@ -0,0 +1,222 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import unit.java.sdk.model.DepositLimitsAllOfAttributesCheckDepositLimits; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositLimitsAllOfAttributesCheckDeposit + */ +@JsonPropertyOrder({ + DepositLimitsAllOfAttributesCheckDeposit.JSON_PROPERTY_LIMITS, + DepositLimitsAllOfAttributesCheckDeposit.JSON_PROPERTY_TOTALS_DAILY, + DepositLimitsAllOfAttributesCheckDeposit.JSON_PROPERTY_TOTALS_MONTHLY +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributesCheckDeposit { + public static final String JSON_PROPERTY_LIMITS = "limits"; + private DepositLimitsAllOfAttributesCheckDepositLimits limits; + + public static final String JSON_PROPERTY_TOTALS_DAILY = "totalsDaily"; + private BigDecimal totalsDaily; + + public static final String JSON_PROPERTY_TOTALS_MONTHLY = "totalsMonthly"; + private BigDecimal totalsMonthly; + + public DepositLimitsAllOfAttributesCheckDeposit() { + } + + public DepositLimitsAllOfAttributesCheckDeposit limits(DepositLimitsAllOfAttributesCheckDepositLimits limits) { + this.limits = limits; + return this; + } + + /** + * Get limits + * @return limits + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LIMITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesCheckDepositLimits getLimits() { + return limits; + } + + + @JsonProperty(JSON_PROPERTY_LIMITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLimits(DepositLimitsAllOfAttributesCheckDepositLimits limits) { + this.limits = limits; + } + + + public DepositLimitsAllOfAttributesCheckDeposit totalsDaily(BigDecimal totalsDaily) { + this.totalsDaily = totalsDaily; + return this; + } + + /** + * Get totalsDaily + * @return totalsDaily + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getTotalsDaily() { + return totalsDaily; + } + + + @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsDaily(BigDecimal totalsDaily) { + this.totalsDaily = totalsDaily; + } + + + public DepositLimitsAllOfAttributesCheckDeposit totalsMonthly(BigDecimal totalsMonthly) { + this.totalsMonthly = totalsMonthly; + return this; + } + + /** + * Get totalsMonthly + * @return totalsMonthly + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTALS_MONTHLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getTotalsMonthly() { + return totalsMonthly; + } + + + @JsonProperty(JSON_PROPERTY_TOTALS_MONTHLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsMonthly(BigDecimal totalsMonthly) { + this.totalsMonthly = totalsMonthly; + } + + + /** + * Return true if this DepositLimits_allOf_attributes_checkDeposit object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositLimitsAllOfAttributesCheckDeposit depositLimitsAllOfAttributesCheckDeposit = (DepositLimitsAllOfAttributesCheckDeposit) o; + return Objects.equals(this.limits, depositLimitsAllOfAttributesCheckDeposit.limits) && + Objects.equals(this.totalsDaily, depositLimitsAllOfAttributesCheckDeposit.totalsDaily) && + Objects.equals(this.totalsMonthly, depositLimitsAllOfAttributesCheckDeposit.totalsMonthly); + } + + @Override + public int hashCode() { + return Objects.hash(limits, totalsDaily, totalsMonthly); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositLimitsAllOfAttributesCheckDeposit {\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" totalsDaily: ").append(toIndentedString(totalsDaily)).append("\n"); + sb.append(" totalsMonthly: ").append(toIndentedString(totalsMonthly)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `limits` to the URL query string + if (getLimits() != null) { + joiner.add(getLimits().toUrlQueryString(prefix + "limits" + suffix)); + } + + // add `totalsDaily` to the URL query string + if (getTotalsDaily() != null) { + joiner.add(String.format("%stotalsDaily%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalsDaily()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `totalsMonthly` to the URL query string + if (getTotalsMonthly() != null) { + joiner.add(String.format("%stotalsMonthly%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalsMonthly()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCheckDepositLimits.java b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCheckDepositLimits.java new file mode 100644 index 00000000..5d02c056 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositLimitsAllOfAttributesCheckDepositLimits.java @@ -0,0 +1,256 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositLimitsAllOfAttributesCheckDepositLimits + */ +@JsonPropertyOrder({ + DepositLimitsAllOfAttributesCheckDepositLimits.JSON_PROPERTY_DAILY, + DepositLimitsAllOfAttributesCheckDepositLimits.JSON_PROPERTY_MONTHLY, + DepositLimitsAllOfAttributesCheckDepositLimits.JSON_PROPERTY_DAILY_SOFT, + DepositLimitsAllOfAttributesCheckDepositLimits.JSON_PROPERTY_MONTHLY_SOFT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositLimitsAllOfAttributesCheckDepositLimits { + public static final String JSON_PROPERTY_DAILY = "daily"; + private BigDecimal daily; + + public static final String JSON_PROPERTY_MONTHLY = "monthly"; + private BigDecimal monthly; + + public static final String JSON_PROPERTY_DAILY_SOFT = "dailySoft"; + private BigDecimal dailySoft; + + public static final String JSON_PROPERTY_MONTHLY_SOFT = "monthlySoft"; + private BigDecimal monthlySoft; + + public DepositLimitsAllOfAttributesCheckDepositLimits() { + } + + public DepositLimitsAllOfAttributesCheckDepositLimits daily(BigDecimal daily) { + this.daily = daily; + return this; + } + + /** + * Get daily + * @return daily + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDaily() { + return daily; + } + + + @JsonProperty(JSON_PROPERTY_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDaily(BigDecimal daily) { + this.daily = daily; + } + + + public DepositLimitsAllOfAttributesCheckDepositLimits monthly(BigDecimal monthly) { + this.monthly = monthly; + return this; + } + + /** + * Get monthly + * @return monthly + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTHLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getMonthly() { + return monthly; + } + + + @JsonProperty(JSON_PROPERTY_MONTHLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonthly(BigDecimal monthly) { + this.monthly = monthly; + } + + + public DepositLimitsAllOfAttributesCheckDepositLimits dailySoft(BigDecimal dailySoft) { + this.dailySoft = dailySoft; + return this; + } + + /** + * Get dailySoft + * @return dailySoft + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DAILY_SOFT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDailySoft() { + return dailySoft; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_SOFT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDailySoft(BigDecimal dailySoft) { + this.dailySoft = dailySoft; + } + + + public DepositLimitsAllOfAttributesCheckDepositLimits monthlySoft(BigDecimal monthlySoft) { + this.monthlySoft = monthlySoft; + return this; + } + + /** + * Get monthlySoft + * @return monthlySoft + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTHLY_SOFT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getMonthlySoft() { + return monthlySoft; + } + + + @JsonProperty(JSON_PROPERTY_MONTHLY_SOFT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMonthlySoft(BigDecimal monthlySoft) { + this.monthlySoft = monthlySoft; + } + + + /** + * Return true if this DepositLimits_allOf_attributes_checkDeposit_limits object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositLimitsAllOfAttributesCheckDepositLimits depositLimitsAllOfAttributesCheckDepositLimits = (DepositLimitsAllOfAttributesCheckDepositLimits) o; + return Objects.equals(this.daily, depositLimitsAllOfAttributesCheckDepositLimits.daily) && + Objects.equals(this.monthly, depositLimitsAllOfAttributesCheckDepositLimits.monthly) && + Objects.equals(this.dailySoft, depositLimitsAllOfAttributesCheckDepositLimits.dailySoft) && + Objects.equals(this.monthlySoft, depositLimitsAllOfAttributesCheckDepositLimits.monthlySoft); + } + + @Override + public int hashCode() { + return Objects.hash(daily, monthly, dailySoft, monthlySoft); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositLimitsAllOfAttributesCheckDepositLimits {\n"); + sb.append(" daily: ").append(toIndentedString(daily)).append("\n"); + sb.append(" monthly: ").append(toIndentedString(monthly)).append("\n"); + sb.append(" dailySoft: ").append(toIndentedString(dailySoft)).append("\n"); + sb.append(" monthlySoft: ").append(toIndentedString(monthlySoft)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `daily` to the URL query string + if (getDaily() != null) { + joiner.add(String.format("%sdaily%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDaily()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `monthly` to the URL query string + if (getMonthly() != null) { + joiner.add(String.format("%smonthly%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonthly()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `dailySoft` to the URL query string + if (getDailySoft() != null) { + joiner.add(String.format("%sdailySoft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailySoft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `monthlySoft` to the URL query string + if (getMonthlySoft() != null) { + joiner.add(String.format("%smonthlySoft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonthlySoft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/SchemasLimitsData.java b/src/main/java/unit/java/sdk/model/DepositProduct.java similarity index 80% rename from src/main/java/unit/java/sdk/model/SchemasLimitsData.java rename to src/main/java/unit/java/sdk/model/DepositProduct.java index 97cf324c..f9b14bb2 100644 --- a/src/main/java/unit/java/sdk/model/SchemasLimitsData.java +++ b/src/main/java/unit/java/sdk/model/DepositProduct.java @@ -25,24 +25,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.SchemasLimitsDataAttributes; +import unit.java.sdk.model.DepositProductAttributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * SchemasLimitsData + * DepositProduct */ @JsonPropertyOrder({ - SchemasLimitsData.JSON_PROPERTY_TYPE, - SchemasLimitsData.JSON_PROPERTY_ATTRIBUTES + DepositProduct.JSON_PROPERTY_TYPE, + DepositProduct.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class SchemasLimitsData { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositProduct { /** * Gets or Sets type */ public enum TypeEnum { - LIMITS("limits"); + ACCOUNT_DEPOSIT_PRODUCT("accountDepositProduct"); private String value; @@ -72,27 +73,26 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.LIMITS; + private TypeEnum type; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SchemasLimitsDataAttributes attributes; + private DepositProductAttributes attributes; - public SchemasLimitsData() { + public DepositProduct() { } - public SchemasLimitsData type(TypeEnum type) { + public DepositProduct type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -105,33 +105,32 @@ public void setType(TypeEnum type) { } - public SchemasLimitsData attributes(SchemasLimitsDataAttributes attributes) { + public DepositProduct attributes(DepositProductAttributes attributes) { this.attributes = attributes; return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public SchemasLimitsDataAttributes getAttributes() { + public DepositProductAttributes getAttributes() { return attributes; } @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAttributes(SchemasLimitsDataAttributes attributes) { + public void setAttributes(DepositProductAttributes attributes) { this.attributes = attributes; } /** - * Return true if this schemas_Limits_data object is equal to o. + * Return true if this DepositProduct object is equal to o. */ @Override public boolean equals(Object o) { @@ -141,9 +140,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasLimitsData schemasLimitsData = (SchemasLimitsData) o; - return Objects.equals(this.type, schemasLimitsData.type) && - Objects.equals(this.attributes, schemasLimitsData.attributes); + DepositProduct depositProduct = (DepositProduct) o; + return Objects.equals(this.type, depositProduct.type) && + Objects.equals(this.attributes, depositProduct.attributes); } @Override @@ -154,7 +153,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SchemasLimitsData {\n"); + sb.append("class DepositProduct {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append("}"); @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/DepositProductAttributes.java b/src/main/java/unit/java/sdk/model/DepositProductAttributes.java new file mode 100644 index 00000000..6a491fc3 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/DepositProductAttributes.java @@ -0,0 +1,150 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * DepositProductAttributes + */ +@JsonPropertyOrder({ + DepositProductAttributes.JSON_PROPERTY_NAME +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class DepositProductAttributes { + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public DepositProductAttributes() { + } + + public DepositProductAttributes name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + /** + * Return true if this DepositProduct_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DepositProductAttributes depositProductAttributes = (DepositProductAttributes) o; + return Objects.equals(this.name, depositProductAttributes.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DepositProductAttributes {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `name` to the URL query string + if (getName() != null) { + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/DeviceFingerprint.java b/src/main/java/unit/java/sdk/model/DeviceFingerprint.java index 940d4252..b6ba904a 100644 --- a/src/main/java/unit/java/sdk/model/DeviceFingerprint.java +++ b/src/main/java/unit/java/sdk/model/DeviceFingerprint.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DeviceFingerprint */ @@ -35,7 +36,7 @@ DeviceFingerprint.JSON_PROPERTY_PROVIDER, DeviceFingerprint.JSON_PROPERTY_VALUE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DeviceFingerprint { /** * Gets or Sets provider @@ -84,14 +85,13 @@ public DeviceFingerprint provider(ProviderEnum provider) { return this; } - /** + /** * Get provider * @return provider - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PROVIDER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ProviderEnum getProvider() { return provider; } @@ -109,14 +109,13 @@ public DeviceFingerprint value(String value) { return this; } - /** + /** * Get value * @return value - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getValue() { return value; } @@ -205,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `provider` to the URL query string if (getProvider() != null) { - joiner.add(String.format("%sprovider%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getProvider()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sprovider%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getProvider()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `value` to the URL query string if (getValue() != null) { - joiner.add(String.format("%svalue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%svalue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getValue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/DishonoredAchTransaction.java b/src/main/java/unit/java/sdk/model/DishonoredAchTransaction.java index 4f3f2422..444ffe80 100644 --- a/src/main/java/unit/java/sdk/model/DishonoredAchTransaction.java +++ b/src/main/java/unit/java/sdk/model/DishonoredAchTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * DishonoredAchTransaction */ @@ -42,7 +43,7 @@ DishonoredAchTransaction.JSON_PROPERTY_ATTRIBUTES, DishonoredAchTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public DishonoredAchTransaction attributes(DishonoredAchTransactionAllOfAttribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DishonoredAchTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public DishonoredAchTransaction relationships(DishonoredAchTransactionRelationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DishonoredAchTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/DishonoredAchTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/DishonoredAchTransactionAllOfAttributes.java index a2a3195f..b70de95c 100644 --- a/src/main/java/unit/java/sdk/model/DishonoredAchTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/DishonoredAchTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DishonoredAchTransactionAllOfAttributes */ @@ -49,7 +50,7 @@ DishonoredAchTransactionAllOfAttributes.JSON_PROPERTY_SEC_CODE, DishonoredAchTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DishonoredAchTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -133,14 +134,13 @@ public DishonoredAchTransactionAllOfAttributes createdAt(OffsetDateTime createdA return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -158,14 +158,13 @@ public DishonoredAchTransactionAllOfAttributes direction(DirectionEnum direction return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -183,14 +182,13 @@ public DishonoredAchTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -208,14 +206,13 @@ public DishonoredAchTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -233,14 +230,13 @@ public DishonoredAchTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -258,14 +254,13 @@ public DishonoredAchTransactionAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -283,14 +278,13 @@ public DishonoredAchTransactionAllOfAttributes companyName(String companyName) { return this; } - /** + /** * Get companyName * @return companyName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCompanyName() { return companyName; } @@ -308,14 +302,13 @@ public DishonoredAchTransactionAllOfAttributes counterpartyName(String counterpa return this; } - /** + /** * Get counterpartyName * @return counterpartyName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCounterpartyName() { return counterpartyName; } @@ -333,14 +326,13 @@ public DishonoredAchTransactionAllOfAttributes counterpartyRoutingNumber(String return this; } - /** + /** * Get counterpartyRoutingNumber * @return counterpartyRoutingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCounterpartyRoutingNumber() { return counterpartyRoutingNumber; } @@ -358,14 +350,13 @@ public DishonoredAchTransactionAllOfAttributes traceNumber(String traceNumber) { return this; } - /** + /** * Get traceNumber * @return traceNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTraceNumber() { return traceNumber; } @@ -383,14 +374,13 @@ public DishonoredAchTransactionAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReason() { return reason; } @@ -408,14 +398,13 @@ public DishonoredAchTransactionAllOfAttributes secCode(String secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecCode() { return secCode; } @@ -441,14 +430,13 @@ public DishonoredAchTransactionAllOfAttributes putTagsItem(String key, String ta return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -559,62 +547,62 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `companyName` to the URL query string if (getCompanyName() != null) { - joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyName` to the URL query string if (getCounterpartyName() != null) { - joiner.add(String.format("%scounterpartyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyRoutingNumber` to the URL query string if (getCounterpartyRoutingNumber() != null) { - joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `traceNumber` to the URL query string if (getTraceNumber() != null) { - joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -622,7 +610,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/DishonoredAchTransactionRelationships.java b/src/main/java/unit/java/sdk/model/DishonoredAchTransactionRelationships.java index 21dcc559..a79ba605 100644 --- a/src/main/java/unit/java/sdk/model/DishonoredAchTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/DishonoredAchTransactionRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DishonoredAchTransactionRelationships */ @@ -39,7 +40,7 @@ DishonoredAchTransactionRelationships.JSON_PROPERTY_CUSTOMER, DishonoredAchTransactionRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DishonoredAchTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public DishonoredAchTransactionRelationships account(AccountRelationship account return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public DishonoredAchTransactionRelationships customer(CustomerRelationship custo return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public DishonoredAchTransactionRelationships customers(CustomersRelationship cus return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/main/java/unit/java/sdk/model/Dispute.java b/src/main/java/unit/java/sdk/model/Dispute.java index b5aff9fc..cb8d1b55 100644 --- a/src/main/java/unit/java/sdk/model/Dispute.java +++ b/src/main/java/unit/java/sdk/model/Dispute.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Dispute */ @@ -39,7 +40,7 @@ Dispute.JSON_PROPERTY_ATTRIBUTES, Dispute.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Dispute { /** * Gets or Sets type @@ -94,14 +95,13 @@ public Dispute type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public Dispute id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -144,14 +143,13 @@ public Dispute attributes(DisputeAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DisputeAttributes getAttributes() { return attributes; } @@ -169,14 +167,13 @@ public Dispute relationships(DisputeRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DisputeRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/DisputeAttributes.java b/src/main/java/unit/java/sdk/model/DisputeAttributes.java index 4cc1b996..f8d32981 100644 --- a/src/main/java/unit/java/sdk/model/DisputeAttributes.java +++ b/src/main/java/unit/java/sdk/model/DisputeAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DisputeAttributes */ @@ -46,13 +47,13 @@ DisputeAttributes.JSON_PROPERTY_CREATED_AT, DisputeAttributes.JSON_PROPERTY_DECISION_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DisputeAttributes { /** * Gets or Sets source */ public enum SourceEnum { - DEBITCARD("DebitCard"), + DEBIT_CARD("DebitCard"), ACH("ACH"); @@ -118,14 +119,13 @@ public DisputeAttributes source(SourceEnum source) { return this; } - /** + /** * Get source * @return source - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SourceEnum getSource() { return source; } @@ -143,14 +143,13 @@ public DisputeAttributes externalId(String externalId) { return this; } - /** + /** * Get externalId * @return externalId - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EXTERNAL_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getExternalId() { return externalId; } @@ -168,14 +167,13 @@ public DisputeAttributes link(String link) { return this; } - /** + /** * Get link * @return link - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LINK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLink() { return link; } @@ -193,14 +191,13 @@ public DisputeAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -218,14 +215,13 @@ public DisputeAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -243,14 +239,13 @@ public DisputeAttributes status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { return status; } @@ -276,14 +271,13 @@ public DisputeAttributes addStatusHistoryItem(DisputeAttributesStatusHistoryInne return this; } - /** + /** * Get statusHistory * @return statusHistory - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS_HISTORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatusHistory() { return statusHistory; } @@ -301,14 +295,13 @@ public DisputeAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -326,14 +319,13 @@ public DisputeAttributes decisionReason(String decisionReason) { return this; } - /** + /** * Get decisionReason * @return decisionReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDecisionReason() { return decisionReason; } @@ -436,32 +428,32 @@ public String toUrlQueryString(String prefix) { // add `source` to the URL query string if (getSource() != null) { - joiner.add(String.format("%ssource%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSource()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssource%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSource()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `externalId` to the URL query string if (getExternalId() != null) { - joiner.add(String.format("%sexternalId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExternalId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexternalId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExternalId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `link` to the URL query string if (getLink() != null) { - joiner.add(String.format("%slink%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLink()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slink%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLink()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `statusHistory` to the URL query string @@ -476,12 +468,12 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `decisionReason` to the URL query string if (getDecisionReason() != null) { - joiner.add(String.format("%sdecisionReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/DisputeAttributesStatusHistoryInner.java b/src/main/java/unit/java/sdk/model/DisputeAttributesStatusHistoryInner.java index bdfe3c00..bb853a71 100644 --- a/src/main/java/unit/java/sdk/model/DisputeAttributesStatusHistoryInner.java +++ b/src/main/java/unit/java/sdk/model/DisputeAttributesStatusHistoryInner.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DisputeAttributesStatusHistoryInner */ @@ -36,7 +37,7 @@ DisputeAttributesStatusHistoryInner.JSON_PROPERTY_TYPE, DisputeAttributesStatusHistoryInner.JSON_PROPERTY_UPDATED_AT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DisputeAttributesStatusHistoryInner { public static final String JSON_PROPERTY_TYPE = "type"; private String type; @@ -52,14 +53,13 @@ public DisputeAttributesStatusHistoryInner type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -77,14 +77,13 @@ public DisputeAttributesStatusHistoryInner updatedAt(OffsetDateTime updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/DisputeRelationships.java b/src/main/java/unit/java/sdk/model/DisputeRelationships.java index 699b47fa..ce8b0fbf 100644 --- a/src/main/java/unit/java/sdk/model/DisputeRelationships.java +++ b/src/main/java/unit/java/sdk/model/DisputeRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DisputeRelationships */ @@ -39,7 +40,7 @@ DisputeRelationships.JSON_PROPERTY_ACCOUNT, DisputeRelationships.JSON_PROPERTY_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DisputeRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -58,14 +59,13 @@ public DisputeRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } @@ -83,14 +83,13 @@ public DisputeRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -108,14 +107,13 @@ public DisputeRelationships transaction(TransactionRelationship transaction) { return this; } - /** + /** * Get transaction * @return transaction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRANSACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TransactionRelationship getTransaction() { return transaction; } diff --git a/src/main/java/unit/java/sdk/model/DisputeTransaction.java b/src/main/java/unit/java/sdk/model/DisputeTransaction.java index b60dda2b..40cd4703 100644 --- a/src/main/java/unit/java/sdk/model/DisputeTransaction.java +++ b/src/main/java/unit/java/sdk/model/DisputeTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * DisputeTransaction */ @@ -42,7 +43,7 @@ DisputeTransaction.JSON_PROPERTY_ATTRIBUTES, DisputeTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public DisputeTransaction attributes(DisputeTransactionAllOfAttributes attribute return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DisputeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public DisputeTransaction relationships(DisputeTransactionRelationships relation return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DisputeTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/DisputeTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/DisputeTransactionAllOfAttributes.java index 943e8bc4..aab77424 100644 --- a/src/main/java/unit/java/sdk/model/DisputeTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/DisputeTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DisputeTransactionAllOfAttributes */ @@ -44,7 +45,7 @@ DisputeTransactionAllOfAttributes.JSON_PROPERTY_DISPUTE_ID, DisputeTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DisputeTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -113,14 +114,13 @@ public DisputeTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -138,14 +138,13 @@ public DisputeTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -163,14 +162,13 @@ public DisputeTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -188,14 +186,13 @@ public DisputeTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -213,14 +210,13 @@ public DisputeTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -238,14 +234,13 @@ public DisputeTransactionAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getReason() { return reason; } @@ -263,14 +258,13 @@ public DisputeTransactionAllOfAttributes disputeId(String disputeId) { return this; } - /** + /** * Get disputeId * @return disputeId - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DISPUTE_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDisputeId() { return disputeId; } @@ -296,14 +290,13 @@ public DisputeTransactionAllOfAttributes putTagsItem(String key, String tagsItem return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -404,37 +397,37 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `disputeId` to the URL query string if (getDisputeId() != null) { - joiner.add(String.format("%sdisputeId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDisputeId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdisputeId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDisputeId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -442,7 +435,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/DisputeTransactionRelationships.java b/src/main/java/unit/java/sdk/model/DisputeTransactionRelationships.java index 21d74de1..3906a568 100644 --- a/src/main/java/unit/java/sdk/model/DisputeTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/DisputeTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DisputeTransactionRelationships */ @@ -41,7 +42,7 @@ DisputeTransactionRelationships.JSON_PROPERTY_CUSTOMERS, DisputeTransactionRelationships.JSON_PROPERTY_DISPUTED_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DisputeTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public DisputeTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public DisputeTransactionRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public DisputeTransactionRelationships customers(CustomersRelationship customers return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public DisputeTransactionRelationships disputedTransaction(DisputedTransactionRe return this; } - /** + /** * Get disputedTransaction * @return disputedTransaction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DISPUTED_TRANSACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DisputedTransactionRelationship getDisputedTransaction() { return disputedTransaction; } diff --git a/src/main/java/unit/java/sdk/model/DisputedTransactionRelationship.java b/src/main/java/unit/java/sdk/model/DisputedTransactionRelationship.java index 3bbc93ee..2413bf87 100644 --- a/src/main/java/unit/java/sdk/model/DisputedTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/DisputedTransactionRelationship.java @@ -25,45 +25,45 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DisputedTransactionRelationship */ @JsonPropertyOrder({ DisputedTransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DisputedTransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public DisputedTransactionRelationship() { } - public DisputedTransactionRelationship data(TransactionRelationshipData data) { + public DisputedTransactionRelationship data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/DocumentsRelationship.java b/src/main/java/unit/java/sdk/model/DocumentsRelationship.java index b5c5d1ed..74e1cc62 100644 --- a/src/main/java/unit/java/sdk/model/DocumentsRelationship.java +++ b/src/main/java/unit/java/sdk/model/DocumentsRelationship.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DocumentsRelationship */ @JsonPropertyOrder({ DocumentsRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DocumentsRelationship { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public DocumentsRelationship addDataItem(DocumentsRelationshipDataInner dataItem return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/DocumentsRelationshipDataInner.java b/src/main/java/unit/java/sdk/model/DocumentsRelationshipDataInner.java index 2a42288d..10e0da58 100644 --- a/src/main/java/unit/java/sdk/model/DocumentsRelationshipDataInner.java +++ b/src/main/java/unit/java/sdk/model/DocumentsRelationshipDataInner.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * DocumentsRelationshipDataInner */ @@ -35,7 +36,7 @@ DocumentsRelationshipDataInner.JSON_PROPERTY_TYPE, DocumentsRelationshipDataInner.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class DocumentsRelationshipDataInner { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "document"; @@ -51,14 +52,13 @@ public DocumentsRelationshipDataInner type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public DocumentsRelationshipDataInner id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/EntityType.java b/src/main/java/unit/java/sdk/model/EntityType.java index 32f5ca59..0abb692a 100644 --- a/src/main/java/unit/java/sdk/model/EntityType.java +++ b/src/main/java/unit/java/sdk/model/EntityType.java @@ -36,11 +36,11 @@ public enum EntityType { PARTNERSHIP("Partnership"), - PUBLICLYTRADEDCORPORATION("PubliclyTradedCorporation"), + PUBLICLY_TRADED_CORPORATION("PubliclyTradedCorporation"), - PRIVATELYHELDCORPORATION("PrivatelyHeldCorporation"), + PRIVATELY_HELD_CORPORATION("PrivatelyHeldCorporation"), - NOTFORPROFITORGANIZATION("NotForProfitOrganization"); + NOT_FOR_PROFIT_ORGANIZATION("NotForProfitOrganization"); private String value; diff --git a/src/main/java/unit/java/sdk/model/EvaluationParams.java b/src/main/java/unit/java/sdk/model/EvaluationParams.java index c6d58293..3056db94 100644 --- a/src/main/java/unit/java/sdk/model/EvaluationParams.java +++ b/src/main/java/unit/java/sdk/model/EvaluationParams.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * EvaluationParams */ @@ -35,7 +36,7 @@ EvaluationParams.JSON_PROPERTY_USE_SELFIE_VERIFICATION, EvaluationParams.JSON_PROPERTY_REQUIRE_ID_VERIFICATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class EvaluationParams { /** * Gets or Sets useSelfieVerification @@ -43,7 +44,7 @@ public class EvaluationParams { public enum UseSelfieVerificationEnum { NEVER("Never"), - REPLACEIDENTIFICATION("ReplaceIdentification"), + REPLACE_IDENTIFICATION("ReplaceIdentification"), ALWAYS("Always"); @@ -88,14 +89,13 @@ public EvaluationParams useSelfieVerification(UseSelfieVerificationEnum useSelfi return this; } - /** + /** * Get useSelfieVerification * @return useSelfieVerification - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_USE_SELFIE_VERIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UseSelfieVerificationEnum getUseSelfieVerification() { return useSelfieVerification; } @@ -113,14 +113,13 @@ public EvaluationParams requireIdVerification(Boolean requireIdVerification) { return this; } - /** + /** * Get requireIdVerification * @return requireIdVerification - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUIRE_ID_VERIFICATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getRequireIdVerification() { return requireIdVerification; } @@ -209,12 +208,12 @@ public String toUrlQueryString(String prefix) { // add `useSelfieVerification` to the URL query string if (getUseSelfieVerification() != null) { - joiner.add(String.format("%suseSelfieVerification%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUseSelfieVerification()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suseSelfieVerification%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUseSelfieVerification()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `requireIdVerification` to the URL query string if (getRequireIdVerification() != null) { - joiner.add(String.format("%srequireIdVerification%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRequireIdVerification()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srequireIdVerification%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRequireIdVerification()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Event.java b/src/main/java/unit/java/sdk/model/Event.java index 4dd10ea8..2b6ca0ad 100644 --- a/src/main/java/unit/java/sdk/model/Event.java +++ b/src/main/java/unit/java/sdk/model/Event.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Event */ @@ -37,7 +38,7 @@ Event.JSON_PROPERTY_ATTRIBUTES, Event.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Event { public static final String JSON_PROPERTY_TYPE = "type"; private String type; @@ -59,14 +60,13 @@ public Event type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -84,14 +84,13 @@ public Event id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -109,14 +108,13 @@ public Event attributes(Object attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getAttributes() { return attributes; } @@ -134,14 +132,13 @@ public Event relationships(Object relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getRelationships() { return relationships; } @@ -234,22 +231,22 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string if (getAttributes() != null) { - joiner.add(String.format("%sattributes%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAttributes()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sattributes%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAttributes()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `relationships` to the URL query string if (getRelationships() != null) { - joiner.add(String.format("%srelationships%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelationships()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srelationships%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRelationships()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Fee.java b/src/main/java/unit/java/sdk/model/Fee.java index 3e912d6f..7d95b19d 100644 --- a/src/main/java/unit/java/sdk/model/Fee.java +++ b/src/main/java/unit/java/sdk/model/Fee.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Fee */ @@ -39,7 +40,7 @@ Fee.JSON_PROPERTY_ATTRIBUTES, Fee.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Fee { /** * Gets or Sets type @@ -94,14 +95,13 @@ public Fee type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public Fee id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -144,14 +143,13 @@ public Fee attributes(FeeAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeAttributes getAttributes() { return attributes; } @@ -169,14 +167,13 @@ public Fee relationships(FeeRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FeeRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/FeeAttributes.java b/src/main/java/unit/java/sdk/model/FeeAttributes.java index 3a1c317a..25fa5f2e 100644 --- a/src/main/java/unit/java/sdk/model/FeeAttributes.java +++ b/src/main/java/unit/java/sdk/model/FeeAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FeeAttributes */ @@ -38,7 +39,7 @@ FeeAttributes.JSON_PROPERTY_DESCRIPTION, FeeAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FeeAttributes { public static final String JSON_PROPERTY_AMOUNT = "amount"; private Integer amount; @@ -57,15 +58,14 @@ public FeeAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -83,14 +83,13 @@ public FeeAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -116,14 +115,13 @@ public FeeAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -214,12 +212,12 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -227,7 +225,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/FeeRelationships.java b/src/main/java/unit/java/sdk/model/FeeRelationships.java index 41dd945d..ad1cffb5 100644 --- a/src/main/java/unit/java/sdk/model/FeeRelationships.java +++ b/src/main/java/unit/java/sdk/model/FeeRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FeeRelationships */ @JsonPropertyOrder({ FeeRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FeeRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public FeeRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/FeeReversal.java b/src/main/java/unit/java/sdk/model/FeeReversal.java new file mode 100644 index 00000000..c6f9bb20 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/FeeReversal.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.FeeReversalAttributes; +import unit.java.sdk.model.FeeReversalRelationships; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * FeeReversal + */ +@JsonPropertyOrder({ + FeeReversal.JSON_PROPERTY_TYPE, + FeeReversal.JSON_PROPERTY_ATTRIBUTES, + FeeReversal.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class FeeReversal { + /** + * Gets or Sets type + */ + public enum TypeEnum { + FEE_REVERSAL("feeReversal"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.FEE_REVERSAL; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private FeeReversalAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private FeeReversalRelationships relationships; + + public FeeReversal() { + } + + public FeeReversal type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public FeeReversal attributes(FeeReversalAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FeeReversalAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAttributes(FeeReversalAttributes attributes) { + this.attributes = attributes; + } + + + public FeeReversal relationships(FeeReversalRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FeeReversalRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRelationships(FeeReversalRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this FeeReversal object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeeReversal feeReversal = (FeeReversal) o; + return Objects.equals(this.type, feeReversal.type) && + Objects.equals(this.attributes, feeReversal.attributes) && + Objects.equals(this.relationships, feeReversal.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeeReversal {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/FeeReversalAttributes.java b/src/main/java/unit/java/sdk/model/FeeReversalAttributes.java new file mode 100644 index 00000000..682f2ec7 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/FeeReversalAttributes.java @@ -0,0 +1,199 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * FeeReversalAttributes + */ +@JsonPropertyOrder({ + FeeReversalAttributes.JSON_PROPERTY_DESCRIPTION, + FeeReversalAttributes.JSON_PROPERTY_TAGS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class FeeReversalAttributes { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + public FeeReversalAttributes() { + } + + public FeeReversalAttributes description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDescription(String description) { + this.description = description; + } + + + public FeeReversalAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public FeeReversalAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { + this.tags = tags; + } + + + /** + * Return true if this FeeReversal_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeeReversalAttributes feeReversalAttributes = (FeeReversalAttributes) o; + return Objects.equals(this.description, feeReversalAttributes.description) && + Objects.equals(this.tags, feeReversalAttributes.tags); + } + + @Override + public int hashCode() { + return Objects.hash(description, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeeReversalAttributes {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `description` to the URL query string + if (getDescription() != null) { + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/FeeReversalRelationships.java b/src/main/java/unit/java/sdk/model/FeeReversalRelationships.java new file mode 100644 index 00000000..5e3f80c0 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/FeeReversalRelationships.java @@ -0,0 +1,187 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.TransactionRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * FeeReversalRelationships + */ +@JsonPropertyOrder({ + FeeReversalRelationships.JSON_PROPERTY_TRANSACTION, + FeeReversalRelationships.JSON_PROPERTY_ACCOUNT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class FeeReversalRelationships { + public static final String JSON_PROPERTY_TRANSACTION = "transaction"; + private TransactionRelationship transaction; + + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public FeeReversalRelationships() { + } + + public FeeReversalRelationships transaction(TransactionRelationship transaction) { + this.transaction = transaction; + return this; + } + + /** + * Get transaction + * @return transaction + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRANSACTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TransactionRelationship getTransaction() { + return transaction; + } + + + @JsonProperty(JSON_PROPERTY_TRANSACTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTransaction(TransactionRelationship transaction) { + this.transaction = transaction; + } + + + public FeeReversalRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + /** + * Return true if this FeeReversalRelationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeeReversalRelationships feeReversalRelationships = (FeeReversalRelationships) o; + return Objects.equals(this.transaction, feeReversalRelationships.transaction) && + Objects.equals(this.account, feeReversalRelationships.account); + } + + @Override + public int hashCode() { + return Objects.hash(transaction, account); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeeReversalRelationships {\n"); + sb.append(" transaction: ").append(toIndentedString(transaction)).append("\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `transaction` to the URL query string + if (getTransaction() != null) { + joiner.add(getTransaction().toUrlQueryString(prefix + "transaction" + suffix)); + } + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/FeeReversalTransaction.java b/src/main/java/unit/java/sdk/model/FeeReversalTransaction.java index 9963d691..5c1b3f90 100644 --- a/src/main/java/unit/java/sdk/model/FeeReversalTransaction.java +++ b/src/main/java/unit/java/sdk/model/FeeReversalTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * FeeReversalTransaction */ @@ -42,7 +43,7 @@ FeeReversalTransaction.JSON_PROPERTY_ATTRIBUTES, FeeReversalTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public FeeReversalTransaction attributes(FeeTransactionAllOfAttributes attribute return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public FeeReversalTransaction relationships(FeeReversalTransactionRelationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeReversalTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/FeeReversalTransactionRelationships.java b/src/main/java/unit/java/sdk/model/FeeReversalTransactionRelationships.java index d7e802d8..7ca18d98 100644 --- a/src/main/java/unit/java/sdk/model/FeeReversalTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/FeeReversalTransactionRelationships.java @@ -28,10 +28,11 @@ import unit.java.sdk.model.AccountRelationship; import unit.java.sdk.model.CustomerRelationship; import unit.java.sdk.model.CustomersRelationship; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FeeReversalTransactionRelationships */ @@ -41,7 +42,7 @@ FeeReversalTransactionRelationships.JSON_PROPERTY_CUSTOMERS, FeeReversalTransactionRelationships.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FeeReversalTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -53,7 +54,7 @@ public class FeeReversalTransactionRelationships { private CustomersRelationship customers; public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public FeeReversalTransactionRelationships() { } @@ -63,14 +64,13 @@ public FeeReversalTransactionRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public FeeReversalTransactionRelationships customer(CustomerRelationship custome return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public FeeReversalTransactionRelationships customers(CustomersRelationship custo return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -133,27 +131,26 @@ public void setCustomers(CustomersRelationship customers) { } - public FeeReversalTransactionRelationships data(TransactionRelationshipData data) { + public FeeReversalTransactionRelationships data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/FeeTransaction.java b/src/main/java/unit/java/sdk/model/FeeTransaction.java index f3c63d88..828750e3 100644 --- a/src/main/java/unit/java/sdk/model/FeeTransaction.java +++ b/src/main/java/unit/java/sdk/model/FeeTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * FeeTransaction */ @@ -42,7 +43,7 @@ FeeTransaction.JSON_PROPERTY_ATTRIBUTES, FeeTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public FeeTransaction attributes(FeeTransactionAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public FeeTransaction relationships(FeeTransactionRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/FeeTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/FeeTransactionAllOfAttributes.java index bde6005b..3280508f 100644 --- a/src/main/java/unit/java/sdk/model/FeeTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/FeeTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FeeTransactionAllOfAttributes */ @@ -42,7 +43,7 @@ FeeTransactionAllOfAttributes.JSON_PROPERTY_SUMMARY, FeeTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FeeTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -105,14 +106,13 @@ public FeeTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -130,14 +130,13 @@ public FeeTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -155,14 +154,13 @@ public FeeTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -180,14 +178,13 @@ public FeeTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -205,14 +202,13 @@ public FeeTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -238,14 +234,13 @@ public FeeTransactionAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -342,27 +337,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -370,7 +365,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/FeeTransactionRelationships.java b/src/main/java/unit/java/sdk/model/FeeTransactionRelationships.java index fa46dee5..4fa1ac5b 100644 --- a/src/main/java/unit/java/sdk/model/FeeTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/FeeTransactionRelationships.java @@ -28,10 +28,11 @@ import unit.java.sdk.model.AccountRelationship; import unit.java.sdk.model.CustomerRelationship; import unit.java.sdk.model.CustomersRelationship; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FeeTransactionRelationships */ @@ -41,7 +42,7 @@ FeeTransactionRelationships.JSON_PROPERTY_CUSTOMERS, FeeTransactionRelationships.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FeeTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -53,7 +54,7 @@ public class FeeTransactionRelationships { private CustomersRelationship customers; public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public FeeTransactionRelationships() { } @@ -63,14 +64,13 @@ public FeeTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public FeeTransactionRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public FeeTransactionRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -133,27 +131,26 @@ public void setCustomers(CustomersRelationship customers) { } - public FeeTransactionRelationships data(TransactionRelationshipData data) { + public FeeTransactionRelationships data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/FreezeAccountRequest.java b/src/main/java/unit/java/sdk/model/FreezeAccountRequest.java index 32ac7175..c7a50b9b 100644 --- a/src/main/java/unit/java/sdk/model/FreezeAccountRequest.java +++ b/src/main/java/unit/java/sdk/model/FreezeAccountRequest.java @@ -25,50 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; +import unit.java.sdk.model.FreezeAccountRequestData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FreezeAccountRequest */ @JsonPropertyOrder({ FreezeAccountRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FreezeAccountRequest { public static final String JSON_PROPERTY_DATA = "data"; - private FreezeAccountRequest data; + private FreezeAccountRequestData data; public FreezeAccountRequest() { } - public FreezeAccountRequest data(FreezeAccountRequest data) { + public FreezeAccountRequest data(FreezeAccountRequestData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public FreezeAccountRequest getData() { + public FreezeAccountRequestData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(FreezeAccountRequest data) { + public void setData(FreezeAccountRequestData data) { this.data = data; } /** - * Return true if this Freeze_Account_Request object is equal to o. + * Return true if this FreezeAccountRequest object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/unit/java/sdk/model/FreezeAccountRequestData.java b/src/main/java/unit/java/sdk/model/FreezeAccountRequestData.java new file mode 100644 index 00000000..1a7fe199 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/FreezeAccountRequestData.java @@ -0,0 +1,223 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.FreezeAccountRequestDataAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * FreezeAccountRequestData + */ +@JsonPropertyOrder({ + FreezeAccountRequestData.JSON_PROPERTY_TYPE, + FreezeAccountRequestData.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class FreezeAccountRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + CREDIT_ACCOUNT_FREEZE("creditAccountFreeze"), + + ACCOUNT_FREEZE("accountFreeze"), + + WALLET_ACCOUNT_FREEZE("walletAccountFreeze"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private FreezeAccountRequestDataAttributes attributes; + + public FreezeAccountRequestData() { + } + + public FreezeAccountRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public FreezeAccountRequestData attributes(FreezeAccountRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FreezeAccountRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAttributes(FreezeAccountRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + /** + * Return true if this FreezeAccountRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FreezeAccountRequestData freezeAccountRequestData = (FreezeAccountRequestData) o; + return Objects.equals(this.type, freezeAccountRequestData.type) && + Objects.equals(this.attributes, freezeAccountRequestData.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FreezeAccountRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/FreezeAccountRequestAttributes.java b/src/main/java/unit/java/sdk/model/FreezeAccountRequestDataAttributes.java similarity index 82% rename from src/main/java/unit/java/sdk/model/FreezeAccountRequestAttributes.java rename to src/main/java/unit/java/sdk/model/FreezeAccountRequestDataAttributes.java index e700c418..55644b11 100644 --- a/src/main/java/unit/java/sdk/model/FreezeAccountRequestAttributes.java +++ b/src/main/java/unit/java/sdk/model/FreezeAccountRequestDataAttributes.java @@ -32,15 +32,16 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * FreezeAccountRequestAttributes + * FreezeAccountRequestDataAttributes */ @JsonPropertyOrder({ - FreezeAccountRequestAttributes.JSON_PROPERTY_REASON, - FreezeAccountRequestAttributes.JSON_PROPERTY_REASON_TEXT + FreezeAccountRequestDataAttributes.JSON_PROPERTY_REASON, + FreezeAccountRequestDataAttributes.JSON_PROPERTY_REASON_TEXT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class FreezeAccountRequestAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class FreezeAccountRequestDataAttributes { /** * Gets or Sets reason */ @@ -82,22 +83,21 @@ public static ReasonEnum fromValue(String value) { public static final String JSON_PROPERTY_REASON_TEXT = "reasonText"; private JsonNullable reasonText = JsonNullable.undefined(); - public FreezeAccountRequestAttributes() { + public FreezeAccountRequestDataAttributes() { } - public FreezeAccountRequestAttributes reason(ReasonEnum reason) { + public FreezeAccountRequestDataAttributes reason(ReasonEnum reason) { this.reason = reason; return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReasonEnum getReason() { return reason; } @@ -110,18 +110,17 @@ public void setReason(ReasonEnum reason) { } - public FreezeAccountRequestAttributes reasonText(String reasonText) { + public FreezeAccountRequestDataAttributes reasonText(String reasonText) { this.reasonText = JsonNullable.of(reasonText); return this; } - /** + /** * Get reasonText * @return reasonText - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getReasonText() { return reasonText.orElse(null); } @@ -144,7 +143,7 @@ public void setReasonText(String reasonText) { /** - * Return true if this FreezeAccountRequest_attributes object is equal to o. + * Return true if this FreezeAccountRequest_data_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -154,9 +153,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - FreezeAccountRequestAttributes freezeAccountRequestAttributes = (FreezeAccountRequestAttributes) o; - return Objects.equals(this.reason, freezeAccountRequestAttributes.reason) && - equalsNullable(this.reasonText, freezeAccountRequestAttributes.reasonText); + FreezeAccountRequestDataAttributes freezeAccountRequestDataAttributes = (FreezeAccountRequestDataAttributes) o; + return Objects.equals(this.reason, freezeAccountRequestDataAttributes.reason) && + equalsNullable(this.reasonText, freezeAccountRequestDataAttributes.reasonText); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -178,7 +177,7 @@ private static int hashCodeNullable(JsonNullable a) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class FreezeAccountRequestAttributes {\n"); + sb.append("class FreezeAccountRequestDataAttributes {\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" reasonText: ").append(toIndentedString(reasonText)).append("\n"); sb.append("}"); @@ -230,12 +229,12 @@ public String toUrlQueryString(String prefix) { // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reasonText` to the URL query string if (getReasonText() != null) { - joiner.add(String.format("%sreasonText%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReasonText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreasonText%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReasonText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/FullName.java b/src/main/java/unit/java/sdk/model/FullName.java index 8122f7e7..c58a0c4f 100644 --- a/src/main/java/unit/java/sdk/model/FullName.java +++ b/src/main/java/unit/java/sdk/model/FullName.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FullName */ @@ -35,7 +36,7 @@ FullName.JSON_PROPERTY_FIRST, FullName.JSON_PROPERTY_LAST }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FullName { public static final String JSON_PROPERTY_FIRST = "first"; private String first; @@ -51,14 +52,13 @@ public FullName first(String first) { return this; } - /** + /** * Get first * @return first - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FIRST) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getFirst() { return first; } @@ -76,14 +76,13 @@ public FullName last(String last) { return this; } - /** + /** * Get last * @return last - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LAST) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLast() { return last; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `first` to the URL query string if (getFirst() != null) { - joiner.add(String.format("%sfirst%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFirst()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfirst%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFirst()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `last` to the URL query string if (getLast() != null) { - joiner.add(String.format("%slast%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLast()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slast%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLast()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/FundingAccountRelationship.java b/src/main/java/unit/java/sdk/model/FundingAccountRelationship.java index a8dad6ef..d5df559c 100644 --- a/src/main/java/unit/java/sdk/model/FundingAccountRelationship.java +++ b/src/main/java/unit/java/sdk/model/FundingAccountRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FundingAccountRelationship */ @JsonPropertyOrder({ FundingAccountRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FundingAccountRelationship { public static final String JSON_PROPERTY_DATA = "data"; private FundingAccountRelationshipData data; @@ -48,14 +49,13 @@ public FundingAccountRelationship data(FundingAccountRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FundingAccountRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/FundingAccountRelationshipData.java b/src/main/java/unit/java/sdk/model/FundingAccountRelationshipData.java index fb198db4..aa76c907 100644 --- a/src/main/java/unit/java/sdk/model/FundingAccountRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/FundingAccountRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * FundingAccountRelationshipData */ @@ -35,7 +36,7 @@ FundingAccountRelationshipData.JSON_PROPERTY_TYPE, FundingAccountRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class FundingAccountRelationshipData { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "account"; @@ -51,14 +52,13 @@ public FundingAccountRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public FundingAccountRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitUpdateCardResponse.java b/src/main/java/unit/java/sdk/model/GenerateBarcodeRequest.java similarity index 76% rename from src/main/java/unit/java/sdk/model/UnitUpdateCardResponse.java rename to src/main/java/unit/java/sdk/model/GenerateBarcodeRequest.java index e8e0bac4..86ec7c14 100644 --- a/src/main/java/unit/java/sdk/model/UnitUpdateCardResponse.java +++ b/src/main/java/unit/java/sdk/model/GenerateBarcodeRequest.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.Card; +import unit.java.sdk.model.GenerateBarcodeRequestData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitUpdateCardResponse + * GenerateBarcodeRequest */ @JsonPropertyOrder({ - UnitUpdateCardResponse.JSON_PROPERTY_DATA + GenerateBarcodeRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitUpdateCardResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GenerateBarcodeRequest { public static final String JSON_PROPERTY_DATA = "data"; - private Card data; + private GenerateBarcodeRequestData data; - public UnitUpdateCardResponse() { + public GenerateBarcodeRequest() { } - public UnitUpdateCardResponse data(Card data) { + public GenerateBarcodeRequest data(GenerateBarcodeRequestData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Card getData() { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public GenerateBarcodeRequestData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Card data) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(GenerateBarcodeRequestData data) { this.data = data; } /** - * Return true if this Unit_Update_Card_Response object is equal to o. + * Return true if this GenerateBarcodeRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitUpdateCardResponse unitUpdateCardResponse = (UnitUpdateCardResponse) o; - return Objects.equals(this.data, unitUpdateCardResponse.data); + GenerateBarcodeRequest generateBarcodeRequest = (GenerateBarcodeRequest) o; + return Objects.equals(this.data, generateBarcodeRequest.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitUpdateCardResponse {\n"); + sb.append("class GenerateBarcodeRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestData.java b/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestData.java new file mode 100644 index 00000000..9d57d5ac --- /dev/null +++ b/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestData.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.GenerateBarcodeRequestDataAttributes; +import unit.java.sdk.model.GenerateBarcodeRequestRelationships; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * GenerateBarcodeRequestData + */ +@JsonPropertyOrder({ + GenerateBarcodeRequestData.JSON_PROPERTY_TYPE, + GenerateBarcodeRequestData.JSON_PROPERTY_ATTRIBUTES, + GenerateBarcodeRequestData.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GenerateBarcodeRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + CASH_DEPOSIT_BARCODE("cashDepositBarcode"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.CASH_DEPOSIT_BARCODE; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private GenerateBarcodeRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private GenerateBarcodeRequestRelationships relationships; + + public GenerateBarcodeRequestData() { + } + + public GenerateBarcodeRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public GenerateBarcodeRequestData attributes(GenerateBarcodeRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public GenerateBarcodeRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(GenerateBarcodeRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + public GenerateBarcodeRequestData relationships(GenerateBarcodeRequestRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public GenerateBarcodeRequestRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(GenerateBarcodeRequestRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this GenerateBarcodeRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenerateBarcodeRequestData generateBarcodeRequestData = (GenerateBarcodeRequestData) o; + return Objects.equals(this.type, generateBarcodeRequestData.type) && + Objects.equals(this.attributes, generateBarcodeRequestData.attributes) && + Objects.equals(this.relationships, generateBarcodeRequestData.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenerateBarcodeRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestDataAttributes.java new file mode 100644 index 00000000..dc16ad7e --- /dev/null +++ b/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestDataAttributes.java @@ -0,0 +1,150 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * GenerateBarcodeRequestDataAttributes + */ +@JsonPropertyOrder({ + GenerateBarcodeRequestDataAttributes.JSON_PROPERTY_STORE_ID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GenerateBarcodeRequestDataAttributes { + public static final String JSON_PROPERTY_STORE_ID = "storeId"; + private String storeId; + + public GenerateBarcodeRequestDataAttributes() { + } + + public GenerateBarcodeRequestDataAttributes storeId(String storeId) { + this.storeId = storeId; + return this; + } + + /** + * Get storeId + * @return storeId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STORE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStoreId() { + return storeId; + } + + + @JsonProperty(JSON_PROPERTY_STORE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStoreId(String storeId) { + this.storeId = storeId; + } + + + /** + * Return true if this GenerateBarcodeRequest_data_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenerateBarcodeRequestDataAttributes generateBarcodeRequestDataAttributes = (GenerateBarcodeRequestDataAttributes) o; + return Objects.equals(this.storeId, generateBarcodeRequestDataAttributes.storeId); + } + + @Override + public int hashCode() { + return Objects.hash(storeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenerateBarcodeRequestDataAttributes {\n"); + sb.append(" storeId: ").append(toIndentedString(storeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `storeId` to the URL query string + if (getStoreId() != null) { + joiner.add(String.format("%sstoreId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStoreId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestRelationships.java b/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestRelationships.java new file mode 100644 index 00000000..50383af8 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/GenerateBarcodeRequestRelationships.java @@ -0,0 +1,187 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.CustomerRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * GenerateBarcodeRequestRelationships + */ +@JsonPropertyOrder({ + GenerateBarcodeRequestRelationships.JSON_PROPERTY_ACCOUNT, + GenerateBarcodeRequestRelationships.JSON_PROPERTY_CUSTOMER +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GenerateBarcodeRequestRelationships { + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public static final String JSON_PROPERTY_CUSTOMER = "customer"; + private CustomerRelationship customer; + + public GenerateBarcodeRequestRelationships() { + } + + public GenerateBarcodeRequestRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + public GenerateBarcodeRequestRelationships customer(CustomerRelationship customer) { + this.customer = customer; + return this; + } + + /** + * Get customer + * @return customer + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CustomerRelationship getCustomer() { + return customer; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCustomer(CustomerRelationship customer) { + this.customer = customer; + } + + + /** + * Return true if this GenerateBarcodeRequestRelationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GenerateBarcodeRequestRelationships generateBarcodeRequestRelationships = (GenerateBarcodeRequestRelationships) o; + return Objects.equals(this.account, generateBarcodeRequestRelationships.account) && + Objects.equals(this.customer, generateBarcodeRequestRelationships.customer); + } + + @Override + public int hashCode() { + return Objects.hash(account, customer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GenerateBarcodeRequestRelationships {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append(" customer: ").append(toIndentedString(customer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + // add `customer` to the URL query string + if (getCustomer() != null) { + joiner.add(getCustomer().toUrlQueryString(prefix + "customer" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/GetAccountBalanceHistoryFilterParameter.java b/src/main/java/unit/java/sdk/model/GetAccountBalanceHistoryFilterParameter.java new file mode 100644 index 00000000..93c51d61 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/GetAccountBalanceHistoryFilterParameter.java @@ -0,0 +1,256 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.LocalDate; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * GetAccountBalanceHistoryFilterParameter + */ +@JsonPropertyOrder({ + GetAccountBalanceHistoryFilterParameter.JSON_PROPERTY_CUSTOMER_ID, + GetAccountBalanceHistoryFilterParameter.JSON_PROPERTY_ACCOUNT_ID, + GetAccountBalanceHistoryFilterParameter.JSON_PROPERTY_SINCE, + GetAccountBalanceHistoryFilterParameter.JSON_PROPERTY_UNTIL +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GetAccountBalanceHistoryFilterParameter { + public static final String JSON_PROPERTY_CUSTOMER_ID = "customerId"; + private String customerId; + + public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; + private String accountId; + + public static final String JSON_PROPERTY_SINCE = "since"; + private LocalDate since; + + public static final String JSON_PROPERTY_UNTIL = "until"; + private LocalDate until; + + public GetAccountBalanceHistoryFilterParameter() { + } + + public GetAccountBalanceHistoryFilterParameter customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Get customerId + * @return customerId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCustomerId() { + return customerId; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + + public GetAccountBalanceHistoryFilterParameter accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Get accountId + * @return accountId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAccountId() { + return accountId; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + + public GetAccountBalanceHistoryFilterParameter since(LocalDate since) { + this.since = since; + return this; + } + + /** + * Get since + * @return since + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SINCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public LocalDate getSince() { + return since; + } + + + @JsonProperty(JSON_PROPERTY_SINCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSince(LocalDate since) { + this.since = since; + } + + + public GetAccountBalanceHistoryFilterParameter until(LocalDate until) { + this.until = until; + return this; + } + + /** + * Get until + * @return until + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UNTIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public LocalDate getUntil() { + return until; + } + + + @JsonProperty(JSON_PROPERTY_UNTIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUntil(LocalDate until) { + this.until = until; + } + + + /** + * Return true if this getAccountBalanceHistory_filter_parameter object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetAccountBalanceHistoryFilterParameter getAccountBalanceHistoryFilterParameter = (GetAccountBalanceHistoryFilterParameter) o; + return Objects.equals(this.customerId, getAccountBalanceHistoryFilterParameter.customerId) && + Objects.equals(this.accountId, getAccountBalanceHistoryFilterParameter.accountId) && + Objects.equals(this.since, getAccountBalanceHistoryFilterParameter.since) && + Objects.equals(this.until, getAccountBalanceHistoryFilterParameter.until); + } + + @Override + public int hashCode() { + return Objects.hash(customerId, accountId, since, until); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetAccountBalanceHistoryFilterParameter {\n"); + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" since: ").append(toIndentedString(since)).append("\n"); + sb.append(" until: ").append(toIndentedString(until)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `customerId` to the URL query string + if (getCustomerId() != null) { + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `accountId` to the URL query string + if (getAccountId() != null) { + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `since` to the URL query string + if (getSince() != null) { + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `until` to the URL query string + if (getUntil() != null) { + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/GetAccountsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetAccountsListFilterParameter.java index a7bf76ee..3597a1a3 100644 --- a/src/main/java/unit/java/sdk/model/GetAccountsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetAccountsListFilterParameter.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetAccountsListFilterParameter */ @@ -44,7 +45,7 @@ GetAccountsListFilterParameter.JSON_PROPERTY_TO_BALANCE, GetAccountsListFilterParameter.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetAccountsListFilterParameter { public static final String JSON_PROPERTY_CUSTOMER_ID = "customerId"; private String customerId; @@ -144,14 +145,13 @@ public GetAccountsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -177,14 +177,13 @@ public GetAccountsListFilterParameter addStatusItem(StatusEnum statusItem) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -210,14 +209,13 @@ public GetAccountsListFilterParameter addTypeItem(TypeEnum typeItem) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getType() { return type; } @@ -235,14 +233,13 @@ public GetAccountsListFilterParameter fromBalance(BigDecimal fromBalance) { return this; } - /** + /** * Get fromBalance * @return fromBalance - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getFromBalance() { return fromBalance; } @@ -260,14 +257,13 @@ public GetAccountsListFilterParameter toBalance(BigDecimal toBalance) { return this; } - /** + /** * Get toBalance * @return toBalance - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getToBalance() { return toBalance; } @@ -293,14 +289,13 @@ public GetAccountsListFilterParameter putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -397,7 +392,7 @@ public String toUrlQueryString(String prefix) { // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -405,7 +400,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -414,18 +409,18 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getType().size(); i++) { joiner.add(String.format("%stype%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `fromBalance` to the URL query string if (getFromBalance() != null) { - joiner.add(String.format("%sfromBalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromBalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toBalance` to the URL query string if (getToBalance() != null) { - joiner.add(String.format("%stoBalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoBalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -433,7 +428,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetApplicationFormsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetApplicationFormsListFilterParameter.java index c2bd2d79..029ad5a2 100644 --- a/src/main/java/unit/java/sdk/model/GetApplicationFormsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetApplicationFormsListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetApplicationFormsListFilterParameter */ @@ -41,7 +42,7 @@ GetApplicationFormsListFilterParameter.JSON_PROPERTY_EMAIL, GetApplicationFormsListFilterParameter.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetApplicationFormsListFilterParameter { public static final String JSON_PROPERTY_QUERY = "query"; private String query; @@ -98,14 +99,13 @@ public GetApplicationFormsListFilterParameter query(String query) { return this; } - /** + /** * Get query * @return query - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUERY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getQuery() { return query; } @@ -131,14 +131,13 @@ public GetApplicationFormsListFilterParameter addStatusItem(StatusEnum statusIte return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -156,14 +155,13 @@ public GetApplicationFormsListFilterParameter email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -189,14 +187,13 @@ public GetApplicationFormsListFilterParameter putTagsItem(String key, String tag return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -289,7 +286,7 @@ public String toUrlQueryString(String prefix) { // add `query` to the URL query string if (getQuery() != null) { - joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -297,13 +294,13 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -311,7 +308,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetApplicationsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetApplicationsListFilterParameter.java index 73e049ea..af3675b8 100644 --- a/src/main/java/unit/java/sdk/model/GetApplicationsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetApplicationsListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetApplicationsListFilterParameter */ @@ -41,7 +42,7 @@ GetApplicationsListFilterParameter.JSON_PROPERTY_EMAIL, GetApplicationsListFilterParameter.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetApplicationsListFilterParameter { public static final String JSON_PROPERTY_QUERY = "query"; private String query; @@ -50,9 +51,9 @@ public class GetApplicationsListFilterParameter { * Gets or Sets status */ public enum StatusEnum { - AWAITINGDOCUMENTS("AwaitingDocuments"), + AWAITING_DOCUMENTS("AwaitingDocuments"), - PENDINGREVIEW("PendingReview"), + PENDING_REVIEW("PendingReview"), PENDING("Pending"), @@ -106,14 +107,13 @@ public GetApplicationsListFilterParameter query(String query) { return this; } - /** + /** * Get query * @return query - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUERY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getQuery() { return query; } @@ -139,14 +139,13 @@ public GetApplicationsListFilterParameter addStatusItem(StatusEnum statusItem) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -164,14 +163,13 @@ public GetApplicationsListFilterParameter email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -197,14 +195,13 @@ public GetApplicationsListFilterParameter putTagsItem(String key, String tagsIte return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -297,7 +294,7 @@ public String toUrlQueryString(String prefix) { // add `query` to the URL query string if (getQuery() != null) { - joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -305,13 +302,13 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -319,7 +316,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetAtmLocationsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetAtmLocationsListFilterParameter.java index b1f2cfbc..5b18f35c 100644 --- a/src/main/java/unit/java/sdk/model/GetAtmLocationsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetAtmLocationsListFilterParameter.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetAtmLocationsListFilterParameter */ @@ -37,7 +38,7 @@ GetAtmLocationsListFilterParameter.JSON_PROPERTY_POSTAL_CODE, GetAtmLocationsListFilterParameter.JSON_PROPERTY_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetAtmLocationsListFilterParameter { public static final String JSON_PROPERTY_COORDINATES = "coordinates"; private Object coordinates; @@ -59,14 +60,13 @@ public GetAtmLocationsListFilterParameter coordinates(Object coordinates) { return this; } - /** + /** * Get coordinates * @return coordinates - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COORDINATES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getCoordinates() { return coordinates; } @@ -84,14 +84,13 @@ public GetAtmLocationsListFilterParameter searchRadius(Integer searchRadius) { return this; } - /** + /** * Get searchRadius * @return searchRadius - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEARCH_RADIUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getSearchRadius() { return searchRadius; } @@ -109,14 +108,13 @@ public GetAtmLocationsListFilterParameter postalCode(String postalCode) { return this; } - /** + /** * Get postalCode * @return postalCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_POSTAL_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPostalCode() { return postalCode; } @@ -134,14 +132,13 @@ public GetAtmLocationsListFilterParameter address(Object address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getAddress() { return address; } @@ -234,22 +231,22 @@ public String toUrlQueryString(String prefix) { // add `coordinates` to the URL query string if (getCoordinates() != null) { - joiner.add(String.format("%scoordinates%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCoordinates()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scoordinates%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCoordinates()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `searchRadius` to the URL query string if (getSearchRadius() != null) { - joiner.add(String.format("%ssearchRadius%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSearchRadius()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssearchRadius%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSearchRadius()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `postalCode` to the URL query string if (getPostalCode() != null) { - joiner.add(String.format("%spostalCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPostalCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spostalCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPostalCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string if (getAddress() != null) { - joiner.add(String.format("%saddress%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddress%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddress()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetAuthorizationRequestsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetAuthorizationRequestsListFilterParameter.java index 40b9356a..f1819e6b 100644 --- a/src/main/java/unit/java/sdk/model/GetAuthorizationRequestsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetAuthorizationRequestsListFilterParameter.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetAuthorizationRequestsListFilterParameter */ @@ -40,7 +41,7 @@ GetAuthorizationRequestsListFilterParameter.JSON_PROPERTY_FROM_AMOUNT, GetAuthorizationRequestsListFilterParameter.JSON_PROPERTY_TO_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetAuthorizationRequestsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -65,14 +66,13 @@ public GetAuthorizationRequestsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -90,14 +90,13 @@ public GetAuthorizationRequestsListFilterParameter customerId(String customerId) return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -123,14 +122,13 @@ public GetAuthorizationRequestsListFilterParameter addMerchantCategoryCodeItem(S return this; } - /** + /** * Get merchantCategoryCode * @return merchantCategoryCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MERCHANT_CATEGORY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getMerchantCategoryCode() { return merchantCategoryCode; } @@ -148,14 +146,13 @@ public GetAuthorizationRequestsListFilterParameter fromAmount(Integer fromAmount return this; } - /** + /** * Get fromAmount * @return fromAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getFromAmount() { return fromAmount; } @@ -173,14 +170,13 @@ public GetAuthorizationRequestsListFilterParameter toAmount(Integer toAmount) { return this; } - /** + /** * Get toAmount * @return toAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getToAmount() { return toAmount; } @@ -275,12 +271,12 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `merchantCategoryCode` to the URL query string @@ -288,18 +284,18 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getMerchantCategoryCode().size(); i++) { joiner.add(String.format("%smerchantCategoryCode%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getMerchantCategoryCode().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getMerchantCategoryCode().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `fromAmount` to the URL query string if (getFromAmount() != null) { - joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toAmount` to the URL query string if (getToAmount() != null) { - joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetAuthorizationsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetAuthorizationsListFilterParameter.java index e7ffe3fb..aa10aa46 100644 --- a/src/main/java/unit/java/sdk/model/GetAuthorizationsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetAuthorizationsListFilterParameter.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetAuthorizationsListFilterParameter */ @@ -46,7 +47,7 @@ GetAuthorizationsListFilterParameter.JSON_PROPERTY_TO_AMOUNT, GetAuthorizationsListFilterParameter.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetAuthorizationsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -128,14 +129,13 @@ public GetAuthorizationsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -153,14 +153,13 @@ public GetAuthorizationsListFilterParameter accountType(String accountType) { return this; } - /** + /** * Get accountType * @return accountType - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountType() { return accountType; } @@ -178,14 +177,13 @@ public GetAuthorizationsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -203,14 +201,13 @@ public GetAuthorizationsListFilterParameter cardId(String cardId) { return this; } - /** + /** * Get cardId * @return cardId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardId() { return cardId; } @@ -228,14 +225,13 @@ public GetAuthorizationsListFilterParameter includeNonAuthorized(Boolean include return this; } - /** + /** * Get includeNonAuthorized * @return includeNonAuthorized - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDE_NON_AUTHORIZED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIncludeNonAuthorized() { return includeNonAuthorized; } @@ -261,14 +257,13 @@ public GetAuthorizationsListFilterParameter addMerchantCategoryCodeItem(String m return this; } - /** + /** * Get merchantCategoryCode * @return merchantCategoryCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MERCHANT_CATEGORY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getMerchantCategoryCode() { return merchantCategoryCode; } @@ -286,14 +281,13 @@ public GetAuthorizationsListFilterParameter since(String since) { return this; } - /** + /** * Get since * @return since - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSince() { return since; } @@ -311,14 +305,13 @@ public GetAuthorizationsListFilterParameter until(String until) { return this; } - /** + /** * Get until * @return until - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUntil() { return until; } @@ -336,14 +329,13 @@ public GetAuthorizationsListFilterParameter fromAmount(Integer fromAmount) { return this; } - /** + /** * Get fromAmount * @return fromAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getFromAmount() { return fromAmount; } @@ -361,14 +353,13 @@ public GetAuthorizationsListFilterParameter toAmount(Integer toAmount) { return this; } - /** + /** * Get toAmount * @return toAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getToAmount() { return toAmount; } @@ -394,14 +385,13 @@ public GetAuthorizationsListFilterParameter addStatusItem(StatusEnum statusItem) return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -508,27 +498,27 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountType` to the URL query string if (getAccountType() != null) { - joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardId` to the URL query string if (getCardId() != null) { - joiner.add(String.format("%scardId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `includeNonAuthorized` to the URL query string if (getIncludeNonAuthorized() != null) { - joiner.add(String.format("%sincludeNonAuthorized%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIncludeNonAuthorized()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sincludeNonAuthorized%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIncludeNonAuthorized()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `merchantCategoryCode` to the URL query string @@ -536,28 +526,28 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getMerchantCategoryCode().size(); i++) { joiner.add(String.format("%smerchantCategoryCode%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getMerchantCategoryCode().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getMerchantCategoryCode().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `since` to the URL query string if (getSince() != null) { - joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `until` to the URL query string if (getUntil() != null) { - joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fromAmount` to the URL query string if (getFromAmount() != null) { - joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toAmount` to the URL query string if (getToAmount() != null) { - joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -565,7 +555,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetCardsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetCardsListFilterParameter.java index d8045c59..2575b3b9 100644 --- a/src/main/java/unit/java/sdk/model/GetCardsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetCardsListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetCardsListFilterParameter */ @@ -41,7 +42,7 @@ GetCardsListFilterParameter.JSON_PROPERTY_CUSTOMER_ID, GetCardsListFilterParameter.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetCardsListFilterParameter { /** * Gets or Sets status @@ -57,9 +58,9 @@ public enum StatusEnum { FROZEN("Frozen"), - CLOSEDBYCUSTOMER("ClosedByCustomer"), + CLOSED_BY_CUSTOMER("ClosedByCustomer"), - SUSPECTEDFRAUD("SuspectedFraud"); + SUSPECTED_FRAUD("SuspectedFraud"); private String value; @@ -116,14 +117,13 @@ public GetCardsListFilterParameter addStatusItem(StatusEnum statusItem) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -141,14 +141,13 @@ public GetCardsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -166,14 +165,13 @@ public GetCardsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -199,14 +197,13 @@ public GetCardsListFilterParameter putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -302,18 +299,18 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -321,7 +318,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetCashDepositStoreLocationsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetCashDepositStoreLocationsListFilterParameter.java new file mode 100644 index 00000000..a665d614 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/GetCashDepositStoreLocationsListFilterParameter.java @@ -0,0 +1,256 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.Coordinates; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * GetCashDepositStoreLocationsListFilterParameter + */ +@JsonPropertyOrder({ + GetCashDepositStoreLocationsListFilterParameter.JSON_PROPERTY_POSTAL_CODE, + GetCashDepositStoreLocationsListFilterParameter.JSON_PROPERTY_COORDINATES, + GetCashDepositStoreLocationsListFilterParameter.JSON_PROPERTY_SERVICE_TYPE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GetCashDepositStoreLocationsListFilterParameter { + public static final String JSON_PROPERTY_POSTAL_CODE = "postalCode"; + private String postalCode; + + public static final String JSON_PROPERTY_COORDINATES = "coordinates"; + private Coordinates coordinates; + + /** + * Gets or Sets serviceType + */ + public enum ServiceTypeEnum { + SWIPE("Swipe"), + + BARCODE("Barcode"); + + private String value; + + ServiceTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ServiceTypeEnum fromValue(String value) { + for (ServiceTypeEnum b : ServiceTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_SERVICE_TYPE = "serviceType"; + private ServiceTypeEnum serviceType; + + public GetCashDepositStoreLocationsListFilterParameter() { + } + + public GetCashDepositStoreLocationsListFilterParameter postalCode(String postalCode) { + this.postalCode = postalCode; + return this; + } + + /** + * Get postalCode + * @return postalCode + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_POSTAL_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPostalCode() { + return postalCode; + } + + + @JsonProperty(JSON_PROPERTY_POSTAL_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPostalCode(String postalCode) { + this.postalCode = postalCode; + } + + + public GetCashDepositStoreLocationsListFilterParameter coordinates(Coordinates coordinates) { + this.coordinates = coordinates; + return this; + } + + /** + * Get coordinates + * @return coordinates + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_COORDINATES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Coordinates getCoordinates() { + return coordinates; + } + + + @JsonProperty(JSON_PROPERTY_COORDINATES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCoordinates(Coordinates coordinates) { + this.coordinates = coordinates; + } + + + public GetCashDepositStoreLocationsListFilterParameter serviceType(ServiceTypeEnum serviceType) { + this.serviceType = serviceType; + return this; + } + + /** + * Get serviceType + * @return serviceType + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SERVICE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ServiceTypeEnum getServiceType() { + return serviceType; + } + + + @JsonProperty(JSON_PROPERTY_SERVICE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setServiceType(ServiceTypeEnum serviceType) { + this.serviceType = serviceType; + } + + + /** + * Return true if this getCashDepositStoreLocationsList_filter_parameter object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCashDepositStoreLocationsListFilterParameter getCashDepositStoreLocationsListFilterParameter = (GetCashDepositStoreLocationsListFilterParameter) o; + return Objects.equals(this.postalCode, getCashDepositStoreLocationsListFilterParameter.postalCode) && + Objects.equals(this.coordinates, getCashDepositStoreLocationsListFilterParameter.coordinates) && + Objects.equals(this.serviceType, getCashDepositStoreLocationsListFilterParameter.serviceType); + } + + @Override + public int hashCode() { + return Objects.hash(postalCode, coordinates, serviceType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCashDepositStoreLocationsListFilterParameter {\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" coordinates: ").append(toIndentedString(coordinates)).append("\n"); + sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `postalCode` to the URL query string + if (getPostalCode() != null) { + joiner.add(String.format("%spostalCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPostalCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `coordinates` to the URL query string + if (getCoordinates() != null) { + joiner.add(getCoordinates().toUrlQueryString(prefix + "coordinates" + suffix)); + } + + // add `serviceType` to the URL query string + if (getServiceType() != null) { + joiner.add(String.format("%sserviceType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getServiceType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/GetCheckDepositsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetCheckDepositsListFilterParameter.java index 8b801169..883498bb 100644 --- a/src/main/java/unit/java/sdk/model/GetCheckDepositsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetCheckDepositsListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetCheckDepositsListFilterParameter */ @@ -41,7 +42,7 @@ GetCheckDepositsListFilterParameter.JSON_PROPERTY_TAGS, GetCheckDepositsListFilterParameter.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetCheckDepositsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -56,15 +57,15 @@ public class GetCheckDepositsListFilterParameter { * Gets or Sets status */ public enum StatusEnum { - AWAITINGIMAGES("AwaitingImages"), + AWAITING_IMAGES("AwaitingImages"), - AWAITINGFRONTIMAGE("AwaitingFrontImage"), + AWAITING_FRONT_IMAGE("AwaitingFrontImage"), - AWAITINGBACKIMAGE("AwaitingBackImage"), + AWAITING_BACK_IMAGE("AwaitingBackImage"), PENDING("Pending"), - PENDINGREVIEW("PendingReview"), + PENDING_REVIEW("PendingReview"), REJECTED("Rejected"), @@ -76,7 +77,7 @@ public enum StatusEnum { RETURNED("Returned"), - AWAITINGCUSTOMERCONFIRMATION("AwaitingCustomerConfirmation"); + AWAITING_CUSTOMER_CONFIRMATION("AwaitingCustomerConfirmation"); private String value; @@ -116,14 +117,13 @@ public GetCheckDepositsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -141,14 +141,13 @@ public GetCheckDepositsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -174,14 +173,13 @@ public GetCheckDepositsListFilterParameter putTagsItem(String key, String tagsIt return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -207,14 +205,13 @@ public GetCheckDepositsListFilterParameter addStatusItem(StatusEnum statusItem) return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -307,12 +304,12 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -320,7 +317,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -329,7 +326,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetCheckPaymentsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetCheckPaymentsListFilterParameter.java index ec0be255..1b049a48 100644 --- a/src/main/java/unit/java/sdk/model/GetCheckPaymentsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetCheckPaymentsListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetCheckPaymentsListFilterParameter */ @@ -46,7 +47,7 @@ GetCheckPaymentsListFilterParameter.JSON_PROPERTY_TO_AMOUNT, GetCheckPaymentsListFilterParameter.JSON_PROPERTY_CHECK_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetCheckPaymentsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -66,21 +67,21 @@ public enum StatusEnum { REJECTED("Rejected"), - INDELIVERY("InDelivery"), + IN_DELIVERY("InDelivery"), - INPRODUCTION("InProduction"), + IN_PRODUCTION("InProduction"), DELIVERED("Delivered"), - RETURNEDTOSENDER("ReturnedToSender"), + RETURNED_TO_SENDER("ReturnedToSender"), PENDING2("Pending"), PROCESSED("Processed"), - PENDINGREVIEW("PendingReview"), + PENDING_REVIEW("PendingReview"), - MARKEDFORRETURN("MarkedForReturn"), + MARKED_FOR_RETURN("MarkedForReturn"), RETURNED("Returned"); @@ -140,14 +141,13 @@ public GetCheckPaymentsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -165,14 +165,13 @@ public GetCheckPaymentsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -198,14 +197,13 @@ public GetCheckPaymentsListFilterParameter addStatusItem(StatusEnum statusItem) return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -231,14 +229,13 @@ public GetCheckPaymentsListFilterParameter putTagsItem(String key, String tagsIt return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -256,14 +253,13 @@ public GetCheckPaymentsListFilterParameter since(String since) { return this; } - /** + /** * Get since * @return since - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSince() { return since; } @@ -281,14 +277,13 @@ public GetCheckPaymentsListFilterParameter until(String until) { return this; } - /** + /** * Get until * @return until - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUntil() { return until; } @@ -306,14 +301,13 @@ public GetCheckPaymentsListFilterParameter fromAmount(Integer fromAmount) { return this; } - /** + /** * Get fromAmount * @return fromAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getFromAmount() { return fromAmount; } @@ -331,14 +325,13 @@ public GetCheckPaymentsListFilterParameter toAmount(Integer toAmount) { return this; } - /** + /** * Get toAmount * @return toAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getToAmount() { return toAmount; } @@ -356,14 +349,13 @@ public GetCheckPaymentsListFilterParameter checkNumber(String checkNumber) { return this; } - /** + /** * Get checkNumber * @return checkNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHECK_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCheckNumber() { return checkNumber; } @@ -466,12 +458,12 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -479,7 +471,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -488,33 +480,33 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `since` to the URL query string if (getSince() != null) { - joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `until` to the URL query string if (getUntil() != null) { - joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fromAmount` to the URL query string if (getFromAmount() != null) { - joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toAmount` to the URL query string if (getToAmount() != null) { - joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `checkNumber` to the URL query string if (getCheckNumber() != null) { - joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetCounterpartiesListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetCounterpartiesListFilterParameter.java index 06b0af2b..946de090 100644 --- a/src/main/java/unit/java/sdk/model/GetCounterpartiesListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetCounterpartiesListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetCounterpartiesListFilterParameter */ @@ -42,7 +43,7 @@ GetCounterpartiesListFilterParameter.JSON_PROPERTY_PERMISSIONS, GetCounterpartiesListFilterParameter.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetCounterpartiesListFilterParameter { public static final String JSON_PROPERTY_CUSTOMER_ID = "customerId"; private String customerId; @@ -57,11 +58,11 @@ public class GetCounterpartiesListFilterParameter { * Gets or Sets permissions */ public enum PermissionsEnum { - CREDITONLY("CreditOnly"), + CREDIT_ONLY("CreditOnly"), - DEBITONLY("DebitOnly"), + DEBIT_ONLY("DebitOnly"), - CREDITANDDEBIT("CreditAndDebit"); + CREDIT_AND_DEBIT("CreditAndDebit"); private String value; @@ -104,14 +105,13 @@ public GetCounterpartiesListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -129,14 +129,13 @@ public GetCounterpartiesListFilterParameter accountNumber(String accountNumber) return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountNumber() { return accountNumber; } @@ -154,14 +153,13 @@ public GetCounterpartiesListFilterParameter routingNumber(String routingNumber) return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRoutingNumber() { return routingNumber; } @@ -187,14 +185,13 @@ public GetCounterpartiesListFilterParameter addPermissionsItem(PermissionsEnum p return this; } - /** + /** * Get permissions * @return permissions - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getPermissions() { return permissions; } @@ -220,14 +217,13 @@ public GetCounterpartiesListFilterParameter putTagsItem(String key, String tagsI return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -322,17 +318,17 @@ public String toUrlQueryString(String prefix) { // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `permissions` to the URL query string @@ -340,7 +336,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getPermissions().size(); i++) { joiner.add(String.format("%spermissions%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getPermissions().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getPermissions().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -349,7 +345,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetCustomersListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetCustomersListFilterParameter.java index 8b9caa3e..df8fed48 100644 --- a/src/main/java/unit/java/sdk/model/GetCustomersListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetCustomersListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetCustomersListFilterParameter */ @@ -41,7 +42,7 @@ GetCustomersListFilterParameter.JSON_PROPERTY_EMAIL, GetCustomersListFilterParameter.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetCustomersListFilterParameter { public static final String JSON_PROPERTY_QUERY = "query"; private String query; @@ -98,14 +99,13 @@ public GetCustomersListFilterParameter query(String query) { return this; } - /** + /** * Get query * @return query - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUERY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getQuery() { return query; } @@ -131,14 +131,13 @@ public GetCustomersListFilterParameter addStatusItem(StatusEnum statusItem) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -156,14 +155,13 @@ public GetCustomersListFilterParameter email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -189,14 +187,13 @@ public GetCustomersListFilterParameter putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -289,7 +286,7 @@ public String toUrlQueryString(String prefix) { // add `query` to the URL query string if (getQuery() != null) { - joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -297,13 +294,13 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -311,7 +308,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetDisputesListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetDisputesListFilterParameter.java index e0ddaeba..fbf5a8d3 100644 --- a/src/main/java/unit/java/sdk/model/GetDisputesListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetDisputesListFilterParameter.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetDisputesListFilterParameter */ @JsonPropertyOrder({ GetDisputesListFilterParameter.JSON_PROPERTY_QUERY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetDisputesListFilterParameter { public static final String JSON_PROPERTY_QUERY = "query"; private String query; @@ -47,14 +48,13 @@ public GetDisputesListFilterParameter query(String query) { return this; } - /** + /** * Get query * @return query - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUERY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getQuery() { return query; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `query` to the URL query string if (getQuery() != null) { - joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetEventsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetEventsListFilterParameter.java index 5e57bb62..5871c736 100644 --- a/src/main/java/unit/java/sdk/model/GetEventsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetEventsListFilterParameter.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetEventsListFilterParameter */ @@ -38,7 +39,7 @@ GetEventsListFilterParameter.JSON_PROPERTY_UNTIL, GetEventsListFilterParameter.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetEventsListFilterParameter { public static final String JSON_PROPERTY_SINCE = "since"; private String since; @@ -57,14 +58,13 @@ public GetEventsListFilterParameter since(String since) { return this; } - /** + /** * Get since * @return since - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSince() { return since; } @@ -82,14 +82,13 @@ public GetEventsListFilterParameter until(String until) { return this; } - /** + /** * Get until * @return until - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUntil() { return until; } @@ -115,14 +114,13 @@ public GetEventsListFilterParameter addTypeItem(String typeItem) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getType() { return type; } @@ -213,12 +211,12 @@ public String toUrlQueryString(String prefix) { // add `since` to the URL query string if (getSince() != null) { - joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `until` to the URL query string if (getUntil() != null) { - joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string @@ -226,7 +224,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getType().size(); i++) { joiner.add(String.format("%stype%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetPaymentsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetPaymentsListFilterParameter.java index 0106a827..25993240 100644 --- a/src/main/java/unit/java/sdk/model/GetPaymentsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetPaymentsListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetPaymentsListFilterParameter */ @@ -50,7 +51,7 @@ GetPaymentsListFilterParameter.JSON_PROPERTY_FEATURE, GetPaymentsListFilterParameter.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetPaymentsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -113,11 +114,11 @@ public static StatusEnum fromValue(String value) { * Gets or Sets type */ public enum TypeEnum { - ACHPAYMENT("AchPayment"), + ACH_PAYMENT("AchPayment"), - BOOKPAYMENT("BookPayment"), + BOOK_PAYMENT("BookPayment"), - WIREPAYMENT("WirePayment"); + WIRE_PAYMENT("WirePayment"); private String value; @@ -206,9 +207,9 @@ public static DirectionEnum fromValue(String value) { * Gets or Sets feature */ public enum FeatureEnum { - SAMEDAY("SameDay"), + SAME_DAY("SameDay"), - RECURRINGPAYMENT("RecurringPayment"); + RECURRING_PAYMENT("RecurringPayment"); private String value; @@ -251,14 +252,13 @@ public GetPaymentsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -276,14 +276,13 @@ public GetPaymentsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -301,14 +300,13 @@ public GetPaymentsListFilterParameter counterpartyAccountId(String counterpartyA return this; } - /** + /** * Get counterpartyAccountId * @return counterpartyAccountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCounterpartyAccountId() { return counterpartyAccountId; } @@ -334,14 +332,13 @@ public GetPaymentsListFilterParameter addStatusItem(StatusEnum statusItem) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -367,14 +364,13 @@ public GetPaymentsListFilterParameter addTypeItem(TypeEnum typeItem) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getType() { return type; } @@ -400,14 +396,13 @@ public GetPaymentsListFilterParameter addDirectionItem(DirectionEnum directionIt return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDirection() { return direction; } @@ -425,14 +420,13 @@ public GetPaymentsListFilterParameter since(String since) { return this; } - /** + /** * Get since * @return since - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSince() { return since; } @@ -450,14 +444,13 @@ public GetPaymentsListFilterParameter until(String until) { return this; } - /** + /** * Get until * @return until - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUntil() { return until; } @@ -475,14 +468,13 @@ public GetPaymentsListFilterParameter fromAmount(Integer fromAmount) { return this; } - /** + /** * Get fromAmount * @return fromAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getFromAmount() { return fromAmount; } @@ -500,14 +492,13 @@ public GetPaymentsListFilterParameter toAmount(Integer toAmount) { return this; } - /** + /** * Get toAmount * @return toAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getToAmount() { return toAmount; } @@ -525,14 +516,13 @@ public GetPaymentsListFilterParameter recurringPaymentId(Integer recurringPaymen return this; } - /** + /** * Get recurringPaymentId * @return recurringPaymentId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_PAYMENT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getRecurringPaymentId() { return recurringPaymentId; } @@ -558,14 +548,13 @@ public GetPaymentsListFilterParameter addFeatureItem(FeatureEnum featureItem) { return this; } - /** + /** * Get feature * @return feature - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FEATURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getFeature() { return feature; } @@ -591,14 +580,13 @@ public GetPaymentsListFilterParameter putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -709,17 +697,17 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyAccountId` to the URL query string if (getCounterpartyAccountId() != null) { - joiner.add(String.format("%scounterpartyAccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyAccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -727,7 +715,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -736,7 +724,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getType().size(); i++) { joiner.add(String.format("%stype%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -745,33 +733,33 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getDirection().size(); i++) { joiner.add(String.format("%sdirection%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getDirection().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getDirection().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `since` to the URL query string if (getSince() != null) { - joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `until` to the URL query string if (getUntil() != null) { - joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fromAmount` to the URL query string if (getFromAmount() != null) { - joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toAmount` to the URL query string if (getToAmount() != null) { - joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `recurringPaymentId` to the URL query string if (getRecurringPaymentId() != null) { - joiner.add(String.format("%srecurringPaymentId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRecurringPaymentId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srecurringPaymentId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecurringPaymentId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `feature` to the URL query string @@ -779,7 +767,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getFeature().size(); i++) { joiner.add(String.format("%sfeature%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getFeature().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getFeature().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -788,7 +776,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetReceivedPaymentsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetReceivedPaymentsListFilterParameter.java new file mode 100644 index 00000000..40a4bc6e --- /dev/null +++ b/src/main/java/unit/java/sdk/model/GetReceivedPaymentsListFilterParameter.java @@ -0,0 +1,536 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * GetReceivedPaymentsListFilterParameter + */ +@JsonPropertyOrder({ + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_ACCOUNT_ID, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_CUSTOMER_ID, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_STATUS, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_SINCE, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_UNTIL, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_FROM_AMOUNT, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_TO_AMOUNT, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_INCLUDE_COMPLETED, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_CAN_BE_REPROCESSED, + GetReceivedPaymentsListFilterParameter.JSON_PROPERTY_TAGS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GetReceivedPaymentsListFilterParameter { + public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; + private String accountId; + + public static final String JSON_PROPERTY_CUSTOMER_ID = "customerId"; + private String customerId; + + /** + * Gets or Sets status + */ + public enum StatusEnum { + PENDING("Pending"), + + ADVANCED("Advanced"), + + PENDING_REVIEW("PendingReview"), + + MARKED_FOR_RETURN("MarkedForReturn"), + + RETURNED("Returned"), + + COMPLETED("Completed"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private List status = new ArrayList<>(); + + public static final String JSON_PROPERTY_SINCE = "since"; + private String since; + + public static final String JSON_PROPERTY_UNTIL = "until"; + private String until; + + public static final String JSON_PROPERTY_FROM_AMOUNT = "fromAmount"; + private Integer fromAmount; + + public static final String JSON_PROPERTY_TO_AMOUNT = "toAmount"; + private Integer toAmount; + + public static final String JSON_PROPERTY_INCLUDE_COMPLETED = "includeCompleted"; + private Boolean includeCompleted; + + public static final String JSON_PROPERTY_CAN_BE_REPROCESSED = "canBeReprocessed"; + private Boolean canBeReprocessed; + + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + public GetReceivedPaymentsListFilterParameter() { + } + + public GetReceivedPaymentsListFilterParameter accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Get accountId + * @return accountId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAccountId() { + return accountId; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + + public GetReceivedPaymentsListFilterParameter customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Get customerId + * @return customerId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCustomerId() { + return customerId; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + + public GetReceivedPaymentsListFilterParameter status(List status) { + this.status = status; + return this; + } + + public GetReceivedPaymentsListFilterParameter addStatusItem(StatusEnum statusItem) { + if (this.status == null) { + this.status = new ArrayList<>(); + } + this.status.add(statusItem); + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(List status) { + this.status = status; + } + + + public GetReceivedPaymentsListFilterParameter since(String since) { + this.since = since; + return this; + } + + /** + * Get since + * @return since + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_SINCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getSince() { + return since; + } + + + @JsonProperty(JSON_PROPERTY_SINCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSince(String since) { + this.since = since; + } + + + public GetReceivedPaymentsListFilterParameter until(String until) { + this.until = until; + return this; + } + + /** + * Get until + * @return until + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_UNTIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUntil() { + return until; + } + + + @JsonProperty(JSON_PROPERTY_UNTIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUntil(String until) { + this.until = until; + } + + + public GetReceivedPaymentsListFilterParameter fromAmount(Integer fromAmount) { + this.fromAmount = fromAmount; + return this; + } + + /** + * Get fromAmount + * @return fromAmount + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FROM_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getFromAmount() { + return fromAmount; + } + + + @JsonProperty(JSON_PROPERTY_FROM_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFromAmount(Integer fromAmount) { + this.fromAmount = fromAmount; + } + + + public GetReceivedPaymentsListFilterParameter toAmount(Integer toAmount) { + this.toAmount = toAmount; + return this; + } + + /** + * Get toAmount + * @return toAmount + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TO_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getToAmount() { + return toAmount; + } + + + @JsonProperty(JSON_PROPERTY_TO_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setToAmount(Integer toAmount) { + this.toAmount = toAmount; + } + + + public GetReceivedPaymentsListFilterParameter includeCompleted(Boolean includeCompleted) { + this.includeCompleted = includeCompleted; + return this; + } + + /** + * Get includeCompleted + * @return includeCompleted + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INCLUDE_COMPLETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIncludeCompleted() { + return includeCompleted; + } + + + @JsonProperty(JSON_PROPERTY_INCLUDE_COMPLETED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIncludeCompleted(Boolean includeCompleted) { + this.includeCompleted = includeCompleted; + } + + + public GetReceivedPaymentsListFilterParameter canBeReprocessed(Boolean canBeReprocessed) { + this.canBeReprocessed = canBeReprocessed; + return this; + } + + /** + * Get canBeReprocessed + * @return canBeReprocessed + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CAN_BE_REPROCESSED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getCanBeReprocessed() { + return canBeReprocessed; + } + + + @JsonProperty(JSON_PROPERTY_CAN_BE_REPROCESSED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCanBeReprocessed(Boolean canBeReprocessed) { + this.canBeReprocessed = canBeReprocessed; + } + + + public GetReceivedPaymentsListFilterParameter tags(Map tags) { + this.tags = tags; + return this; + } + + public GetReceivedPaymentsListFilterParameter putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { + this.tags = tags; + } + + + /** + * Return true if this getReceivedPaymentsList_filter_parameter object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetReceivedPaymentsListFilterParameter getReceivedPaymentsListFilterParameter = (GetReceivedPaymentsListFilterParameter) o; + return Objects.equals(this.accountId, getReceivedPaymentsListFilterParameter.accountId) && + Objects.equals(this.customerId, getReceivedPaymentsListFilterParameter.customerId) && + Objects.equals(this.status, getReceivedPaymentsListFilterParameter.status) && + Objects.equals(this.since, getReceivedPaymentsListFilterParameter.since) && + Objects.equals(this.until, getReceivedPaymentsListFilterParameter.until) && + Objects.equals(this.fromAmount, getReceivedPaymentsListFilterParameter.fromAmount) && + Objects.equals(this.toAmount, getReceivedPaymentsListFilterParameter.toAmount) && + Objects.equals(this.includeCompleted, getReceivedPaymentsListFilterParameter.includeCompleted) && + Objects.equals(this.canBeReprocessed, getReceivedPaymentsListFilterParameter.canBeReprocessed) && + Objects.equals(this.tags, getReceivedPaymentsListFilterParameter.tags); + } + + @Override + public int hashCode() { + return Objects.hash(accountId, customerId, status, since, until, fromAmount, toAmount, includeCompleted, canBeReprocessed, tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetReceivedPaymentsListFilterParameter {\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" since: ").append(toIndentedString(since)).append("\n"); + sb.append(" until: ").append(toIndentedString(until)).append("\n"); + sb.append(" fromAmount: ").append(toIndentedString(fromAmount)).append("\n"); + sb.append(" toAmount: ").append(toIndentedString(toAmount)).append("\n"); + sb.append(" includeCompleted: ").append(toIndentedString(includeCompleted)).append("\n"); + sb.append(" canBeReprocessed: ").append(toIndentedString(canBeReprocessed)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `accountId` to the URL query string + if (getAccountId() != null) { + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `customerId` to the URL query string + if (getCustomerId() != null) { + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `status` to the URL query string + if (getStatus() != null) { + for (int i = 0; i < getStatus().size(); i++) { + joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + // add `since` to the URL query string + if (getSince() != null) { + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `until` to the URL query string + if (getUntil() != null) { + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `fromAmount` to the URL query string + if (getFromAmount() != null) { + joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `toAmount` to the URL query string + if (getToAmount() != null) { + joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `includeCompleted` to the URL query string + if (getIncludeCompleted() != null) { + joiner.add(String.format("%sincludeCompleted%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIncludeCompleted()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `canBeReprocessed` to the URL query string + if (getCanBeReprocessed() != null) { + joiner.add(String.format("%scanBeReprocessed%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCanBeReprocessed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/GetRecurringPaymentsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetRecurringPaymentsListFilterParameter.java index cd8b38fb..20d1b29a 100644 --- a/src/main/java/unit/java/sdk/model/GetRecurringPaymentsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetRecurringPaymentsListFilterParameter.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetRecurringPaymentsListFilterParameter */ @@ -43,7 +44,7 @@ GetRecurringPaymentsListFilterParameter.JSON_PROPERTY_FROM_END_TIME, GetRecurringPaymentsListFilterParameter.JSON_PROPERTY_TO_END_TIME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetRecurringPaymentsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -58,11 +59,11 @@ public class GetRecurringPaymentsListFilterParameter { * Gets or Sets type */ public enum TypeEnum { - RECURRINGCREDITACHPAYMENT("recurringCreditAchPayment"), + RECURRING_CREDIT_ACH_PAYMENT("recurringCreditAchPayment"), - RECURRINGDEBITACHPAYMENT("recurringDebitAchPayment"), + RECURRING_DEBIT_ACH_PAYMENT("recurringDebitAchPayment"), - RECURRINGCREDITBOOKPAYMENT("recurringCreditBookPayment"); + RECURRING_CREDIT_BOOK_PAYMENT("recurringCreditBookPayment"); private String value; @@ -114,14 +115,13 @@ public GetRecurringPaymentsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -139,14 +139,13 @@ public GetRecurringPaymentsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -172,14 +171,13 @@ public GetRecurringPaymentsListFilterParameter addStatusItem(String statusItem) return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -205,14 +203,13 @@ public GetRecurringPaymentsListFilterParameter addTypeItem(TypeEnum typeItem) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getType() { return type; } @@ -230,14 +227,13 @@ public GetRecurringPaymentsListFilterParameter fromStartTime(String fromStartTim return this; } - /** + /** * Get fromStartTime * @return fromStartTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFromStartTime() { return fromStartTime; } @@ -255,14 +251,13 @@ public GetRecurringPaymentsListFilterParameter toStartTime(String toStartTime) { return this; } - /** + /** * Get toStartTime * @return toStartTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getToStartTime() { return toStartTime; } @@ -280,14 +275,13 @@ public GetRecurringPaymentsListFilterParameter fromEndTime(String fromEndTime) { return this; } - /** + /** * Get fromEndTime * @return fromEndTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFromEndTime() { return fromEndTime; } @@ -305,14 +299,13 @@ public GetRecurringPaymentsListFilterParameter toEndTime(String toEndTime) { return this; } - /** + /** * Get toEndTime * @return toEndTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getToEndTime() { return toEndTime; } @@ -413,12 +406,12 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -426,7 +419,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -435,28 +428,28 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getType().size(); i++) { joiner.add(String.format("%stype%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `fromStartTime` to the URL query string if (getFromStartTime() != null) { - joiner.add(String.format("%sfromStartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromStartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toStartTime` to the URL query string if (getToStartTime() != null) { - joiner.add(String.format("%stoStartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoStartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fromEndTime` to the URL query string if (getFromEndTime() != null) { - joiner.add(String.format("%sfromEndTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromEndTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toEndTime` to the URL query string if (getToEndTime() != null) { - joiner.add(String.format("%stoEndTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoEndTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetRecurringRepaymentsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetRecurringRepaymentsListFilterParameter.java index 8d82098a..6a561e92 100644 --- a/src/main/java/unit/java/sdk/model/GetRecurringRepaymentsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetRecurringRepaymentsListFilterParameter.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetRecurringRepaymentsListFilterParameter */ @@ -41,7 +42,7 @@ GetRecurringRepaymentsListFilterParameter.JSON_PROPERTY_FROM_START_TIME, GetRecurringRepaymentsListFilterParameter.JSON_PROPERTY_TO_START_TIME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetRecurringRepaymentsListFilterParameter { public static final String JSON_PROPERTY_CREDIT_ACCOUNT_ID = "creditAccountId"; private String creditAccountId; @@ -101,14 +102,13 @@ public GetRecurringRepaymentsListFilterParameter creditAccountId(String creditAc return this; } - /** + /** * Get creditAccountId * @return creditAccountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCreditAccountId() { return creditAccountId; } @@ -126,14 +126,13 @@ public GetRecurringRepaymentsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -159,14 +158,13 @@ public GetRecurringRepaymentsListFilterParameter addStatusItem(StatusEnum status return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -184,14 +182,13 @@ public GetRecurringRepaymentsListFilterParameter fromStartTime(LocalDate fromSta return this; } - /** + /** * Get fromStartTime * @return fromStartTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getFromStartTime() { return fromStartTime; } @@ -209,14 +206,13 @@ public GetRecurringRepaymentsListFilterParameter toStartTime(LocalDate toStartTi return this; } - /** + /** * Get toStartTime * @return toStartTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getToStartTime() { return toStartTime; } @@ -311,12 +307,12 @@ public String toUrlQueryString(String prefix) { // add `creditAccountId` to the URL query string if (getCreditAccountId() != null) { - joiner.add(String.format("%screditAccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreditAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screditAccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreditAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -324,18 +320,18 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `fromStartTime` to the URL query string if (getFromStartTime() != null) { - joiner.add(String.format("%sfromStartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromStartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toStartTime` to the URL query string if (getToStartTime() != null) { - joiner.add(String.format("%stoStartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoStartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetRepaymentsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetRepaymentsListFilterParameter.java index ae452ff9..474f0234 100644 --- a/src/main/java/unit/java/sdk/model/GetRepaymentsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetRepaymentsListFilterParameter.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetRepaymentsListFilterParameter */ @@ -40,7 +41,7 @@ GetRepaymentsListFilterParameter.JSON_PROPERTY_STATUS, GetRepaymentsListFilterParameter.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetRepaymentsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -57,7 +58,7 @@ public class GetRepaymentsListFilterParameter { public enum StatusEnum { PENDING("Pending"), - PENDINGREVIEW("PendingReview"), + PENDING_REVIEW("PendingReview"), RETURNED("Returned"), @@ -99,9 +100,9 @@ public static StatusEnum fromValue(String value) { * Gets or Sets type */ public enum TypeEnum { - ACHREPAYMENT("AchRepayment"), + ACH_REPAYMENT("AchRepayment"), - BOOKREPAYMENT("BookRepayment"); + BOOK_REPAYMENT("BookRepayment"); private String value; @@ -141,14 +142,13 @@ public GetRepaymentsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -166,14 +166,13 @@ public GetRepaymentsListFilterParameter creditAccountId(String creditAccountId) return this; } - /** + /** * Get creditAccountId * @return creditAccountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCreditAccountId() { return creditAccountId; } @@ -191,14 +190,13 @@ public GetRepaymentsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -224,14 +222,13 @@ public GetRepaymentsListFilterParameter addStatusItem(StatusEnum statusItem) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -257,14 +254,13 @@ public GetRepaymentsListFilterParameter addTypeItem(TypeEnum typeItem) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getType() { return type; } @@ -359,17 +355,17 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `creditAccountId` to the URL query string if (getCreditAccountId() != null) { - joiner.add(String.format("%screditAccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreditAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screditAccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreditAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -377,7 +373,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -386,7 +382,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getType().size(); i++) { joiner.add(String.format("%stype%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetListRewardsFilterParameter.java b/src/main/java/unit/java/sdk/model/GetRewardsListFilterParameter.java similarity index 75% rename from src/main/java/unit/java/sdk/model/GetListRewardsFilterParameter.java rename to src/main/java/unit/java/sdk/model/GetRewardsListFilterParameter.java index cd6c1ebc..413441e9 100644 --- a/src/main/java/unit/java/sdk/model/GetListRewardsFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetRewardsListFilterParameter.java @@ -30,22 +30,23 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * GetListRewardsFilterParameter + * GetRewardsListFilterParameter */ @JsonPropertyOrder({ - GetListRewardsFilterParameter.JSON_PROPERTY_TRANSACTION_ID, - GetListRewardsFilterParameter.JSON_PROPERTY_REWARDED_TRANSACTION_ID, - GetListRewardsFilterParameter.JSON_PROPERTY_RECEIVING_ACCOUNT_ID, - GetListRewardsFilterParameter.JSON_PROPERTY_CUSTOMER_ID, - GetListRewardsFilterParameter.JSON_PROPERTY_CARD_ID, - GetListRewardsFilterParameter.JSON_PROPERTY_SINCE, - GetListRewardsFilterParameter.JSON_PROPERTY_UNTIL, - GetListRewardsFilterParameter.JSON_PROPERTY_STATUS, - GetListRewardsFilterParameter.JSON_PROPERTY_TAGS + GetRewardsListFilterParameter.JSON_PROPERTY_TRANSACTION_ID, + GetRewardsListFilterParameter.JSON_PROPERTY_REWARDED_TRANSACTION_ID, + GetRewardsListFilterParameter.JSON_PROPERTY_RECEIVING_ACCOUNT_ID, + GetRewardsListFilterParameter.JSON_PROPERTY_CUSTOMER_ID, + GetRewardsListFilterParameter.JSON_PROPERTY_CARD_ID, + GetRewardsListFilterParameter.JSON_PROPERTY_SINCE, + GetRewardsListFilterParameter.JSON_PROPERTY_UNTIL, + GetRewardsListFilterParameter.JSON_PROPERTY_STATUS, + GetRewardsListFilterParameter.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class GetListRewardsFilterParameter { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GetRewardsListFilterParameter { public static final String JSON_PROPERTY_TRANSACTION_ID = "transactionId"; private String transactionId; @@ -73,22 +74,21 @@ public class GetListRewardsFilterParameter { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); - public GetListRewardsFilterParameter() { + public GetRewardsListFilterParameter() { } - public GetListRewardsFilterParameter transactionId(String transactionId) { + public GetRewardsListFilterParameter transactionId(String transactionId) { this.transactionId = transactionId; return this; } - /** + /** * Get transactionId * @return transactionId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionId() { return transactionId; } @@ -101,19 +101,18 @@ public void setTransactionId(String transactionId) { } - public GetListRewardsFilterParameter rewardedTransactionId(String rewardedTransactionId) { + public GetRewardsListFilterParameter rewardedTransactionId(String rewardedTransactionId) { this.rewardedTransactionId = rewardedTransactionId; return this; } - /** + /** * Get rewardedTransactionId * @return rewardedTransactionId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REWARDED_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRewardedTransactionId() { return rewardedTransactionId; } @@ -126,19 +125,18 @@ public void setRewardedTransactionId(String rewardedTransactionId) { } - public GetListRewardsFilterParameter receivingAccountId(String receivingAccountId) { + public GetRewardsListFilterParameter receivingAccountId(String receivingAccountId) { this.receivingAccountId = receivingAccountId; return this; } - /** + /** * Get receivingAccountId * @return receivingAccountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECEIVING_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReceivingAccountId() { return receivingAccountId; } @@ -151,19 +149,18 @@ public void setReceivingAccountId(String receivingAccountId) { } - public GetListRewardsFilterParameter customerId(String customerId) { + public GetRewardsListFilterParameter customerId(String customerId) { this.customerId = customerId; return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -176,19 +173,18 @@ public void setCustomerId(String customerId) { } - public GetListRewardsFilterParameter cardId(String cardId) { + public GetRewardsListFilterParameter cardId(String cardId) { this.cardId = cardId; return this; } - /** + /** * Get cardId * @return cardId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardId() { return cardId; } @@ -201,19 +197,18 @@ public void setCardId(String cardId) { } - public GetListRewardsFilterParameter since(String since) { + public GetRewardsListFilterParameter since(String since) { this.since = since; return this; } - /** + /** * Get since * @return since - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSince() { return since; } @@ -226,19 +221,18 @@ public void setSince(String since) { } - public GetListRewardsFilterParameter until(String until) { + public GetRewardsListFilterParameter until(String until) { this.until = until; return this; } - /** + /** * Get until * @return until - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUntil() { return until; } @@ -251,19 +245,18 @@ public void setUntil(String until) { } - public GetListRewardsFilterParameter status(String status) { + public GetRewardsListFilterParameter status(String status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { return status; } @@ -276,12 +269,12 @@ public void setStatus(String status) { } - public GetListRewardsFilterParameter tags(Map tags) { + public GetRewardsListFilterParameter tags(Map tags) { this.tags = tags; return this; } - public GetListRewardsFilterParameter putTagsItem(String key, String tagsItem) { + public GetRewardsListFilterParameter putTagsItem(String key, String tagsItem) { if (this.tags == null) { this.tags = new HashMap<>(); } @@ -289,14 +282,13 @@ public GetListRewardsFilterParameter putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -310,7 +302,7 @@ public void setTags(Map tags) { /** - * Return true if this getListRewards_filter_parameter object is equal to o. + * Return true if this getRewardsList_filter_parameter object is equal to o. */ @Override public boolean equals(Object o) { @@ -320,16 +312,16 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - GetListRewardsFilterParameter getListRewardsFilterParameter = (GetListRewardsFilterParameter) o; - return Objects.equals(this.transactionId, getListRewardsFilterParameter.transactionId) && - Objects.equals(this.rewardedTransactionId, getListRewardsFilterParameter.rewardedTransactionId) && - Objects.equals(this.receivingAccountId, getListRewardsFilterParameter.receivingAccountId) && - Objects.equals(this.customerId, getListRewardsFilterParameter.customerId) && - Objects.equals(this.cardId, getListRewardsFilterParameter.cardId) && - Objects.equals(this.since, getListRewardsFilterParameter.since) && - Objects.equals(this.until, getListRewardsFilterParameter.until) && - Objects.equals(this.status, getListRewardsFilterParameter.status) && - Objects.equals(this.tags, getListRewardsFilterParameter.tags); + GetRewardsListFilterParameter getRewardsListFilterParameter = (GetRewardsListFilterParameter) o; + return Objects.equals(this.transactionId, getRewardsListFilterParameter.transactionId) && + Objects.equals(this.rewardedTransactionId, getRewardsListFilterParameter.rewardedTransactionId) && + Objects.equals(this.receivingAccountId, getRewardsListFilterParameter.receivingAccountId) && + Objects.equals(this.customerId, getRewardsListFilterParameter.customerId) && + Objects.equals(this.cardId, getRewardsListFilterParameter.cardId) && + Objects.equals(this.since, getRewardsListFilterParameter.since) && + Objects.equals(this.until, getRewardsListFilterParameter.until) && + Objects.equals(this.status, getRewardsListFilterParameter.status) && + Objects.equals(this.tags, getRewardsListFilterParameter.tags); } @Override @@ -340,7 +332,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class GetListRewardsFilterParameter {\n"); + sb.append("class GetRewardsListFilterParameter {\n"); sb.append(" transactionId: ").append(toIndentedString(transactionId)).append("\n"); sb.append(" rewardedTransactionId: ").append(toIndentedString(rewardedTransactionId)).append("\n"); sb.append(" receivingAccountId: ").append(toIndentedString(receivingAccountId)).append("\n"); @@ -399,42 +391,42 @@ public String toUrlQueryString(String prefix) { // add `transactionId` to the URL query string if (getTransactionId() != null) { - joiner.add(String.format("%stransactionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stransactionId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `rewardedTransactionId` to the URL query string if (getRewardedTransactionId() != null) { - joiner.add(String.format("%srewardedTransactionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRewardedTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srewardedTransactionId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRewardedTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `receivingAccountId` to the URL query string if (getReceivingAccountId() != null) { - joiner.add(String.format("%sreceivingAccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReceivingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreceivingAccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReceivingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardId` to the URL query string if (getCardId() != null) { - joiner.add(String.format("%scardId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `since` to the URL query string if (getSince() != null) { - joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `until` to the URL query string if (getUntil() != null) { - joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -442,7 +434,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/GetStatementsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetStatementsListFilterParameter.java index d1e1c26e..f8a3b46f 100644 --- a/src/main/java/unit/java/sdk/model/GetStatementsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetStatementsListFilterParameter.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetStatementsListFilterParameter */ @@ -36,7 +37,7 @@ GetStatementsListFilterParameter.JSON_PROPERTY_CUSTOMER_ID, GetStatementsListFilterParameter.JSON_PROPERTY_PERIOD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetStatementsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -55,14 +56,13 @@ public GetStatementsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -80,14 +80,13 @@ public GetStatementsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -105,14 +104,13 @@ public GetStatementsListFilterParameter period(String period) { return this; } - /** + /** * Get period * @return period - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERIOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPeriod() { return period; } @@ -203,17 +201,17 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `period` to the URL query string if (getPeriod() != null) { - joiner.add(String.format("%speriod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPeriod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%speriod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPeriod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetStopPaymentsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetStopPaymentsListFilterParameter.java index 818ded2b..83a0f3ed 100644 --- a/src/main/java/unit/java/sdk/model/GetStopPaymentsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetStopPaymentsListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetStopPaymentsListFilterParameter */ @@ -46,7 +47,7 @@ GetStopPaymentsListFilterParameter.JSON_PROPERTY_TO_AMOUNT, GetStopPaymentsListFilterParameter.JSON_PROPERTY_CHECK_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetStopPaymentsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -118,14 +119,13 @@ public GetStopPaymentsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -143,14 +143,13 @@ public GetStopPaymentsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -176,14 +175,13 @@ public GetStopPaymentsListFilterParameter addStatusItem(StatusEnum statusItem) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getStatus() { return status; } @@ -209,14 +207,13 @@ public GetStopPaymentsListFilterParameter putTagsItem(String key, String tagsIte return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -234,14 +231,13 @@ public GetStopPaymentsListFilterParameter since(String since) { return this; } - /** + /** * Get since * @return since - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSince() { return since; } @@ -259,14 +255,13 @@ public GetStopPaymentsListFilterParameter until(String until) { return this; } - /** + /** * Get until * @return until - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUntil() { return until; } @@ -284,14 +279,13 @@ public GetStopPaymentsListFilterParameter fromAmount(Integer fromAmount) { return this; } - /** + /** * Get fromAmount * @return fromAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getFromAmount() { return fromAmount; } @@ -309,14 +303,13 @@ public GetStopPaymentsListFilterParameter toAmount(Integer toAmount) { return this; } - /** + /** * Get toAmount * @return toAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getToAmount() { return toAmount; } @@ -334,14 +327,13 @@ public GetStopPaymentsListFilterParameter checkNumber(String checkNumber) { return this; } - /** + /** * Get checkNumber * @return checkNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CHECK_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCheckNumber() { return checkNumber; } @@ -444,12 +436,12 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string @@ -457,7 +449,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getStatus().size(); i++) { joiner.add(String.format("%sstatus%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getStatus().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -466,33 +458,33 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `since` to the URL query string if (getSince() != null) { - joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `until` to the URL query string if (getUntil() != null) { - joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fromAmount` to the URL query string if (getFromAmount() != null) { - joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toAmount` to the URL query string if (getToAmount() != null) { - joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `checkNumber` to the URL query string if (getCheckNumber() != null) { - joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scheckNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCheckNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetTaxFormsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetTaxFormsListFilterParameter.java new file mode 100644 index 00000000..aa013fc7 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/GetTaxFormsListFilterParameter.java @@ -0,0 +1,281 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * GetTaxFormsListFilterParameter + */ +@JsonPropertyOrder({ + GetTaxFormsListFilterParameter.JSON_PROPERTY_CUSTOMER_ID, + GetTaxFormsListFilterParameter.JSON_PROPERTY_ACCOUNT_ID, + GetTaxFormsListFilterParameter.JSON_PROPERTY_TAX_YEAR, + GetTaxFormsListFilterParameter.JSON_PROPERTY_TAX_FORM_TYPES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class GetTaxFormsListFilterParameter { + public static final String JSON_PROPERTY_CUSTOMER_ID = "customerId"; + private String customerId; + + public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; + private String accountId; + + public static final String JSON_PROPERTY_TAX_YEAR = "taxYear"; + private List taxYear = new ArrayList<>(); + + public static final String JSON_PROPERTY_TAX_FORM_TYPES = "taxFormTypes"; + private List taxFormTypes = new ArrayList<>(); + + public GetTaxFormsListFilterParameter() { + } + + public GetTaxFormsListFilterParameter customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Get customerId + * @return customerId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getCustomerId() { + return customerId; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + + public GetTaxFormsListFilterParameter accountId(String accountId) { + this.accountId = accountId; + return this; + } + + /** + * Get accountId + * @return accountId + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAccountId() { + return accountId; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccountId(String accountId) { + this.accountId = accountId; + } + + + public GetTaxFormsListFilterParameter taxYear(List taxYear) { + this.taxYear = taxYear; + return this; + } + + public GetTaxFormsListFilterParameter addTaxYearItem(String taxYearItem) { + if (this.taxYear == null) { + this.taxYear = new ArrayList<>(); + } + this.taxYear.add(taxYearItem); + return this; + } + + /** + * Get taxYear + * @return taxYear + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_YEAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTaxYear() { + return taxYear; + } + + + @JsonProperty(JSON_PROPERTY_TAX_YEAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxYear(List taxYear) { + this.taxYear = taxYear; + } + + + public GetTaxFormsListFilterParameter taxFormTypes(List taxFormTypes) { + this.taxFormTypes = taxFormTypes; + return this; + } + + public GetTaxFormsListFilterParameter addTaxFormTypesItem(String taxFormTypesItem) { + if (this.taxFormTypes == null) { + this.taxFormTypes = new ArrayList<>(); + } + this.taxFormTypes.add(taxFormTypesItem); + return this; + } + + /** + * Get taxFormTypes + * @return taxFormTypes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAX_FORM_TYPES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getTaxFormTypes() { + return taxFormTypes; + } + + + @JsonProperty(JSON_PROPERTY_TAX_FORM_TYPES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxFormTypes(List taxFormTypes) { + this.taxFormTypes = taxFormTypes; + } + + + /** + * Return true if this getTaxFormsList_filter_parameter object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTaxFormsListFilterParameter getTaxFormsListFilterParameter = (GetTaxFormsListFilterParameter) o; + return Objects.equals(this.customerId, getTaxFormsListFilterParameter.customerId) && + Objects.equals(this.accountId, getTaxFormsListFilterParameter.accountId) && + Objects.equals(this.taxYear, getTaxFormsListFilterParameter.taxYear) && + Objects.equals(this.taxFormTypes, getTaxFormsListFilterParameter.taxFormTypes); + } + + @Override + public int hashCode() { + return Objects.hash(customerId, accountId, taxYear, taxFormTypes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetTaxFormsListFilterParameter {\n"); + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n"); + sb.append(" taxYear: ").append(toIndentedString(taxYear)).append("\n"); + sb.append(" taxFormTypes: ").append(toIndentedString(taxFormTypes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `customerId` to the URL query string + if (getCustomerId() != null) { + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `accountId` to the URL query string + if (getAccountId() != null) { + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `taxYear` to the URL query string + if (getTaxYear() != null) { + for (int i = 0; i < getTaxYear().size(); i++) { + joiner.add(String.format("%staxYear%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(ApiClient.valueToString(getTaxYear().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + // add `taxFormTypes` to the URL query string + if (getTaxFormTypes() != null) { + for (int i = 0; i < getTaxFormTypes().size(); i++) { + joiner.add(String.format("%staxFormTypes%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(ApiClient.valueToString(getTaxFormTypes().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/GetTransactionsListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetTransactionsListFilterParameter.java index 507f82ce..45971c42 100644 --- a/src/main/java/unit/java/sdk/model/GetTransactionsListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetTransactionsListFilterParameter.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetTransactionsListFilterParameter */ @@ -50,7 +51,7 @@ GetTransactionsListFilterParameter.JSON_PROPERTY_TO_AMOUNT, GetTransactionsListFilterParameter.JSON_PROPERTY_ACCOUNT_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetTransactionsListFilterParameter { public static final String JSON_PROPERTY_ACCOUNT_ID = "accountId"; private String accountId; @@ -134,14 +135,13 @@ public GetTransactionsListFilterParameter accountId(String accountId) { return this; } - /** + /** * Get accountId * @return accountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountId() { return accountId; } @@ -159,14 +159,13 @@ public GetTransactionsListFilterParameter customerId(String customerId) { return this; } - /** + /** * Get customerId * @return customerId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCustomerId() { return customerId; } @@ -184,14 +183,13 @@ public GetTransactionsListFilterParameter query(String query) { return this; } - /** + /** * Get query * @return query - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_QUERY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getQuery() { return query; } @@ -217,14 +215,13 @@ public GetTransactionsListFilterParameter putTagsItem(String key, String tagsIte return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -242,14 +239,13 @@ public GetTransactionsListFilterParameter since(String since) { return this; } - /** + /** * Get since * @return since - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSince() { return since; } @@ -267,14 +263,13 @@ public GetTransactionsListFilterParameter until(String until) { return this; } - /** + /** * Get until * @return until - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUntil() { return until; } @@ -292,14 +287,13 @@ public GetTransactionsListFilterParameter cardId(String cardId) { return this; } - /** + /** * Get cardId * @return cardId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardId() { return cardId; } @@ -317,14 +311,13 @@ public GetTransactionsListFilterParameter excludeFees(Boolean excludeFees) { return this; } - /** + /** * Get excludeFees * @return excludeFees - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXCLUDE_FEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getExcludeFees() { return excludeFees; } @@ -350,14 +343,13 @@ public GetTransactionsListFilterParameter addTypeItem(String typeItem) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getType() { return type; } @@ -383,14 +375,13 @@ public GetTransactionsListFilterParameter addDirectionItem(DirectionEnum directi return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getDirection() { return direction; } @@ -408,14 +399,13 @@ public GetTransactionsListFilterParameter fromAmount(Integer fromAmount) { return this; } - /** + /** * Get fromAmount * @return fromAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getFromAmount() { return fromAmount; } @@ -433,14 +423,13 @@ public GetTransactionsListFilterParameter toAmount(Integer toAmount) { return this; } - /** + /** * Get toAmount * @return toAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getToAmount() { return toAmount; } @@ -458,14 +447,13 @@ public GetTransactionsListFilterParameter accountType(String accountType) { return this; } - /** + /** * Get accountType * @return accountType - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAccountType() { return accountType; } @@ -576,17 +564,17 @@ public String toUrlQueryString(String prefix) { // add `accountId` to the URL query string if (getAccountId() != null) { - joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `customerId` to the URL query string if (getCustomerId() != null) { - joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scustomerId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCustomerId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `query` to the URL query string if (getQuery() != null) { - joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%squery%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getQuery()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -594,28 +582,28 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `since` to the URL query string if (getSince() != null) { - joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `until` to the URL query string if (getUntil() != null) { - joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardId` to the URL query string if (getCardId() != null) { - joiner.add(String.format("%scardId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `excludeFees` to the URL query string if (getExcludeFees() != null) { - joiner.add(String.format("%sexcludeFees%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExcludeFees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexcludeFees%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExcludeFees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string @@ -623,7 +611,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getType().size(); i++) { joiner.add(String.format("%stype%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getType().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -632,23 +620,23 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getDirection().size(); i++) { joiner.add(String.format("%sdirection%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getDirection().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getDirection().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `fromAmount` to the URL query string if (getFromAmount() != null) { - joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toAmount` to the URL query string if (getToAmount() != null) { - joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountType` to the URL query string if (getAccountType() != null) { - joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/GetWebhooksListFilterParameter.java b/src/main/java/unit/java/sdk/model/GetWebhooksListFilterParameter.java index 0feb005a..f9ffb927 100644 --- a/src/main/java/unit/java/sdk/model/GetWebhooksListFilterParameter.java +++ b/src/main/java/unit/java/sdk/model/GetWebhooksListFilterParameter.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * GetWebhooksListFilterParameter */ @@ -37,7 +38,7 @@ GetWebhooksListFilterParameter.JSON_PROPERTY_FROM_ID, GetWebhooksListFilterParameter.JSON_PROPERTY_TO_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class GetWebhooksListFilterParameter { public static final String JSON_PROPERTY_SINCE = "since"; private String since; @@ -59,14 +60,13 @@ public GetWebhooksListFilterParameter since(String since) { return this; } - /** + /** * Get since * @return since - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSince() { return since; } @@ -84,14 +84,13 @@ public GetWebhooksListFilterParameter until(String until) { return this; } - /** + /** * Get until * @return until - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UNTIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUntil() { return until; } @@ -109,14 +108,13 @@ public GetWebhooksListFilterParameter fromId(Integer fromId) { return this; } - /** + /** * Get fromId * @return fromId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FROM_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getFromId() { return fromId; } @@ -134,14 +132,13 @@ public GetWebhooksListFilterParameter toId(Integer toId) { return this; } - /** + /** * Get toId * @return toId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TO_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getToId() { return toId; } @@ -234,22 +231,22 @@ public String toUrlQueryString(String prefix) { // add `since` to the URL query string if (getSince() != null) { - joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssince%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSince()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `until` to the URL query string if (getUntil() != null) { - joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%suntil%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUntil()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fromId` to the URL query string if (getFromId() != null) { - joiner.add(String.format("%sfromId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFromId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfromId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFromId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `toId` to the URL query string if (getToId() != null) { - joiner.add(String.format("%stoId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/HealthcareAmounts.java b/src/main/java/unit/java/sdk/model/HealthcareAmounts.java index e3534183..d8e61af6 100644 --- a/src/main/java/unit/java/sdk/model/HealthcareAmounts.java +++ b/src/main/java/unit/java/sdk/model/HealthcareAmounts.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * HealthcareAmounts */ @@ -39,7 +40,7 @@ HealthcareAmounts.JSON_PROPERTY_DENTAL_AMOUNT, HealthcareAmounts.JSON_PROPERTY_TOTAL_HEALTHCARE_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class HealthcareAmounts { public static final String JSON_PROPERTY_TRANSIT_AMOUNT = "transitAmount"; private Integer transitAmount; @@ -67,14 +68,13 @@ public HealthcareAmounts transitAmount(Integer transitAmount) { return this; } - /** + /** * Get transitAmount * @return transitAmount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRANSIT_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getTransitAmount() { return transitAmount; } @@ -92,14 +92,13 @@ public HealthcareAmounts prescriptionRXAmount(Integer prescriptionRXAmount) { return this; } - /** + /** * Get prescriptionRXAmount * @return prescriptionRXAmount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PRESCRIPTION_R_X_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getPrescriptionRXAmount() { return prescriptionRXAmount; } @@ -117,14 +116,13 @@ public HealthcareAmounts visionOpticalAmount(Integer visionOpticalAmount) { return this; } - /** + /** * Get visionOpticalAmount * @return visionOpticalAmount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_VISION_OPTICAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getVisionOpticalAmount() { return visionOpticalAmount; } @@ -142,14 +140,13 @@ public HealthcareAmounts clinicOtherQualifiedMedicalAmount(Integer clinicOtherQu return this; } - /** + /** * Get clinicOtherQualifiedMedicalAmount * @return clinicOtherQualifiedMedicalAmount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CLINIC_OTHER_QUALIFIED_MEDICAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getClinicOtherQualifiedMedicalAmount() { return clinicOtherQualifiedMedicalAmount; } @@ -167,14 +164,13 @@ public HealthcareAmounts dentalAmount(Integer dentalAmount) { return this; } - /** + /** * Get dentalAmount * @return dentalAmount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DENTAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getDentalAmount() { return dentalAmount; } @@ -192,14 +188,13 @@ public HealthcareAmounts totalHealthcareAmount(Integer totalHealthcareAmount) { return this; } - /** + /** * Get totalHealthcareAmount * @return totalHealthcareAmount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TOTAL_HEALTHCARE_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getTotalHealthcareAmount() { return totalHealthcareAmount; } @@ -296,32 +291,32 @@ public String toUrlQueryString(String prefix) { // add `transitAmount` to the URL query string if (getTransitAmount() != null) { - joiner.add(String.format("%stransitAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTransitAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stransitAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransitAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `prescriptionRXAmount` to the URL query string if (getPrescriptionRXAmount() != null) { - joiner.add(String.format("%sprescriptionRXAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPrescriptionRXAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sprescriptionRXAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPrescriptionRXAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `visionOpticalAmount` to the URL query string if (getVisionOpticalAmount() != null) { - joiner.add(String.format("%svisionOpticalAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVisionOpticalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%svisionOpticalAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVisionOpticalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `clinicOtherQualifiedMedicalAmount` to the URL query string if (getClinicOtherQualifiedMedicalAmount() != null) { - joiner.add(String.format("%sclinicOtherQualifiedMedicalAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getClinicOtherQualifiedMedicalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sclinicOtherQualifiedMedicalAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getClinicOtherQualifiedMedicalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dentalAmount` to the URL query string if (getDentalAmount() != null) { - joiner.add(String.format("%sdentalAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDentalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdentalAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDentalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `totalHealthcareAmount` to the URL query string if (getTotalHealthcareAmount() != null) { - joiner.add(String.format("%stotalHealthcareAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalHealthcareAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stotalHealthcareAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalHealthcareAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/IncludedResourceInner.java b/src/main/java/unit/java/sdk/model/IncludedResourceInner.java index 6d3a8452..bb548b0a 100644 --- a/src/main/java/unit/java/sdk/model/IncludedResourceInner.java +++ b/src/main/java/unit/java/sdk/model/IncludedResourceInner.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * IncludedResourceInner */ @@ -37,7 +38,7 @@ IncludedResourceInner.JSON_PROPERTY_ATTRIBUTES, IncludedResourceInner.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class IncludedResourceInner { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -59,14 +60,13 @@ public IncludedResourceInner id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -84,14 +84,13 @@ public IncludedResourceInner type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -109,14 +108,13 @@ public IncludedResourceInner attributes(Object attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getAttributes() { return attributes; } @@ -134,14 +132,13 @@ public IncludedResourceInner relationships(Object relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getRelationships() { return relationships; } @@ -234,22 +231,22 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string if (getAttributes() != null) { - joiner.add(String.format("%sattributes%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAttributes()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sattributes%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAttributes()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `relationships` to the URL query string if (getRelationships() != null) { - joiner.add(String.format("%srelationships%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRelationships()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srelationships%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRelationships()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/IndividualApplication.java b/src/main/java/unit/java/sdk/model/IndividualApplication.java index 8887926b..92a39d04 100644 --- a/src/main/java/unit/java/sdk/model/IndividualApplication.java +++ b/src/main/java/unit/java/sdk/model/IndividualApplication.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * IndividualApplication */ @@ -42,7 +43,7 @@ IndividualApplication.JSON_PROPERTY_ATTRIBUTES, IndividualApplication.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public IndividualApplication attributes(IndividualApplicationAllOfAttributes att return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IndividualApplicationAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public IndividualApplication relationships(IndividualApplicationRelationships re return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IndividualApplicationRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/IndividualApplicationAllOfAttributes.java b/src/main/java/unit/java/sdk/model/IndividualApplicationAllOfAttributes.java index 057fc312..581671ad 100644 --- a/src/main/java/unit/java/sdk/model/IndividualApplicationAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/IndividualApplicationAllOfAttributes.java @@ -50,6 +50,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * IndividualApplicationAllOfAttributes */ @@ -100,7 +101,7 @@ IndividualApplicationAllOfAttributes.JSON_PROPERTY_BUSINESS_VERTICAL, IndividualApplicationAllOfAttributes.JSON_PROPERTY_WEBSITE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class IndividualApplicationAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -317,14 +318,13 @@ public IndividualApplicationAllOfAttributes createdAt(OffsetDateTime createdAt) return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -342,14 +342,13 @@ public IndividualApplicationAllOfAttributes updatedAt(OffsetDateTime updatedAt) return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -367,14 +366,13 @@ public IndividualApplicationAllOfAttributes status(ApplicationStatus status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ApplicationStatus getStatus() { return status; } @@ -392,14 +390,13 @@ public IndividualApplicationAllOfAttributes message(String message) { return this; } - /** + /** * Get message * @return message - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { return message; } @@ -417,14 +414,13 @@ public IndividualApplicationAllOfAttributes evaluationOutcome(String evaluationO return this; } - /** + /** * Get evaluationOutcome * @return evaluationOutcome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_OUTCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationOutcome() { return evaluationOutcome; } @@ -442,14 +438,13 @@ public IndividualApplicationAllOfAttributes evaluationId(String evaluationId) { return this; } - /** + /** * Get evaluationId * @return evaluationId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationId() { return evaluationId; } @@ -467,14 +462,13 @@ public IndividualApplicationAllOfAttributes evaluationEntityId(String evaluation return this; } - /** + /** * Get evaluationEntityId * @return evaluationEntityId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_ENTITY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationEntityId() { return evaluationEntityId; } @@ -492,14 +486,13 @@ public IndividualApplicationAllOfAttributes fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -517,14 +510,13 @@ public IndividualApplicationAllOfAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -542,14 +534,13 @@ public IndividualApplicationAllOfAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -567,14 +558,13 @@ public IndividualApplicationAllOfAttributes ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -592,14 +582,13 @@ public IndividualApplicationAllOfAttributes passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -617,14 +606,13 @@ public IndividualApplicationAllOfAttributes nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -642,14 +630,13 @@ public IndividualApplicationAllOfAttributes matriculaConsular(String matriculaCo return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -667,14 +654,13 @@ public IndividualApplicationAllOfAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -692,14 +678,13 @@ public IndividualApplicationAllOfAttributes dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -717,14 +702,13 @@ public IndividualApplicationAllOfAttributes dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DBA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDba() { return dba; } @@ -742,14 +726,13 @@ public IndividualApplicationAllOfAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEin() { return ein; } @@ -767,14 +750,13 @@ public IndividualApplicationAllOfAttributes ip(String ip) { return this; } - /** + /** * Get ip * @return ip - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIp() { return ip; } @@ -792,14 +774,13 @@ public IndividualApplicationAllOfAttributes soleProprietorship(Boolean solePropr return this; } - /** + /** * Get soleProprietorship * @return soleProprietorship - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSoleProprietorship() { return soleProprietorship; } @@ -817,14 +798,13 @@ public IndividualApplicationAllOfAttributes decisionMethod(DecisionMethodEnum de return this; } - /** + /** * Get decisionMethod * @return decisionMethod - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DecisionMethodEnum getDecisionMethod() { return decisionMethod; } @@ -842,14 +822,13 @@ public IndividualApplicationAllOfAttributes decisionUserId(String decisionUserId return this; } - /** + /** * Get decisionUserId * @return decisionUserId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDecisionUserId() { return decisionUserId; } @@ -867,14 +846,13 @@ public IndividualApplicationAllOfAttributes decisionReason(String decisionReason return this; } - /** + /** * Get decisionReason * @return decisionReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDecisionReason() { return decisionReason; } @@ -892,14 +870,13 @@ public IndividualApplicationAllOfAttributes decisionDateTime(OffsetDateTime deci return this; } - /** + /** * Get decisionDateTime * @return decisionDateTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECISION_DATE_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getDecisionDateTime() { return decisionDateTime; } @@ -925,14 +902,13 @@ public IndividualApplicationAllOfAttributes putTagsItem(String key, String tagsI return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -950,14 +926,13 @@ public IndividualApplicationAllOfAttributes riskRate(RiskRateEnum riskRate) { return this; } - /** + /** * Get riskRate * @return riskRate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RISK_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RiskRateEnum getRiskRate() { return riskRate; } @@ -983,14 +958,13 @@ public IndividualApplicationAllOfAttributes addEvaluationFlagsItem(String evalua return this; } - /** + /** * Get evaluationFlags * @return evaluationFlags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEvaluationFlags() { return evaluationFlags; } @@ -1008,14 +982,13 @@ public IndividualApplicationAllOfAttributes evaluationScores(Object evaluationSc return this; } - /** + /** * Get evaluationScores * @return evaluationScores - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_SCORES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getEvaluationScores() { return evaluationScores; } @@ -1033,14 +1006,13 @@ public IndividualApplicationAllOfAttributes ipLocationDetails(Object ipLocationD return this; } - /** + /** * Get ipLocationDetails * @return ipLocationDetails - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IP_LOCATION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getIpLocationDetails() { return ipLocationDetails; } @@ -1058,14 +1030,13 @@ public IndividualApplicationAllOfAttributes phoneLocationDetails(Object phoneLoc return this; } - /** + /** * Get phoneLocationDetails * @return phoneLocationDetails - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE_LOCATION_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getPhoneLocationDetails() { return phoneLocationDetails; } @@ -1083,14 +1054,13 @@ public IndividualApplicationAllOfAttributes maskedSSN(String maskedSSN) { return this; } - /** + /** * Get maskedSSN * @return maskedSSN - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_S_S_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedSSN() { return maskedSSN; } @@ -1108,14 +1078,13 @@ public IndividualApplicationAllOfAttributes maskedPassport(String maskedPassport return this; } - /** + /** * Get maskedPassport * @return maskedPassport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedPassport() { return maskedPassport; } @@ -1133,14 +1102,13 @@ public IndividualApplicationAllOfAttributes maskedMatriculaConsular(String maske return this; } - /** + /** * Get maskedMatriculaConsular * @return maskedMatriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedMatriculaConsular() { return maskedMatriculaConsular; } @@ -1158,13 +1126,12 @@ public IndividualApplicationAllOfAttributes jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -1191,14 +1158,13 @@ public IndividualApplicationAllOfAttributes archived(Boolean archived) { return this; } - /** + /** * Get archived * @return archived - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARCHIVED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getArchived() { return archived; } @@ -1216,14 +1182,13 @@ public IndividualApplicationAllOfAttributes powerOfAttorneyAgent(PowerOfAttorney return this; } - /** + /** * Get powerOfAttorneyAgent * @return powerOfAttorneyAgent - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_POWER_OF_ATTORNEY_AGENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PowerOfAttorneyAgent getPowerOfAttorneyAgent() { return powerOfAttorneyAgent; } @@ -1241,14 +1206,13 @@ public IndividualApplicationAllOfAttributes industry(Industry industry) { return this; } - /** + /** * Get industry * @return industry - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDUSTRY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Industry getIndustry() { return industry; } @@ -1266,14 +1230,13 @@ public IndividualApplicationAllOfAttributes idTheftScore(Integer idTheftScore) { return this; } - /** + /** * Get idTheftScore * @return idTheftScore - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID_THEFT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getIdTheftScore() { return idTheftScore; } @@ -1291,14 +1254,13 @@ public IndividualApplicationAllOfAttributes occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -1316,14 +1278,13 @@ public IndividualApplicationAllOfAttributes annualIncome(AnnualIncome annualInco return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -1341,14 +1302,13 @@ public IndividualApplicationAllOfAttributes sourceOfIncome(SourceOfIncome source return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -1366,14 +1326,13 @@ public IndividualApplicationAllOfAttributes annualRevenue(SoleProprietorshipAnnu return this; } - /** + /** * Get annualRevenue * @return annualRevenue - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_REVENUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SoleProprietorshipAnnualRevenue getAnnualRevenue() { return annualRevenue; } @@ -1391,14 +1350,13 @@ public IndividualApplicationAllOfAttributes numberOfEmployees(SoleProprietorship return this; } - /** + /** * Get numberOfEmployees * @return numberOfEmployees - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SoleProprietorshipNumberOfEmployees getNumberOfEmployees() { return numberOfEmployees; } @@ -1416,14 +1374,13 @@ public IndividualApplicationAllOfAttributes businessVertical(BusinessVertical bu return this; } - /** + /** * Get businessVertical * @return businessVertical - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUSINESS_VERTICAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessVertical getBusinessVertical() { return businessVertical; } @@ -1441,14 +1398,13 @@ public IndividualApplicationAllOfAttributes website(String website) { return this; } - /** + /** * Get website * @return website - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWebsite() { return website; } @@ -1634,37 +1590,37 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `message` to the URL query string if (getMessage() != null) { - joiner.add(String.format("%smessage%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMessage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smessage%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMessage()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationOutcome` to the URL query string if (getEvaluationOutcome() != null) { - joiner.add(String.format("%sevaluationOutcome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationOutcome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationOutcome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationOutcome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationId` to the URL query string if (getEvaluationId() != null) { - joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationEntityId` to the URL query string if (getEvaluationEntityId() != null) { - joiner.add(String.format("%sevaluationEntityId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationEntityId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationEntityId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationEntityId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fullName` to the URL query string @@ -1674,7 +1630,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -1684,22 +1640,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -1709,47 +1665,47 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ip` to the URL query string if (getIp() != null) { - joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sip%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIp()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `soleProprietorship` to the URL query string if (getSoleProprietorship() != null) { - joiner.add(String.format("%ssoleProprietorship%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSoleProprietorship()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssoleProprietorship%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSoleProprietorship()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `decisionMethod` to the URL query string if (getDecisionMethod() != null) { - joiner.add(String.format("%sdecisionMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `decisionUserId` to the URL query string if (getDecisionUserId() != null) { - joiner.add(String.format("%sdecisionUserId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionUserId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionUserId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionUserId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `decisionReason` to the URL query string if (getDecisionReason() != null) { - joiner.add(String.format("%sdecisionReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `decisionDateTime` to the URL query string if (getDecisionDateTime() != null) { - joiner.add(String.format("%sdecisionDateTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDecisionDateTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdecisionDateTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDecisionDateTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -1757,13 +1713,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `riskRate` to the URL query string if (getRiskRate() != null) { - joiner.add(String.format("%sriskRate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRiskRate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sriskRate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRiskRate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationFlags` to the URL query string @@ -1771,48 +1727,48 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getEvaluationFlags().size(); i++) { joiner.add(String.format("%sevaluationFlags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `evaluationScores` to the URL query string if (getEvaluationScores() != null) { - joiner.add(String.format("%sevaluationScores%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationScores()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationScores%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationScores()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ipLocationDetails` to the URL query string if (getIpLocationDetails() != null) { - joiner.add(String.format("%sipLocationDetails%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIpLocationDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sipLocationDetails%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIpLocationDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phoneLocationDetails` to the URL query string if (getPhoneLocationDetails() != null) { - joiner.add(String.format("%sphoneLocationDetails%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPhoneLocationDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sphoneLocationDetails%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPhoneLocationDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedSSN` to the URL query string if (getMaskedSSN() != null) { - joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedPassport` to the URL query string if (getMaskedPassport() != null) { - joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedMatriculaConsular` to the URL query string if (getMaskedMatriculaConsular() != null) { - joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `archived` to the URL query string if (getArchived() != null) { - joiner.add(String.format("%sarchived%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getArchived()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sarchived%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getArchived()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `powerOfAttorneyAgent` to the URL query string @@ -1822,47 +1778,47 @@ public String toUrlQueryString(String prefix) { // add `industry` to the URL query string if (getIndustry() != null) { - joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sindustry%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIndustry()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idTheftScore` to the URL query string if (getIdTheftScore() != null) { - joiner.add(String.format("%sidTheftScore%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdTheftScore()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidTheftScore%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdTheftScore()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualRevenue` to the URL query string if (getAnnualRevenue() != null) { - joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `numberOfEmployees` to the URL query string if (getNumberOfEmployees() != null) { - joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessVertical` to the URL query string if (getBusinessVertical() != null) { - joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `website` to the URL query string if (getWebsite() != null) { - joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/IndividualApplicationRelationships.java b/src/main/java/unit/java/sdk/model/IndividualApplicationRelationships.java index c0e34a26..bbb49096 100644 --- a/src/main/java/unit/java/sdk/model/IndividualApplicationRelationships.java +++ b/src/main/java/unit/java/sdk/model/IndividualApplicationRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * IndividualApplicationRelationships */ @@ -41,7 +42,7 @@ IndividualApplicationRelationships.JSON_PROPERTY_ORG, IndividualApplicationRelationships.JSON_PROPERTY_APPLICATION_FORM }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class IndividualApplicationRelationships { public static final String JSON_PROPERTY_CUSTOMER = "customer"; private CustomerRelationship customer; @@ -63,14 +64,13 @@ public IndividualApplicationRelationships customer(CustomerRelationship customer return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -88,14 +88,13 @@ public IndividualApplicationRelationships documents(DocumentsRelationship docume return this; } - /** + /** * Get documents * @return documents - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DOCUMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DocumentsRelationship getDocuments() { return documents; } @@ -113,14 +112,13 @@ public IndividualApplicationRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OrgRelationship getOrg() { return org; } @@ -138,14 +136,13 @@ public IndividualApplicationRelationships applicationForm(Relationship applicati return this; } - /** + /** * Get applicationForm * @return applicationForm - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPLICATION_FORM) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Relationship getApplicationForm() { return applicationForm; } diff --git a/src/main/java/unit/java/sdk/model/IndividualCustomer.java b/src/main/java/unit/java/sdk/model/IndividualCustomer.java index a0324e5f..5e9d4b82 100644 --- a/src/main/java/unit/java/sdk/model/IndividualCustomer.java +++ b/src/main/java/unit/java/sdk/model/IndividualCustomer.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * IndividualCustomer */ @@ -42,7 +43,7 @@ IndividualCustomer.JSON_PROPERTY_ATTRIBUTES, IndividualCustomer.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public IndividualCustomer attributes(IndividualCustomerAllOfAttributes attribute return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public IndividualCustomerAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public IndividualCustomer relationships(CustomerRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/IndividualCustomerAllOfAttributes.java b/src/main/java/unit/java/sdk/model/IndividualCustomerAllOfAttributes.java index 4f2b4e82..dc104deb 100644 --- a/src/main/java/unit/java/sdk/model/IndividualCustomerAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/IndividualCustomerAllOfAttributes.java @@ -42,6 +42,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * IndividualCustomerAllOfAttributes */ @@ -69,7 +70,7 @@ IndividualCustomerAllOfAttributes.JSON_PROPERTY_STATUS, IndividualCustomerAllOfAttributes.JSON_PROPERTY_ARCHIVE_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class IndividualCustomerAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -212,19 +213,19 @@ public static StatusEnum fromValue(String value) { public enum ArchiveReasonEnum { INACTIVE("Inactive"), - FRAUDACHACTIVITY("FraudACHActivity"), + FRAUD_ACH_ACTIVITY("FraudACHActivity"), - FRAUDCARDACTIVITY("FraudCardActivity"), + FRAUD_CARD_ACTIVITY("FraudCardActivity"), - FRAUDCHECKACTIVITY("FraudCheckActivity"), + FRAUD_CHECK_ACTIVITY("FraudCheckActivity"), - FRAUDAPPLICATIONHISTORY("FraudApplicationHistory"), + FRAUD_APPLICATION_HISTORY("FraudApplicationHistory"), - FRAUDACCOUNTACTIVITY("FraudAccountActivity"), + FRAUD_ACCOUNT_ACTIVITY("FraudAccountActivity"), - FRAUDCLIENTIDENTIFIED("FraudClientIdentified"), + FRAUD_CLIENT_IDENTIFIED("FraudClientIdentified"), - FRAUDLINKEDTOFRAUDULENTCUSTOMER("FraudLinkedToFraudulentCustomer"); + FRAUD_LINKED_TO_FRAUDULENT_CUSTOMER("FraudLinkedToFraudulentCustomer"); private String value; @@ -264,14 +265,13 @@ public IndividualCustomerAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -289,14 +289,13 @@ public IndividualCustomerAllOfAttributes fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -314,14 +313,13 @@ public IndividualCustomerAllOfAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -339,14 +337,13 @@ public IndividualCustomerAllOfAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -364,14 +361,13 @@ public IndividualCustomerAllOfAttributes ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -389,14 +385,13 @@ public IndividualCustomerAllOfAttributes passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -414,14 +409,13 @@ public IndividualCustomerAllOfAttributes nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -439,14 +433,13 @@ public IndividualCustomerAllOfAttributes matriculaConsular(String matriculaConsu return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -464,14 +457,13 @@ public IndividualCustomerAllOfAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -489,14 +481,13 @@ public IndividualCustomerAllOfAttributes dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -514,14 +505,13 @@ public IndividualCustomerAllOfAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEin() { return ein; } @@ -539,14 +529,13 @@ public IndividualCustomerAllOfAttributes dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DBA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDba() { return dba; } @@ -564,14 +553,13 @@ public IndividualCustomerAllOfAttributes soleProprietorship(Boolean solePropriet return this; } - /** + /** * Get soleProprietorship * @return soleProprietorship - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOLE_PROPRIETORSHIP) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSoleProprietorship() { return soleProprietorship; } @@ -597,14 +585,13 @@ public IndividualCustomerAllOfAttributes putTagsItem(String key, String tagsItem return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -622,14 +609,13 @@ public IndividualCustomerAllOfAttributes riskRate(RiskRateEnum riskRate) { return this; } - /** + /** * Get riskRate * @return riskRate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RISK_RATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RiskRateEnum getRiskRate() { return riskRate; } @@ -647,14 +633,13 @@ public IndividualCustomerAllOfAttributes maskedSSN(String maskedSSN) { return this; } - /** + /** * Get maskedSSN * @return maskedSSN - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_S_S_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedSSN() { return maskedSSN; } @@ -672,14 +657,13 @@ public IndividualCustomerAllOfAttributes maskedPassport(String maskedPassport) { return this; } - /** + /** * Get maskedPassport * @return maskedPassport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedPassport() { return maskedPassport; } @@ -697,14 +681,13 @@ public IndividualCustomerAllOfAttributes maskedMatriculaConsular(String maskedMa return this; } - /** + /** * Get maskedMatriculaConsular * @return maskedMatriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedMatriculaConsular() { return maskedMatriculaConsular; } @@ -730,14 +713,13 @@ public IndividualCustomerAllOfAttributes addAuthorizedUsersItem(AuthorizedUser a return this; } - /** + /** * Get authorizedUsers * @return authorizedUsers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUTHORIZED_USERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAuthorizedUsers() { return authorizedUsers; } @@ -755,13 +737,12 @@ public IndividualCustomerAllOfAttributes jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -788,14 +769,13 @@ public IndividualCustomerAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -813,14 +793,13 @@ public IndividualCustomerAllOfAttributes archiveReason(ArchiveReasonEnum archive return this; } - /** + /** * Get archiveReason * @return archiveReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ARCHIVE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ArchiveReasonEnum getArchiveReason() { return archiveReason; } @@ -960,7 +939,7 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fullName` to the URL query string @@ -970,7 +949,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -980,22 +959,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -1005,22 +984,22 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `soleProprietorship` to the URL query string if (getSoleProprietorship() != null) { - joiner.add(String.format("%ssoleProprietorship%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSoleProprietorship()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssoleProprietorship%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSoleProprietorship()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -1028,28 +1007,28 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `riskRate` to the URL query string if (getRiskRate() != null) { - joiner.add(String.format("%sriskRate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRiskRate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sriskRate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRiskRate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedSSN` to the URL query string if (getMaskedSSN() != null) { - joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedPassport` to the URL query string if (getMaskedPassport() != null) { - joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedMatriculaConsular` to the URL query string if (getMaskedMatriculaConsular() != null) { - joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `authorizedUsers` to the URL query string @@ -1064,17 +1043,17 @@ public String toUrlQueryString(String prefix) { // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `archiveReason` to the URL query string if (getArchiveReason() != null) { - joiner.add(String.format("%sarchiveReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getArchiveReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sarchiveReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getArchiveReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/IndividualDebitCard.java b/src/main/java/unit/java/sdk/model/IndividualDebitCard.java index d2f6f4e7..00acb889 100644 --- a/src/main/java/unit/java/sdk/model/IndividualDebitCard.java +++ b/src/main/java/unit/java/sdk/model/IndividualDebitCard.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * IndividualDebitCard */ @@ -42,7 +43,7 @@ IndividualDebitCard.JSON_PROPERTY_ATTRIBUTES, IndividualDebitCard.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public IndividualDebitCard attributes(IndividualDebitCardAllOfAttributes attribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IndividualDebitCardAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public IndividualDebitCard relationships(CardRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/IndividualDebitCardAllOfAttributes.java b/src/main/java/unit/java/sdk/model/IndividualDebitCardAllOfAttributes.java index 8d6e59ce..055278cc 100644 --- a/src/main/java/unit/java/sdk/model/IndividualDebitCardAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/IndividualDebitCardAllOfAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * IndividualDebitCardAllOfAttributes */ @@ -49,7 +50,7 @@ IndividualDebitCardAllOfAttributes.JSON_PROPERTY_TAGS, IndividualDebitCardAllOfAttributes.JSON_PROPERTY_FREEZE_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class IndividualDebitCardAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -92,14 +93,13 @@ public IndividualDebitCardAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -117,14 +117,13 @@ public IndividualDebitCardAllOfAttributes updatedAt(OffsetDateTime updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -142,14 +141,13 @@ public IndividualDebitCardAllOfAttributes last4Digits(String last4Digits) { return this; } - /** + /** * Get last4Digits * @return last4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLast4Digits() { return last4Digits; } @@ -167,14 +165,13 @@ public IndividualDebitCardAllOfAttributes expirationDate(String expirationDate) return this; } - /** + /** * Get expirationDate * @return expirationDate - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getExpirationDate() { return expirationDate; } @@ -192,14 +189,13 @@ public IndividualDebitCardAllOfAttributes nextExpirationDate(String nextExpirati return this; } - /** + /** * Get nextExpirationDate * @return nextExpirationDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NEXT_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNextExpirationDate() { return nextExpirationDate; } @@ -217,14 +213,13 @@ public IndividualDebitCardAllOfAttributes shippingAddress(Address shippingAddres return this; } - /** + /** * Get shippingAddress * @return shippingAddress - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIPPING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getShippingAddress() { return shippingAddress; } @@ -242,14 +237,13 @@ public IndividualDebitCardAllOfAttributes bin(String bin) { return this; } - /** + /** * Get bin * @return bin - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBin() { return bin; } @@ -267,14 +261,13 @@ public IndividualDebitCardAllOfAttributes status(PhysicalCardStatus status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PhysicalCardStatus getStatus() { return status; } @@ -292,14 +285,13 @@ public IndividualDebitCardAllOfAttributes design(String design) { return this; } - /** + /** * Get design * @return design - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesign() { return design; } @@ -325,14 +317,13 @@ public IndividualDebitCardAllOfAttributes putTagsItem(String key, String tagsIte return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -350,14 +341,13 @@ public IndividualDebitCardAllOfAttributes freezeReason(String freezeReason) { return this; } - /** + /** * Get freezeReason * @return freezeReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FREEZE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFreezeReason() { return freezeReason; } @@ -464,27 +454,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `last4Digits` to the URL query string if (getLast4Digits() != null) { - joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expirationDate` to the URL query string if (getExpirationDate() != null) { - joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nextExpirationDate` to the URL query string if (getNextExpirationDate() != null) { - joiner.add(String.format("%snextExpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNextExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snextExpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNextExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `shippingAddress` to the URL query string @@ -494,17 +484,17 @@ public String toUrlQueryString(String prefix) { // add `bin` to the URL query string if (getBin() != null) { - joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `design` to the URL query string if (getDesign() != null) { - joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -512,13 +502,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `freezeReason` to the URL query string if (getFreezeReason() != null) { - joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/IndividualVirtualDebitCard.java b/src/main/java/unit/java/sdk/model/IndividualVirtualDebitCard.java index 5c1518cd..66bac5bb 100644 --- a/src/main/java/unit/java/sdk/model/IndividualVirtualDebitCard.java +++ b/src/main/java/unit/java/sdk/model/IndividualVirtualDebitCard.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * IndividualVirtualDebitCard */ @@ -42,7 +43,7 @@ IndividualVirtualDebitCard.JSON_PROPERTY_ATTRIBUTES, IndividualVirtualDebitCard.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public IndividualVirtualDebitCard attributes(IndividualVirtualDebitCardAllOfAttr return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IndividualVirtualDebitCardAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public IndividualVirtualDebitCard relationships(CardRelationships relationships) return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/IndividualVirtualDebitCardAllOfAttributes.java b/src/main/java/unit/java/sdk/model/IndividualVirtualDebitCardAllOfAttributes.java index 419e9505..762c0bc2 100644 --- a/src/main/java/unit/java/sdk/model/IndividualVirtualDebitCardAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/IndividualVirtualDebitCardAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * IndividualVirtualDebitCardAllOfAttributes */ @@ -46,7 +47,7 @@ IndividualVirtualDebitCardAllOfAttributes.JSON_PROPERTY_TAGS, IndividualVirtualDebitCardAllOfAttributes.JSON_PROPERTY_FREEZE_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class IndividualVirtualDebitCardAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -83,14 +84,13 @@ public IndividualVirtualDebitCardAllOfAttributes createdAt(OffsetDateTime create return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -108,14 +108,13 @@ public IndividualVirtualDebitCardAllOfAttributes updatedAt(OffsetDateTime update return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -133,14 +132,13 @@ public IndividualVirtualDebitCardAllOfAttributes last4Digits(String last4Digits) return this; } - /** + /** * Get last4Digits * @return last4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getLast4Digits() { return last4Digits; } @@ -158,14 +156,13 @@ public IndividualVirtualDebitCardAllOfAttributes expirationDate(String expiratio return this; } - /** + /** * Get expirationDate * @return expirationDate - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getExpirationDate() { return expirationDate; } @@ -183,14 +180,13 @@ public IndividualVirtualDebitCardAllOfAttributes nextExpirationDate(String nextE return this; } - /** + /** * Get nextExpirationDate * @return nextExpirationDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NEXT_EXPIRATION_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNextExpirationDate() { return nextExpirationDate; } @@ -208,14 +204,13 @@ public IndividualVirtualDebitCardAllOfAttributes bin(String bin) { return this; } - /** + /** * Get bin * @return bin - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBin() { return bin; } @@ -233,14 +228,13 @@ public IndividualVirtualDebitCardAllOfAttributes status(VirtualCardStatus status return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public VirtualCardStatus getStatus() { return status; } @@ -266,14 +260,13 @@ public IndividualVirtualDebitCardAllOfAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -291,14 +284,13 @@ public IndividualVirtualDebitCardAllOfAttributes freezeReason(String freezeReaso return this; } - /** + /** * Get freezeReason * @return freezeReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FREEZE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFreezeReason() { return freezeReason; } @@ -401,37 +393,37 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `last4Digits` to the URL query string if (getLast4Digits() != null) { - joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `expirationDate` to the URL query string if (getExpirationDate() != null) { - joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nextExpirationDate` to the URL query string if (getNextExpirationDate() != null) { - joiner.add(String.format("%snextExpirationDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNextExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snextExpirationDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNextExpirationDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `bin` to the URL query string if (getBin() != null) { - joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbin%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -439,13 +431,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `freezeReason` to the URL query string if (getFreezeReason() != null) { - joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Industry.java b/src/main/java/unit/java/sdk/model/Industry.java index 85c809c7..8df39cf3 100644 --- a/src/main/java/unit/java/sdk/model/Industry.java +++ b/src/main/java/unit/java/sdk/model/Industry.java @@ -44,15 +44,15 @@ public enum Industry { UNIONS("Unions"), - REALESTATE("RealEstate"), + REAL_ESTATE("RealEstate"), - FREELANCEPROFESSIONAL("FreelanceProfessional"), + FREELANCE_PROFESSIONAL("FreelanceProfessional"), - OTHERPROFESSIONALSERVICES("OtherProfessionalServices"), + OTHER_PROFESSIONAL_SERVICES("OtherProfessionalServices"), - ONLINERETAILER("OnlineRetailer"), + ONLINE_RETAILER("OnlineRetailer"), - OTHEREDUCATIONSERVICES("OtherEducationServices"); + OTHER_EDUCATION_SERVICES("OtherEducationServices"); private String value; diff --git a/src/main/java/unit/java/sdk/model/Institution.java b/src/main/java/unit/java/sdk/model/Institution.java index 4c8937de..d5de67a2 100644 --- a/src/main/java/unit/java/sdk/model/Institution.java +++ b/src/main/java/unit/java/sdk/model/Institution.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Institution */ @@ -36,7 +37,7 @@ Institution.JSON_PROPERTY_TYPE, Institution.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Institution { /** * Gets or Sets type @@ -85,14 +86,13 @@ public Institution type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public Institution attributes(InstitutionAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public InstitutionAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/InstitutionAttributes.java b/src/main/java/unit/java/sdk/model/InstitutionAttributes.java index 73a532e0..601d996b 100644 --- a/src/main/java/unit/java/sdk/model/InstitutionAttributes.java +++ b/src/main/java/unit/java/sdk/model/InstitutionAttributes.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * InstitutionAttributes */ @@ -38,7 +39,7 @@ InstitutionAttributes.JSON_PROPERTY_IS_WIRE_SUPPORTED, InstitutionAttributes.JSON_PROPERTY_IS_A_C_H_SUPPORTED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InstitutionAttributes { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; @@ -63,14 +64,13 @@ public InstitutionAttributes routingNumber(String routingNumber) { return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -88,14 +88,13 @@ public InstitutionAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -113,14 +112,13 @@ public InstitutionAttributes address(String address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddress() { return address; } @@ -138,14 +136,13 @@ public InstitutionAttributes isWireSupported(Boolean isWireSupported) { return this; } - /** + /** * Get isWireSupported * @return isWireSupported - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_IS_WIRE_SUPPORTED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIsWireSupported() { return isWireSupported; } @@ -163,14 +160,13 @@ public InstitutionAttributes isACHSupported(Boolean isACHSupported) { return this; } - /** + /** * Get isACHSupported * @return isACHSupported - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_IS_A_C_H_SUPPORTED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getIsACHSupported() { return isACHSupported; } @@ -265,27 +261,27 @@ public String toUrlQueryString(String prefix) { // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string if (getAddress() != null) { - joiner.add(String.format("%saddress%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddress()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddress%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddress()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `isWireSupported` to the URL query string if (getIsWireSupported() != null) { - joiner.add(String.format("%sisWireSupported%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsWireSupported()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sisWireSupported%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsWireSupported()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `isACHSupported` to the URL query string if (getIsACHSupported() != null) { - joiner.add(String.format("%sisACHSupported%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsACHSupported()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sisACHSupported%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsACHSupported()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/InterestShareTransaction.java b/src/main/java/unit/java/sdk/model/InterestShareTransaction.java index f9b3d28c..abe56e1d 100644 --- a/src/main/java/unit/java/sdk/model/InterestShareTransaction.java +++ b/src/main/java/unit/java/sdk/model/InterestShareTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * InterestShareTransaction */ @@ -42,7 +43,7 @@ InterestShareTransaction.JSON_PROPERTY_ATTRIBUTES, InterestShareTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public InterestShareTransaction attributes(FeeTransactionAllOfAttributes attribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public InterestShareTransaction relationships(InterestShareTransactionRelationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public InterestShareTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/InterestShareTransactionRelationships.java b/src/main/java/unit/java/sdk/model/InterestShareTransactionRelationships.java index 9dc02982..12d22e1d 100644 --- a/src/main/java/unit/java/sdk/model/InterestShareTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/InterestShareTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * InterestShareTransactionRelationships */ @@ -41,7 +42,7 @@ InterestShareTransactionRelationships.JSON_PROPERTY_CUSTOMERS, InterestShareTransactionRelationships.JSON_PROPERTY_ORG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InterestShareTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public InterestShareTransactionRelationships account(AccountRelationship account return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public InterestShareTransactionRelationships customer(CustomerRelationship custo return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public InterestShareTransactionRelationships customers(CustomersRelationship cus return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public InterestShareTransactionRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationship getOrg() { return org; } diff --git a/src/main/java/unit/java/sdk/model/InterestTransaction.java b/src/main/java/unit/java/sdk/model/InterestTransaction.java index 8adefdcb..fc0dd63f 100644 --- a/src/main/java/unit/java/sdk/model/InterestTransaction.java +++ b/src/main/java/unit/java/sdk/model/InterestTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * InterestTransaction */ @@ -42,7 +43,7 @@ InterestTransaction.JSON_PROPERTY_ATTRIBUTES, InterestTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public InterestTransaction attributes(FeeTransactionAllOfAttributes attributes) return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public InterestTransaction relationships(InterestTransactionRelationships relati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public InterestTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/InterestTransactionRelationships.java b/src/main/java/unit/java/sdk/model/InterestTransactionRelationships.java index 47753075..516b2ba6 100644 --- a/src/main/java/unit/java/sdk/model/InterestTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/InterestTransactionRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * InterestTransactionRelationships */ @@ -39,7 +40,7 @@ InterestTransactionRelationships.JSON_PROPERTY_CUSTOMER, InterestTransactionRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class InterestTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public InterestTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public InterestTransactionRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public InterestTransactionRelationships customers(CustomersRelationship customer return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/main/java/unit/java/sdk/model/Limits.java b/src/main/java/unit/java/sdk/model/Limits.java index f573fe96..9f09878e 100644 --- a/src/main/java/unit/java/sdk/model/Limits.java +++ b/src/main/java/unit/java/sdk/model/Limits.java @@ -19,113 +19,106 @@ import java.util.Objects; import java.util.Map; import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.LimitsAttributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * Limits */ @JsonPropertyOrder({ - Limits.JSON_PROPERTY_TYPE, - Limits.JSON_PROPERTY_ID, - Limits.JSON_PROPERTY_ATTRIBUTES + Limits.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@JsonIgnoreProperties( + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) +@JsonSubTypes({ + @JsonSubTypes.Type(value = CreditLimits.class, name = "creditLimits"), + @JsonSubTypes.Type(value = DepositLimits.class, name = "limits"), + @JsonSubTypes.Type(value = WalletLimits.class, name = "walletLimits"), +}) + public class Limits { - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + /** + * Gets or Sets type + */ + public enum TypeEnum { + LIMITS("limits"), + + CREDIT_LIMITS("creditLimits"), + + WALLET_LIMITS("walletLimits"); + + private String value; - public static final String JSON_PROPERTY_ID = "id"; - private String id; + TypeEnum(String value) { + this.value = value; + } - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private LimitsAttributes attributes; + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; public Limits() { } - public Limits type(String type) { + public Limits type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } - public Limits id(String id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getId() { - return id; - } - - - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(String id) { - this.id = id; - } - - - public Limits attributes(LimitsAttributes attributes) { - this.attributes = attributes; - return this; - } - - /** - * Get attributes - * @return attributes - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public LimitsAttributes getAttributes() { - return attributes; - } - - - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(LimitsAttributes attributes) { - this.attributes = attributes; - } - - /** * Return true if this Limits object is equal to o. */ @@ -138,14 +131,12 @@ public boolean equals(Object o) { return false; } Limits limits = (Limits) o; - return Objects.equals(this.type, limits.type) && - Objects.equals(this.id, limits.id) && - Objects.equals(this.attributes, limits.attributes); + return Objects.equals(this.type, limits.type); } @Override public int hashCode() { - return Objects.hash(type, id, attributes); + return Objects.hash(type); } @Override @@ -153,8 +144,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Limits {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append("}"); return sb.toString(); } @@ -204,20 +193,19 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - - // add `id` to the URL query string - if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - - // add `attributes` to the URL query string - if (getAttributes() != null) { - joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); } +static { + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap>(); + mappings.put("creditLimits", CreditLimits.class); + mappings.put("limits", DepositLimits.class); + mappings.put("walletLimits", WalletLimits.class); + mappings.put("Limits", Limits.class); + JSON.registerDiscriminator(Limits.class, "type", mappings); +} } diff --git a/src/main/java/unit/java/sdk/model/LimitsAttributesCardTotalsDaily.java b/src/main/java/unit/java/sdk/model/LimitsAttributesCardTotalsDaily.java deleted file mode 100644 index 224e5309..00000000 --- a/src/main/java/unit/java/sdk/model/LimitsAttributesCardTotalsDaily.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Unit OpenAPI specifications - * An OpenAPI specifications for unit-sdk clients - * - * The version of the OpenAPI document: 0.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package unit.java.sdk.model; - -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.util.StringJoiner; -import java.util.Objects; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.math.BigDecimal; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - - -/** - * LimitsAttributesCardTotalsDaily - */ -@JsonPropertyOrder({ - LimitsAttributesCardTotalsDaily.JSON_PROPERTY_WITHDRAWAL, - LimitsAttributesCardTotalsDaily.JSON_PROPERTY_DEPOSIT, - LimitsAttributesCardTotalsDaily.JSON_PROPERTY_PURCHASE, - LimitsAttributesCardTotalsDaily.JSON_PROPERTY_CARD_TRANSACTION -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class LimitsAttributesCardTotalsDaily { - public static final String JSON_PROPERTY_WITHDRAWAL = "withdrawal"; - private BigDecimal withdrawal; - - public static final String JSON_PROPERTY_DEPOSIT = "deposit"; - private BigDecimal deposit; - - public static final String JSON_PROPERTY_PURCHASE = "purchase"; - private BigDecimal purchase; - - public static final String JSON_PROPERTY_CARD_TRANSACTION = "cardTransaction"; - private BigDecimal cardTransaction; - - public LimitsAttributesCardTotalsDaily() { - } - - public LimitsAttributesCardTotalsDaily withdrawal(BigDecimal withdrawal) { - this.withdrawal = withdrawal; - return this; - } - - /** - * Get withdrawal - * @return withdrawal - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WITHDRAWAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getWithdrawal() { - return withdrawal; - } - - - @JsonProperty(JSON_PROPERTY_WITHDRAWAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWithdrawal(BigDecimal withdrawal) { - this.withdrawal = withdrawal; - } - - - public LimitsAttributesCardTotalsDaily deposit(BigDecimal deposit) { - this.deposit = deposit; - return this; - } - - /** - * Get deposit - * @return deposit - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEPOSIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getDeposit() { - return deposit; - } - - - @JsonProperty(JSON_PROPERTY_DEPOSIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeposit(BigDecimal deposit) { - this.deposit = deposit; - } - - - public LimitsAttributesCardTotalsDaily purchase(BigDecimal purchase) { - this.purchase = purchase; - return this; - } - - /** - * Get purchase - * @return purchase - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PURCHASE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getPurchase() { - return purchase; - } - - - @JsonProperty(JSON_PROPERTY_PURCHASE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPurchase(BigDecimal purchase) { - this.purchase = purchase; - } - - - public LimitsAttributesCardTotalsDaily cardTransaction(BigDecimal cardTransaction) { - this.cardTransaction = cardTransaction; - return this; - } - - /** - * Get cardTransaction - * @return cardTransaction - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CARD_TRANSACTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getCardTransaction() { - return cardTransaction; - } - - - @JsonProperty(JSON_PROPERTY_CARD_TRANSACTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCardTransaction(BigDecimal cardTransaction) { - this.cardTransaction = cardTransaction; - } - - - /** - * Return true if this Limits_attributes_card_totalsDaily object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LimitsAttributesCardTotalsDaily limitsAttributesCardTotalsDaily = (LimitsAttributesCardTotalsDaily) o; - return Objects.equals(this.withdrawal, limitsAttributesCardTotalsDaily.withdrawal) && - Objects.equals(this.deposit, limitsAttributesCardTotalsDaily.deposit) && - Objects.equals(this.purchase, limitsAttributesCardTotalsDaily.purchase) && - Objects.equals(this.cardTransaction, limitsAttributesCardTotalsDaily.cardTransaction); - } - - @Override - public int hashCode() { - return Objects.hash(withdrawal, deposit, purchase, cardTransaction); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class LimitsAttributesCardTotalsDaily {\n"); - sb.append(" withdrawal: ").append(toIndentedString(withdrawal)).append("\n"); - sb.append(" deposit: ").append(toIndentedString(deposit)).append("\n"); - sb.append(" purchase: ").append(toIndentedString(purchase)).append("\n"); - sb.append(" cardTransaction: ").append(toIndentedString(cardTransaction)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `withdrawal` to the URL query string - if (getWithdrawal() != null) { - joiner.add(String.format("%swithdrawal%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWithdrawal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - - // add `deposit` to the URL query string - if (getDeposit() != null) { - joiner.add(String.format("%sdeposit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeposit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - - // add `purchase` to the URL query string - if (getPurchase() != null) { - joiner.add(String.format("%spurchase%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPurchase()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - - // add `cardTransaction` to the URL query string - if (getCardTransaction() != null) { - joiner.add(String.format("%scardTransaction%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardTransaction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - - return joiner.toString(); - } -} - diff --git a/src/main/java/unit/java/sdk/model/ListPageParameters.java b/src/main/java/unit/java/sdk/model/ListPageParameters.java index 0fb8b018..9a903120 100644 --- a/src/main/java/unit/java/sdk/model/ListPageParameters.java +++ b/src/main/java/unit/java/sdk/model/ListPageParameters.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Parameters for paginated list requests */ @@ -35,7 +36,7 @@ ListPageParameters.JSON_PROPERTY_LIMIT, ListPageParameters.JSON_PROPERTY_OFFSET }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ListPageParameters { public static final String JSON_PROPERTY_LIMIT = "limit"; private Integer limit = 100; @@ -51,15 +52,14 @@ public ListPageParameters limit(Integer limit) { return this; } - /** + /** * Get limit * maximum: 1000 * @return limit - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getLimit() { return limit; } @@ -77,14 +77,13 @@ public ListPageParameters offset(Integer offset) { return this; } - /** + /** * Get offset * @return offset - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getOffset() { return offset; } @@ -173,12 +172,12 @@ public String toUrlQueryString(String prefix) { // add `limit` to the URL query string if (getLimit() != null) { - joiner.add(String.format("%slimit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slimit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `offset` to the URL query string if (getOffset() != null) { - joiner.add(String.format("%soffset%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOffset()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soffset%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOffset()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Merchant.java b/src/main/java/unit/java/sdk/model/Merchant.java index 41902fcf..c3be03f1 100644 --- a/src/main/java/unit/java/sdk/model/Merchant.java +++ b/src/main/java/unit/java/sdk/model/Merchant.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Merchant */ @@ -38,7 +39,7 @@ Merchant.JSON_PROPERTY_LOCATION, Merchant.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Merchant { public static final String JSON_PROPERTY_NAME = "name"; private String name; @@ -63,14 +64,13 @@ public Merchant name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -88,14 +88,13 @@ public Merchant type(Integer type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getType() { return type; } @@ -113,14 +112,13 @@ public Merchant category(String category) { return this; } - /** + /** * Get category * @return category - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCategory() { return category; } @@ -138,14 +136,13 @@ public Merchant location(String location) { return this; } - /** + /** * Get location * @return location - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLocation() { return location; } @@ -163,14 +160,13 @@ public Merchant id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -265,27 +261,27 @@ public String toUrlQueryString(String prefix) { // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `category` to the URL query string if (getCategory() != null) { - joiner.add(String.format("%scategory%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCategory()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scategory%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCategory()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `location` to the URL query string if (getLocation() != null) { - joiner.add(String.format("%slocation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slocation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLocation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/MonthlySchedule.java b/src/main/java/unit/java/sdk/model/MonthlySchedule.java index 308629f8..ea23d2a8 100644 --- a/src/main/java/unit/java/sdk/model/MonthlySchedule.java +++ b/src/main/java/unit/java/sdk/model/MonthlySchedule.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * MonthlySchedule */ @@ -40,7 +41,7 @@ MonthlySchedule.JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS, MonthlySchedule.JSON_PROPERTY_INTERVAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class MonthlySchedule { public static final String JSON_PROPERTY_START_TIME = "startTime"; private LocalDate startTime; @@ -106,7 +107,7 @@ public static DayOfWeekEnum fromValue(String value) { * Gets or Sets interval */ public enum IntervalEnum { - MONTLY("Montly"); + MONTHLY("Monthly"); private String value; @@ -136,7 +137,7 @@ public static IntervalEnum fromValue(String value) { } public static final String JSON_PROPERTY_INTERVAL = "interval"; - private IntervalEnum interval = IntervalEnum.MONTLY; + private IntervalEnum interval = IntervalEnum.MONTHLY; public MonthlySchedule() { } @@ -146,14 +147,13 @@ public MonthlySchedule startTime(LocalDate startTime) { return this; } - /** + /** * Get startTime * @return startTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getStartTime() { return startTime; } @@ -171,14 +171,13 @@ public MonthlySchedule endTime(LocalDate endTime) { return this; } - /** + /** * Get endTime * @return endTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getEndTime() { return endTime; } @@ -196,16 +195,15 @@ public MonthlySchedule dayOfMonth(Integer dayOfMonth) { return this; } - /** + /** * Get dayOfMonth * minimum: -5 * maximum: 28 * @return dayOfMonth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDayOfMonth() { return dayOfMonth; } @@ -223,14 +221,13 @@ public MonthlySchedule dayOfWeek(DayOfWeekEnum dayOfWeek) { return this; } - /** + /** * Get dayOfWeek * @return dayOfWeek - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DayOfWeekEnum getDayOfWeek() { return dayOfWeek; } @@ -248,15 +245,14 @@ public MonthlySchedule totalNumberOfPayments(Integer totalNumberOfPayments) { return this; } - /** + /** * Get totalNumberOfPayments * minimum: 1 * @return totalNumberOfPayments - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotalNumberOfPayments() { return totalNumberOfPayments; } @@ -274,14 +270,13 @@ public MonthlySchedule interval(IntervalEnum interval) { return this; } - /** + /** * Get interval * @return interval - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IntervalEnum getInterval() { return interval; } @@ -378,32 +373,32 @@ public String toUrlQueryString(String prefix) { // add `startTime` to the URL query string if (getStartTime() != null) { - joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `endTime` to the URL query string if (getEndTime() != null) { - joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfMonth` to the URL query string if (getDayOfMonth() != null) { - joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfWeek` to the URL query string if (getDayOfWeek() != null) { - joiner.add(String.format("%sdayOfWeek%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfWeek()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfWeek%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfWeek()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `totalNumberOfPayments` to the URL query string if (getTotalNumberOfPayments() != null) { - joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `interval` to the URL query string if (getInterval() != null) { - joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/NegativeBalanceCoverageTransaction.java b/src/main/java/unit/java/sdk/model/NegativeBalanceCoverageTransaction.java index abbc3edc..93303f18 100644 --- a/src/main/java/unit/java/sdk/model/NegativeBalanceCoverageTransaction.java +++ b/src/main/java/unit/java/sdk/model/NegativeBalanceCoverageTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * NegativeBalanceCoverageTransaction */ @@ -42,7 +43,7 @@ NegativeBalanceCoverageTransaction.JSON_PROPERTY_ATTRIBUTES, NegativeBalanceCoverageTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public NegativeBalanceCoverageTransaction attributes(FeeTransactionAllOfAttribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public NegativeBalanceCoverageTransaction relationships(NegativeBalanceCoverageT return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public NegativeBalanceCoverageTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/NegativeBalanceCoverageTransactionRelationships.java b/src/main/java/unit/java/sdk/model/NegativeBalanceCoverageTransactionRelationships.java index 8a2a7b88..36d0efb4 100644 --- a/src/main/java/unit/java/sdk/model/NegativeBalanceCoverageTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/NegativeBalanceCoverageTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * NegativeBalanceCoverageTransactionRelationships */ @@ -41,7 +42,7 @@ NegativeBalanceCoverageTransactionRelationships.JSON_PROPERTY_CUSTOMERS, NegativeBalanceCoverageTransactionRelationships.JSON_PROPERTY_RECEIVER_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class NegativeBalanceCoverageTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public NegativeBalanceCoverageTransactionRelationships account(AccountRelationsh return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public NegativeBalanceCoverageTransactionRelationships customer(CustomerRelation return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public NegativeBalanceCoverageTransactionRelationships customers(CustomersRelati return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public NegativeBalanceCoverageTransactionRelationships receiverAccount(ReceiverA return this; } - /** + /** * Get receiverAccount * @return receiverAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVER_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceiverAccountRelationship getReceiverAccount() { return receiverAccount; } diff --git a/src/main/java/unit/java/sdk/model/Occupation.java b/src/main/java/unit/java/sdk/model/Occupation.java index df13b3ba..39c5ae9b 100644 --- a/src/main/java/unit/java/sdk/model/Occupation.java +++ b/src/main/java/unit/java/sdk/model/Occupation.java @@ -30,49 +30,49 @@ */ public enum Occupation { - ARCHITECTORENGINEER("ArchitectOrEngineer"), + ARCHITECT_OR_ENGINEER("ArchitectOrEngineer"), - BUSINESSANALYSTACCOUNTANTORFINANCIALADVISOR("BusinessAnalystAccountantOrFinancialAdvisor"), + BUSINESS_ANALYST_ACCOUNTANT_OR_FINANCIAL_ADVISOR("BusinessAnalystAccountantOrFinancialAdvisor"), - COMMUNITYANDSOCIALSERVICESWORKER("CommunityAndSocialServicesWorker"), + COMMUNITY_AND_SOCIAL_SERVICES_WORKER("CommunityAndSocialServicesWorker"), - CONSTRUCTIONMECHANICORMAINTENANCEWORKER("ConstructionMechanicOrMaintenanceWorker"), + CONSTRUCTION_MECHANIC_OR_MAINTENANCE_WORKER("ConstructionMechanicOrMaintenanceWorker"), DOCTOR("Doctor"), EDUCATOR("Educator"), - ENTERTAINMENTSPORTSARTSORMEDIA("EntertainmentSportsArtsOrMedia"), + ENTERTAINMENT_SPORTS_ARTS_OR_MEDIA("EntertainmentSportsArtsOrMedia"), - EXECUTIVEORMANAGER("ExecutiveOrManager"), + EXECUTIVE_OR_MANAGER("ExecutiveOrManager"), - FARMERFISHERMANFORESTER("FarmerFishermanForester"), + FARMER_FISHERMAN_FORESTER("FarmerFishermanForester"), - FOODSERVICEWORKER("FoodServiceWorker"), + FOOD_SERVICE_WORKER("FoodServiceWorker"), - GIGWORKER("GigWorker"), + GIG_WORKER("GigWorker"), - HOSPITALITYOFFICEORADMINISTRATIVESUPPORTWORKER("HospitalityOfficeOrAdministrativeSupportWorker"), + HOSPITALITY_OFFICE_OR_ADMINISTRATIVE_SUPPORT_WORKER("HospitalityOfficeOrAdministrativeSupportWorker"), - HOUSEHOLDMANAGER("HouseholdManager"), + HOUSEHOLD_MANAGER("HouseholdManager"), - JANITORHOUSEKEEPERLANDSCAPER("JanitorHousekeeperLandscaper"), + JANITOR_HOUSEKEEPER_LANDSCAPER("JanitorHousekeeperLandscaper"), LAWYER("Lawyer"), - MANUFACTURINGORPRODUCTIONWORKER("ManufacturingOrProductionWorker"), + MANUFACTURING_OR_PRODUCTION_WORKER("ManufacturingOrProductionWorker"), - MILITARYORPUBLICSAFETY("MilitaryOrPublicSafety"), + MILITARY_OR_PUBLIC_SAFETY("MilitaryOrPublicSafety"), - NURSEHEALTHCARETECHNICIANORHEALTHCARESUPPORT("NurseHealthcareTechnicianOrHealthcareSupport"), + NURSE_HEALTHCARE_TECHNICIAN_OR_HEALTHCARE_SUPPORT("NurseHealthcareTechnicianOrHealthcareSupport"), - PERSONALCAREORSERVICEWORKER("PersonalCareOrServiceWorker"), + PERSONAL_CARE_OR_SERVICE_WORKER("PersonalCareOrServiceWorker"), - PILOTDRIVEROPERATOR("PilotDriverOperator"), + PILOT_DRIVER_OPERATOR("PilotDriverOperator"), - SALESREPRESENTATIVEBROKERAGENT("SalesRepresentativeBrokerAgent"), + SALES_REPRESENTATIVE_BROKER_AGENT("SalesRepresentativeBrokerAgent"), - SCIENTISTORTECHNOLOGIST("ScientistOrTechnologist"), + SCIENTIST_OR_TECHNOLOGIST("ScientistOrTechnologist"), STUDENT("Student"); diff --git a/src/main/java/unit/java/sdk/model/Officer.java b/src/main/java/unit/java/sdk/model/Officer.java index dbbdb80f..f0f85a9c 100644 --- a/src/main/java/unit/java/sdk/model/Officer.java +++ b/src/main/java/unit/java/sdk/model/Officer.java @@ -37,6 +37,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Officer */ @@ -62,7 +63,7 @@ Officer.JSON_PROPERTY_ANNUAL_INCOME, Officer.JSON_PROPERTY_SOURCE_OF_INCOME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Officer { public static final String JSON_PROPERTY_STATUS = "status"; private String status; @@ -109,7 +110,7 @@ public enum TitleEnum { CFO("CFO"), - BENEFITSADMINISTRATIONOFFICER("BenefitsAdministrationOfficer"), + BENEFITS_ADMINISTRATION_OFFICER("BenefitsAdministrationOfficer"), CIO("CIO"), @@ -191,14 +192,13 @@ public Officer status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { return status; } @@ -216,14 +216,13 @@ public Officer fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public FullName getFullName() { return fullName; } @@ -241,14 +240,13 @@ public Officer email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -266,14 +264,13 @@ public Officer phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -291,14 +288,13 @@ public Officer ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -316,14 +312,13 @@ public Officer passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -341,14 +336,13 @@ public Officer nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -366,14 +360,13 @@ public Officer matriculaConsular(String matriculaConsular) { return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -391,14 +384,13 @@ public Officer address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -416,14 +408,13 @@ public Officer dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -441,14 +432,13 @@ public Officer evaluationId(String evaluationId) { return this; } - /** + /** * Get evaluationId * @return evaluationId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationId() { return evaluationId; } @@ -466,14 +456,13 @@ public Officer title(TitleEnum title) { return this; } - /** + /** * Get title * @return title - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TitleEnum getTitle() { return title; } @@ -499,14 +488,13 @@ public Officer addEvaluationFlagsItem(String evaluationFlagsItem) { return this; } - /** + /** * Get evaluationFlags * @return evaluationFlags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEvaluationFlags() { return evaluationFlags; } @@ -524,14 +512,13 @@ public Officer maskedSSN(String maskedSSN) { return this; } - /** + /** * Get maskedSSN * @return maskedSSN - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_S_S_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedSSN() { return maskedSSN; } @@ -549,14 +536,13 @@ public Officer maskedPassport(String maskedPassport) { return this; } - /** + /** * Get maskedPassport * @return maskedPassport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedPassport() { return maskedPassport; } @@ -574,14 +560,13 @@ public Officer maskedMatriculaConsular(String maskedMatriculaConsular) { return this; } - /** + /** * Get maskedMatriculaConsular * @return maskedMatriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedMatriculaConsular() { return maskedMatriculaConsular; } @@ -599,14 +584,13 @@ public Officer idTheftScore(Integer idTheftScore) { return this; } - /** + /** * Get idTheftScore * @return idTheftScore - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID_THEFT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getIdTheftScore() { return idTheftScore; } @@ -624,14 +608,13 @@ public Officer occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -649,14 +632,13 @@ public Officer annualIncome(AnnualIncome annualIncome) { return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -674,14 +656,13 @@ public Officer sourceOfIncome(SourceOfIncome sourceOfIncome) { return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -806,7 +787,7 @@ public String toUrlQueryString(String prefix) { // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fullName` to the URL query string @@ -816,7 +797,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -826,22 +807,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -851,17 +832,17 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationId` to the URL query string if (getEvaluationId() != null) { - joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `title` to the URL query string if (getTitle() != null) { - joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationFlags` to the URL query string @@ -869,43 +850,43 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getEvaluationFlags().size(); i++) { joiner.add(String.format("%sevaluationFlags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `maskedSSN` to the URL query string if (getMaskedSSN() != null) { - joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedPassport` to the URL query string if (getMaskedPassport() != null) { - joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedMatriculaConsular` to the URL query string if (getMaskedMatriculaConsular() != null) { - joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idTheftScore` to the URL query string if (getIdTheftScore() != null) { - joiner.add(String.format("%sidTheftScore%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdTheftScore()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidTheftScore%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdTheftScore()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/OrgRelationship.java b/src/main/java/unit/java/sdk/model/OrgRelationship.java index 87df3383..78bfeb1f 100644 --- a/src/main/java/unit/java/sdk/model/OrgRelationship.java +++ b/src/main/java/unit/java/sdk/model/OrgRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * OrgRelationship */ @JsonPropertyOrder({ OrgRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OrgRelationship { public static final String JSON_PROPERTY_DATA = "data"; private OrgRelationshipData data; @@ -48,14 +49,13 @@ public OrgRelationship data(OrgRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/OrgRelationshipData.java b/src/main/java/unit/java/sdk/model/OrgRelationshipData.java index 792405a8..bc4f6407 100644 --- a/src/main/java/unit/java/sdk/model/OrgRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/OrgRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * OrgRelationshipData */ @@ -35,7 +36,7 @@ OrgRelationshipData.JSON_PROPERTY_ID, OrgRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OrgRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -51,14 +52,13 @@ public OrgRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -76,14 +76,13 @@ public OrgRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/OriginalTransactionRelationship.java b/src/main/java/unit/java/sdk/model/OriginalTransactionRelationship.java index c08fc9ef..c175c67d 100644 --- a/src/main/java/unit/java/sdk/model/OriginalTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/OriginalTransactionRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * OriginalTransactionRelationship */ @JsonPropertyOrder({ OriginalTransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OriginalTransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; private OriginalTransactionRelationshipData data; @@ -48,14 +49,13 @@ public OriginalTransactionRelationship data(OriginalTransactionRelationshipData return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OriginalTransactionRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/OriginalTransactionRelationshipData.java b/src/main/java/unit/java/sdk/model/OriginalTransactionRelationshipData.java index 26ea91a7..634902c5 100644 --- a/src/main/java/unit/java/sdk/model/OriginalTransactionRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/OriginalTransactionRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * OriginalTransactionRelationshipData */ @@ -35,7 +36,7 @@ OriginalTransactionRelationshipData.JSON_PROPERTY_ID, OriginalTransactionRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OriginalTransactionRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -51,14 +52,13 @@ public OriginalTransactionRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -76,14 +76,13 @@ public OriginalTransactionRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/OriginatedAchTransaction.java b/src/main/java/unit/java/sdk/model/OriginatedAchTransaction.java index 265e13a4..393f9d56 100644 --- a/src/main/java/unit/java/sdk/model/OriginatedAchTransaction.java +++ b/src/main/java/unit/java/sdk/model/OriginatedAchTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * OriginatedAchTransaction */ @@ -42,7 +43,7 @@ OriginatedAchTransaction.JSON_PROPERTY_ATTRIBUTES, OriginatedAchTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public OriginatedAchTransaction attributes(OriginatedAchTransactionAllOfAttribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OriginatedAchTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public OriginatedAchTransaction relationships(OriginatedAchTransactionRelationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OriginatedAchTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/OriginatedAchTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/OriginatedAchTransactionAllOfAttributes.java index e92c44f7..02b21ce1 100644 --- a/src/main/java/unit/java/sdk/model/OriginatedAchTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/OriginatedAchTransactionAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * OriginatedAchTransactionAllOfAttributes */ @@ -48,7 +49,7 @@ OriginatedAchTransactionAllOfAttributes.JSON_PROPERTY_SEC_CODE, OriginatedAchTransactionAllOfAttributes.JSON_PROPERTY_TRACE_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OriginatedAchTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -126,14 +127,13 @@ public OriginatedAchTransactionAllOfAttributes createdAt(OffsetDateTime createdA return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -151,14 +151,13 @@ public OriginatedAchTransactionAllOfAttributes direction(DirectionEnum direction return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -176,14 +175,13 @@ public OriginatedAchTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -201,14 +199,13 @@ public OriginatedAchTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -226,14 +223,13 @@ public OriginatedAchTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -251,14 +247,13 @@ public OriginatedAchTransactionAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -276,14 +271,13 @@ public OriginatedAchTransactionAllOfAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -301,14 +295,13 @@ public OriginatedAchTransactionAllOfAttributes counterparty(PaymentCounterparty return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentCounterparty getCounterparty() { return counterparty; } @@ -334,14 +327,13 @@ public OriginatedAchTransactionAllOfAttributes putTagsItem(String key, String ta return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -359,14 +351,13 @@ public OriginatedAchTransactionAllOfAttributes secCode(String secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecCode() { return secCode; } @@ -384,14 +375,13 @@ public OriginatedAchTransactionAllOfAttributes traceNumber(String traceNumber) { return this; } - /** + /** * Get traceNumber * @return traceNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTraceNumber() { return traceNumber; } @@ -498,37 +488,37 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -541,18 +531,18 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `traceNumber` to the URL query string if (getTraceNumber() != null) { - joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/OriginatedAchTransactionRelationships.java b/src/main/java/unit/java/sdk/model/OriginatedAchTransactionRelationships.java index 969ec782..df30535c 100644 --- a/src/main/java/unit/java/sdk/model/OriginatedAchTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/OriginatedAchTransactionRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * OriginatedAchTransactionRelationships */ @@ -43,7 +44,7 @@ OriginatedAchTransactionRelationships.JSON_PROPERTY_PAYMENT, OriginatedAchTransactionRelationships.JSON_PROPERTY_RECURRING_PAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class OriginatedAchTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -68,14 +69,13 @@ public OriginatedAchTransactionRelationships account(AccountRelationship account return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public OriginatedAchTransactionRelationships customer(CustomerRelationship custo return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -118,14 +117,13 @@ public OriginatedAchTransactionRelationships customers(CustomersRelationship cus return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -143,14 +141,13 @@ public OriginatedAchTransactionRelationships payment(PaymentRelationship payment return this; } - /** + /** * Get payment * @return payment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentRelationship getPayment() { return payment; } @@ -168,14 +165,13 @@ public OriginatedAchTransactionRelationships recurringPayment(RecurringPaymentRe return this; } - /** + /** * Get recurringPayment * @return recurringPayment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECURRING_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringPaymentRelationship getRecurringPayment() { return recurringPayment; } diff --git a/src/main/java/unit/java/sdk/model/PaginationMeta.java b/src/main/java/unit/java/sdk/model/PaginationMeta.java index 9ac4b892..aa2a0358 100644 --- a/src/main/java/unit/java/sdk/model/PaginationMeta.java +++ b/src/main/java/unit/java/sdk/model/PaginationMeta.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PaginationMeta */ @JsonPropertyOrder({ PaginationMeta.JSON_PROPERTY_PAGINATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PaginationMeta { public static final String JSON_PROPERTY_PAGINATION = "pagination"; private PaginationMetaPagination pagination; @@ -48,14 +49,13 @@ public PaginationMeta pagination(PaginationMetaPagination pagination) { return this; } - /** + /** * Get pagination * @return pagination - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAGINATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMetaPagination getPagination() { return pagination; } diff --git a/src/main/java/unit/java/sdk/model/PaginationMetaPagination.java b/src/main/java/unit/java/sdk/model/PaginationMetaPagination.java index 1869a0c6..09160140 100644 --- a/src/main/java/unit/java/sdk/model/PaginationMetaPagination.java +++ b/src/main/java/unit/java/sdk/model/PaginationMetaPagination.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PaginationMetaPagination */ @@ -36,7 +37,7 @@ PaginationMetaPagination.JSON_PROPERTY_OFFSET, PaginationMetaPagination.JSON_PROPERTY_TOTAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PaginationMetaPagination { public static final String JSON_PROPERTY_LIMIT = "limit"; private Integer limit; @@ -55,14 +56,13 @@ public PaginationMetaPagination limit(Integer limit) { return this; } - /** + /** * Get limit * @return limit - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getLimit() { return limit; } @@ -80,14 +80,13 @@ public PaginationMetaPagination offset(Integer offset) { return this; } - /** + /** * Get offset * @return offset - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getOffset() { return offset; } @@ -105,14 +104,13 @@ public PaginationMetaPagination total(Integer total) { return this; } - /** + /** * Get total * @return total - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotal() { return total; } @@ -203,17 +201,17 @@ public String toUrlQueryString(String prefix) { // add `limit` to the URL query string if (getLimit() != null) { - joiner.add(String.format("%slimit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slimit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `offset` to the URL query string if (getOffset() != null) { - joiner.add(String.format("%soffset%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOffset()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soffset%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOffset()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `total` to the URL query string if (getTotal() != null) { - joiner.add(String.format("%stotal%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stotal%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotal()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Payment.java b/src/main/java/unit/java/sdk/model/Payment.java index 5e6652e7..52cedd14 100644 --- a/src/main/java/unit/java/sdk/model/Payment.java +++ b/src/main/java/unit/java/sdk/model/Payment.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * Payment */ @@ -39,7 +40,7 @@ Payment.JSON_PROPERTY_TYPE, Payment.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -56,11 +57,11 @@ public class Payment { * Gets or Sets type */ public enum TypeEnum { - ACHPAYMENT("achPayment"), + ACH_PAYMENT("achPayment"), - BOOKPAYMENT("bookPayment"), + BOOK_PAYMENT("bookPayment"), - WIREPAYMENT("wirePayment"); + WIRE_PAYMENT("wirePayment"); private String value; @@ -103,14 +104,13 @@ public Payment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -128,14 +128,13 @@ public Payment id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -224,12 +223,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/PaymentAdvanceTransaction.java b/src/main/java/unit/java/sdk/model/PaymentAdvanceTransaction.java index 3462c42e..2585b4f0 100644 --- a/src/main/java/unit/java/sdk/model/PaymentAdvanceTransaction.java +++ b/src/main/java/unit/java/sdk/model/PaymentAdvanceTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * PaymentAdvanceTransaction */ @@ -42,7 +43,7 @@ PaymentAdvanceTransaction.JSON_PROPERTY_ATTRIBUTES, PaymentAdvanceTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public PaymentAdvanceTransaction attributes(CheckDepositTransactionAllOfAttribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public PaymentAdvanceTransaction relationships(PaymentAdvanceTransactionRelation return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentAdvanceTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/PaymentAdvanceTransactionRelationship.java b/src/main/java/unit/java/sdk/model/PaymentAdvanceTransactionRelationship.java index 76cd41b5..61b5c742 100644 --- a/src/main/java/unit/java/sdk/model/PaymentAdvanceTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/PaymentAdvanceTransactionRelationship.java @@ -25,45 +25,45 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PaymentAdvanceTransactionRelationship */ @JsonPropertyOrder({ PaymentAdvanceTransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PaymentAdvanceTransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public PaymentAdvanceTransactionRelationship() { } - public PaymentAdvanceTransactionRelationship data(TransactionRelationshipData data) { + public PaymentAdvanceTransactionRelationship data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/PaymentAdvanceTransactionRelationships.java b/src/main/java/unit/java/sdk/model/PaymentAdvanceTransactionRelationships.java index 77c45729..8877aba3 100644 --- a/src/main/java/unit/java/sdk/model/PaymentAdvanceTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/PaymentAdvanceTransactionRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PaymentAdvanceTransactionRelationships */ @@ -39,7 +40,7 @@ PaymentAdvanceTransactionRelationships.JSON_PROPERTY_CUSTOMER, PaymentAdvanceTransactionRelationships.JSON_PROPERTY_RECEIVED_PAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PaymentAdvanceTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public PaymentAdvanceTransactionRelationships account(AccountRelationship accoun return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public PaymentAdvanceTransactionRelationships customer(CustomerRelationship cust return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public PaymentAdvanceTransactionRelationships receivedPayment(ReceivedPaymentRel return this; } - /** + /** * Get receivedPayment * @return receivedPayment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVED_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivedPaymentRelationship getReceivedPayment() { return receivedPayment; } diff --git a/src/main/java/unit/java/sdk/model/PaymentCounterparty.java b/src/main/java/unit/java/sdk/model/PaymentCounterparty.java index 5a065c40..21669d84 100644 --- a/src/main/java/unit/java/sdk/model/PaymentCounterparty.java +++ b/src/main/java/unit/java/sdk/model/PaymentCounterparty.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PaymentCounterparty */ @@ -37,7 +38,7 @@ PaymentCounterparty.JSON_PROPERTY_ACCOUNT_TYPE, PaymentCounterparty.JSON_PROPERTY_NAME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PaymentCounterparty { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; @@ -96,14 +97,13 @@ public PaymentCounterparty routingNumber(String routingNumber) { return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -121,14 +121,13 @@ public PaymentCounterparty accountNumber(String accountNumber) { return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { return accountNumber; } @@ -146,14 +145,13 @@ public PaymentCounterparty accountType(AccountTypeEnum accountType) { return this; } - /** + /** * Get accountType * @return accountType - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountTypeEnum getAccountType() { return accountType; } @@ -171,14 +169,13 @@ public PaymentCounterparty name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -271,22 +268,22 @@ public String toUrlQueryString(String prefix) { // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountType` to the URL query string if (getAccountType() != null) { - joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/PaymentRelationship.java b/src/main/java/unit/java/sdk/model/PaymentRelationship.java index 2306880f..5e0fecb9 100644 --- a/src/main/java/unit/java/sdk/model/PaymentRelationship.java +++ b/src/main/java/unit/java/sdk/model/PaymentRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PaymentRelationship */ @JsonPropertyOrder({ PaymentRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PaymentRelationship { public static final String JSON_PROPERTY_DATA = "data"; private PaymentRelationshipData data; @@ -48,14 +49,13 @@ public PaymentRelationship data(PaymentRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/PaymentRelationshipData.java b/src/main/java/unit/java/sdk/model/PaymentRelationshipData.java index 64de6a2c..1c8e6ae8 100644 --- a/src/main/java/unit/java/sdk/model/PaymentRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/PaymentRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PaymentRelationshipData */ @@ -35,7 +36,7 @@ PaymentRelationshipData.JSON_PROPERTY_ID, PaymentRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PaymentRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -46,21 +47,21 @@ public class PaymentRelationshipData { public enum TypeEnum { PAYMENT("payment"), - ACHPAYMENT("achPayment"), + ACH_PAYMENT("achPayment"), - CARDPAYMENT("cardPayment"), + CARD_PAYMENT("cardPayment"), - CHECKPAYMENT("checkPayment"), + CHECK_PAYMENT("checkPayment"), - RECURRINGPAYMENT("recurringPayment"), + RECURRING_PAYMENT("recurringPayment"), - PAYMENTADVANCE("paymentAdvance"), + PAYMENT_ADVANCE("paymentAdvance"), - REPAYPAYMENTADVANCE("repayPaymentAdvance"), + REPAY_PAYMENT_ADVANCE("repayPaymentAdvance"), - RECEIVEPAYMENT("receivePayment"), + RECEIVE_PAYMENT("receivePayment"), - REWARDEDTRANSACTION("rewardedTransaction"); + REWARDED_TRANSACTION("rewardedTransaction"); private String value; @@ -100,14 +101,13 @@ public PaymentRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -125,14 +125,13 @@ public PaymentRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -221,12 +220,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/Phone.java b/src/main/java/unit/java/sdk/model/Phone.java index 5a29c8f1..f874eec9 100644 --- a/src/main/java/unit/java/sdk/model/Phone.java +++ b/src/main/java/unit/java/sdk/model/Phone.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Phone */ @@ -35,7 +36,7 @@ Phone.JSON_PROPERTY_COUNTRY_CODE, Phone.JSON_PROPERTY_NUMBER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Phone { public static final String JSON_PROPERTY_COUNTRY_CODE = "countryCode"; private String countryCode; @@ -51,14 +52,13 @@ public Phone countryCode(String countryCode) { return this; } - /** + /** * Get countryCode * @return countryCode - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCountryCode() { return countryCode; } @@ -76,14 +76,13 @@ public Phone number(String number) { return this; } - /** + /** * Get number * @return number - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getNumber() { return number; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `countryCode` to the URL query string if (getCountryCode() != null) { - joiner.add(String.format("%scountryCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCountryCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scountryCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCountryCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `number` to the URL query string if (getNumber() != null) { - joiner.add(String.format("%snumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/PhysicalCardStatus.java b/src/main/java/unit/java/sdk/model/PhysicalCardStatus.java index 0b536f6b..4cd85a3f 100644 --- a/src/main/java/unit/java/sdk/model/PhysicalCardStatus.java +++ b/src/main/java/unit/java/sdk/model/PhysicalCardStatus.java @@ -40,13 +40,13 @@ public enum PhysicalCardStatus { FROZEN("Frozen"), - CLOSEDBYCUSTOMER("ClosedByCustomer"), + CLOSED_BY_CUSTOMER("ClosedByCustomer"), UNKNOWN("Unknown"), - SUSPECTEDFRAUD("SuspectedFraud"), + SUSPECTED_FRAUD("SuspectedFraud"), - ACTIVEFORONLINEUSE("ActiveForOnlineUse"); + ACTIVE_FOR_ONLINE_USE("ActiveForOnlineUse"); private String value; diff --git a/src/main/java/unit/java/sdk/model/PowerOfAttorneyAgent.java b/src/main/java/unit/java/sdk/model/PowerOfAttorneyAgent.java index 769d7e9b..c4be3ff5 100644 --- a/src/main/java/unit/java/sdk/model/PowerOfAttorneyAgent.java +++ b/src/main/java/unit/java/sdk/model/PowerOfAttorneyAgent.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PowerOfAttorneyAgent */ @@ -55,7 +56,7 @@ PowerOfAttorneyAgent.JSON_PROPERTY_MASKED_MATRICULA_CONSULAR, PowerOfAttorneyAgent.JSON_PROPERTY_ID_THEFT_SCORE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PowerOfAttorneyAgent { public static final String JSON_PROPERTY_STATUS = "status"; private String status; @@ -113,14 +114,13 @@ public PowerOfAttorneyAgent status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { return status; } @@ -138,14 +138,13 @@ public PowerOfAttorneyAgent fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -163,14 +162,13 @@ public PowerOfAttorneyAgent email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -188,14 +186,13 @@ public PowerOfAttorneyAgent phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -213,14 +210,13 @@ public PowerOfAttorneyAgent ssn(String ssn) { return this; } - /** + /** * Get ssn * @return ssn - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SSN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSsn() { return ssn; } @@ -238,14 +234,13 @@ public PowerOfAttorneyAgent passport(String passport) { return this; } - /** + /** * Get passport * @return passport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPassport() { return passport; } @@ -263,14 +258,13 @@ public PowerOfAttorneyAgent nationality(String nationality) { return this; } - /** + /** * Get nationality * @return nationality - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NATIONALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNationality() { return nationality; } @@ -288,14 +282,13 @@ public PowerOfAttorneyAgent matriculaConsular(String matriculaConsular) { return this; } - /** + /** * Get matriculaConsular * @return matriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMatriculaConsular() { return matriculaConsular; } @@ -313,14 +306,13 @@ public PowerOfAttorneyAgent address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -338,14 +330,13 @@ public PowerOfAttorneyAgent dateOfBirth(LocalDate dateOfBirth) { return this; } - /** + /** * Get dateOfBirth * @return dateOfBirth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATE_OF_BIRTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getDateOfBirth() { return dateOfBirth; } @@ -363,14 +354,13 @@ public PowerOfAttorneyAgent evaluationId(String evaluationId) { return this; } - /** + /** * Get evaluationId * @return evaluationId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEvaluationId() { return evaluationId; } @@ -396,14 +386,13 @@ public PowerOfAttorneyAgent addEvaluationFlagsItem(String evaluationFlagsItem) { return this; } - /** + /** * Get evaluationFlags * @return evaluationFlags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EVALUATION_FLAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEvaluationFlags() { return evaluationFlags; } @@ -421,14 +410,13 @@ public PowerOfAttorneyAgent maskedSSN(String maskedSSN) { return this; } - /** + /** * Get maskedSSN * @return maskedSSN - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_S_S_N) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedSSN() { return maskedSSN; } @@ -446,14 +434,13 @@ public PowerOfAttorneyAgent maskedPassport(String maskedPassport) { return this; } - /** + /** * Get maskedPassport * @return maskedPassport - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_PASSPORT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedPassport() { return maskedPassport; } @@ -471,14 +458,13 @@ public PowerOfAttorneyAgent maskedMatriculaConsular(String maskedMatriculaConsul return this; } - /** + /** * Get maskedMatriculaConsular * @return maskedMatriculaConsular - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_MASKED_MATRICULA_CONSULAR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMaskedMatriculaConsular() { return maskedMatriculaConsular; } @@ -496,14 +482,13 @@ public PowerOfAttorneyAgent idTheftScore(Integer idTheftScore) { return this; } - /** + /** * Get idTheftScore * @return idTheftScore - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID_THEFT_SCORE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getIdTheftScore() { return idTheftScore; } @@ -620,7 +605,7 @@ public String toUrlQueryString(String prefix) { // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `fullName` to the URL query string @@ -630,7 +615,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -640,22 +625,22 @@ public String toUrlQueryString(String prefix) { // add `ssn` to the URL query string if (getSsn() != null) { - joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sssn%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSsn()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `passport` to the URL query string if (getPassport() != null) { - joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nationality` to the URL query string if (getNationality() != null) { - joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snationality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNationality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `matriculaConsular` to the URL query string if (getMatriculaConsular() != null) { - joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string @@ -665,12 +650,12 @@ public String toUrlQueryString(String prefix) { // add `dateOfBirth` to the URL query string if (getDateOfBirth() != null) { - joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdateOfBirth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDateOfBirth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationId` to the URL query string if (getEvaluationId() != null) { - joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sevaluationId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEvaluationId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `evaluationFlags` to the URL query string @@ -678,28 +663,28 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getEvaluationFlags().size(); i++) { joiner.add(String.format("%sevaluationFlags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getEvaluationFlags().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `maskedSSN` to the URL query string if (getMaskedSSN() != null) { - joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedSSN%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedSSN()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedPassport` to the URL query string if (getMaskedPassport() != null) { - joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedPassport%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedPassport()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `maskedMatriculaConsular` to the URL query string if (getMaskedMatriculaConsular() != null) { - joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smaskedMatriculaConsular%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMaskedMatriculaConsular()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `idTheftScore` to the URL query string if (getIdTheftScore() != null) { - joiner.add(String.format("%sidTheftScore%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIdTheftScore()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sidTheftScore%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdTheftScore()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/PurchaseAuthorization.java b/src/main/java/unit/java/sdk/model/PurchaseAuthorization.java index da5580ec..838f7c0a 100644 --- a/src/main/java/unit/java/sdk/model/PurchaseAuthorization.java +++ b/src/main/java/unit/java/sdk/model/PurchaseAuthorization.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * PurchaseAuthorization */ @@ -42,7 +43,7 @@ PurchaseAuthorization.JSON_PROPERTY_ATTRIBUTES, PurchaseAuthorization.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public PurchaseAuthorization attributes(PurchaseAuthorizationAllOfAttributes att return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PurchaseAuthorizationAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public PurchaseAuthorization relationships(AuthorizationRequestRelationships rel return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AuthorizationRequestRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/PurchaseAuthorizationAllOfAttributes.java b/src/main/java/unit/java/sdk/model/PurchaseAuthorizationAllOfAttributes.java index 81369879..87e65d11 100644 --- a/src/main/java/unit/java/sdk/model/PurchaseAuthorizationAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/PurchaseAuthorizationAllOfAttributes.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PurchaseAuthorizationAllOfAttributes */ @@ -56,7 +57,7 @@ PurchaseAuthorizationAllOfAttributes.JSON_PROPERTY_CARD_NETWORK, PurchaseAuthorizationAllOfAttributes.JSON_PROPERTY_CASH_WITHDRAWAL_AMOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PurchaseAuthorizationAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -117,14 +118,13 @@ public PurchaseAuthorizationAllOfAttributes createdAt(OffsetDateTime createdAt) return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -142,14 +142,13 @@ public PurchaseAuthorizationAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -167,14 +166,13 @@ public PurchaseAuthorizationAllOfAttributes status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getStatus() { return status; } @@ -192,14 +190,13 @@ public PurchaseAuthorizationAllOfAttributes partialApprovalAllowed(Boolean parti return this; } - /** + /** * Get partialApprovalAllowed * @return partialApprovalAllowed - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PARTIAL_APPROVAL_ALLOWED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getPartialApprovalAllowed() { return partialApprovalAllowed; } @@ -217,14 +214,13 @@ public PurchaseAuthorizationAllOfAttributes approvedAmount(Integer approvedAmoun return this; } - /** + /** * Get approvedAmount * @return approvedAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_APPROVED_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getApprovedAmount() { return approvedAmount; } @@ -242,14 +238,13 @@ public PurchaseAuthorizationAllOfAttributes declineReason(String declineReason) return this; } - /** + /** * Get declineReason * @return declineReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DECLINE_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeclineReason() { return declineReason; } @@ -267,14 +262,13 @@ public PurchaseAuthorizationAllOfAttributes merchant(Merchant merchant) { return this; } - /** + /** * Get merchant * @return merchant - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Merchant getMerchant() { return merchant; } @@ -292,14 +286,13 @@ public PurchaseAuthorizationAllOfAttributes recurring(Boolean recurring) { return this; } - /** + /** * Get recurring * @return recurring - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getRecurring() { return recurring; } @@ -325,14 +318,13 @@ public PurchaseAuthorizationAllOfAttributes putTagsItem(String key, String tagsI return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -350,14 +342,13 @@ public PurchaseAuthorizationAllOfAttributes healthcareAmounts(HealthcareAmounts return this; } - /** + /** * Get healthcareAmounts * @return healthcareAmounts - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_HEALTHCARE_AMOUNTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public HealthcareAmounts getHealthcareAmounts() { return healthcareAmounts; } @@ -375,14 +366,13 @@ public PurchaseAuthorizationAllOfAttributes paymentMethod(String paymentMethod) return this; } - /** + /** * Get paymentMethod * @return paymentMethod - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPaymentMethod() { return paymentMethod; } @@ -400,14 +390,13 @@ public PurchaseAuthorizationAllOfAttributes digitalWallet(String digitalWallet) return this; } - /** + /** * Get digitalWallet * @return digitalWallet - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIGITAL_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDigitalWallet() { return digitalWallet; } @@ -425,14 +414,13 @@ public PurchaseAuthorizationAllOfAttributes cardVerificationData(CardVerificatio return this; } - /** + /** * Get cardVerificationData * @return cardVerificationData - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_VERIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardVerificationData getCardVerificationData() { return cardVerificationData; } @@ -450,14 +438,13 @@ public PurchaseAuthorizationAllOfAttributes ecommerce(Boolean ecommerce) { return this; } - /** + /** * Get ecommerce * @return ecommerce - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ECOMMERCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getEcommerce() { return ecommerce; } @@ -475,14 +462,13 @@ public PurchaseAuthorizationAllOfAttributes cardPresent(Boolean cardPresent) { return this; } - /** + /** * Get cardPresent * @return cardPresent - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_PRESENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getCardPresent() { return cardPresent; } @@ -500,14 +486,13 @@ public PurchaseAuthorizationAllOfAttributes cardNetwork(String cardNetwork) { return this; } - /** + /** * Get cardNetwork * @return cardNetwork - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardNetwork() { return cardNetwork; } @@ -525,14 +510,13 @@ public PurchaseAuthorizationAllOfAttributes cashWithdrawalAmount(Integer cashWit return this; } - /** + /** * Get cashWithdrawalAmount * @return cashWithdrawalAmount - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CASH_WITHDRAWAL_AMOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getCashWithdrawalAmount() { return cashWithdrawalAmount; } @@ -651,32 +635,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `partialApprovalAllowed` to the URL query string if (getPartialApprovalAllowed() != null) { - joiner.add(String.format("%spartialApprovalAllowed%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPartialApprovalAllowed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spartialApprovalAllowed%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPartialApprovalAllowed()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `approvedAmount` to the URL query string if (getApprovedAmount() != null) { - joiner.add(String.format("%sapprovedAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getApprovedAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sapprovedAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getApprovedAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `declineReason` to the URL query string if (getDeclineReason() != null) { - joiner.add(String.format("%sdeclineReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeclineReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdeclineReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeclineReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `merchant` to the URL query string @@ -686,7 +670,7 @@ public String toUrlQueryString(String prefix) { // add `recurring` to the URL query string if (getRecurring() != null) { - joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -694,7 +678,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -705,12 +689,12 @@ public String toUrlQueryString(String prefix) { // add `paymentMethod` to the URL query string if (getPaymentMethod() != null) { - joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `digitalWallet` to the URL query string if (getDigitalWallet() != null) { - joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardVerificationData` to the URL query string @@ -720,22 +704,22 @@ public String toUrlQueryString(String prefix) { // add `ecommerce` to the URL query string if (getEcommerce() != null) { - joiner.add(String.format("%secommerce%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEcommerce()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%secommerce%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEcommerce()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardPresent` to the URL query string if (getCardPresent() != null) { - joiner.add(String.format("%scardPresent%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardPresent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardPresent%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardPresent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardNetwork` to the URL query string if (getCardNetwork() != null) { - joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cashWithdrawalAmount` to the URL query string if (getCashWithdrawalAmount() != null) { - joiner.add(String.format("%scashWithdrawalAmount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCashWithdrawalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scashWithdrawalAmount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCashWithdrawalAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/PurchaseTransaction.java b/src/main/java/unit/java/sdk/model/PurchaseTransaction.java index 1eec0a9a..91fbf439 100644 --- a/src/main/java/unit/java/sdk/model/PurchaseTransaction.java +++ b/src/main/java/unit/java/sdk/model/PurchaseTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * PurchaseTransaction */ @@ -42,7 +43,7 @@ PurchaseTransaction.JSON_PROPERTY_ATTRIBUTES, PurchaseTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public PurchaseTransaction attributes(PurchaseTransactionAllOfAttributes attribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PurchaseTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public PurchaseTransaction relationships(PurchaseTransactionRelationships relati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PurchaseTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/PurchaseTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/PurchaseTransactionAllOfAttributes.java index 389debdb..193bcf23 100644 --- a/src/main/java/unit/java/sdk/model/PurchaseTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/PurchaseTransactionAllOfAttributes.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PurchaseTransactionAllOfAttributes */ @@ -62,7 +63,7 @@ PurchaseTransactionAllOfAttributes.JSON_PROPERTY_CARD_VERIFICATION_DATA, PurchaseTransactionAllOfAttributes.JSON_PROPERTY_CARD_NETWORK }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PurchaseTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -164,14 +165,13 @@ public PurchaseTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -189,14 +189,13 @@ public PurchaseTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -214,14 +213,13 @@ public PurchaseTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -239,14 +237,13 @@ public PurchaseTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -264,14 +261,13 @@ public PurchaseTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -289,14 +285,13 @@ public PurchaseTransactionAllOfAttributes cardLast4Digits(String cardLast4Digits return this; } - /** + /** * Get cardLast4Digits * @return cardLast4Digits - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD_LAST4_DIGITS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCardLast4Digits() { return cardLast4Digits; } @@ -314,14 +309,13 @@ public PurchaseTransactionAllOfAttributes merchant(Merchant merchant) { return this; } - /** + /** * Get merchant * @return merchant - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MERCHANT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Merchant getMerchant() { return merchant; } @@ -339,14 +333,13 @@ public PurchaseTransactionAllOfAttributes coordinates(Coordinates coordinates) { return this; } - /** + /** * Get coordinates * @return coordinates - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COORDINATES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Coordinates getCoordinates() { return coordinates; } @@ -364,14 +357,13 @@ public PurchaseTransactionAllOfAttributes recurring(Boolean recurring) { return this; } - /** + /** * Get recurring * @return recurring - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECURRING) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getRecurring() { return recurring; } @@ -397,14 +389,13 @@ public PurchaseTransactionAllOfAttributes putTagsItem(String key, String tagsIte return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -422,14 +413,13 @@ public PurchaseTransactionAllOfAttributes networkTransactionId(String networkTra return this; } - /** + /** * Get networkTransactionId * @return networkTransactionId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NETWORK_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getNetworkTransactionId() { return networkTransactionId; } @@ -447,13 +437,12 @@ public PurchaseTransactionAllOfAttributes interchange(String interchange) { return this; } - /** + /** * Get interchange * @return interchange - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getInterchange() { return interchange.orElse(null); } @@ -480,14 +469,13 @@ public PurchaseTransactionAllOfAttributes ecommerce(Boolean ecommerce) { return this; } - /** + /** * Get ecommerce * @return ecommerce - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ECOMMERCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getEcommerce() { return ecommerce; } @@ -505,14 +493,13 @@ public PurchaseTransactionAllOfAttributes cardPresent(Boolean cardPresent) { return this; } - /** + /** * Get cardPresent * @return cardPresent - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD_PRESENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getCardPresent() { return cardPresent; } @@ -530,13 +517,12 @@ public PurchaseTransactionAllOfAttributes internationalServiceFee(Integer intern return this; } - /** + /** * Get internationalServiceFee * @return internationalServiceFee - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public Integer getInternationalServiceFee() { return internationalServiceFee.orElse(null); } @@ -563,14 +549,13 @@ public PurchaseTransactionAllOfAttributes paymentMethod(String paymentMethod) { return this; } - /** + /** * Get paymentMethod * @return paymentMethod - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPaymentMethod() { return paymentMethod; } @@ -588,14 +573,13 @@ public PurchaseTransactionAllOfAttributes digitalWallet(String digitalWallet) { return this; } - /** + /** * Get digitalWallet * @return digitalWallet - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DIGITAL_WALLET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDigitalWallet() { return digitalWallet; } @@ -613,14 +597,13 @@ public PurchaseTransactionAllOfAttributes cardVerificationData(CardVerificationD return this; } - /** + /** * Get cardVerificationData * @return cardVerificationData - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_VERIFICATION_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardVerificationData getCardVerificationData() { return cardVerificationData; } @@ -638,14 +621,13 @@ public PurchaseTransactionAllOfAttributes cardNetwork(String cardNetwork) { return this; } - /** + /** * Get cardNetwork * @return cardNetwork - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD_NETWORK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCardNetwork() { return cardNetwork; } @@ -779,32 +761,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardLast4Digits` to the URL query string if (getCardLast4Digits() != null) { - joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardLast4Digits%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardLast4Digits()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `merchant` to the URL query string @@ -819,7 +801,7 @@ public String toUrlQueryString(String prefix) { // add `recurring` to the URL query string if (getRecurring() != null) { - joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srecurring%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRecurring()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -827,43 +809,43 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `networkTransactionId` to the URL query string if (getNetworkTransactionId() != null) { - joiner.add(String.format("%snetworkTransactionId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNetworkTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snetworkTransactionId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNetworkTransactionId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `interchange` to the URL query string if (getInterchange() != null) { - joiner.add(String.format("%sinterchange%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInterchange()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinterchange%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInterchange()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ecommerce` to the URL query string if (getEcommerce() != null) { - joiner.add(String.format("%secommerce%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEcommerce()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%secommerce%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEcommerce()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardPresent` to the URL query string if (getCardPresent() != null) { - joiner.add(String.format("%scardPresent%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardPresent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardPresent%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardPresent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `internationalServiceFee` to the URL query string if (getInternationalServiceFee() != null) { - joiner.add(String.format("%sinternationalServiceFee%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInternationalServiceFee()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinternationalServiceFee%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInternationalServiceFee()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `paymentMethod` to the URL query string if (getPaymentMethod() != null) { - joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spaymentMethod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPaymentMethod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `digitalWallet` to the URL query string if (getDigitalWallet() != null) { - joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdigitalWallet%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDigitalWallet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cardVerificationData` to the URL query string @@ -873,7 +855,7 @@ public String toUrlQueryString(String prefix) { // add `cardNetwork` to the URL query string if (getCardNetwork() != null) { - joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scardNetwork%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCardNetwork()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/PurchaseTransactionRelationships.java b/src/main/java/unit/java/sdk/model/PurchaseTransactionRelationships.java index a4d51a09..837b012f 100644 --- a/src/main/java/unit/java/sdk/model/PurchaseTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/PurchaseTransactionRelationships.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PurchaseTransactionRelationships */ @@ -45,7 +46,7 @@ PurchaseTransactionRelationships.JSON_PROPERTY_AUTHORIZATION, PurchaseTransactionRelationships.JSON_PROPERTY_AUTHORIZATION_REQUEST }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PurchaseTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -73,14 +74,13 @@ public PurchaseTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -98,14 +98,13 @@ public PurchaseTransactionRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -123,14 +122,13 @@ public PurchaseTransactionRelationships customers(CustomersRelationship customer return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -148,14 +146,13 @@ public PurchaseTransactionRelationships card(CardRelationship card) { return this; } - /** + /** * Get card * @return card - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardRelationship getCard() { return card; } @@ -173,14 +170,13 @@ public PurchaseTransactionRelationships authorization(AuthorizationRelationship return this; } - /** + /** * Get authorization * @return authorization - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AUTHORIZATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AuthorizationRelationship getAuthorization() { return authorization; } @@ -198,14 +194,13 @@ public PurchaseTransactionRelationships authorizationRequest(AuthorizationReques return this; } - /** + /** * Get authorizationRequest * @return authorizationRequest - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUTHORIZATION_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AuthorizationRequestRelationship getAuthorizationRequest() { return authorizationRequest; } diff --git a/src/main/java/unit/java/sdk/model/PushToCardReversalTransaction.java b/src/main/java/unit/java/sdk/model/PushToCardReversalTransaction.java index 5d8da374..4ccfa08e 100644 --- a/src/main/java/unit/java/sdk/model/PushToCardReversalTransaction.java +++ b/src/main/java/unit/java/sdk/model/PushToCardReversalTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * PushToCardReversalTransaction */ @@ -42,7 +43,7 @@ PushToCardReversalTransaction.JSON_PROPERTY_ATTRIBUTES, PushToCardReversalTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public PushToCardReversalTransaction attributes(FeeTransactionAllOfAttributes at return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FeeTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public PushToCardReversalTransaction relationships(PushToCardReversalTransaction return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PushToCardReversalTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/PushToCardReversalTransactionRelationships.java b/src/main/java/unit/java/sdk/model/PushToCardReversalTransactionRelationships.java index 78c012d3..0bb963e9 100644 --- a/src/main/java/unit/java/sdk/model/PushToCardReversalTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/PushToCardReversalTransactionRelationships.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * PushToCardReversalTransactionRelationships */ @@ -45,7 +46,7 @@ PushToCardReversalTransactionRelationships.JSON_PROPERTY_ORG, PushToCardReversalTransactionRelationships.JSON_PROPERTY_ORIGINAL_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class PushToCardReversalTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -73,14 +74,13 @@ public PushToCardReversalTransactionRelationships account(AccountRelationship ac return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -98,14 +98,13 @@ public PushToCardReversalTransactionRelationships customer(CustomerRelationship return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -123,14 +122,13 @@ public PushToCardReversalTransactionRelationships customers(CustomersRelationshi return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -148,14 +146,13 @@ public PushToCardReversalTransactionRelationships payment(PaymentRelationship pa return this; } - /** + /** * Get payment * @return payment - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaymentRelationship getPayment() { return payment; } @@ -173,14 +170,13 @@ public PushToCardReversalTransactionRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationship getOrg() { return org; } @@ -198,14 +194,13 @@ public PushToCardReversalTransactionRelationships originalTransaction(OriginalTr return this; } - /** + /** * Get originalTransaction * @return originalTransaction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORIGINAL_TRANSACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OriginalTransactionRelationship getOriginalTransaction() { return originalTransaction; } diff --git a/src/main/java/unit/java/sdk/model/ReceivePaymentTransactionRelationship.java b/src/main/java/unit/java/sdk/model/ReceivePaymentTransactionRelationship.java index 21333611..cc7eb983 100644 --- a/src/main/java/unit/java/sdk/model/ReceivePaymentTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/ReceivePaymentTransactionRelationship.java @@ -25,45 +25,45 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivePaymentTransactionRelationship */ @JsonPropertyOrder({ ReceivePaymentTransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivePaymentTransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public ReceivePaymentTransactionRelationship() { } - public ReceivePaymentTransactionRelationship data(TransactionRelationshipData data) { + public ReceivePaymentTransactionRelationship data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/ReceivePaymentTransactionRelationshipData.java b/src/main/java/unit/java/sdk/model/ReceivePaymentTransactionRelationshipData.java new file mode 100644 index 00000000..ca7ae0a2 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReceivePaymentTransactionRelationshipData.java @@ -0,0 +1,185 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReceivePaymentTransactionRelationshipData + */ +@JsonPropertyOrder({ + ReceivePaymentTransactionRelationshipData.JSON_PROPERTY_TYPE, + ReceivePaymentTransactionRelationshipData.JSON_PROPERTY_ID +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReceivePaymentTransactionRelationshipData { + public static final String JSON_PROPERTY_TYPE = "type"; + private String type = "transaction"; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public ReceivePaymentTransactionRelationshipData() { + } + + public ReceivePaymentTransactionRelationshipData type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(String type) { + this.type = type; + } + + + public ReceivePaymentTransactionRelationshipData id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + /** + * Return true if this Receive_Payment_Transaction_Relationship_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReceivePaymentTransactionRelationshipData receivePaymentTransactionRelationshipData = (ReceivePaymentTransactionRelationshipData) o; + return Objects.equals(this.type, receivePaymentTransactionRelationshipData.type) && + Objects.equals(this.id, receivePaymentTransactionRelationshipData.id); + } + + @Override + public int hashCode() { + return Objects.hash(type, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReceivePaymentTransactionRelationshipData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `id` to the URL query string + if (getId() != null) { + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReceivedAchTransaction.java b/src/main/java/unit/java/sdk/model/ReceivedAchTransaction.java index ebfa8158..1e92f054 100644 --- a/src/main/java/unit/java/sdk/model/ReceivedAchTransaction.java +++ b/src/main/java/unit/java/sdk/model/ReceivedAchTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ReceivedAchTransaction */ @@ -42,7 +43,7 @@ ReceivedAchTransaction.JSON_PROPERTY_ATTRIBUTES, ReceivedAchTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public ReceivedAchTransaction attributes(ReceivedAchTransactionAllOfAttributes a return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivedAchTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public ReceivedAchTransaction relationships(ReceivedAchTransactionRelationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivedAchTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ReceivedAchTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/ReceivedAchTransactionAllOfAttributes.java index 58a0a967..4c7db0c6 100644 --- a/src/main/java/unit/java/sdk/model/ReceivedAchTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/ReceivedAchTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivedAchTransactionAllOfAttributes */ @@ -49,7 +50,7 @@ ReceivedAchTransactionAllOfAttributes.JSON_PROPERTY_SEC_CODE, ReceivedAchTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivedAchTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -133,14 +134,13 @@ public ReceivedAchTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -158,14 +158,13 @@ public ReceivedAchTransactionAllOfAttributes direction(DirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -183,14 +182,13 @@ public ReceivedAchTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -208,14 +206,13 @@ public ReceivedAchTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -233,14 +230,13 @@ public ReceivedAchTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -258,14 +254,13 @@ public ReceivedAchTransactionAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -283,14 +278,13 @@ public ReceivedAchTransactionAllOfAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -308,14 +302,13 @@ public ReceivedAchTransactionAllOfAttributes companyName(String companyName) { return this; } - /** + /** * Get companyName * @return companyName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCompanyName() { return companyName; } @@ -333,14 +326,13 @@ public ReceivedAchTransactionAllOfAttributes counterpartyName(String counterpart return this; } - /** + /** * Get counterpartyName * @return counterpartyName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCounterpartyName() { return counterpartyName; } @@ -358,14 +350,13 @@ public ReceivedAchTransactionAllOfAttributes counterpartyRoutingNumber(String co return this; } - /** + /** * Get counterpartyRoutingNumber * @return counterpartyRoutingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCounterpartyRoutingNumber() { return counterpartyRoutingNumber; } @@ -383,14 +374,13 @@ public ReceivedAchTransactionAllOfAttributes traceNumber(String traceNumber) { return this; } - /** + /** * Get traceNumber * @return traceNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRACE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTraceNumber() { return traceNumber; } @@ -408,14 +398,13 @@ public ReceivedAchTransactionAllOfAttributes secCode(String secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecCode() { return secCode; } @@ -441,14 +430,13 @@ public ReceivedAchTransactionAllOfAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -559,62 +547,62 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `companyName` to the URL query string if (getCompanyName() != null) { - joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyName` to the URL query string if (getCounterpartyName() != null) { - joiner.add(String.format("%scounterpartyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyRoutingNumber` to the URL query string if (getCounterpartyRoutingNumber() != null) { - joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `traceNumber` to the URL query string if (getTraceNumber() != null) { - joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -622,7 +610,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ReceivedAchTransactionRelationships.java b/src/main/java/unit/java/sdk/model/ReceivedAchTransactionRelationships.java index 209ca097..4c8d7a08 100644 --- a/src/main/java/unit/java/sdk/model/ReceivedAchTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/ReceivedAchTransactionRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivedAchTransactionRelationships */ @@ -39,7 +40,7 @@ ReceivedAchTransactionRelationships.JSON_PROPERTY_CUSTOMER, ReceivedAchTransactionRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivedAchTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public ReceivedAchTransactionRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public ReceivedAchTransactionRelationships customer(CustomerRelationship custome return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public ReceivedAchTransactionRelationships customers(CustomersRelationship custo return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/main/java/unit/java/sdk/model/ReceivedPayment.java b/src/main/java/unit/java/sdk/model/ReceivedPayment.java index 37591808..33f81f52 100644 --- a/src/main/java/unit/java/sdk/model/ReceivedPayment.java +++ b/src/main/java/unit/java/sdk/model/ReceivedPayment.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivedPayment */ @@ -39,10 +40,43 @@ ReceivedPayment.JSON_PROPERTY_ATTRIBUTES, ReceivedPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivedPayment { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ACH_RECEIVED_PAYMENT("achReceivedPayment"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + private TypeEnum type = TypeEnum.ACH_RECEIVED_PAYMENT; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -56,27 +90,26 @@ public class ReceivedPayment { public ReceivedPayment() { } - public ReceivedPayment type(String type) { + public ReceivedPayment type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -86,14 +119,13 @@ public ReceivedPayment id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -111,14 +143,13 @@ public ReceivedPayment attributes(ReceivedPaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReceivedPaymentAttributes getAttributes() { return attributes; } @@ -136,14 +167,13 @@ public ReceivedPayment relationships(ReceivedPaymentRelationships relationships) return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReceivedPaymentRelationships getRelationships() { return relationships; } @@ -236,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ReceivedPaymentAttributes.java b/src/main/java/unit/java/sdk/model/ReceivedPaymentAttributes.java index 159699a2..c9592275 100644 --- a/src/main/java/unit/java/sdk/model/ReceivedPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/ReceivedPaymentAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivedPaymentAttributes */ @@ -53,7 +54,7 @@ ReceivedPaymentAttributes.JSON_PROPERTY_RECEIVING_ENTITY_NAME, ReceivedPaymentAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivedPaymentAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -66,9 +67,13 @@ public enum StatusEnum { ADVANCED("Advanced"), - COMPLETED("Completed"), + PENDING_REVIEW("PendingReview"), - RETURNED("Returned"); + MARKED_FOR_RETURN("MarkedForReturn"), + + RETURNED("Returned"), + + COMPLETED("Completed"); private String value; @@ -188,14 +193,13 @@ public ReceivedPaymentAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -213,14 +217,13 @@ public ReceivedPaymentAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -238,15 +241,14 @@ public ReceivedPaymentAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -264,14 +266,13 @@ public ReceivedPaymentAttributes completionDate(String completionDate) { return this; } - /** + /** * Get completionDate * @return completionDate - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COMPLETION_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCompletionDate() { return completionDate; } @@ -289,14 +290,13 @@ public ReceivedPaymentAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -314,14 +314,13 @@ public ReceivedPaymentAttributes wasAdvanced(Boolean wasAdvanced) { return this; } - /** + /** * Get wasAdvanced * @return wasAdvanced - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_WAS_ADVANCED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Boolean getWasAdvanced() { return wasAdvanced; } @@ -339,14 +338,13 @@ public ReceivedPaymentAttributes isAdvanceable(Boolean isAdvanceable) { return this; } - /** + /** * Get isAdvanceable * @return isAdvanceable - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_ADVANCEABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsAdvanceable() { return isAdvanceable; } @@ -364,14 +362,13 @@ public ReceivedPaymentAttributes isAdvaceable(Boolean isAdvaceable) { return this; } - /** + /** * Get isAdvaceable * @return isAdvaceable - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IS_ADVACEABLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsAdvaceable() { return isAdvaceable; } @@ -389,14 +386,13 @@ public ReceivedPaymentAttributes companyName(String companyName) { return this; } - /** + /** * Get companyName * @return companyName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCompanyName() { return companyName; } @@ -414,14 +410,13 @@ public ReceivedPaymentAttributes counterpartyRoutingNumber(String counterpartyRo return this; } - /** + /** * Get counterpartyRoutingNumber * @return counterpartyRoutingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCounterpartyRoutingNumber() { return counterpartyRoutingNumber; } @@ -439,14 +434,13 @@ public ReceivedPaymentAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -464,14 +458,13 @@ public ReceivedPaymentAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -489,14 +482,13 @@ public ReceivedPaymentAttributes traceNumber(String traceNumber) { return this; } - /** + /** * Get traceNumber * @return traceNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRACE_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getTraceNumber() { return traceNumber; } @@ -514,14 +506,13 @@ public ReceivedPaymentAttributes secCode(String secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSecCode() { return secCode; } @@ -539,14 +530,13 @@ public ReceivedPaymentAttributes returnReason(String returnReason) { return this; } - /** + /** * Get returnReason * @return returnReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURN_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReturnReason() { return returnReason; } @@ -564,14 +554,13 @@ public ReceivedPaymentAttributes receivingEntityName(String receivingEntityName) return this; } - /** + /** * Get receivingEntityName * @return receivingEntityName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECEIVING_ENTITY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReceivingEntityName() { return receivingEntityName; } @@ -597,14 +586,13 @@ public ReceivedPaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -723,82 +711,82 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `completionDate` to the URL query string if (getCompletionDate() != null) { - joiner.add(String.format("%scompletionDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCompletionDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scompletionDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompletionDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `wasAdvanced` to the URL query string if (getWasAdvanced() != null) { - joiner.add(String.format("%swasAdvanced%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWasAdvanced()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swasAdvanced%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWasAdvanced()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `isAdvanceable` to the URL query string if (getIsAdvanceable() != null) { - joiner.add(String.format("%sisAdvanceable%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsAdvanceable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sisAdvanceable%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsAdvanceable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `isAdvaceable` to the URL query string if (getIsAdvaceable() != null) { - joiner.add(String.format("%sisAdvaceable%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIsAdvaceable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sisAdvaceable%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIsAdvaceable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `companyName` to the URL query string if (getCompanyName() != null) { - joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyRoutingNumber` to the URL query string if (getCounterpartyRoutingNumber() != null) { - joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `traceNumber` to the URL query string if (getTraceNumber() != null) { - joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%straceNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTraceNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `returnReason` to the URL query string if (getReturnReason() != null) { - joiner.add(String.format("%sreturnReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReturnReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreturnReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReturnReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `receivingEntityName` to the URL query string if (getReceivingEntityName() != null) { - joiner.add(String.format("%sreceivingEntityName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReceivingEntityName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreceivingEntityName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReceivingEntityName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -806,7 +794,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationship.java b/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationship.java index 8c405727..47ea20b2 100644 --- a/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationship.java +++ b/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivedPaymentRelationship */ @JsonPropertyOrder({ ReceivedPaymentRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivedPaymentRelationship { public static final String JSON_PROPERTY_DATA = "data"; private ReceivedPaymentRelationshipData data; @@ -48,14 +49,13 @@ public ReceivedPaymentRelationship data(ReceivedPaymentRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivedPaymentRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationshipData.java b/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationshipData.java index e9fdaeab..5ae5f919 100644 --- a/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivedPaymentRelationshipData */ @@ -35,7 +36,7 @@ ReceivedPaymentRelationshipData.JSON_PROPERTY_ID, ReceivedPaymentRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivedPaymentRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -51,14 +52,13 @@ public ReceivedPaymentRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -76,14 +76,13 @@ public ReceivedPaymentRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationships.java b/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationships.java index 5c7ef6ef..dfcae8dd 100644 --- a/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/ReceivedPaymentRelationships.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivedPaymentRelationships */ @@ -44,7 +45,7 @@ ReceivedPaymentRelationships.JSON_PROPERTY_PAYMENT_ADVANCE_TRANSACTION, ReceivedPaymentRelationships.JSON_PROPERTY_REPAY_PAYMENT_ADVANCE_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivedPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -69,14 +70,13 @@ public ReceivedPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -94,14 +94,13 @@ public ReceivedPaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } @@ -119,14 +118,13 @@ public ReceivedPaymentRelationships receivePaymentTransaction(ReceivePaymentTran return this; } - /** + /** * Get receivePaymentTransaction * @return receivePaymentTransaction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RECEIVE_PAYMENT_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReceivePaymentTransactionRelationship getReceivePaymentTransaction() { return receivePaymentTransaction; } @@ -144,14 +142,13 @@ public ReceivedPaymentRelationships paymentAdvanceTransaction(PaymentAdvanceTran return this; } - /** + /** * Get paymentAdvanceTransaction * @return paymentAdvanceTransaction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PAYMENT_ADVANCE_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaymentAdvanceTransactionRelationship getPaymentAdvanceTransaction() { return paymentAdvanceTransaction; } @@ -169,14 +166,13 @@ public ReceivedPaymentRelationships repayPaymentAdvanceTransaction(RepayPaymentA return this; } - /** + /** * Get repayPaymentAdvanceTransaction * @return repayPaymentAdvanceTransaction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REPAY_PAYMENT_ADVANCE_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RepayPaymentAdvanceTransactionRelationship getRepayPaymentAdvanceTransaction() { return repayPaymentAdvanceTransaction; } diff --git a/src/main/java/unit/java/sdk/model/ReceiverAccountRelationship.java b/src/main/java/unit/java/sdk/model/ReceiverAccountRelationship.java index 9c2469f9..bef42586 100644 --- a/src/main/java/unit/java/sdk/model/ReceiverAccountRelationship.java +++ b/src/main/java/unit/java/sdk/model/ReceiverAccountRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceiverAccountRelationship */ @JsonPropertyOrder({ ReceiverAccountRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceiverAccountRelationship { public static final String JSON_PROPERTY_DATA = "data"; private ReceiverAccountRelationshipData data; @@ -48,14 +49,13 @@ public ReceiverAccountRelationship data(ReceiverAccountRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceiverAccountRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ReceiverAccountRelationshipData.java b/src/main/java/unit/java/sdk/model/ReceiverAccountRelationshipData.java index bbeada7e..3b849938 100644 --- a/src/main/java/unit/java/sdk/model/ReceiverAccountRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/ReceiverAccountRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceiverAccountRelationshipData */ @@ -35,7 +36,7 @@ ReceiverAccountRelationshipData.JSON_PROPERTY_ID, ReceiverAccountRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceiverAccountRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -84,14 +85,13 @@ public ReceiverAccountRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -109,14 +109,13 @@ public ReceiverAccountRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -205,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ReceivingAccountRelationship.java b/src/main/java/unit/java/sdk/model/ReceivingAccountRelationship.java index 9de9e39a..7162bb45 100644 --- a/src/main/java/unit/java/sdk/model/ReceivingAccountRelationship.java +++ b/src/main/java/unit/java/sdk/model/ReceivingAccountRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivingAccountRelationship */ @JsonPropertyOrder({ ReceivingAccountRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivingAccountRelationship { public static final String JSON_PROPERTY_DATA = "data"; private ReceivingAccountRelationshipData data; @@ -48,14 +49,13 @@ public ReceivingAccountRelationship data(ReceivingAccountRelationshipData data) return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivingAccountRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ReceivingAccountRelationshipData.java b/src/main/java/unit/java/sdk/model/ReceivingAccountRelationshipData.java index 760d7812..43d51eaf 100644 --- a/src/main/java/unit/java/sdk/model/ReceivingAccountRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/ReceivingAccountRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReceivingAccountRelationshipData */ @@ -35,7 +36,7 @@ ReceivingAccountRelationshipData.JSON_PROPERTY_ID, ReceivingAccountRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReceivingAccountRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -46,9 +47,9 @@ public class ReceivingAccountRelationshipData { public enum TypeEnum { ACCOUNT("account"), - DEPOSITACCOUNT("depositAccount"), + DEPOSIT_ACCOUNT("depositAccount"), - CREDITACCOUNT("creditAccount"); + CREDIT_ACCOUNT("creditAccount"); private String value; @@ -88,14 +89,13 @@ public ReceivingAccountRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -113,14 +113,13 @@ public ReceivingAccountRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -209,12 +208,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringAchPaymentRelationships.java b/src/main/java/unit/java/sdk/model/RecurringAchPaymentRelationships.java index c375fe27..f17b581c 100644 --- a/src/main/java/unit/java/sdk/model/RecurringAchPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/RecurringAchPaymentRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringAchPaymentRelationships */ @@ -43,7 +44,7 @@ RecurringAchPaymentRelationships.JSON_PROPERTY_CUSTOMER, RecurringAchPaymentRelationships.JSON_PROPERTY_ORG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringAchPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -68,14 +69,13 @@ public RecurringAchPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public RecurringAchPaymentRelationships creditAccount(CreditAccountRelationship return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -118,14 +117,13 @@ public RecurringAchPaymentRelationships counterparty(CounterpartyRelationship co return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } @@ -143,14 +141,13 @@ public RecurringAchPaymentRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } @@ -168,14 +165,13 @@ public RecurringAchPaymentRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationship getOrg() { return org; } diff --git a/src/main/java/unit/java/sdk/model/RecurringAchRepayment.java b/src/main/java/unit/java/sdk/model/RecurringAchRepayment.java index 3bd06717..33ab5b29 100644 --- a/src/main/java/unit/java/sdk/model/RecurringAchRepayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringAchRepayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringAchRepayment */ @@ -42,7 +43,7 @@ RecurringAchRepayment.JSON_PROPERTY_ATTRIBUTES, RecurringAchRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RecurringAchRepayment attributes(RecurringAchRepaymentAllOfAttributes att return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringAchRepaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RecurringAchRepayment relationships(RecurringAchRepaymentRelationships re return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringAchRepaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RecurringAchRepaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/RecurringAchRepaymentAllOfAttributes.java index 970125de..ed9ce231 100644 --- a/src/main/java/unit/java/sdk/model/RecurringAchRepaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/RecurringAchRepaymentAllOfAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringAchRepaymentAllOfAttributes */ @@ -48,7 +49,7 @@ RecurringAchRepaymentAllOfAttributes.JSON_PROPERTY_TAGS, RecurringAchRepaymentAllOfAttributes.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringAchRepaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private LocalDate createdAt; @@ -88,14 +89,13 @@ public RecurringAchRepaymentAllOfAttributes createdAt(LocalDate createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getCreatedAt() { return createdAt; } @@ -113,14 +113,13 @@ public RecurringAchRepaymentAllOfAttributes updatedAt(LocalDate updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getUpdatedAt() { return updatedAt; } @@ -138,14 +137,13 @@ public RecurringAchRepaymentAllOfAttributes schedule(ResponseSchedule schedule) return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ResponseSchedule getSchedule() { return schedule; } @@ -163,14 +161,13 @@ public RecurringAchRepaymentAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -188,14 +185,13 @@ public RecurringAchRepaymentAllOfAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -213,14 +209,13 @@ public RecurringAchRepaymentAllOfAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -238,14 +233,13 @@ public RecurringAchRepaymentAllOfAttributes secCode(String secCode) { return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecCode() { return secCode; } @@ -263,14 +257,13 @@ public RecurringAchRepaymentAllOfAttributes numberOfRepayments(Integer numberOfR return this; } - /** + /** * Get numberOfRepayments * @return numberOfRepayments - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_OF_REPAYMENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getNumberOfRepayments() { return numberOfRepayments; } @@ -296,14 +289,13 @@ public RecurringAchRepaymentAllOfAttributes putTagsItem(String key, String tagsI return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -321,14 +313,13 @@ public RecurringAchRepaymentAllOfAttributes status(RecurringRepaymentStatus stat return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentStatus getStatus() { return status; } @@ -433,12 +424,12 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `schedule` to the URL query string @@ -448,27 +439,27 @@ public String toUrlQueryString(String prefix) { // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `numberOfRepayments` to the URL query string if (getNumberOfRepayments() != null) { - joiner.add(String.format("%snumberOfRepayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfRepayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfRepayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfRepayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -476,13 +467,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationships.java index 1fc07629..defd05b0 100644 --- a/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringAchRepaymentRelationships */ @@ -43,7 +44,7 @@ RecurringAchRepaymentRelationships.JSON_PROPERTY_ORG, RecurringAchRepaymentRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringAchRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private RecurringRepaymentRelationshipsBaseCreditAccount creditAccount; @@ -68,14 +69,13 @@ public RecurringAchRepaymentRelationships creditAccount(RecurringRepaymentRelati return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCreditAccount getCreditAccount() { return creditAccount; } @@ -93,14 +93,13 @@ public RecurringAchRepaymentRelationships counterparty(RecurringRepaymentRelatio return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCounterparty getCounterparty() { return counterparty; } @@ -118,14 +117,13 @@ public RecurringAchRepaymentRelationships customer(RecurringRepaymentRelationshi return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationshipsBaseCustomer getCustomer() { return customer; } @@ -143,14 +141,13 @@ public RecurringAchRepaymentRelationships org(RecurringRepaymentRelationshipsBas return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseOrg getOrg() { return org; } @@ -168,14 +165,13 @@ public RecurringAchRepaymentRelationships account(RecurringAchRepaymentRelations return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringAchRepaymentRelationshipsAllOfAccount getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationshipsAllOfAccount.java b/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationshipsAllOfAccount.java index 6a842da5..f1e0ba8d 100644 --- a/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationshipsAllOfAccount.java +++ b/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationshipsAllOfAccount.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringAchRepaymentRelationshipsAllOfAccount */ @JsonPropertyOrder({ RecurringAchRepaymentRelationshipsAllOfAccount.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringAchRepaymentRelationshipsAllOfAccount { public static final String JSON_PROPERTY_DATA = "data"; private RecurringAchRepaymentRelationshipsAllOfAccountData data; @@ -48,14 +49,13 @@ public RecurringAchRepaymentRelationshipsAllOfAccount data(RecurringAchRepayment return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringAchRepaymentRelationshipsAllOfAccountData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationshipsAllOfAccountData.java b/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationshipsAllOfAccountData.java index 77cfdb83..9a3edf3a 100644 --- a/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationshipsAllOfAccountData.java +++ b/src/main/java/unit/java/sdk/model/RecurringAchRepaymentRelationshipsAllOfAccountData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringAchRepaymentRelationshipsAllOfAccountData */ @@ -35,13 +36,13 @@ RecurringAchRepaymentRelationshipsAllOfAccountData.JSON_PROPERTY_TYPE, RecurringAchRepaymentRelationshipsAllOfAccountData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringAchRepaymentRelationshipsAllOfAccountData { /** * Gets or Sets type */ public enum TypeEnum { - DEPOSITACCOUNT("depositAccount"), + DEPOSIT_ACCOUNT("depositAccount"), ACCOUNT("account"); @@ -86,14 +87,13 @@ public RecurringAchRepaymentRelationshipsAllOfAccountData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -111,14 +111,13 @@ public RecurringAchRepaymentRelationshipsAllOfAccountData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -207,12 +206,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringBookPaymentRelationships.java b/src/main/java/unit/java/sdk/model/RecurringBookPaymentRelationships.java index 9d091e37..32422d52 100644 --- a/src/main/java/unit/java/sdk/model/RecurringBookPaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/RecurringBookPaymentRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringBookPaymentRelationships */ @@ -43,7 +44,7 @@ RecurringBookPaymentRelationships.JSON_PROPERTY_CUSTOMER, RecurringBookPaymentRelationships.JSON_PROPERTY_ORG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringBookPaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -68,14 +69,13 @@ public RecurringBookPaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public RecurringBookPaymentRelationships creditAccount(CreditAccountRelationship return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CreditAccountRelationship getCreditAccount() { return creditAccount; } @@ -118,14 +117,13 @@ public RecurringBookPaymentRelationships counterparty(CounterpartyRelationship c return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CounterpartyRelationship getCounterparty() { return counterparty; } @@ -143,14 +141,13 @@ public RecurringBookPaymentRelationships customer(CustomerRelationship customer) return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } @@ -168,14 +165,13 @@ public RecurringBookPaymentRelationships org(OrgRelationship org) { return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OrgRelationship getOrg() { return org; } diff --git a/src/main/java/unit/java/sdk/model/RecurringBookRepayment.java b/src/main/java/unit/java/sdk/model/RecurringBookRepayment.java index e3c68ccd..d106e022 100644 --- a/src/main/java/unit/java/sdk/model/RecurringBookRepayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringBookRepayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringBookRepayment */ @@ -42,7 +43,7 @@ RecurringBookRepayment.JSON_PROPERTY_ATTRIBUTES, RecurringBookRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RecurringBookRepayment attributes(RecurringBookRepaymentAllOfAttributes a return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringBookRepaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RecurringBookRepayment relationships(RecurringBookRepaymentRelationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringBookRepaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RecurringBookRepaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/RecurringBookRepaymentAllOfAttributes.java index 3ae61549..802631d6 100644 --- a/src/main/java/unit/java/sdk/model/RecurringBookRepaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/RecurringBookRepaymentAllOfAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringBookRepaymentAllOfAttributes */ @@ -46,7 +47,7 @@ RecurringBookRepaymentAllOfAttributes.JSON_PROPERTY_NUMBER_OF_REPAYMENTS, RecurringBookRepaymentAllOfAttributes.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringBookRepaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private LocalDate createdAt; @@ -80,14 +81,13 @@ public RecurringBookRepaymentAllOfAttributes createdAt(LocalDate createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getCreatedAt() { return createdAt; } @@ -105,14 +105,13 @@ public RecurringBookRepaymentAllOfAttributes updatedAt(LocalDate updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getUpdatedAt() { return updatedAt; } @@ -130,14 +129,13 @@ public RecurringBookRepaymentAllOfAttributes schedule(ResponseSchedule schedule) return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ResponseSchedule getSchedule() { return schedule; } @@ -155,14 +153,13 @@ public RecurringBookRepaymentAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -180,14 +177,13 @@ public RecurringBookRepaymentAllOfAttributes transactionSummaryOverride(String t return this; } - /** + /** * Get transactionSummaryOverride * @return transactionSummaryOverride - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION_SUMMARY_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTransactionSummaryOverride() { return transactionSummaryOverride; } @@ -213,14 +209,13 @@ public RecurringBookRepaymentAllOfAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -238,14 +233,13 @@ public RecurringBookRepaymentAllOfAttributes numberOfRepayments(Integer numberOf return this; } - /** + /** * Get numberOfRepayments * @return numberOfRepayments - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_OF_REPAYMENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getNumberOfRepayments() { return numberOfRepayments; } @@ -263,14 +257,13 @@ public RecurringBookRepaymentAllOfAttributes status(RecurringRepaymentStatus sta return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentStatus getStatus() { return status; } @@ -371,12 +364,12 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `schedule` to the URL query string @@ -386,12 +379,12 @@ public String toUrlQueryString(String prefix) { // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `transactionSummaryOverride` to the URL query string if (getTransactionSummaryOverride() != null) { - joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stransactionSummaryOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransactionSummaryOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -399,18 +392,18 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `numberOfRepayments` to the URL query string if (getNumberOfRepayments() != null) { - joiner.add(String.format("%snumberOfRepayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfRepayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfRepayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfRepayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringBookRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/RecurringBookRepaymentRelationships.java index 5a9b03ee..e02c38eb 100644 --- a/src/main/java/unit/java/sdk/model/RecurringBookRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/RecurringBookRepaymentRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringBookRepaymentRelationships */ @@ -43,7 +44,7 @@ RecurringBookRepaymentRelationships.JSON_PROPERTY_ORG, RecurringBookRepaymentRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringBookRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private RecurringRepaymentRelationshipsBaseCreditAccount creditAccount; @@ -68,14 +69,13 @@ public RecurringBookRepaymentRelationships creditAccount(RecurringRepaymentRelat return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCreditAccount getCreditAccount() { return creditAccount; } @@ -93,14 +93,13 @@ public RecurringBookRepaymentRelationships counterparty(RecurringRepaymentRelati return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCounterparty getCounterparty() { return counterparty; } @@ -118,14 +117,13 @@ public RecurringBookRepaymentRelationships customer(RecurringRepaymentRelationsh return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationshipsBaseCustomer getCustomer() { return customer; } @@ -143,14 +141,13 @@ public RecurringBookRepaymentRelationships org(RecurringRepaymentRelationshipsBa return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseOrg getOrg() { return org; } @@ -168,14 +165,13 @@ public RecurringBookRepaymentRelationships account(RecurringAchRepaymentRelation return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringAchRepaymentRelationshipsAllOfAccount getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepayment.java b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepayment.java index f3874c2d..e1fef8f3 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringCapitalPartnerAchRepayment */ @@ -42,7 +43,7 @@ RecurringCapitalPartnerAchRepayment.JSON_PROPERTY_ATTRIBUTES, RecurringCapitalPartnerAchRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RecurringCapitalPartnerAchRepayment attributes(RecurringCapitalPartnerAch return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringCapitalPartnerAchRepaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RecurringCapitalPartnerAchRepayment relationships(RecurringCapitalPartner return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringCapitalPartnerAchRepaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepaymentAllOfAttributes.java index 90a963da..6447f51d 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepaymentAllOfAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringCapitalPartnerAchRepaymentAllOfAttributes */ @@ -48,7 +49,7 @@ RecurringCapitalPartnerAchRepaymentAllOfAttributes.JSON_PROPERTY_NUMBER_OF_REPAYMENTS, RecurringCapitalPartnerAchRepaymentAllOfAttributes.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringCapitalPartnerAchRepaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private LocalDate createdAt; @@ -88,14 +89,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes createdAt(LocalDate cr return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getCreatedAt() { return createdAt; } @@ -113,14 +113,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes updatedAt(LocalDate up return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getUpdatedAt() { return updatedAt; } @@ -138,14 +137,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes schedule(ResponseSched return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ResponseSchedule getSchedule() { return schedule; } @@ -163,14 +161,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes description(String des return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -188,14 +185,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes addenda(String addenda return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -213,14 +209,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes sameDay(Boolean sameDa return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -238,14 +233,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes secCode(String secCode return this; } - /** + /** * Get secCode * @return secCode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SEC_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSecCode() { return secCode; } @@ -271,14 +265,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes putTagsItem(String key return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -296,14 +289,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes numberOfRepayments(Int return this; } - /** + /** * Get numberOfRepayments * @return numberOfRepayments - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_OF_REPAYMENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getNumberOfRepayments() { return numberOfRepayments; } @@ -321,14 +313,13 @@ public RecurringCapitalPartnerAchRepaymentAllOfAttributes status(RecurringRepaym return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentStatus getStatus() { return status; } @@ -433,12 +424,12 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `schedule` to the URL query string @@ -448,22 +439,22 @@ public String toUrlQueryString(String prefix) { // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `secCode` to the URL query string if (getSecCode() != null) { - joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssecCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSecCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -471,18 +462,18 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `numberOfRepayments` to the URL query string if (getNumberOfRepayments() != null) { - joiner.add(String.format("%snumberOfRepayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfRepayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfRepayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfRepayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepaymentRelationships.java index b939ca2f..6b40b1d3 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerAchRepaymentRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringCapitalPartnerAchRepaymentRelationships */ @@ -41,7 +42,7 @@ RecurringCapitalPartnerAchRepaymentRelationships.JSON_PROPERTY_CUSTOMER, RecurringCapitalPartnerAchRepaymentRelationships.JSON_PROPERTY_ORG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringCapitalPartnerAchRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private RecurringRepaymentRelationshipsBaseCreditAccount creditAccount; @@ -63,14 +64,13 @@ public RecurringCapitalPartnerAchRepaymentRelationships creditAccount(RecurringR return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCreditAccount getCreditAccount() { return creditAccount; } @@ -88,14 +88,13 @@ public RecurringCapitalPartnerAchRepaymentRelationships counterparty(RecurringRe return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCounterparty getCounterparty() { return counterparty; } @@ -113,14 +112,13 @@ public RecurringCapitalPartnerAchRepaymentRelationships customer(RecurringRepaym return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationshipsBaseCustomer getCustomer() { return customer; } @@ -138,14 +136,13 @@ public RecurringCapitalPartnerAchRepaymentRelationships org(RecurringRepaymentRe return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseOrg getOrg() { return org; } diff --git a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerBookRepayment.java b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerBookRepayment.java index 9a5accfd..25d3d298 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerBookRepayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerBookRepayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringCapitalPartnerBookRepayment */ @@ -42,7 +43,7 @@ RecurringCapitalPartnerBookRepayment.JSON_PROPERTY_ATTRIBUTES, RecurringCapitalPartnerBookRepayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RecurringCapitalPartnerBookRepayment attributes(RecurringBookRepaymentAll return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringBookRepaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RecurringCapitalPartnerBookRepayment relationships(RecurringCapitalPartne return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringCapitalPartnerBookRepaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerBookRepaymentRelationships.java b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerBookRepaymentRelationships.java index 2e3f3b6d..7cbfb440 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerBookRepaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/RecurringCapitalPartnerBookRepaymentRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringCapitalPartnerBookRepaymentRelationships */ @@ -41,7 +42,7 @@ RecurringCapitalPartnerBookRepaymentRelationships.JSON_PROPERTY_CUSTOMER, RecurringCapitalPartnerBookRepaymentRelationships.JSON_PROPERTY_ORG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringCapitalPartnerBookRepaymentRelationships { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private RecurringRepaymentRelationshipsBaseCreditAccount creditAccount; @@ -63,14 +64,13 @@ public RecurringCapitalPartnerBookRepaymentRelationships creditAccount(Recurring return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCreditAccount getCreditAccount() { return creditAccount; } @@ -88,14 +88,13 @@ public RecurringCapitalPartnerBookRepaymentRelationships counterparty(RecurringR return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCounterparty getCounterparty() { return counterparty; } @@ -113,14 +112,13 @@ public RecurringCapitalPartnerBookRepaymentRelationships customer(RecurringRepay return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationshipsBaseCustomer getCustomer() { return customer; } @@ -138,14 +136,13 @@ public RecurringCapitalPartnerBookRepaymentRelationships org(RecurringRepaymentR return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseOrg getOrg() { return org; } diff --git a/src/main/java/unit/java/sdk/model/RecurringCreditAchPayment.java b/src/main/java/unit/java/sdk/model/RecurringCreditAchPayment.java index 4a8246da..4a0567c6 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCreditAchPayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringCreditAchPayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringCreditAchPayment */ @@ -42,7 +43,7 @@ RecurringCreditAchPayment.JSON_PROPERTY_ATTRIBUTES, RecurringCreditAchPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RecurringCreditAchPayment attributes(RecurringCreditAchPaymentAllOfAttrib return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringCreditAchPaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RecurringCreditAchPayment relationships(RecurringAchPaymentRelationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringAchPaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RecurringCreditAchPaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/RecurringCreditAchPaymentAllOfAttributes.java index 93dd3017..38c46e4c 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCreditAchPaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/RecurringCreditAchPaymentAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringCreditAchPaymentAllOfAttributes */ @@ -46,7 +47,7 @@ RecurringCreditAchPaymentAllOfAttributes.JSON_PROPERTY_SCHEDULE, RecurringCreditAchPaymentAllOfAttributes.JSON_PROPERTY_NUMBER_OF_PAYMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringCreditAchPaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -122,14 +123,13 @@ public RecurringCreditAchPaymentAllOfAttributes createdAt(OffsetDateTime created return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -147,14 +147,13 @@ public RecurringCreditAchPaymentAllOfAttributes updatedAt(OffsetDateTime updated return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -172,15 +171,14 @@ public RecurringCreditAchPaymentAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -198,14 +196,13 @@ public RecurringCreditAchPaymentAllOfAttributes description(String description) return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -223,14 +220,13 @@ public RecurringCreditAchPaymentAllOfAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -256,14 +252,13 @@ public RecurringCreditAchPaymentAllOfAttributes putTagsItem(String key, String t return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -281,14 +276,13 @@ public RecurringCreditAchPaymentAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -306,14 +300,13 @@ public RecurringCreditAchPaymentAllOfAttributes schedule(ResponseSchedule schedu return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ResponseSchedule getSchedule() { return schedule; } @@ -331,14 +324,13 @@ public RecurringCreditAchPaymentAllOfAttributes numberOfPayments(Integer numberO return this; } - /** + /** * Get numberOfPayments * @return numberOfPayments - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getNumberOfPayments() { return numberOfPayments; } @@ -441,27 +433,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -469,13 +461,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `schedule` to the URL query string @@ -485,7 +477,7 @@ public String toUrlQueryString(String prefix) { // add `numberOfPayments` to the URL query string if (getNumberOfPayments() != null) { - joiner.add(String.format("%snumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringCreditBookPayment.java b/src/main/java/unit/java/sdk/model/RecurringCreditBookPayment.java index ddd986b1..ce83cbdc 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCreditBookPayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringCreditBookPayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringCreditBookPayment */ @@ -42,7 +43,7 @@ RecurringCreditBookPayment.JSON_PROPERTY_ATTRIBUTES, RecurringCreditBookPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RecurringCreditBookPayment attributes(RecurringCreditBookPaymentAllOfAttr return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringCreditBookPaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RecurringCreditBookPayment relationships(RecurringBookPaymentRelationship return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringBookPaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RecurringCreditBookPaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/RecurringCreditBookPaymentAllOfAttributes.java index 09306ef6..fe65190b 100644 --- a/src/main/java/unit/java/sdk/model/RecurringCreditBookPaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/RecurringCreditBookPaymentAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringCreditBookPaymentAllOfAttributes */ @@ -45,7 +46,7 @@ RecurringCreditBookPaymentAllOfAttributes.JSON_PROPERTY_NUMBER_OF_PAYMENTS, RecurringCreditBookPaymentAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringCreditBookPaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -118,14 +119,13 @@ public RecurringCreditBookPaymentAllOfAttributes createdAt(OffsetDateTime create return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -143,14 +143,13 @@ public RecurringCreditBookPaymentAllOfAttributes updatedAt(OffsetDateTime update return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -168,15 +167,14 @@ public RecurringCreditBookPaymentAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -194,14 +192,13 @@ public RecurringCreditBookPaymentAllOfAttributes description(String description) return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -219,14 +216,13 @@ public RecurringCreditBookPaymentAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -244,14 +240,13 @@ public RecurringCreditBookPaymentAllOfAttributes schedule(ResponseSchedule sched return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ResponseSchedule getSchedule() { return schedule; } @@ -269,14 +264,13 @@ public RecurringCreditBookPaymentAllOfAttributes numberOfPayments(Integer number return this; } - /** + /** * Get numberOfPayments * @return numberOfPayments - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getNumberOfPayments() { return numberOfPayments; } @@ -302,14 +296,13 @@ public RecurringCreditBookPaymentAllOfAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -410,27 +403,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `schedule` to the URL query string @@ -440,7 +433,7 @@ public String toUrlQueryString(String prefix) { // add `numberOfPayments` to the URL query string if (getNumberOfPayments() != null) { - joiner.add(String.format("%snumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -448,7 +441,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/RecurringDebitAchPayment.java b/src/main/java/unit/java/sdk/model/RecurringDebitAchPayment.java index 2e25e426..3c0d4fd2 100644 --- a/src/main/java/unit/java/sdk/model/RecurringDebitAchPayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringDebitAchPayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringDebitAchPayment */ @@ -42,7 +43,7 @@ RecurringDebitAchPayment.JSON_PROPERTY_ATTRIBUTES, RecurringDebitAchPayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RecurringDebitAchPayment attributes(RecurringDebitAchPaymentAllOfAttribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringDebitAchPaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RecurringDebitAchPayment relationships(RecurringAchPaymentRelationships r return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringAchPaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RecurringDebitAchPaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/RecurringDebitAchPaymentAllOfAttributes.java index f78713b5..da0e97a1 100644 --- a/src/main/java/unit/java/sdk/model/RecurringDebitAchPaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/RecurringDebitAchPaymentAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringDebitAchPaymentAllOfAttributes */ @@ -48,7 +49,7 @@ RecurringDebitAchPaymentAllOfAttributes.JSON_PROPERTY_VERIFY_COUNTERPARTY_BALANCE, RecurringDebitAchPaymentAllOfAttributes.JSON_PROPERTY_SAME_DAY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringDebitAchPaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -130,14 +131,13 @@ public RecurringDebitAchPaymentAllOfAttributes createdAt(OffsetDateTime createdA return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -155,14 +155,13 @@ public RecurringDebitAchPaymentAllOfAttributes updatedAt(OffsetDateTime updatedA return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getUpdatedAt() { return updatedAt; } @@ -180,15 +179,14 @@ public RecurringDebitAchPaymentAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -206,14 +204,13 @@ public RecurringDebitAchPaymentAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -231,14 +228,13 @@ public RecurringDebitAchPaymentAllOfAttributes addenda(String addenda) { return this; } - /** + /** * Get addenda * @return addenda - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDENDA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAddenda() { return addenda; } @@ -264,14 +260,13 @@ public RecurringDebitAchPaymentAllOfAttributes putTagsItem(String key, String ta return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -289,14 +284,13 @@ public RecurringDebitAchPaymentAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -314,14 +308,13 @@ public RecurringDebitAchPaymentAllOfAttributes schedule(ResponseSchedule schedul return this; } - /** + /** * Get schedule * @return schedule - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SCHEDULE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ResponseSchedule getSchedule() { return schedule; } @@ -339,14 +332,13 @@ public RecurringDebitAchPaymentAllOfAttributes numberOfPayments(Integer numberOf return this; } - /** + /** * Get numberOfPayments * @return numberOfPayments - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getNumberOfPayments() { return numberOfPayments; } @@ -364,14 +356,13 @@ public RecurringDebitAchPaymentAllOfAttributes verifyCounterpartyBalance(Boolean return this; } - /** + /** * Get verifyCounterpartyBalance * @return verifyCounterpartyBalance - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFY_COUNTERPARTY_BALANCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getVerifyCounterpartyBalance() { return verifyCounterpartyBalance; } @@ -389,14 +380,13 @@ public RecurringDebitAchPaymentAllOfAttributes sameDay(Boolean sameDay) { return this; } - /** + /** * Get sameDay * @return sameDay - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SAME_DAY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSameDay() { return sameDay; } @@ -503,27 +493,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `addenda` to the URL query string if (getAddenda() != null) { - joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saddenda%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAddenda()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -531,13 +521,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `schedule` to the URL query string @@ -547,17 +537,17 @@ public String toUrlQueryString(String prefix) { // add `numberOfPayments` to the URL query string if (getNumberOfPayments() != null) { - joiner.add(String.format("%snumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `verifyCounterpartyBalance` to the URL query string if (getVerifyCounterpartyBalance() != null) { - joiner.add(String.format("%sverifyCounterpartyBalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerifyCounterpartyBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverifyCounterpartyBalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerifyCounterpartyBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sameDay` to the URL query string if (getSameDay() != null) { - joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssameDay%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSameDay()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringPayment.java b/src/main/java/unit/java/sdk/model/RecurringPayment.java index d549a672..f94ff94b 100644 --- a/src/main/java/unit/java/sdk/model/RecurringPayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringPayment.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringPayment */ @@ -39,7 +40,7 @@ RecurringPayment.JSON_PROPERTY_TYPE, RecurringPayment.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -56,11 +57,11 @@ public class RecurringPayment { * Gets or Sets type */ public enum TypeEnum { - RECURRINGCREDITACHPAYMENT("recurringCreditAchPayment"), + RECURRING_CREDIT_ACH_PAYMENT("recurringCreditAchPayment"), - RECURRINGDEBITACHPAYMENT("recurringDebitAchPayment"), + RECURRING_DEBIT_ACH_PAYMENT("recurringDebitAchPayment"), - RECURRINGCREDITBOOKPAYMENT("recurringCreditBookPayment"); + RECURRING_CREDIT_BOOK_PAYMENT("recurringCreditBookPayment"); private String value; @@ -103,14 +104,13 @@ public RecurringPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -128,14 +128,13 @@ public RecurringPayment id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -224,12 +223,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringPaymentRelationship.java b/src/main/java/unit/java/sdk/model/RecurringPaymentRelationship.java index a88abb6a..60cb40bf 100644 --- a/src/main/java/unit/java/sdk/model/RecurringPaymentRelationship.java +++ b/src/main/java/unit/java/sdk/model/RecurringPaymentRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringPaymentRelationship */ @JsonPropertyOrder({ RecurringPaymentRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringPaymentRelationship { public static final String JSON_PROPERTY_DATA = "data"; private RecurringPaymentRelationshipData data; @@ -48,14 +49,13 @@ public RecurringPaymentRelationship data(RecurringPaymentRelationshipData data) return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringPaymentRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RecurringPaymentRelationshipData.java b/src/main/java/unit/java/sdk/model/RecurringPaymentRelationshipData.java index 8e2efbf3..f41f07a8 100644 --- a/src/main/java/unit/java/sdk/model/RecurringPaymentRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/RecurringPaymentRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringPaymentRelationshipData */ @@ -35,7 +36,7 @@ RecurringPaymentRelationshipData.JSON_PROPERTY_TYPE, RecurringPaymentRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringPaymentRelationshipData { public static final String JSON_PROPERTY_TYPE = "type"; private String type = "recurringPayment"; @@ -51,14 +52,13 @@ public RecurringPaymentRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -76,14 +76,13 @@ public RecurringPaymentRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringRepayment.java b/src/main/java/unit/java/sdk/model/RecurringRepayment.java index e1d97e5e..833eb525 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepayment.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepayment.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RecurringRepayment */ @@ -39,7 +40,7 @@ RecurringRepayment.JSON_PROPERTY_ID, RecurringRepayment.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -60,13 +61,13 @@ public class RecurringRepayment { * Gets or Sets type */ public enum TypeEnum { - RECURRINGACHREPAYMENT("recurringAchRepayment"), + RECURRING_ACH_REPAYMENT("recurringAchRepayment"), - RECURRINGBOOKREPAYMENT("recurringBookRepayment"), + RECURRING_BOOK_REPAYMENT("recurringBookRepayment"), - RECURRINGCAPITALPARTNERACHREPAYMENT("recurringCapitalPartnerAchRepayment"), + RECURRING_CAPITAL_PARTNER_ACH_REPAYMENT("recurringCapitalPartnerAchRepayment"), - RECURRINCAPITALPARTNERBOOKREPAYMENT("recurrinCapitalPartnerBookRepayment"); + RECURRIN_CAPITAL_PARTNER_BOOK_REPAYMENT("recurrinCapitalPartnerBookRepayment"); private String value; @@ -106,14 +107,13 @@ public RecurringRepayment id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -131,14 +131,13 @@ public RecurringRepayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -227,12 +226,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationship.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationship.java index 733d3c83..7d567632 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationship.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationship */ @JsonPropertyOrder({ RecurringRepaymentRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationship { public static final String JSON_PROPERTY_DATA = "data"; private RecurringRepaymentRelationshipData data; @@ -48,14 +49,13 @@ public RecurringRepaymentRelationship data(RecurringRepaymentRelationshipData da return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipData.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipData.java index 7c1afb33..b67d32eb 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipData */ @@ -35,7 +36,7 @@ RecurringRepaymentRelationshipData.JSON_PROPERTY_ID, RecurringRepaymentRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -44,7 +45,7 @@ public class RecurringRepaymentRelationshipData { * Gets or Sets type */ public enum TypeEnum { - RECURRINGREPAYMENT("recurringRepayment"); + RECURRING_REPAYMENT("recurringRepayment"); private String value; @@ -84,14 +85,13 @@ public RecurringRepaymentRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -109,14 +109,13 @@ public RecurringRepaymentRelationshipData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -205,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBase.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBase.java index fd06ca7e..b805823f 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBase.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBase.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBase */ @@ -41,7 +42,7 @@ RecurringRepaymentRelationshipsBase.JSON_PROPERTY_CUSTOMER, RecurringRepaymentRelationshipsBase.JSON_PROPERTY_ORG }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBase { public static final String JSON_PROPERTY_CREDIT_ACCOUNT = "creditAccount"; private RecurringRepaymentRelationshipsBaseCreditAccount creditAccount; @@ -63,14 +64,13 @@ public RecurringRepaymentRelationshipsBase creditAccount(RecurringRepaymentRelat return this; } - /** + /** * Get creditAccount * @return creditAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREDIT_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCreditAccount getCreditAccount() { return creditAccount; } @@ -88,14 +88,13 @@ public RecurringRepaymentRelationshipsBase counterparty(RecurringRepaymentRelati return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCounterparty getCounterparty() { return counterparty; } @@ -113,14 +112,13 @@ public RecurringRepaymentRelationshipsBase customer(RecurringRepaymentRelationsh return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepaymentRelationshipsBaseCustomer getCustomer() { return customer; } @@ -138,14 +136,13 @@ public RecurringRepaymentRelationshipsBase org(RecurringRepaymentRelationshipsBa return this; } - /** + /** * Get org * @return org - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ORG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseOrg getOrg() { return org; } diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCounterparty.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCounterparty.java index 40bcd219..2cde6f52 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCounterparty.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCounterparty.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBaseCounterparty */ @JsonPropertyOrder({ RecurringRepaymentRelationshipsBaseCounterparty.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBaseCounterparty { public static final String JSON_PROPERTY_DATA = "data"; private RecurringRepaymentRelationshipsBaseCounterpartyData data; @@ -48,14 +49,13 @@ public RecurringRepaymentRelationshipsBaseCounterparty data(RecurringRepaymentRe return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCounterpartyData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCounterpartyData.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCounterpartyData.java index c63f8a79..7a112266 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCounterpartyData.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCounterpartyData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBaseCounterpartyData */ @@ -35,7 +36,7 @@ RecurringRepaymentRelationshipsBaseCounterpartyData.JSON_PROPERTY_TYPE, RecurringRepaymentRelationshipsBaseCounterpartyData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBaseCounterpartyData { /** * Gets or Sets type @@ -84,14 +85,13 @@ public RecurringRepaymentRelationshipsBaseCounterpartyData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -109,14 +109,13 @@ public RecurringRepaymentRelationshipsBaseCounterpartyData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -205,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCreditAccount.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCreditAccount.java index 86ba0b97..af8b8e67 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCreditAccount.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCreditAccount.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBaseCreditAccount */ @JsonPropertyOrder({ RecurringRepaymentRelationshipsBaseCreditAccount.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBaseCreditAccount { public static final String JSON_PROPERTY_DATA = "data"; private RecurringRepaymentRelationshipsBaseCreditAccountData data; @@ -48,14 +49,13 @@ public RecurringRepaymentRelationshipsBaseCreditAccount data(RecurringRepaymentR return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCreditAccountData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCreditAccountData.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCreditAccountData.java index 35f0c9b3..b1b3aaad 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCreditAccountData.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCreditAccountData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBaseCreditAccountData */ @@ -35,13 +36,13 @@ RecurringRepaymentRelationshipsBaseCreditAccountData.JSON_PROPERTY_TYPE, RecurringRepaymentRelationshipsBaseCreditAccountData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBaseCreditAccountData { /** * Gets or Sets type */ public enum TypeEnum { - CREDITACCOUNT("creditAccount"); + CREDIT_ACCOUNT("creditAccount"); private String value; @@ -71,7 +72,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CREDITACCOUNT; + private TypeEnum type = TypeEnum.CREDIT_ACCOUNT; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -84,14 +85,13 @@ public RecurringRepaymentRelationshipsBaseCreditAccountData type(TypeEnum type) return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -109,14 +109,13 @@ public RecurringRepaymentRelationshipsBaseCreditAccountData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -205,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCustomer.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCustomer.java index a692a4a3..2ee6b4a9 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCustomer.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCustomer.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBaseCustomer */ @JsonPropertyOrder({ RecurringRepaymentRelationshipsBaseCustomer.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBaseCustomer { public static final String JSON_PROPERTY_DATA = "data"; private RecurringRepaymentRelationshipsBaseCustomerData data; @@ -48,14 +49,13 @@ public RecurringRepaymentRelationshipsBaseCustomer data(RecurringRepaymentRelati return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseCustomerData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCustomerData.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCustomerData.java index 12556aff..c5571071 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCustomerData.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseCustomerData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBaseCustomerData */ @@ -35,15 +36,15 @@ RecurringRepaymentRelationshipsBaseCustomerData.JSON_PROPERTY_TYPE, RecurringRepaymentRelationshipsBaseCustomerData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBaseCustomerData { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSCUSTOMER("businessCustomer"), + BUSINESS_CUSTOMER("businessCustomer"), - INDIVIDUALCUSTOMER("individualCustomer"), + INDIVIDUAL_CUSTOMER("individualCustomer"), CUSTOMER("customer"); @@ -88,14 +89,13 @@ public RecurringRepaymentRelationshipsBaseCustomerData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -113,14 +113,13 @@ public RecurringRepaymentRelationshipsBaseCustomerData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -209,12 +208,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseOrg.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseOrg.java index b80ccabb..8766b179 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseOrg.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseOrg.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBaseOrg */ @JsonPropertyOrder({ RecurringRepaymentRelationshipsBaseOrg.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBaseOrg { public static final String JSON_PROPERTY_DATA = "data"; private RecurringRepaymentRelationshipsBaseOrgData data; @@ -48,14 +49,13 @@ public RecurringRepaymentRelationshipsBaseOrg data(RecurringRepaymentRelationshi return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RecurringRepaymentRelationshipsBaseOrgData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseOrgData.java b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseOrgData.java index fed97649..cffe35c1 100644 --- a/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseOrgData.java +++ b/src/main/java/unit/java/sdk/model/RecurringRepaymentRelationshipsBaseOrgData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RecurringRepaymentRelationshipsBaseOrgData */ @@ -35,7 +36,7 @@ RecurringRepaymentRelationshipsBaseOrgData.JSON_PROPERTY_TYPE, RecurringRepaymentRelationshipsBaseOrgData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RecurringRepaymentRelationshipsBaseOrgData { /** * Gets or Sets type @@ -84,14 +85,13 @@ public RecurringRepaymentRelationshipsBaseOrgData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -109,14 +109,13 @@ public RecurringRepaymentRelationshipsBaseOrgData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -205,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RelatedTransactionRelationship.java b/src/main/java/unit/java/sdk/model/RelatedTransactionRelationship.java index 89246ed6..17b670be 100644 --- a/src/main/java/unit/java/sdk/model/RelatedTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/RelatedTransactionRelationship.java @@ -25,45 +25,45 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RelatedTransactionRelationship */ @JsonPropertyOrder({ RelatedTransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RelatedTransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public RelatedTransactionRelationship() { } - public RelatedTransactionRelationship data(TransactionRelationshipData data) { + public RelatedTransactionRelationship data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/Relationship.java b/src/main/java/unit/java/sdk/model/Relationship.java index 1857eab0..fb72f96f 100644 --- a/src/main/java/unit/java/sdk/model/Relationship.java +++ b/src/main/java/unit/java/sdk/model/Relationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Relationship */ @JsonPropertyOrder({ Relationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Relationship { public static final String JSON_PROPERTY_DATA = "data"; private RelationshipData data; @@ -48,14 +49,13 @@ public Relationship data(RelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RelationshipData.java b/src/main/java/unit/java/sdk/model/RelationshipData.java index a7e88422..f9edeaa5 100644 --- a/src/main/java/unit/java/sdk/model/RelationshipData.java +++ b/src/main/java/unit/java/sdk/model/RelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RelationshipData */ @@ -35,7 +36,7 @@ RelationshipData.JSON_PROPERTY_ID, RelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -51,14 +52,13 @@ public RelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -76,14 +76,13 @@ public RelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ReleaseTransaction.java b/src/main/java/unit/java/sdk/model/ReleaseTransaction.java index 4a906eaa..f2167e69 100644 --- a/src/main/java/unit/java/sdk/model/ReleaseTransaction.java +++ b/src/main/java/unit/java/sdk/model/ReleaseTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ReleaseTransaction */ @@ -42,7 +43,7 @@ ReleaseTransaction.JSON_PROPERTY_ATTRIBUTES, ReleaseTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public ReleaseTransaction attributes(ReleaseTransactionAllOfAttributes attribute return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReleaseTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public ReleaseTransaction relationships(ReleaseTransactionRelationships relation return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReleaseTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ReleaseTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/ReleaseTransactionAllOfAttributes.java index c65e3a6d..98b9739f 100644 --- a/src/main/java/unit/java/sdk/model/ReleaseTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/ReleaseTransactionAllOfAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReleaseTransactionAllOfAttributes */ @@ -49,7 +50,7 @@ ReleaseTransactionAllOfAttributes.JSON_PROPERTY_COUNTERPARTY, ReleaseTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReleaseTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -127,14 +128,13 @@ public ReleaseTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -152,14 +152,13 @@ public ReleaseTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -177,14 +176,13 @@ public ReleaseTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -202,14 +200,13 @@ public ReleaseTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -227,14 +224,13 @@ public ReleaseTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -252,14 +248,13 @@ public ReleaseTransactionAllOfAttributes senderName(String senderName) { return this; } - /** + /** * Get senderName * @return senderName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SENDER_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSenderName() { return senderName; } @@ -277,14 +272,13 @@ public ReleaseTransactionAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { return description; } @@ -302,14 +296,13 @@ public ReleaseTransactionAllOfAttributes senderAccountNumber(String senderAccoun return this; } - /** + /** * Get senderAccountNumber * @return senderAccountNumber - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SENDER_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSenderAccountNumber() { return senderAccountNumber; } @@ -327,14 +320,13 @@ public ReleaseTransactionAllOfAttributes senderAddress(Address senderAddress) { return this; } - /** + /** * Get senderAddress * @return senderAddress - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SENDER_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getSenderAddress() { return senderAddress; } @@ -352,14 +344,13 @@ public ReleaseTransactionAllOfAttributes counterparty(PaymentCounterparty counte return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentCounterparty getCounterparty() { return counterparty; } @@ -385,14 +376,13 @@ public ReleaseTransactionAllOfAttributes putTagsItem(String key, String tagsItem return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -499,42 +489,42 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `senderName` to the URL query string if (getSenderName() != null) { - joiner.add(String.format("%ssenderName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSenderName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssenderName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSenderName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `senderAccountNumber` to the URL query string if (getSenderAccountNumber() != null) { - joiner.add(String.format("%ssenderAccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSenderAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssenderAccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSenderAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `senderAddress` to the URL query string @@ -552,7 +542,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ReleaseTransactionRelationships.java b/src/main/java/unit/java/sdk/model/ReleaseTransactionRelationships.java index 51da66d3..306a49a9 100644 --- a/src/main/java/unit/java/sdk/model/ReleaseTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/ReleaseTransactionRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReleaseTransactionRelationships */ @JsonPropertyOrder({ ReleaseTransactionRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReleaseTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public ReleaseTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/RemoveAccountOwnersRequest.java b/src/main/java/unit/java/sdk/model/RemoveAccountOwnersRequest.java new file mode 100644 index 00000000..2280822b --- /dev/null +++ b/src/main/java/unit/java/sdk/model/RemoveAccountOwnersRequest.java @@ -0,0 +1,166 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import unit.java.sdk.model.DepositAccountOwner; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * RemoveAccountOwnersRequest + */ +@JsonPropertyOrder({ + RemoveAccountOwnersRequest.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class RemoveAccountOwnersRequest { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public RemoveAccountOwnersRequest() { + } + + public RemoveAccountOwnersRequest data(List data) { + this.data = data; + return this; + } + + public RemoveAccountOwnersRequest addDataItem(DepositAccountOwner dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this RemoveAccountOwnersRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemoveAccountOwnersRequest removeAccountOwnersRequest = (RemoveAccountOwnersRequest) o; + return Objects.equals(this.data, removeAccountOwnersRequest.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemoveAccountOwnersRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add(getData().get(i).toUrlQueryString(String.format("%sdata%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequest.java b/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequest.java index 5fd75a4d..ad3b65d9 100644 --- a/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequest.java +++ b/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RemoveAuthorizedUsersRequest */ @JsonPropertyOrder({ RemoveAuthorizedUsersRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RemoveAuthorizedUsersRequest { public static final String JSON_PROPERTY_DATA = "data"; private RemoveAuthorizedUsersRequestData data; @@ -48,14 +49,13 @@ public RemoveAuthorizedUsersRequest data(RemoveAuthorizedUsersRequestData data) return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RemoveAuthorizedUsersRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequestData.java b/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequestData.java index 3690e296..4d035443 100644 --- a/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequestData.java +++ b/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RemoveAuthorizedUsersRequestData */ @@ -36,13 +37,13 @@ RemoveAuthorizedUsersRequestData.JSON_PROPERTY_TYPE, RemoveAuthorizedUsersRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RemoveAuthorizedUsersRequestData { /** * Gets or Sets type */ public enum TypeEnum { - REMOVEAUTHORIZEDUSERS("removeAuthorizedUsers"); + REMOVE_AUTHORIZED_USERS("removeAuthorizedUsers"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.REMOVEAUTHORIZEDUSERS; + private TypeEnum type = TypeEnum.REMOVE_AUTHORIZED_USERS; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private RemoveAuthorizedUsersRequestDataAttributes attributes; @@ -85,14 +86,13 @@ public RemoveAuthorizedUsersRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public RemoveAuthorizedUsersRequestData attributes(RemoveAuthorizedUsersRequestD return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RemoveAuthorizedUsersRequestDataAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequestDataAttributes.java index 95266ca2..cdb94704 100644 --- a/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/RemoveAuthorizedUsersRequestDataAttributes.java @@ -30,13 +30,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RemoveAuthorizedUsersRequestDataAttributes */ @JsonPropertyOrder({ RemoveAuthorizedUsersRequestDataAttributes.JSON_PROPERTY_AUTHORIZED_USERS_EMAILS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RemoveAuthorizedUsersRequestDataAttributes { public static final String JSON_PROPERTY_AUTHORIZED_USERS_EMAILS = "authorizedUsersEmails"; private List authorizedUsersEmails = new ArrayList<>(); @@ -57,14 +58,13 @@ public RemoveAuthorizedUsersRequestDataAttributes addAuthorizedUsersEmailsItem(S return this; } - /** + /** * Get authorizedUsersEmails * @return authorizedUsersEmails - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_AUTHORIZED_USERS_EMAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAuthorizedUsersEmails() { return authorizedUsersEmails; } @@ -154,7 +154,7 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getAuthorizedUsersEmails().size(); i++) { joiner.add(String.format("%sauthorizedUsersEmails%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getAuthorizedUsersEmails().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getAuthorizedUsersEmails().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/RepaidPaymentAdvanceTransaction.java b/src/main/java/unit/java/sdk/model/RepaidPaymentAdvanceTransaction.java index afcb76ff..80a06afe 100644 --- a/src/main/java/unit/java/sdk/model/RepaidPaymentAdvanceTransaction.java +++ b/src/main/java/unit/java/sdk/model/RepaidPaymentAdvanceTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RepaidPaymentAdvanceTransaction */ @@ -42,7 +43,7 @@ RepaidPaymentAdvanceTransaction.JSON_PROPERTY_ATTRIBUTES, RepaidPaymentAdvanceTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RepaidPaymentAdvanceTransaction attributes(CheckDepositTransactionAllOfAt return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RepaidPaymentAdvanceTransaction relationships(RepaidPaymentAdvanceTransac return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RepaidPaymentAdvanceTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RepaidPaymentAdvanceTransactionRelationships.java b/src/main/java/unit/java/sdk/model/RepaidPaymentAdvanceTransactionRelationships.java index 05e2c612..15270186 100644 --- a/src/main/java/unit/java/sdk/model/RepaidPaymentAdvanceTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/RepaidPaymentAdvanceTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RepaidPaymentAdvanceTransactionRelationships */ @@ -41,7 +42,7 @@ RepaidPaymentAdvanceTransactionRelationships.JSON_PROPERTY_RECEIVED_PAYMENT, RepaidPaymentAdvanceTransactionRelationships.JSON_PROPERTY_PAYMENT_ADVANCE_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RepaidPaymentAdvanceTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public RepaidPaymentAdvanceTransactionRelationships account(AccountRelationship return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public RepaidPaymentAdvanceTransactionRelationships customer(CustomerRelationshi return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public RepaidPaymentAdvanceTransactionRelationships receivedPayment(ReceivedPaym return this; } - /** + /** * Get receivedPayment * @return receivedPayment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVED_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivedPaymentRelationship getReceivedPayment() { return receivedPayment; } @@ -138,14 +136,13 @@ public RepaidPaymentAdvanceTransactionRelationships paymentAdvanceTransaction(Pa return this; } - /** + /** * Get paymentAdvanceTransaction * @return paymentAdvanceTransaction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PAYMENT_ADVANCE_TRANSACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentAdvanceTransactionRelationship getPaymentAdvanceTransaction() { return paymentAdvanceTransaction; } diff --git a/src/main/java/unit/java/sdk/model/RepayPaymentAdvanceTransactionRelationship.java b/src/main/java/unit/java/sdk/model/RepayPaymentAdvanceTransactionRelationship.java index f6a3f57d..0a9424ba 100644 --- a/src/main/java/unit/java/sdk/model/RepayPaymentAdvanceTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/RepayPaymentAdvanceTransactionRelationship.java @@ -25,45 +25,45 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RepayPaymentAdvanceTransactionRelationship */ @JsonPropertyOrder({ RepayPaymentAdvanceTransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RepayPaymentAdvanceTransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public RepayPaymentAdvanceTransactionRelationship() { } - public RepayPaymentAdvanceTransactionRelationship data(TransactionRelationshipData data) { + public RepayPaymentAdvanceTransactionRelationship data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/Repayment.java b/src/main/java/unit/java/sdk/model/Repayment.java index 66a21636..8cbb713c 100644 --- a/src/main/java/unit/java/sdk/model/Repayment.java +++ b/src/main/java/unit/java/sdk/model/Repayment.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * Repayment */ @@ -39,7 +40,7 @@ Repayment.JSON_PROPERTY_ID, Repayment.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -60,13 +61,13 @@ public class Repayment { * Gets or Sets type */ public enum TypeEnum { - ACHREPAYMENT("achRepayment"), + ACH_REPAYMENT("achRepayment"), - BOOKREPAYMENT("bookRepayment"), + BOOK_REPAYMENT("bookRepayment"), - CAPITALPARTNERACHREPAYMENT("capitalPartnerAchRepayment"), + CAPITAL_PARTNER_ACH_REPAYMENT("capitalPartnerAchRepayment"), - CAPITALPARTNERBOOKREPAYMENT("capitalPartnerBookRepayment"); + CAPITAL_PARTNER_BOOK_REPAYMENT("capitalPartnerBookRepayment"); private String value; @@ -106,14 +107,13 @@ public Repayment id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -131,14 +131,13 @@ public Repayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -227,12 +226,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RepaymentInformation.java b/src/main/java/unit/java/sdk/model/RepaymentInformation.java new file mode 100644 index 00000000..60ee1bc4 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/RepaymentInformation.java @@ -0,0 +1,219 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.RepaymentInformationAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * RepaymentInformation + */ +@JsonPropertyOrder({ + RepaymentInformation.JSON_PROPERTY_TYPE, + RepaymentInformation.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class RepaymentInformation { + /** + * Gets or Sets type + */ + public enum TypeEnum { + CREDIT_ACCOUNT_REPAYMENT_INFORMATION("creditAccountRepaymentInformation"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.CREDIT_ACCOUNT_REPAYMENT_INFORMATION; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private RepaymentInformationAttributes attributes; + + public RepaymentInformation() { + } + + public RepaymentInformation type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public RepaymentInformation attributes(RepaymentInformationAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public RepaymentInformationAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(RepaymentInformationAttributes attributes) { + this.attributes = attributes; + } + + + /** + * Return true if this RepaymentInformation object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RepaymentInformation repaymentInformation = (RepaymentInformation) o; + return Objects.equals(this.type, repaymentInformation.type) && + Objects.equals(this.attributes, repaymentInformation.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RepaymentInformation {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponseDataAttributes.java b/src/main/java/unit/java/sdk/model/RepaymentInformationAttributes.java similarity index 72% rename from src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponseDataAttributes.java rename to src/main/java/unit/java/sdk/model/RepaymentInformationAttributes.java index 737ff28b..0943dc0b 100644 --- a/src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponseDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/RepaymentInformationAttributes.java @@ -29,19 +29,20 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitRepaymentInformationResponseDataAttributes + * RepaymentInformationAttributes */ @JsonPropertyOrder({ - UnitRepaymentInformationResponseDataAttributes.JSON_PROPERTY_REMAINING_AMOUNT_DUE, - UnitRepaymentInformationResponseDataAttributes.JSON_PROPERTY_REMAINING_AMOUNT_OVERDUE, - UnitRepaymentInformationResponseDataAttributes.JSON_PROPERTY_INITIATED_REPAYMENTS, - UnitRepaymentInformationResponseDataAttributes.JSON_PROPERTY_STATEMENT_PERIOD_START, - UnitRepaymentInformationResponseDataAttributes.JSON_PROPERTY_STATEMENT_PERIOD_END, - UnitRepaymentInformationResponseDataAttributes.JSON_PROPERTY_NEXT_REPAYMENT_DUE_DATE + RepaymentInformationAttributes.JSON_PROPERTY_REMAINING_AMOUNT_DUE, + RepaymentInformationAttributes.JSON_PROPERTY_REMAINING_AMOUNT_OVERDUE, + RepaymentInformationAttributes.JSON_PROPERTY_INITIATED_REPAYMENTS, + RepaymentInformationAttributes.JSON_PROPERTY_STATEMENT_PERIOD_START, + RepaymentInformationAttributes.JSON_PROPERTY_STATEMENT_PERIOD_END, + RepaymentInformationAttributes.JSON_PROPERTY_NEXT_REPAYMENT_DUE_DATE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitRepaymentInformationResponseDataAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class RepaymentInformationAttributes { public static final String JSON_PROPERTY_REMAINING_AMOUNT_DUE = "remainingAmountDue"; private Integer remainingAmountDue; @@ -60,22 +61,21 @@ public class UnitRepaymentInformationResponseDataAttributes { public static final String JSON_PROPERTY_NEXT_REPAYMENT_DUE_DATE = "nextRepaymentDueDate"; private LocalDate nextRepaymentDueDate; - public UnitRepaymentInformationResponseDataAttributes() { + public RepaymentInformationAttributes() { } - public UnitRepaymentInformationResponseDataAttributes remainingAmountDue(Integer remainingAmountDue) { + public RepaymentInformationAttributes remainingAmountDue(Integer remainingAmountDue) { this.remainingAmountDue = remainingAmountDue; return this; } - /** + /** * Get remainingAmountDue * @return remainingAmountDue - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT_DUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getRemainingAmountDue() { return remainingAmountDue; } @@ -88,19 +88,18 @@ public void setRemainingAmountDue(Integer remainingAmountDue) { } - public UnitRepaymentInformationResponseDataAttributes remainingAmountOverdue(Integer remainingAmountOverdue) { + public RepaymentInformationAttributes remainingAmountOverdue(Integer remainingAmountOverdue) { this.remainingAmountOverdue = remainingAmountOverdue; return this; } - /** + /** * Get remainingAmountOverdue * @return remainingAmountOverdue - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REMAINING_AMOUNT_OVERDUE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getRemainingAmountOverdue() { return remainingAmountOverdue; } @@ -113,19 +112,18 @@ public void setRemainingAmountOverdue(Integer remainingAmountOverdue) { } - public UnitRepaymentInformationResponseDataAttributes initiatedRepayments(Integer initiatedRepayments) { + public RepaymentInformationAttributes initiatedRepayments(Integer initiatedRepayments) { this.initiatedRepayments = initiatedRepayments; return this; } - /** + /** * Get initiatedRepayments * @return initiatedRepayments - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INITIATED_REPAYMENTS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getInitiatedRepayments() { return initiatedRepayments; } @@ -138,19 +136,18 @@ public void setInitiatedRepayments(Integer initiatedRepayments) { } - public UnitRepaymentInformationResponseDataAttributes statementPeriodStart(LocalDate statementPeriodStart) { + public RepaymentInformationAttributes statementPeriodStart(LocalDate statementPeriodStart) { this.statementPeriodStart = statementPeriodStart; return this; } - /** + /** * Get statementPeriodStart * @return statementPeriodStart - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATEMENT_PERIOD_START) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getStatementPeriodStart() { return statementPeriodStart; } @@ -163,19 +160,18 @@ public void setStatementPeriodStart(LocalDate statementPeriodStart) { } - public UnitRepaymentInformationResponseDataAttributes statementPeriodEnd(LocalDate statementPeriodEnd) { + public RepaymentInformationAttributes statementPeriodEnd(LocalDate statementPeriodEnd) { this.statementPeriodEnd = statementPeriodEnd; return this; } - /** + /** * Get statementPeriodEnd * @return statementPeriodEnd - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATEMENT_PERIOD_END) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getStatementPeriodEnd() { return statementPeriodEnd; } @@ -188,19 +184,18 @@ public void setStatementPeriodEnd(LocalDate statementPeriodEnd) { } - public UnitRepaymentInformationResponseDataAttributes nextRepaymentDueDate(LocalDate nextRepaymentDueDate) { + public RepaymentInformationAttributes nextRepaymentDueDate(LocalDate nextRepaymentDueDate) { this.nextRepaymentDueDate = nextRepaymentDueDate; return this; } - /** + /** * Get nextRepaymentDueDate * @return nextRepaymentDueDate - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NEXT_REPAYMENT_DUE_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getNextRepaymentDueDate() { return nextRepaymentDueDate; } @@ -214,7 +209,7 @@ public void setNextRepaymentDueDate(LocalDate nextRepaymentDueDate) { /** - * Return true if this UnitRepaymentInformationResponse_data_attributes object is equal to o. + * Return true if this RepaymentInformation_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -224,13 +219,13 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitRepaymentInformationResponseDataAttributes unitRepaymentInformationResponseDataAttributes = (UnitRepaymentInformationResponseDataAttributes) o; - return Objects.equals(this.remainingAmountDue, unitRepaymentInformationResponseDataAttributes.remainingAmountDue) && - Objects.equals(this.remainingAmountOverdue, unitRepaymentInformationResponseDataAttributes.remainingAmountOverdue) && - Objects.equals(this.initiatedRepayments, unitRepaymentInformationResponseDataAttributes.initiatedRepayments) && - Objects.equals(this.statementPeriodStart, unitRepaymentInformationResponseDataAttributes.statementPeriodStart) && - Objects.equals(this.statementPeriodEnd, unitRepaymentInformationResponseDataAttributes.statementPeriodEnd) && - Objects.equals(this.nextRepaymentDueDate, unitRepaymentInformationResponseDataAttributes.nextRepaymentDueDate); + RepaymentInformationAttributes repaymentInformationAttributes = (RepaymentInformationAttributes) o; + return Objects.equals(this.remainingAmountDue, repaymentInformationAttributes.remainingAmountDue) && + Objects.equals(this.remainingAmountOverdue, repaymentInformationAttributes.remainingAmountOverdue) && + Objects.equals(this.initiatedRepayments, repaymentInformationAttributes.initiatedRepayments) && + Objects.equals(this.statementPeriodStart, repaymentInformationAttributes.statementPeriodStart) && + Objects.equals(this.statementPeriodEnd, repaymentInformationAttributes.statementPeriodEnd) && + Objects.equals(this.nextRepaymentDueDate, repaymentInformationAttributes.nextRepaymentDueDate); } @Override @@ -241,7 +236,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitRepaymentInformationResponseDataAttributes {\n"); + sb.append("class RepaymentInformationAttributes {\n"); sb.append(" remainingAmountDue: ").append(toIndentedString(remainingAmountDue)).append("\n"); sb.append(" remainingAmountOverdue: ").append(toIndentedString(remainingAmountOverdue)).append("\n"); sb.append(" initiatedRepayments: ").append(toIndentedString(initiatedRepayments)).append("\n"); @@ -297,32 +292,32 @@ public String toUrlQueryString(String prefix) { // add `remainingAmountDue` to the URL query string if (getRemainingAmountDue() != null) { - joiner.add(String.format("%sremainingAmountDue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRemainingAmountDue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sremainingAmountDue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRemainingAmountDue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `remainingAmountOverdue` to the URL query string if (getRemainingAmountOverdue() != null) { - joiner.add(String.format("%sremainingAmountOverdue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRemainingAmountOverdue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sremainingAmountOverdue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRemainingAmountOverdue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `initiatedRepayments` to the URL query string if (getInitiatedRepayments() != null) { - joiner.add(String.format("%sinitiatedRepayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInitiatedRepayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinitiatedRepayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInitiatedRepayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `statementPeriodStart` to the URL query string if (getStatementPeriodStart() != null) { - joiner.add(String.format("%sstatementPeriodStart%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatementPeriodStart()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatementPeriodStart%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatementPeriodStart()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `statementPeriodEnd` to the URL query string if (getStatementPeriodEnd() != null) { - joiner.add(String.format("%sstatementPeriodEnd%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatementPeriodEnd()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatementPeriodEnd%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatementPeriodEnd()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nextRepaymentDueDate` to the URL query string if (getNextRepaymentDueDate() != null) { - joiner.add(String.format("%snextRepaymentDueDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNextRepaymentDueDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snextRepaymentDueDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNextRepaymentDueDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RepaymentRelationship.java b/src/main/java/unit/java/sdk/model/RepaymentRelationship.java index e9d5bb19..c98dab11 100644 --- a/src/main/java/unit/java/sdk/model/RepaymentRelationship.java +++ b/src/main/java/unit/java/sdk/model/RepaymentRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RepaymentRelationship */ @JsonPropertyOrder({ RepaymentRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RepaymentRelationship { public static final String JSON_PROPERTY_DATA = "data"; private RepaymentRelationshipData data; @@ -48,14 +49,13 @@ public RepaymentRelationship data(RepaymentRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RepaymentRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RepaymentRelationshipData.java b/src/main/java/unit/java/sdk/model/RepaymentRelationshipData.java index 0c15ca95..0c0f7498 100644 --- a/src/main/java/unit/java/sdk/model/RepaymentRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/RepaymentRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RepaymentRelationshipData */ @@ -35,7 +36,7 @@ RepaymentRelationshipData.JSON_PROPERTY_ID, RepaymentRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RepaymentRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -51,14 +52,13 @@ public RepaymentRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -76,14 +76,13 @@ public RepaymentRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ReplaceCardRequest.java b/src/main/java/unit/java/sdk/model/ReplaceCardRequest.java new file mode 100644 index 00000000..1628fbda --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReplaceCardRequest.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.ReplaceCardRequestData; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReplaceCardRequest + */ +@JsonPropertyOrder({ + ReplaceCardRequest.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReplaceCardRequest { + public static final String JSON_PROPERTY_DATA = "data"; + private ReplaceCardRequestData data; + + public ReplaceCardRequest() { + } + + public ReplaceCardRequest data(ReplaceCardRequestData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ReplaceCardRequestData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(ReplaceCardRequestData data) { + this.data = data; + } + + + /** + * Return true if this ReplaceCardRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceCardRequest replaceCardRequest = (ReplaceCardRequest) o; + return Objects.equals(this.data, replaceCardRequest.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReplaceCardRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReplaceCardRequestData.java b/src/main/java/unit/java/sdk/model/ReplaceCardRequestData.java new file mode 100644 index 00000000..fc3e7f5a --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReplaceCardRequestData.java @@ -0,0 +1,219 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.ReplaceCardRequestDataAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReplaceCardRequestData + */ +@JsonPropertyOrder({ + ReplaceCardRequestData.JSON_PROPERTY_TYPE, + ReplaceCardRequestData.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReplaceCardRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + REPLACE_CARD("replaceCard"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.REPLACE_CARD; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private ReplaceCardRequestDataAttributes attributes; + + public ReplaceCardRequestData() { + } + + public ReplaceCardRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public ReplaceCardRequestData attributes(ReplaceCardRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ReplaceCardRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(ReplaceCardRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + /** + * Return true if this ReplaceCardRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceCardRequestData replaceCardRequestData = (ReplaceCardRequestData) o; + return Objects.equals(this.type, replaceCardRequestData.type) && + Objects.equals(this.attributes, replaceCardRequestData.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReplaceCardRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReplaceCardRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/ReplaceCardRequestDataAttributes.java new file mode 100644 index 00000000..43ef3305 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReplaceCardRequestDataAttributes.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.Address; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReplaceCardRequestDataAttributes + */ +@JsonPropertyOrder({ + ReplaceCardRequestDataAttributes.JSON_PROPERTY_SHIPPING_ADDRESS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReplaceCardRequestDataAttributes { + public static final String JSON_PROPERTY_SHIPPING_ADDRESS = "shippingAddress"; + private Address shippingAddress; + + public ReplaceCardRequestDataAttributes() { + } + + public ReplaceCardRequestDataAttributes shippingAddress(Address shippingAddress) { + this.shippingAddress = shippingAddress; + return this; + } + + /** + * Get shippingAddress + * @return shippingAddress + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SHIPPING_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Address getShippingAddress() { + return shippingAddress; + } + + + @JsonProperty(JSON_PROPERTY_SHIPPING_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setShippingAddress(Address shippingAddress) { + this.shippingAddress = shippingAddress; + } + + + /** + * Return true if this ReplaceCardRequest_data_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReplaceCardRequestDataAttributes replaceCardRequestDataAttributes = (ReplaceCardRequestDataAttributes) o; + return Objects.equals(this.shippingAddress, replaceCardRequestDataAttributes.shippingAddress); + } + + @Override + public int hashCode() { + return Objects.hash(shippingAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReplaceCardRequestDataAttributes {\n"); + sb.append(" shippingAddress: ").append(toIndentedString(shippingAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `shippingAddress` to the URL query string + if (getShippingAddress() != null) { + joiner.add(getShippingAddress().toUrlQueryString(prefix + "shippingAddress" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/RequireIdVerification.java b/src/main/java/unit/java/sdk/model/RequireIdVerification.java index 67c7d952..3b30f17c 100644 --- a/src/main/java/unit/java/sdk/model/RequireIdVerification.java +++ b/src/main/java/unit/java/sdk/model/RequireIdVerification.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RequireIdVerification */ @@ -36,7 +37,7 @@ RequireIdVerification.JSON_PROPERTY_OFFICER, RequireIdVerification.JSON_PROPERTY_BENEFICIAL_OWNERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RequireIdVerification { public static final String JSON_PROPERTY_INDIVIDUAL = "individual"; private Boolean individual = false; @@ -55,14 +56,13 @@ public RequireIdVerification individual(Boolean individual) { return this; } - /** + /** * Get individual * @return individual - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INDIVIDUAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIndividual() { return individual; } @@ -80,14 +80,13 @@ public RequireIdVerification officer(Boolean officer) { return this; } - /** + /** * Get officer * @return officer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OFFICER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getOfficer() { return officer; } @@ -105,14 +104,13 @@ public RequireIdVerification beneficialOwners(Boolean beneficialOwners) { return this; } - /** + /** * Get beneficialOwners * @return beneficialOwners - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BENEFICIAL_OWNERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getBeneficialOwners() { return beneficialOwners; } @@ -203,17 +201,17 @@ public String toUrlQueryString(String prefix) { // add `individual` to the URL query string if (getIndividual() != null) { - joiner.add(String.format("%sindividual%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getIndividual()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sindividual%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIndividual()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `officer` to the URL query string if (getOfficer() != null) { - joiner.add(String.format("%sofficer%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOfficer()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sofficer%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOfficer()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `beneficialOwners` to the URL query string if (getBeneficialOwners() != null) { - joiner.add(String.format("%sbeneficialOwners%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBeneficialOwners()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbeneficialOwners%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBeneficialOwners()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ResponseContact.java b/src/main/java/unit/java/sdk/model/ResponseContact.java index f9a3f041..cfc49e47 100644 --- a/src/main/java/unit/java/sdk/model/ResponseContact.java +++ b/src/main/java/unit/java/sdk/model/ResponseContact.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ResponseContact */ @@ -43,7 +44,7 @@ ResponseContact.JSON_PROPERTY_PHONE, ResponseContact.JSON_PROPERTY_JWT_SUBJECT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ResponseContact { public static final String JSON_PROPERTY_FULL_NAME = "fullName"; private FullName fullName; @@ -65,14 +66,13 @@ public ResponseContact fullName(FullName fullName) { return this; } - /** + /** * Get fullName * @return fullName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FULL_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FullName getFullName() { return fullName; } @@ -90,14 +90,13 @@ public ResponseContact email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getEmail() { return email; } @@ -115,14 +114,13 @@ public ResponseContact phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Phone getPhone() { return phone; } @@ -140,13 +138,12 @@ public ResponseContact jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -264,7 +261,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -274,7 +271,7 @@ public String toUrlQueryString(String prefix) { // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ResponseMonthlySchedule.java b/src/main/java/unit/java/sdk/model/ResponseMonthlySchedule.java index 876d7955..2b3004cc 100644 --- a/src/main/java/unit/java/sdk/model/ResponseMonthlySchedule.java +++ b/src/main/java/unit/java/sdk/model/ResponseMonthlySchedule.java @@ -34,6 +34,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ResponseMonthlySchedule */ @@ -44,7 +45,7 @@ ResponseMonthlySchedule.JSON_PROPERTY_DAY_OF_WEEK, ResponseMonthlySchedule.JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "interval", // ignore manually set interval, it will be automatically generated by Jackson during serialization allowSetters = true // allows the interval to be set during deserialization @@ -120,14 +121,13 @@ public ResponseMonthlySchedule startTime(LocalDate startTime) { return this; } - /** + /** * Get startTime * @return startTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getStartTime() { return startTime; } @@ -145,14 +145,13 @@ public ResponseMonthlySchedule endTime(LocalDate endTime) { return this; } - /** + /** * Get endTime * @return endTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getEndTime() { return endTime; } @@ -170,16 +169,15 @@ public ResponseMonthlySchedule dayOfMonth(Integer dayOfMonth) { return this; } - /** + /** * Get dayOfMonth * minimum: -5 * maximum: 28 * @return dayOfMonth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDayOfMonth() { return dayOfMonth; } @@ -197,14 +195,13 @@ public ResponseMonthlySchedule dayOfWeek(DayOfWeekEnum dayOfWeek) { return this; } - /** + /** * Get dayOfWeek * @return dayOfWeek - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_WEEK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DayOfWeekEnum getDayOfWeek() { return dayOfWeek; } @@ -222,15 +219,14 @@ public ResponseMonthlySchedule totalNumberOfPayments(Integer totalNumberOfPaymen return this; } - /** + /** * Get totalNumberOfPayments * minimum: 1 * @return totalNumberOfPayments - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotalNumberOfPayments() { return totalNumberOfPayments; } @@ -333,32 +329,32 @@ public String toUrlQueryString(String prefix) { // add `interval` to the URL query string if (getInterval() != null) { - joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `startTime` to the URL query string if (getStartTime() != null) { - joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `endTime` to the URL query string if (getEndTime() != null) { - joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfMonth` to the URL query string if (getDayOfMonth() != null) { - joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfWeek` to the URL query string if (getDayOfWeek() != null) { - joiner.add(String.format("%sdayOfWeek%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfWeek()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfWeek%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfWeek()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `totalNumberOfPayments` to the URL query string if (getTotalNumberOfPayments() != null) { - joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ResponseSchedule.java b/src/main/java/unit/java/sdk/model/ResponseSchedule.java index c3d8e790..be22e0cb 100644 --- a/src/main/java/unit/java/sdk/model/ResponseSchedule.java +++ b/src/main/java/unit/java/sdk/model/ResponseSchedule.java @@ -32,13 +32,14 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ResponseSchedule */ @JsonPropertyOrder({ ResponseSchedule.JSON_PROPERTY_INTERVAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "interval", // ignore manually set interval, it will be automatically generated by Jackson during serialization allowSetters = true // allows the interval to be set during deserialization @@ -96,14 +97,13 @@ public ResponseSchedule interval(IntervalEnum interval) { return this; } - /** + /** * Get interval * @return interval - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IntervalEnum getInterval() { return interval; } @@ -190,7 +190,7 @@ public String toUrlQueryString(String prefix) { // add `interval` to the URL query string if (getInterval() != null) { - joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ResponseWeeklySchedule.java b/src/main/java/unit/java/sdk/model/ResponseWeeklySchedule.java index 1fa15bc9..16fed8b4 100644 --- a/src/main/java/unit/java/sdk/model/ResponseWeeklySchedule.java +++ b/src/main/java/unit/java/sdk/model/ResponseWeeklySchedule.java @@ -34,6 +34,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ResponseWeeklySchedule */ @@ -44,7 +45,7 @@ ResponseWeeklySchedule.JSON_PROPERTY_NEXT_SCHEDULED_ACTION, ResponseWeeklySchedule.JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "interval", // ignore manually set interval, it will be automatically generated by Jackson during serialization allowSetters = true // allows the interval to be set during deserialization @@ -75,14 +76,13 @@ public ResponseWeeklySchedule startTime(LocalDate startTime) { return this; } - /** + /** * Get startTime * @return startTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getStartTime() { return startTime; } @@ -100,14 +100,13 @@ public ResponseWeeklySchedule endTime(LocalDate endTime) { return this; } - /** + /** * Get endTime * @return endTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getEndTime() { return endTime; } @@ -125,16 +124,15 @@ public ResponseWeeklySchedule dayOfMonth(Integer dayOfMonth) { return this; } - /** + /** * Get dayOfMonth * minimum: -5 * maximum: 28 * @return dayOfMonth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDayOfMonth() { return dayOfMonth; } @@ -152,14 +150,13 @@ public ResponseWeeklySchedule nextScheduledAction(LocalDate nextScheduledAction) return this; } - /** + /** * Get nextScheduledAction * @return nextScheduledAction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NEXT_SCHEDULED_ACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getNextScheduledAction() { return nextScheduledAction; } @@ -177,15 +174,14 @@ public ResponseWeeklySchedule totalNumberOfPayments(Integer totalNumberOfPayment return this; } - /** + /** * Get totalNumberOfPayments * minimum: 1 * @return totalNumberOfPayments - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotalNumberOfPayments() { return totalNumberOfPayments; } @@ -288,32 +284,32 @@ public String toUrlQueryString(String prefix) { // add `interval` to the URL query string if (getInterval() != null) { - joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `startTime` to the URL query string if (getStartTime() != null) { - joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `endTime` to the URL query string if (getEndTime() != null) { - joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfMonth` to the URL query string if (getDayOfMonth() != null) { - joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nextScheduledAction` to the URL query string if (getNextScheduledAction() != null) { - joiner.add(String.format("%snextScheduledAction%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNextScheduledAction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snextScheduledAction%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNextScheduledAction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `totalNumberOfPayments` to the URL query string if (getTotalNumberOfPayments() != null) { - joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequest.java b/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequest.java index 51dec845..f8f3a3ad 100644 --- a/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnCheckPaymentRequest */ @JsonPropertyOrder({ ReturnCheckPaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnCheckPaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private ReturnCheckPaymentRequestData data; @@ -48,14 +49,13 @@ public ReturnCheckPaymentRequest data(ReturnCheckPaymentRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReturnCheckPaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequestData.java b/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequestData.java index b6b0e349..23364ec0 100644 --- a/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnCheckPaymentRequestData */ @@ -36,13 +37,13 @@ ReturnCheckPaymentRequestData.JSON_PROPERTY_TYPE, ReturnCheckPaymentRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnCheckPaymentRequestData { /** * Gets or Sets type */ public enum TypeEnum { - CHECKPAYMENTRETURN("checkPaymentReturn"); + CHECK_PAYMENT_RETURN("checkPaymentReturn"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CHECKPAYMENTRETURN; + private TypeEnum type = TypeEnum.CHECK_PAYMENT_RETURN; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private ReturnCheckPaymentRequestDataAttributes attributes; @@ -85,14 +86,13 @@ public ReturnCheckPaymentRequestData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public ReturnCheckPaymentRequestData attributes(ReturnCheckPaymentRequestDataAtt return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReturnCheckPaymentRequestDataAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequestDataAttributes.java index 0d988b96..f5e9eb55 100644 --- a/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/ReturnCheckPaymentRequestDataAttributes.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnCheckPaymentRequestDataAttributes */ @JsonPropertyOrder({ ReturnCheckPaymentRequestDataAttributes.JSON_PROPERTY_REASON }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnCheckPaymentRequestDataAttributes { public static final String JSON_PROPERTY_REASON = "reason"; private ReturnReason reason; @@ -48,14 +49,13 @@ public ReturnCheckPaymentRequestDataAttributes reason(ReturnReason reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReturnReason getReason() { return reason; } @@ -142,7 +142,7 @@ public String toUrlQueryString(String prefix) { // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/ReturnReason.java b/src/main/java/unit/java/sdk/model/ReturnReason.java index 5f9d9b42..ca4108f9 100644 --- a/src/main/java/unit/java/sdk/model/ReturnReason.java +++ b/src/main/java/unit/java/sdk/model/ReturnReason.java @@ -30,27 +30,27 @@ */ public enum ReturnReason { - INSUFFICIENTFUNDS("InsufficientFunds"), + INSUFFICIENT_FUNDS("InsufficientFunds"), - ACCOUNTCLOSED("AccountClosed"), + ACCOUNT_CLOSED("AccountClosed"), - ALTEREDCHECK("AlteredCheck"), + ALTERED_CHECK("AlteredCheck"), - FORGEDSIGNATURE("ForgedSignature"), + FORGED_SIGNATURE("ForgedSignature"), - POSTDATEDCHECK("PostdatedCheck"), + POSTDATED_CHECK("PostdatedCheck"), - STOPPAYMENTORDER("StopPaymentOrder"), + STOP_PAYMENT_ORDER("StopPaymentOrder"), - UNAUTHORIZEDDEBIT("UnauthorizedDebit"), + UNAUTHORIZED_DEBIT("UnauthorizedDebit"), - WRONGAMOUNT("WrongAmount"), + WRONG_AMOUNT("WrongAmount"), - DUPLICATEPAYMENT("DuplicatePayment"), + DUPLICATE_PAYMENT("DuplicatePayment"), - MISSINGSIGNATURE("MissingSignature"), + MISSING_SIGNATURE("MissingSignature"), - IRREGULARENDORSEMENT("IrregularEndorsement"), + IRREGULAR_ENDORSEMENT("IrregularEndorsement"), OTHER("Other"); diff --git a/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRelationships.java b/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRelationships.java new file mode 100644 index 00000000..1f9ab45d --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRelationships.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReturnReceivedACHTransactionRelationships + */ +@JsonPropertyOrder({ + ReturnReceivedACHTransactionRelationships.JSON_PROPERTY_ACCOUNT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReturnReceivedACHTransactionRelationships { + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public ReturnReceivedACHTransactionRelationships() { + } + + public ReturnReceivedACHTransactionRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + /** + * Return true if this ReturnReceivedACHTransactionRelationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReturnReceivedACHTransactionRelationships returnReceivedACHTransactionRelationships = (ReturnReceivedACHTransactionRelationships) o; + return Objects.equals(this.account, returnReceivedACHTransactionRelationships.account); + } + + @Override + public int hashCode() { + return Objects.hash(account); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReturnReceivedACHTransactionRelationships {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequest.java b/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequest.java new file mode 100644 index 00000000..24065868 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequest.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.ReturnReceivedACHTransactionRequestData; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReturnReceivedACHTransactionRequest + */ +@JsonPropertyOrder({ + ReturnReceivedACHTransactionRequest.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReturnReceivedACHTransactionRequest { + public static final String JSON_PROPERTY_DATA = "data"; + private ReturnReceivedACHTransactionRequestData data; + + public ReturnReceivedACHTransactionRequest() { + } + + public ReturnReceivedACHTransactionRequest data(ReturnReceivedACHTransactionRequestData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ReturnReceivedACHTransactionRequestData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(ReturnReceivedACHTransactionRequestData data) { + this.data = data; + } + + + /** + * Return true if this ReturnReceivedACHTransactionRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReturnReceivedACHTransactionRequest returnReceivedACHTransactionRequest = (ReturnReceivedACHTransactionRequest) o; + return Objects.equals(this.data, returnReceivedACHTransactionRequest.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReturnReceivedACHTransactionRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequestData.java b/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequestData.java new file mode 100644 index 00000000..2f5f6b7a --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequestData.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.ReturnReceivedACHTransactionRelationships; +import unit.java.sdk.model.ReturnReceivedACHTransactionRequestDataAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReturnReceivedACHTransactionRequestData + */ +@JsonPropertyOrder({ + ReturnReceivedACHTransactionRequestData.JSON_PROPERTY_TYPE, + ReturnReceivedACHTransactionRequestData.JSON_PROPERTY_ATTRIBUTES, + ReturnReceivedACHTransactionRequestData.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReturnReceivedACHTransactionRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ATM_TRANSACTION("atmTransaction"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.ATM_TRANSACTION; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private ReturnReceivedACHTransactionRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private ReturnReceivedACHTransactionRelationships relationships; + + public ReturnReceivedACHTransactionRequestData() { + } + + public ReturnReceivedACHTransactionRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public ReturnReceivedACHTransactionRequestData attributes(ReturnReceivedACHTransactionRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ReturnReceivedACHTransactionRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(ReturnReceivedACHTransactionRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + public ReturnReceivedACHTransactionRequestData relationships(ReturnReceivedACHTransactionRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ReturnReceivedACHTransactionRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(ReturnReceivedACHTransactionRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this ReturnReceivedACHTransactionRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReturnReceivedACHTransactionRequestData returnReceivedACHTransactionRequestData = (ReturnReceivedACHTransactionRequestData) o; + return Objects.equals(this.type, returnReceivedACHTransactionRequestData.type) && + Objects.equals(this.attributes, returnReceivedACHTransactionRequestData.attributes) && + Objects.equals(this.relationships, returnReceivedACHTransactionRequestData.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReturnReceivedACHTransactionRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequestDataAttributes.java new file mode 100644 index 00000000..5fdc29dc --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReturnReceivedACHTransactionRequestDataAttributes.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AchReturnReason; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReturnReceivedACHTransactionRequestDataAttributes + */ +@JsonPropertyOrder({ + ReturnReceivedACHTransactionRequestDataAttributes.JSON_PROPERTY_REASON +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReturnReceivedACHTransactionRequestDataAttributes { + public static final String JSON_PROPERTY_REASON = "reason"; + private AchReturnReason reason; + + public ReturnReceivedACHTransactionRequestDataAttributes() { + } + + public ReturnReceivedACHTransactionRequestDataAttributes reason(AchReturnReason reason) { + this.reason = reason; + return this; + } + + /** + * Get reason + * @return reason + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AchReturnReason getReason() { + return reason; + } + + + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setReason(AchReturnReason reason) { + this.reason = reason; + } + + + /** + * Return true if this ReturnReceivedACHTransactionRequest_data_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReturnReceivedACHTransactionRequestDataAttributes returnReceivedACHTransactionRequestDataAttributes = (ReturnReceivedACHTransactionRequestDataAttributes) o; + return Objects.equals(this.reason, returnReceivedACHTransactionRequestDataAttributes.reason); + } + + @Override + public int hashCode() { + return Objects.hash(reason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReturnReceivedACHTransactionRequestDataAttributes {\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `reason` to the URL query string + if (getReason() != null) { + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReturnedAchTransaction.java b/src/main/java/unit/java/sdk/model/ReturnedAchTransaction.java index ea028b24..42069cc0 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedAchTransaction.java +++ b/src/main/java/unit/java/sdk/model/ReturnedAchTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ReturnedAchTransaction */ @@ -42,7 +43,7 @@ ReturnedAchTransaction.JSON_PROPERTY_ATTRIBUTES, ReturnedAchTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public ReturnedAchTransaction attributes(ReturnedAchTransactionAllOfAttributes a return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedAchTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public ReturnedAchTransaction relationships(ReturnedAchTransactionRelationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedAchTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ReturnedAchTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/ReturnedAchTransactionAllOfAttributes.java index 85c902b0..25392124 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedAchTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/ReturnedAchTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedAchTransactionAllOfAttributes */ @@ -47,7 +48,7 @@ ReturnedAchTransactionAllOfAttributes.JSON_PROPERTY_ACH_REASON, ReturnedAchTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedAchTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -125,14 +126,13 @@ public ReturnedAchTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -150,14 +150,13 @@ public ReturnedAchTransactionAllOfAttributes direction(DirectionEnum direction) return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -175,14 +174,13 @@ public ReturnedAchTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -200,14 +198,13 @@ public ReturnedAchTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -225,14 +222,13 @@ public ReturnedAchTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -250,14 +246,13 @@ public ReturnedAchTransactionAllOfAttributes companyName(String companyName) { return this; } - /** + /** * Get companyName * @return companyName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCompanyName() { return companyName; } @@ -275,14 +270,13 @@ public ReturnedAchTransactionAllOfAttributes counterpartyName(String counterpart return this; } - /** + /** * Get counterpartyName * @return counterpartyName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCounterpartyName() { return counterpartyName; } @@ -300,14 +294,13 @@ public ReturnedAchTransactionAllOfAttributes counterpartyRoutingNumber(String co return this; } - /** + /** * Get counterpartyRoutingNumber * @return counterpartyRoutingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCounterpartyRoutingNumber() { return counterpartyRoutingNumber; } @@ -325,14 +318,13 @@ public ReturnedAchTransactionAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getReason() { return reason; } @@ -350,14 +342,13 @@ public ReturnedAchTransactionAllOfAttributes achReason(String achReason) { return this; } - /** + /** * Get achReason * @return achReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACH_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAchReason() { return achReason; } @@ -383,14 +374,13 @@ public ReturnedAchTransactionAllOfAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -497,52 +487,52 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `companyName` to the URL query string if (getCompanyName() != null) { - joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyName` to the URL query string if (getCounterpartyName() != null) { - joiner.add(String.format("%scounterpartyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterpartyRoutingNumber` to the URL query string if (getCounterpartyRoutingNumber() != null) { - joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scounterpartyRoutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCounterpartyRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `achReason` to the URL query string if (getAchReason() != null) { - joiner.add(String.format("%sachReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAchReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sachReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAchReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -550,7 +540,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ReturnedAchTransactionRelationships.java b/src/main/java/unit/java/sdk/model/ReturnedAchTransactionRelationships.java index c3b070ce..b07a65d7 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedAchTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/ReturnedAchTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedAchTransactionRelationships */ @@ -41,7 +42,7 @@ ReturnedAchTransactionRelationships.JSON_PROPERTY_CUSTOMERS, ReturnedAchTransactionRelationships.JSON_PROPERTY_PAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedAchTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public ReturnedAchTransactionRelationships account(AccountRelationship account) return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public ReturnedAchTransactionRelationships customer(CustomerRelationship custome return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public ReturnedAchTransactionRelationships customers(CustomersRelationship custo return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public ReturnedAchTransactionRelationships payment(PaymentRelationship payment) return this; } - /** + /** * Get payment * @return payment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentRelationship getPayment() { return payment; } diff --git a/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransaction.java b/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransaction.java index faf65144..f880c97d 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransaction.java +++ b/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ReturnedCheckDepositTransaction */ @@ -42,7 +43,7 @@ ReturnedCheckDepositTransaction.JSON_PROPERTY_ATTRIBUTES, ReturnedCheckDepositTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public ReturnedCheckDepositTransaction attributes(ReturnedCheckDepositTransactio return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedCheckDepositTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public ReturnedCheckDepositTransaction relationships(ReturnedCheckDepositTransac return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedCheckDepositTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransactionAllOfAttributes.java index 8dc37983..1ad5e7a1 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedCheckDepositTransactionAllOfAttributes */ @@ -43,7 +44,7 @@ ReturnedCheckDepositTransactionAllOfAttributes.JSON_PROPERTY_REASON, ReturnedCheckDepositTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedCheckDepositTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -109,14 +110,13 @@ public ReturnedCheckDepositTransactionAllOfAttributes createdAt(OffsetDateTime c return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -134,14 +134,13 @@ public ReturnedCheckDepositTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -159,14 +158,13 @@ public ReturnedCheckDepositTransactionAllOfAttributes direction(DirectionEnum di return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -184,14 +182,13 @@ public ReturnedCheckDepositTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -209,14 +206,13 @@ public ReturnedCheckDepositTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -234,14 +230,13 @@ public ReturnedCheckDepositTransactionAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReason() { return reason; } @@ -267,14 +262,13 @@ public ReturnedCheckDepositTransactionAllOfAttributes putTagsItem(String key, St return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -373,32 +367,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -406,7 +400,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransactionRelationships.java b/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransactionRelationships.java index e4477a2e..fe72a575 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/ReturnedCheckDepositTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedCheckDepositTransactionRelationships */ @@ -41,7 +42,7 @@ ReturnedCheckDepositTransactionRelationships.JSON_PROPERTY_CUSTOMERS, ReturnedCheckDepositTransactionRelationships.JSON_PROPERTY_CHECK_DEPOSIT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedCheckDepositTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public ReturnedCheckDepositTransactionRelationships account(AccountRelationship return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public ReturnedCheckDepositTransactionRelationships customer(CustomerRelationshi return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public ReturnedCheckDepositTransactionRelationships customers(CustomersRelations return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public ReturnedCheckDepositTransactionRelationships checkDeposit(CheckDepositRel return this; } - /** + /** * Get checkDeposit * @return checkDeposit - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CHECK_DEPOSIT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositRelationship getCheckDeposit() { return checkDeposit; } diff --git a/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransaction.java b/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransaction.java index 07967589..9ecb17d9 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransaction.java +++ b/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ReturnedCheckPaymentTransaction */ @@ -42,7 +43,7 @@ ReturnedCheckPaymentTransaction.JSON_PROPERTY_ATTRIBUTES, ReturnedCheckPaymentTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public ReturnedCheckPaymentTransaction attributes(ReturnedCheckPaymentTransactio return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedCheckPaymentTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public ReturnedCheckPaymentTransaction relationships(ReturnedCheckPaymentTransac return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedCheckPaymentTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransactionAllOfAttributes.java index 61094fc4..51b183c4 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedCheckPaymentTransactionAllOfAttributes */ @@ -43,7 +44,7 @@ ReturnedCheckPaymentTransactionAllOfAttributes.JSON_PROPERTY_REASON, ReturnedCheckPaymentTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedCheckPaymentTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -109,14 +110,13 @@ public ReturnedCheckPaymentTransactionAllOfAttributes createdAt(OffsetDateTime c return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -134,14 +134,13 @@ public ReturnedCheckPaymentTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -159,14 +158,13 @@ public ReturnedCheckPaymentTransactionAllOfAttributes direction(DirectionEnum di return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -184,14 +182,13 @@ public ReturnedCheckPaymentTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -209,14 +206,13 @@ public ReturnedCheckPaymentTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -234,14 +230,13 @@ public ReturnedCheckPaymentTransactionAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getReason() { return reason; } @@ -267,14 +262,13 @@ public ReturnedCheckPaymentTransactionAllOfAttributes putTagsItem(String key, St return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -373,32 +367,32 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -406,7 +400,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransactionRelationships.java b/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransactionRelationships.java index 708680b4..7b09c069 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/ReturnedCheckPaymentTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedCheckPaymentTransactionRelationships */ @@ -41,7 +42,7 @@ ReturnedCheckPaymentTransactionRelationships.JSON_PROPERTY_CUSTOMERS, ReturnedCheckPaymentTransactionRelationships.JSON_PROPERTY_CHECK_PAYMENT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedCheckPaymentTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public ReturnedCheckPaymentTransactionRelationships account(AccountRelationship return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public ReturnedCheckPaymentTransactionRelationships customer(CustomerRelationshi return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public ReturnedCheckPaymentTransactionRelationships customers(CustomersRelations return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public ReturnedCheckPaymentTransactionRelationships checkPayment(CheckPaymentRel return this; } - /** + /** * Get checkPayment * @return checkPayment - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CHECK_PAYMENT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckPaymentRelationship getCheckPayment() { return checkPayment; } diff --git a/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransaction.java b/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransaction.java index a472bc95..44ed7ff5 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransaction.java +++ b/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * ReturnedReceivedAchTransaction */ @@ -42,7 +43,7 @@ ReturnedReceivedAchTransaction.JSON_PROPERTY_ATTRIBUTES, ReturnedReceivedAchTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public ReturnedReceivedAchTransaction attributes(ReturnedReceivedAchTransactionA return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedReceivedAchTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public ReturnedReceivedAchTransaction relationships(ReturnedReceivedAchTransacti return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedReceivedAchTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransactionAllOfAttributes.java index d65b0fc1..be27b372 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransactionAllOfAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedReceivedAchTransactionAllOfAttributes */ @@ -44,7 +45,7 @@ ReturnedReceivedAchTransactionAllOfAttributes.JSON_PROPERTY_REASON, ReturnedReceivedAchTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedReceivedAchTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -113,14 +114,13 @@ public ReturnedReceivedAchTransactionAllOfAttributes createdAt(OffsetDateTime cr return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -138,14 +138,13 @@ public ReturnedReceivedAchTransactionAllOfAttributes direction(DirectionEnum dir return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -163,14 +162,13 @@ public ReturnedReceivedAchTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -188,14 +186,13 @@ public ReturnedReceivedAchTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -213,14 +210,13 @@ public ReturnedReceivedAchTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -238,14 +234,13 @@ public ReturnedReceivedAchTransactionAllOfAttributes companyName(String companyN return this; } - /** + /** * Get companyName * @return companyName - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COMPANY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getCompanyName() { return companyName; } @@ -263,14 +258,13 @@ public ReturnedReceivedAchTransactionAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getReason() { return reason; } @@ -296,14 +290,13 @@ public ReturnedReceivedAchTransactionAllOfAttributes putTagsItem(String key, Str return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -404,37 +397,37 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `companyName` to the URL query string if (getCompanyName() != null) { - joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scompanyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCompanyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -442,7 +435,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransactionRelationships.java b/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransactionRelationships.java index f737cc62..eed09547 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/ReturnedReceivedAchTransactionRelationships.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedReceivedAchTransactionRelationships */ @@ -41,7 +42,7 @@ ReturnedReceivedAchTransactionRelationships.JSON_PROPERTY_CUSTOMERS, ReturnedReceivedAchTransactionRelationships.JSON_PROPERTY_RETURNED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedReceivedAchTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -63,14 +64,13 @@ public ReturnedReceivedAchTransactionRelationships account(AccountRelationship a return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -88,14 +88,13 @@ public ReturnedReceivedAchTransactionRelationships customer(CustomerRelationship return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -113,14 +112,13 @@ public ReturnedReceivedAchTransactionRelationships customers(CustomersRelationsh return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -138,14 +136,13 @@ public ReturnedReceivedAchTransactionRelationships returned(ReturnedTransactionR return this; } - /** + /** * Get returned * @return returned - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RETURNED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReturnedTransactionRelationship getReturned() { return returned; } diff --git a/src/main/java/unit/java/sdk/model/ReturnedRelationship.java b/src/main/java/unit/java/sdk/model/ReturnedRelationship.java index 9a793778..4d7efda6 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedRelationship.java +++ b/src/main/java/unit/java/sdk/model/ReturnedRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedRelationship */ @JsonPropertyOrder({ ReturnedRelationship.JSON_PROPERTY_RETURNED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedRelationship { public static final String JSON_PROPERTY_RETURNED = "returned"; private ReturnedTransactionRelationship returned; @@ -48,14 +49,13 @@ public ReturnedRelationship returned(ReturnedTransactionRelationship returned) { return this; } - /** + /** * Get returned * @return returned - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RETURNED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReturnedTransactionRelationship getReturned() { return returned; } diff --git a/src/main/java/unit/java/sdk/model/ReturnedTransactionRelationship.java b/src/main/java/unit/java/sdk/model/ReturnedTransactionRelationship.java index d0dbe464..de61fcd4 100644 --- a/src/main/java/unit/java/sdk/model/ReturnedTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/ReturnedTransactionRelationship.java @@ -25,45 +25,45 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * ReturnedTransactionRelationship */ @JsonPropertyOrder({ ReturnedTransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class ReturnedTransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public ReturnedTransactionRelationship() { } - public ReturnedTransactionRelationship data(TransactionRelationshipData data) { + public ReturnedTransactionRelationship data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/SchemasLimits.java b/src/main/java/unit/java/sdk/model/ReverseFeeRequest.java similarity index 81% rename from src/main/java/unit/java/sdk/model/SchemasLimits.java rename to src/main/java/unit/java/sdk/model/ReverseFeeRequest.java index 4b9303c0..6bcb22d5 100644 --- a/src/main/java/unit/java/sdk/model/SchemasLimits.java +++ b/src/main/java/unit/java/sdk/model/ReverseFeeRequest.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.SchemasLimitsData; +import unit.java.sdk.model.ReverseFeeRequestData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * SchemasLimits + * ReverseFeeRequest */ @JsonPropertyOrder({ - SchemasLimits.JSON_PROPERTY_DATA + ReverseFeeRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class SchemasLimits { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReverseFeeRequest { public static final String JSON_PROPERTY_DATA = "data"; - private SchemasLimitsData data; + private ReverseFeeRequestData data; - public SchemasLimits() { + public ReverseFeeRequest() { } - public SchemasLimits data(SchemasLimitsData data) { + public ReverseFeeRequest data(ReverseFeeRequestData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public SchemasLimitsData getData() { + public ReverseFeeRequestData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(SchemasLimitsData data) { + public void setData(ReverseFeeRequestData data) { this.data = data; } /** - * Return true if this schemas-Limits object is equal to o. + * Return true if this ReverseFeeRequest object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasLimits schemasLimits = (SchemasLimits) o; - return Objects.equals(this.data, schemasLimits.data); + ReverseFeeRequest reverseFeeRequest = (ReverseFeeRequest) o; + return Objects.equals(this.data, reverseFeeRequest.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SchemasLimits {\n"); + sb.append("class ReverseFeeRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/ReverseFeeRequestData.java b/src/main/java/unit/java/sdk/model/ReverseFeeRequestData.java new file mode 100644 index 00000000..c7c2f5a3 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReverseFeeRequestData.java @@ -0,0 +1,255 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.ReverseFeeRequestDataAttributes; +import unit.java.sdk.model.ReverseFeeRequestRelationships; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReverseFeeRequestData + */ +@JsonPropertyOrder({ + ReverseFeeRequestData.JSON_PROPERTY_TYPE, + ReverseFeeRequestData.JSON_PROPERTY_ATTRIBUTES, + ReverseFeeRequestData.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReverseFeeRequestData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + FEE_REVERSAL("feeReversal"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.FEE_REVERSAL; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private ReverseFeeRequestDataAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private ReverseFeeRequestRelationships relationships; + + public ReverseFeeRequestData() { + } + + public ReverseFeeRequestData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public ReverseFeeRequestData attributes(ReverseFeeRequestDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ReverseFeeRequestDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(ReverseFeeRequestDataAttributes attributes) { + this.attributes = attributes; + } + + + public ReverseFeeRequestData relationships(ReverseFeeRequestRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public ReverseFeeRequestRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(ReverseFeeRequestRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this ReverseFeeRequest_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReverseFeeRequestData reverseFeeRequestData = (ReverseFeeRequestData) o; + return Objects.equals(this.type, reverseFeeRequestData.type) && + Objects.equals(this.attributes, reverseFeeRequestData.attributes) && + Objects.equals(this.relationships, reverseFeeRequestData.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReverseFeeRequestData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReverseFeeRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/ReverseFeeRequestDataAttributes.java new file mode 100644 index 00000000..11bff1ff --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReverseFeeRequestDataAttributes.java @@ -0,0 +1,234 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReverseFeeRequestDataAttributes + */ +@JsonPropertyOrder({ + ReverseFeeRequestDataAttributes.JSON_PROPERTY_DESCRIPTION, + ReverseFeeRequestDataAttributes.JSON_PROPERTY_TAGS, + ReverseFeeRequestDataAttributes.JSON_PROPERTY_IDEMPOTENCY_KEY +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReverseFeeRequestDataAttributes { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + public static final String JSON_PROPERTY_IDEMPOTENCY_KEY = "idempotencyKey"; + private String idempotencyKey; + + public ReverseFeeRequestDataAttributes() { + } + + public ReverseFeeRequestDataAttributes description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDescription(String description) { + this.description = description; + } + + + public ReverseFeeRequestDataAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public ReverseFeeRequestDataAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { + this.tags = tags; + } + + + public ReverseFeeRequestDataAttributes idempotencyKey(String idempotencyKey) { + this.idempotencyKey = idempotencyKey; + return this; + } + + /** + * Get idempotencyKey + * @return idempotencyKey + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getIdempotencyKey() { + return idempotencyKey; + } + + + @JsonProperty(JSON_PROPERTY_IDEMPOTENCY_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIdempotencyKey(String idempotencyKey) { + this.idempotencyKey = idempotencyKey; + } + + + /** + * Return true if this ReverseFeeRequest_data_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReverseFeeRequestDataAttributes reverseFeeRequestDataAttributes = (ReverseFeeRequestDataAttributes) o; + return Objects.equals(this.description, reverseFeeRequestDataAttributes.description) && + Objects.equals(this.tags, reverseFeeRequestDataAttributes.tags) && + Objects.equals(this.idempotencyKey, reverseFeeRequestDataAttributes.idempotencyKey); + } + + @Override + public int hashCode() { + return Objects.hash(description, tags, idempotencyKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReverseFeeRequestDataAttributes {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" idempotencyKey: ").append(toIndentedString(idempotencyKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `description` to the URL query string + if (getDescription() != null) { + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + // add `idempotencyKey` to the URL query string + if (getIdempotencyKey() != null) { + joiner.add(String.format("%sidempotencyKey%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getIdempotencyKey()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/ReverseFeeRequestRelationships.java b/src/main/java/unit/java/sdk/model/ReverseFeeRequestRelationships.java new file mode 100644 index 00000000..36216e53 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/ReverseFeeRequestRelationships.java @@ -0,0 +1,187 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.TransactionRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * ReverseFeeRequestRelationships + */ +@JsonPropertyOrder({ + ReverseFeeRequestRelationships.JSON_PROPERTY_ACCOUNT, + ReverseFeeRequestRelationships.JSON_PROPERTY_TRANSACTION +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class ReverseFeeRequestRelationships { + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public static final String JSON_PROPERTY_TRANSACTION = "transaction"; + private TransactionRelationship transaction; + + public ReverseFeeRequestRelationships() { + } + + public ReverseFeeRequestRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + public ReverseFeeRequestRelationships transaction(TransactionRelationship transaction) { + this.transaction = transaction; + return this; + } + + /** + * Get transaction + * @return transaction + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRANSACTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TransactionRelationship getTransaction() { + return transaction; + } + + + @JsonProperty(JSON_PROPERTY_TRANSACTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTransaction(TransactionRelationship transaction) { + this.transaction = transaction; + } + + + /** + * Return true if this ReverseFeeRequestRelationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReverseFeeRequestRelationships reverseFeeRequestRelationships = (ReverseFeeRequestRelationships) o; + return Objects.equals(this.account, reverseFeeRequestRelationships.account) && + Objects.equals(this.transaction, reverseFeeRequestRelationships.transaction); + } + + @Override + public int hashCode() { + return Objects.hash(account, transaction); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReverseFeeRequestRelationships {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append(" transaction: ").append(toIndentedString(transaction)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + // add `transaction` to the URL query string + if (getTransaction() != null) { + joiner.add(getTransaction().toUrlQueryString(prefix + "transaction" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/Reward.java b/src/main/java/unit/java/sdk/model/Reward.java index 4b92010f..06ce48ed 100644 --- a/src/main/java/unit/java/sdk/model/Reward.java +++ b/src/main/java/unit/java/sdk/model/Reward.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Reward */ @@ -39,7 +40,7 @@ Reward.JSON_PROPERTY_ATTRIBUTES, Reward.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Reward { /** * Gets or Sets type @@ -94,14 +95,13 @@ public Reward type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -119,14 +119,13 @@ public Reward id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -144,14 +143,13 @@ public Reward attributes(RewardAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RewardAttributes getAttributes() { return attributes; } @@ -169,14 +167,13 @@ public Reward relationships(RewardRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RewardRelationships getRelationships() { return relationships; } @@ -269,12 +266,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RewardAttributes.java b/src/main/java/unit/java/sdk/model/RewardAttributes.java index e73fa450..d3bf45f7 100644 --- a/src/main/java/unit/java/sdk/model/RewardAttributes.java +++ b/src/main/java/unit/java/sdk/model/RewardAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RewardAttributes */ @@ -42,7 +43,7 @@ RewardAttributes.JSON_PROPERTY_REJECT_REASON, RewardAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RewardAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -105,14 +106,13 @@ public RewardAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -130,15 +130,14 @@ public RewardAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -156,14 +155,13 @@ public RewardAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -181,14 +179,13 @@ public RewardAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -206,14 +203,13 @@ public RewardAttributes rejectReason(String rejectReason) { return this; } - /** + /** * Get rejectReason * @return rejectReason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REJECT_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRejectReason() { return rejectReason; } @@ -239,14 +235,13 @@ public RewardAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Map getTags() { return tags; } @@ -343,27 +338,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `rejectReason` to the URL query string if (getRejectReason() != null) { - joiner.add(String.format("%srejectReason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRejectReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%srejectReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRejectReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -371,7 +366,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/RewardRelationship.java b/src/main/java/unit/java/sdk/model/RewardRelationship.java index c476aecb..129f90ce 100644 --- a/src/main/java/unit/java/sdk/model/RewardRelationship.java +++ b/src/main/java/unit/java/sdk/model/RewardRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RewardRelationship */ @JsonPropertyOrder({ RewardRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RewardRelationship { public static final String JSON_PROPERTY_DATA = "data"; private RewardRelationshipData data; @@ -48,14 +49,13 @@ public RewardRelationship data(RewardRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RewardRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/RewardRelationshipData.java b/src/main/java/unit/java/sdk/model/RewardRelationshipData.java index 86dcb316..e30f9d5d 100644 --- a/src/main/java/unit/java/sdk/model/RewardRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/RewardRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RewardRelationshipData */ @@ -35,7 +36,7 @@ RewardRelationshipData.JSON_PROPERTY_ID, RewardRelationshipData.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RewardRelationshipData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -51,14 +52,13 @@ public RewardRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -76,14 +76,13 @@ public RewardRelationshipData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getType() { return type; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/RewardRelationships.java b/src/main/java/unit/java/sdk/model/RewardRelationships.java index fd47b182..0a17c502 100644 --- a/src/main/java/unit/java/sdk/model/RewardRelationships.java +++ b/src/main/java/unit/java/sdk/model/RewardRelationships.java @@ -34,6 +34,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RewardRelationships */ @@ -45,7 +46,7 @@ RewardRelationships.JSON_PROPERTY_TRANSACTION, RewardRelationships.JSON_PROPERTY_CARD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RewardRelationships { public static final String JSON_PROPERTY_RECEIVING_ACCOUNT = "receivingAccount"; private ReceivingAccountRelationship receivingAccount; @@ -73,14 +74,13 @@ public RewardRelationships receivingAccount(ReceivingAccountRelationship receivi return this; } - /** + /** * Get receivingAccount * @return receivingAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceivingAccountRelationship getReceivingAccount() { return receivingAccount; } @@ -98,14 +98,13 @@ public RewardRelationships fundingAccount(FundingAccountRelationship fundingAcco return this; } - /** + /** * Get fundingAccount * @return fundingAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_FUNDING_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public FundingAccountRelationship getFundingAccount() { return fundingAccount; } @@ -123,14 +122,13 @@ public RewardRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CustomerRelationship getCustomer() { return customer; } @@ -148,14 +146,13 @@ public RewardRelationships rewardedTransaction(RewardedTransactionRelationship r return this; } - /** + /** * Get rewardedTransaction * @return rewardedTransaction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REWARDED_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RewardedTransactionRelationship getRewardedTransaction() { return rewardedTransaction; } @@ -173,14 +170,13 @@ public RewardRelationships transaction(TransactionRelationship transaction) { return this; } - /** + /** * Get transaction * @return transaction - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRANSACTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TransactionRelationship getTransaction() { return transaction; } @@ -198,14 +194,13 @@ public RewardRelationships card(CardRelationship card) { return this; } - /** + /** * Get card * @return card - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CARD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardRelationship getCard() { return card; } diff --git a/src/main/java/unit/java/sdk/model/RewardTransaction.java b/src/main/java/unit/java/sdk/model/RewardTransaction.java index 6be4f23e..ead10c10 100644 --- a/src/main/java/unit/java/sdk/model/RewardTransaction.java +++ b/src/main/java/unit/java/sdk/model/RewardTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * RewardTransaction */ @@ -42,7 +43,7 @@ RewardTransaction.JSON_PROPERTY_ATTRIBUTES, RewardTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public RewardTransaction attributes(RewardTransactionAllOfAttributes attributes) return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RewardTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public RewardTransaction relationships(RewardTransactionRelationships relationsh return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RewardTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/RewardTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/RewardTransactionAllOfAttributes.java index 97b2ce39..a949c82c 100644 --- a/src/main/java/unit/java/sdk/model/RewardTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/RewardTransactionAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RewardTransactionAllOfAttributes */ @@ -44,7 +45,7 @@ RewardTransactionAllOfAttributes.JSON_PROPERTY_SUMMARY, RewardTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RewardTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -110,14 +111,13 @@ public RewardTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -135,14 +135,13 @@ public RewardTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -160,14 +159,13 @@ public RewardTransactionAllOfAttributes receiverCounterparty(PaymentCounterparty return this; } - /** + /** * Get receiverCounterparty * @return receiverCounterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVER_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentCounterparty getReceiverCounterparty() { return receiverCounterparty; } @@ -185,14 +183,13 @@ public RewardTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -210,14 +207,13 @@ public RewardTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -235,14 +231,13 @@ public RewardTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -268,14 +263,13 @@ public RewardTransactionAllOfAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -374,12 +368,12 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `receiverCounterparty` to the URL query string @@ -389,17 +383,17 @@ public String toUrlQueryString(String prefix) { // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -407,7 +401,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/RewardTransactionRelationships.java b/src/main/java/unit/java/sdk/model/RewardTransactionRelationships.java index 97304022..82c0b3cf 100644 --- a/src/main/java/unit/java/sdk/model/RewardTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/RewardTransactionRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RewardTransactionRelationships */ @@ -43,7 +44,7 @@ RewardTransactionRelationships.JSON_PROPERTY_REWARD, RewardTransactionRelationships.JSON_PROPERTY_RECEIVER_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RewardTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -68,14 +69,13 @@ public RewardTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -93,14 +93,13 @@ public RewardTransactionRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -118,14 +117,13 @@ public RewardTransactionRelationships customers(CustomersRelationship customers) return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -143,14 +141,13 @@ public RewardTransactionRelationships reward(RewardRelationship reward) { return this; } - /** + /** * Get reward * @return reward - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_REWARD) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public RewardRelationship getReward() { return reward; } @@ -168,14 +165,13 @@ public RewardTransactionRelationships receiverAccount(ReceiverAccountRelationshi return this; } - /** + /** * Get receiverAccount * @return receiverAccount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RECEIVER_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ReceiverAccountRelationship getReceiverAccount() { return receiverAccount; } diff --git a/src/main/java/unit/java/sdk/model/RewardedTransactionRelationship.java b/src/main/java/unit/java/sdk/model/RewardedTransactionRelationship.java index 5c3f90cf..c05f3864 100644 --- a/src/main/java/unit/java/sdk/model/RewardedTransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/RewardedTransactionRelationship.java @@ -25,45 +25,45 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.ReceivePaymentTransactionRelationshipData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * RewardedTransactionRelationship */ @JsonPropertyOrder({ RewardedTransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class RewardedTransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; - private TransactionRelationshipData data; + private ReceivePaymentTransactionRelationshipData data; public RewardedTransactionRelationship() { } - public RewardedTransactionRelationship data(TransactionRelationshipData data) { + public RewardedTransactionRelationship data(ReceivePaymentTransactionRelationshipData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public TransactionRelationshipData getData() { + public ReceivePaymentTransactionRelationshipData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setData(TransactionRelationshipData data) { + public void setData(ReceivePaymentTransactionRelationshipData data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/Schedule.java b/src/main/java/unit/java/sdk/model/Schedule.java index c62c82e8..e01a70be 100644 --- a/src/main/java/unit/java/sdk/model/Schedule.java +++ b/src/main/java/unit/java/sdk/model/Schedule.java @@ -57,7 +57,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = Schedule.ScheduleDeserializer.class) @JsonSerialize(using = Schedule.ScheduleSerializer.class) public class Schedule extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/SchemasUpdateAchReceivedPayment.java b/src/main/java/unit/java/sdk/model/SchemasUpdateAchReceivedPayment.java new file mode 100644 index 00000000..a10a82a4 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/SchemasUpdateAchReceivedPayment.java @@ -0,0 +1,219 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.SchemasUpdateAchReceivedPaymentAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * SchemasUpdateAchReceivedPayment + */ +@JsonPropertyOrder({ + SchemasUpdateAchReceivedPayment.JSON_PROPERTY_TYPE, + SchemasUpdateAchReceivedPayment.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class SchemasUpdateAchReceivedPayment { + /** + * Gets or Sets type + */ + public enum TypeEnum { + ACH_RECEIVED_PAYMENT("achReceivedPayment"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.ACH_RECEIVED_PAYMENT; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private SchemasUpdateAchReceivedPaymentAttributes attributes; + + public SchemasUpdateAchReceivedPayment() { + } + + public SchemasUpdateAchReceivedPayment type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public SchemasUpdateAchReceivedPayment attributes(SchemasUpdateAchReceivedPaymentAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public SchemasUpdateAchReceivedPaymentAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(SchemasUpdateAchReceivedPaymentAttributes attributes) { + this.attributes = attributes; + } + + + /** + * Return true if this schemas-UpdateAchReceivedPayment object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SchemasUpdateAchReceivedPayment schemasUpdateAchReceivedPayment = (SchemasUpdateAchReceivedPayment) o; + return Objects.equals(this.type, schemasUpdateAchReceivedPayment.type) && + Objects.equals(this.attributes, schemasUpdateAchReceivedPayment.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SchemasUpdateAchReceivedPayment {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/SchemasUpdateAchReceivedPaymentAttributes.java b/src/main/java/unit/java/sdk/model/SchemasUpdateAchReceivedPaymentAttributes.java new file mode 100644 index 00000000..0e71b510 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/SchemasUpdateAchReceivedPaymentAttributes.java @@ -0,0 +1,164 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * SchemasUpdateAchReceivedPaymentAttributes + */ +@JsonPropertyOrder({ + SchemasUpdateAchReceivedPaymentAttributes.JSON_PROPERTY_TAGS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class SchemasUpdateAchReceivedPaymentAttributes { + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + public SchemasUpdateAchReceivedPaymentAttributes() { + } + + public SchemasUpdateAchReceivedPaymentAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public SchemasUpdateAchReceivedPaymentAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { + this.tags = tags; + } + + + /** + * Return true if this schemas_UpdateAchReceivedPayment_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SchemasUpdateAchReceivedPaymentAttributes schemasUpdateAchReceivedPaymentAttributes = (SchemasUpdateAchReceivedPaymentAttributes) o; + return Objects.equals(this.tags, schemasUpdateAchReceivedPaymentAttributes.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SchemasUpdateAchReceivedPaymentAttributes {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/SoleProprietorshipAnnualRevenue.java b/src/main/java/unit/java/sdk/model/SoleProprietorshipAnnualRevenue.java index 3072ff25..eef3c69e 100644 --- a/src/main/java/unit/java/sdk/model/SoleProprietorshipAnnualRevenue.java +++ b/src/main/java/unit/java/sdk/model/SoleProprietorshipAnnualRevenue.java @@ -30,13 +30,13 @@ */ public enum SoleProprietorshipAnnualRevenue { - UPTO50K("UpTo50k"), + UP_TO50K("UpTo50k"), - BETWEEN50KAND100K("Between50kAnd100k"), + BETWEEN50K_AND100K("Between50kAnd100k"), - BETWEEN100KAND200K("Between100kAnd200k"), + BETWEEN100K_AND200K("Between100kAnd200k"), - BETWEEN200KAND500K("Between200kAnd500k"), + BETWEEN200K_AND500K("Between200kAnd500k"), OVER500K("Over500k"); diff --git a/src/main/java/unit/java/sdk/model/SoleProprietorshipNumberOfEmployees.java b/src/main/java/unit/java/sdk/model/SoleProprietorshipNumberOfEmployees.java index ad4c2d17..eafd336a 100644 --- a/src/main/java/unit/java/sdk/model/SoleProprietorshipNumberOfEmployees.java +++ b/src/main/java/unit/java/sdk/model/SoleProprietorshipNumberOfEmployees.java @@ -32,9 +32,9 @@ public enum SoleProprietorshipNumberOfEmployees { ONE("One"), - BETWEEN2AND5("Between2And5"), + BETWEEN2_AND5("Between2And5"), - BETWEEN5AND10("Between5And10"), + BETWEEN5_AND10("Between5And10"), OVER10("Over10"); diff --git a/src/main/java/unit/java/sdk/model/SourceOfIncome.java b/src/main/java/unit/java/sdk/model/SourceOfIncome.java index 05e1ee4d..26f925c5 100644 --- a/src/main/java/unit/java/sdk/model/SourceOfIncome.java +++ b/src/main/java/unit/java/sdk/model/SourceOfIncome.java @@ -30,17 +30,17 @@ */ public enum SourceOfIncome { - EMPLOYMENTORPAYROLLINCOME("EmploymentOrPayrollIncome"), + EMPLOYMENT_OR_PAYROLL_INCOME("EmploymentOrPayrollIncome"), - PARTTIMEORCONTRACTORINCOME("PartTimeOrContractorIncome"), + PART_TIME_OR_CONTRACTOR_INCOME("PartTimeOrContractorIncome"), - INHERITANCESANDGIFTS("InheritancesAndGifts"), + INHERITANCES_AND_GIFTS("InheritancesAndGifts"), - PERSONALINVESTMENTS("PersonalInvestments"), + PERSONAL_INVESTMENTS("PersonalInvestments"), - BUSINESSOWNERSHIPINTERESTS("BusinessOwnershipInterests"), + BUSINESS_OWNERSHIP_INTERESTS("BusinessOwnershipInterests"), - GOVERNMENTBENEFITS("GovernmentBenefits"); + GOVERNMENT_BENEFITS("GovernmentBenefits"); private String value; diff --git a/src/main/java/unit/java/sdk/model/SponsoredInterestTransaction.java b/src/main/java/unit/java/sdk/model/SponsoredInterestTransaction.java index 035d45d3..59d1a005 100644 --- a/src/main/java/unit/java/sdk/model/SponsoredInterestTransaction.java +++ b/src/main/java/unit/java/sdk/model/SponsoredInterestTransaction.java @@ -34,6 +34,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * SponsoredInterestTransaction */ @@ -41,7 +42,7 @@ SponsoredInterestTransaction.JSON_PROPERTY_ATTRIBUTES, SponsoredInterestTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -63,14 +64,13 @@ public SponsoredInterestTransaction attributes(CheckDepositTransactionAllOfAttri return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CheckDepositTransactionAllOfAttributes getAttributes() { return attributes; } @@ -88,14 +88,13 @@ public SponsoredInterestTransaction relationships(SponsoredInterestTransaction r return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public SponsoredInterestTransaction getRelationships() { return relationships; } @@ -198,12 +197,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/Statement.java b/src/main/java/unit/java/sdk/model/Statement.java index e2158e77..d394b811 100644 --- a/src/main/java/unit/java/sdk/model/Statement.java +++ b/src/main/java/unit/java/sdk/model/Statement.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Statement */ @@ -39,10 +40,45 @@ Statement.JSON_PROPERTY_ATTRIBUTES, Statement.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Statement { + /** + * Gets or Sets type + */ + public enum TypeEnum { + STATEMENT("statement"), + + ACCOUNT_STATEMENT_DTO("accountStatementDTO"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + public static final String JSON_PROPERTY_TYPE = "type"; - private String type; + private TypeEnum type; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -56,27 +92,26 @@ public class Statement { public Statement() { } - public Statement type(String type) { + public Statement type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -86,14 +121,13 @@ public Statement id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -111,14 +145,13 @@ public Statement attributes(StatementAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatementAttributes getAttributes() { return attributes; } @@ -136,14 +169,13 @@ public Statement relationships(StatementRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatementRelationships getRelationships() { return relationships; } @@ -236,12 +268,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/StatementAttributes.java b/src/main/java/unit/java/sdk/model/StatementAttributes.java index 501fb19b..1924bf8b 100644 --- a/src/main/java/unit/java/sdk/model/StatementAttributes.java +++ b/src/main/java/unit/java/sdk/model/StatementAttributes.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * StatementAttributes */ @JsonPropertyOrder({ StatementAttributes.JSON_PROPERTY_PERIOD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StatementAttributes { public static final String JSON_PROPERTY_PERIOD = "period"; private String period; @@ -47,14 +48,13 @@ public StatementAttributes period(String period) { return this; } - /** + /** * Get period * @return period - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERIOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPeriod() { return period; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `period` to the URL query string if (getPeriod() != null) { - joiner.add(String.format("%speriod%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPeriod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%speriod%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPeriod()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/StatementRelationships.java b/src/main/java/unit/java/sdk/model/StatementRelationships.java index 4949731d..ce28b06b 100644 --- a/src/main/java/unit/java/sdk/model/StatementRelationships.java +++ b/src/main/java/unit/java/sdk/model/StatementRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * StatementRelationships */ @@ -39,7 +40,7 @@ StatementRelationships.JSON_PROPERTY_CUSTOMER, StatementRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StatementRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public StatementRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public StatementRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public StatementRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/main/java/unit/java/sdk/model/StatusEvent.java b/src/main/java/unit/java/sdk/model/StatusEvent.java index 7790e147..5f892f12 100644 --- a/src/main/java/unit/java/sdk/model/StatusEvent.java +++ b/src/main/java/unit/java/sdk/model/StatusEvent.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * StatusEvent */ @@ -37,7 +38,7 @@ StatusEvent.JSON_PROPERTY_UPDATED_BY, StatusEvent.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StatusEvent { public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; private String updatedAt; @@ -56,14 +57,13 @@ public StatusEvent updatedAt(String updatedAt) { return this; } - /** + /** * Get updatedAt * @return updatedAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUpdatedAt() { return updatedAt; } @@ -81,14 +81,13 @@ public StatusEvent updatedBy(String updatedBy) { return this; } - /** + /** * Get updatedBy * @return updatedBy - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_UPDATED_BY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUpdatedBy() { return updatedBy; } @@ -106,14 +105,13 @@ public StatusEvent status(StatusEventStatus status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEventStatus getStatus() { return status; } @@ -204,12 +202,12 @@ public String toUrlQueryString(String prefix) { // add `updatedAt` to the URL query string if (getUpdatedAt() != null) { - joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `updatedBy` to the URL query string if (getUpdatedBy() != null) { - joiner.add(String.format("%supdatedBy%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUpdatedBy()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%supdatedBy%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUpdatedBy()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/StatusEventStatus.java b/src/main/java/unit/java/sdk/model/StatusEventStatus.java index 46b67057..0827c1b0 100644 --- a/src/main/java/unit/java/sdk/model/StatusEventStatus.java +++ b/src/main/java/unit/java/sdk/model/StatusEventStatus.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * StatusEventStatus */ @JsonPropertyOrder({ StatusEventStatus.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StatusEventStatus { public static final String JSON_PROPERTY_TYPE = "type"; private CheckDepositStatus type; @@ -48,14 +49,13 @@ public StatusEventStatus type(CheckDepositStatus type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CheckDepositStatus getType() { return type; } @@ -142,7 +142,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/StopPayment.java b/src/main/java/unit/java/sdk/model/StopPayment.java index 60ef899a..5355bba7 100644 --- a/src/main/java/unit/java/sdk/model/StopPayment.java +++ b/src/main/java/unit/java/sdk/model/StopPayment.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * StopPayment */ @@ -39,7 +40,7 @@ StopPayment.JSON_PROPERTY_TYPE, StopPayment.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -51,9 +52,9 @@ public class StopPayment { * Gets or Sets type */ public enum TypeEnum { - CHECKSTOPPAYMENT("checkStopPayment"), + CHECK_STOP_PAYMENT("checkStopPayment"), - ACHSTOPPAYMENT("achStopPayment"); + ACH_STOP_PAYMENT("achStopPayment"); private String value; @@ -96,14 +97,13 @@ public StopPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -121,14 +121,13 @@ public StopPayment id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -217,12 +216,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/StopPaymentListResponse.java b/src/main/java/unit/java/sdk/model/StopPaymentListResponse.java index 7d50b848..13aa967f 100644 --- a/src/main/java/unit/java/sdk/model/StopPaymentListResponse.java +++ b/src/main/java/unit/java/sdk/model/StopPaymentListResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * StopPaymentListResponse */ @JsonPropertyOrder({ StopPaymentListResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StopPaymentListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public StopPaymentListResponse addDataItem(StopPayment dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/StopPaymentResponse.java b/src/main/java/unit/java/sdk/model/StopPaymentResponse.java index 2b6e0be9..4fa87447 100644 --- a/src/main/java/unit/java/sdk/model/StopPaymentResponse.java +++ b/src/main/java/unit/java/sdk/model/StopPaymentResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * StopPaymentResponse */ @JsonPropertyOrder({ StopPaymentResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class StopPaymentResponse { public static final String JSON_PROPERTY_DATA = "data"; private StopPayment data; @@ -48,14 +49,13 @@ public StopPaymentResponse data(StopPayment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StopPayment getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/StoreLocation.java b/src/main/java/unit/java/sdk/model/StoreLocation.java new file mode 100644 index 00000000..a8ba7311 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/StoreLocation.java @@ -0,0 +1,219 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.StoreLocationAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * StoreLocation + */ +@JsonPropertyOrder({ + StoreLocation.JSON_PROPERTY_TYPE, + StoreLocation.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class StoreLocation { + /** + * Gets or Sets type + */ + public enum TypeEnum { + STORE_LOCATION("storeLocation"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.STORE_LOCATION; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private StoreLocationAttributes attributes; + + public StoreLocation() { + } + + public StoreLocation type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public StoreLocation attributes(StoreLocationAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public StoreLocationAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(StoreLocationAttributes attributes) { + this.attributes = attributes; + } + + + /** + * Return true if this StoreLocation object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StoreLocation storeLocation = (StoreLocation) o; + return Objects.equals(this.type, storeLocation.type) && + Objects.equals(this.attributes, storeLocation.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StoreLocation {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/StoreLocationAttributes.java b/src/main/java/unit/java/sdk/model/StoreLocationAttributes.java new file mode 100644 index 00000000..9ffe1730 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/StoreLocationAttributes.java @@ -0,0 +1,328 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import unit.java.sdk.model.Address; +import unit.java.sdk.model.Coordinates; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * StoreLocationAttributes + */ +@JsonPropertyOrder({ + StoreLocationAttributes.JSON_PROPERTY_STORE_ID, + StoreLocationAttributes.JSON_PROPERTY_RETAILER_NAME, + StoreLocationAttributes.JSON_PROPERTY_PHONE, + StoreLocationAttributes.JSON_PROPERTY_ADDRESS, + StoreLocationAttributes.JSON_PROPERTY_COORDINATES, + StoreLocationAttributes.JSON_PROPERTY_DISTANCE +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class StoreLocationAttributes { + public static final String JSON_PROPERTY_STORE_ID = "storeId"; + private String storeId; + + public static final String JSON_PROPERTY_RETAILER_NAME = "retailerName"; + private String retailerName; + + public static final String JSON_PROPERTY_PHONE = "phone"; + private String phone; + + public static final String JSON_PROPERTY_ADDRESS = "address"; + private Address address; + + public static final String JSON_PROPERTY_COORDINATES = "coordinates"; + private Coordinates coordinates; + + public static final String JSON_PROPERTY_DISTANCE = "distance"; + private BigDecimal distance; + + public StoreLocationAttributes() { + } + + public StoreLocationAttributes storeId(String storeId) { + this.storeId = storeId; + return this; + } + + /** + * Get storeId + * @return storeId + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STORE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getStoreId() { + return storeId; + } + + + @JsonProperty(JSON_PROPERTY_STORE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStoreId(String storeId) { + this.storeId = storeId; + } + + + public StoreLocationAttributes retailerName(String retailerName) { + this.retailerName = retailerName; + return this; + } + + /** + * Get retailerName + * @return retailerName + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RETAILER_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getRetailerName() { + return retailerName; + } + + + @JsonProperty(JSON_PROPERTY_RETAILER_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRetailerName(String retailerName) { + this.retailerName = retailerName; + } + + + public StoreLocationAttributes phone(String phone) { + this.phone = phone; + return this; + } + + /** + * Get phone + * @return phone + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getPhone() { + return phone; + } + + + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPhone(String phone) { + this.phone = phone; + } + + + public StoreLocationAttributes address(Address address) { + this.address = address; + return this; + } + + /** + * Get address + * @return address + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Address getAddress() { + return address; + } + + + @JsonProperty(JSON_PROPERTY_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAddress(Address address) { + this.address = address; + } + + + public StoreLocationAttributes coordinates(Coordinates coordinates) { + this.coordinates = coordinates; + return this; + } + + /** + * Get coordinates + * @return coordinates + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_COORDINATES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Coordinates getCoordinates() { + return coordinates; + } + + + @JsonProperty(JSON_PROPERTY_COORDINATES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCoordinates(Coordinates coordinates) { + this.coordinates = coordinates; + } + + + public StoreLocationAttributes distance(BigDecimal distance) { + this.distance = distance; + return this; + } + + /** + * Get distance + * @return distance + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DISTANCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDistance() { + return distance; + } + + + @JsonProperty(JSON_PROPERTY_DISTANCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDistance(BigDecimal distance) { + this.distance = distance; + } + + + /** + * Return true if this StoreLocation_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StoreLocationAttributes storeLocationAttributes = (StoreLocationAttributes) o; + return Objects.equals(this.storeId, storeLocationAttributes.storeId) && + Objects.equals(this.retailerName, storeLocationAttributes.retailerName) && + Objects.equals(this.phone, storeLocationAttributes.phone) && + Objects.equals(this.address, storeLocationAttributes.address) && + Objects.equals(this.coordinates, storeLocationAttributes.coordinates) && + Objects.equals(this.distance, storeLocationAttributes.distance); + } + + @Override + public int hashCode() { + return Objects.hash(storeId, retailerName, phone, address, coordinates, distance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StoreLocationAttributes {\n"); + sb.append(" storeId: ").append(toIndentedString(storeId)).append("\n"); + sb.append(" retailerName: ").append(toIndentedString(retailerName)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" coordinates: ").append(toIndentedString(coordinates)).append("\n"); + sb.append(" distance: ").append(toIndentedString(distance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `storeId` to the URL query string + if (getStoreId() != null) { + joiner.add(String.format("%sstoreId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStoreId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `retailerName` to the URL query string + if (getRetailerName() != null) { + joiner.add(String.format("%sretailerName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRetailerName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `phone` to the URL query string + if (getPhone() != null) { + joiner.add(String.format("%sphone%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPhone()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `address` to the URL query string + if (getAddress() != null) { + joiner.add(getAddress().toUrlQueryString(prefix + "address" + suffix)); + } + + // add `coordinates` to the URL query string + if (getCoordinates() != null) { + joiner.add(getCoordinates().toUrlQueryString(prefix + "coordinates" + suffix)); + } + + // add `distance` to the URL query string + if (getDistance() != null) { + joiner.add(String.format("%sdistance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDistance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/TaxForm.java b/src/main/java/unit/java/sdk/model/TaxForm.java new file mode 100644 index 00000000..b52fd014 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/TaxForm.java @@ -0,0 +1,290 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.TaxFormAttributes; +import unit.java.sdk.model.TaxFormRelationships; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * TaxForm + */ +@JsonPropertyOrder({ + TaxForm.JSON_PROPERTY_TYPE, + TaxForm.JSON_PROPERTY_ID, + TaxForm.JSON_PROPERTY_ATTRIBUTES, + TaxForm.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class TaxForm { + /** + * Gets or Sets type + */ + public enum TypeEnum { + TAX_FORM("taxForm"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private TaxFormAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private TaxFormRelationships relationships; + + public TaxForm() { + } + + public TaxForm type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public TaxForm id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public TaxForm attributes(TaxFormAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public TaxFormAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(TaxFormAttributes attributes) { + this.attributes = attributes; + } + + + public TaxForm relationships(TaxFormRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TaxFormRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRelationships(TaxFormRelationships relationships) { + this.relationships = relationships; + } + + + /** + * Return true if this TaxForm object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaxForm taxForm = (TaxForm) o; + return Objects.equals(this.type, taxForm.type) && + Objects.equals(this.id, taxForm.id) && + Objects.equals(this.attributes, taxForm.attributes) && + Objects.equals(this.relationships, taxForm.relationships); + } + + @Override + public int hashCode() { + return Objects.hash(type, id, attributes, relationships); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TaxForm {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `id` to the URL query string + if (getId() != null) { + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/TaxFormAttributes.java b/src/main/java/unit/java/sdk/model/TaxFormAttributes.java new file mode 100644 index 00000000..474b737c --- /dev/null +++ b/src/main/java/unit/java/sdk/model/TaxFormAttributes.java @@ -0,0 +1,185 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * TaxFormAttributes + */ +@JsonPropertyOrder({ + TaxFormAttributes.JSON_PROPERTY_FORM_TYPE, + TaxFormAttributes.JSON_PROPERTY_TAX_YEAR +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class TaxFormAttributes { + public static final String JSON_PROPERTY_FORM_TYPE = "formType"; + private String formType; + + public static final String JSON_PROPERTY_TAX_YEAR = "taxYear"; + private String taxYear; + + public TaxFormAttributes() { + } + + public TaxFormAttributes formType(String formType) { + this.formType = formType; + return this; + } + + /** + * Get formType + * @return formType + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_FORM_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getFormType() { + return formType; + } + + + @JsonProperty(JSON_PROPERTY_FORM_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFormType(String formType) { + this.formType = formType; + } + + + public TaxFormAttributes taxYear(String taxYear) { + this.taxYear = taxYear; + return this; + } + + /** + * Get taxYear + * @return taxYear + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TAX_YEAR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getTaxYear() { + return taxYear; + } + + + @JsonProperty(JSON_PROPERTY_TAX_YEAR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTaxYear(String taxYear) { + this.taxYear = taxYear; + } + + + /** + * Return true if this TaxForm_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaxFormAttributes taxFormAttributes = (TaxFormAttributes) o; + return Objects.equals(this.formType, taxFormAttributes.formType) && + Objects.equals(this.taxYear, taxFormAttributes.taxYear); + } + + @Override + public int hashCode() { + return Objects.hash(formType, taxYear); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TaxFormAttributes {\n"); + sb.append(" formType: ").append(toIndentedString(formType)).append("\n"); + sb.append(" taxYear: ").append(toIndentedString(taxYear)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `formType` to the URL query string + if (getFormType() != null) { + joiner.add(String.format("%sformType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFormType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `taxYear` to the URL query string + if (getTaxYear() != null) { + joiner.add(String.format("%staxYear%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTaxYear()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/TaxFormRelationships.java b/src/main/java/unit/java/sdk/model/TaxFormRelationships.java new file mode 100644 index 00000000..92a9a43a --- /dev/null +++ b/src/main/java/unit/java/sdk/model/TaxFormRelationships.java @@ -0,0 +1,223 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.AccountRelationship1; +import unit.java.sdk.model.CustomerRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * TaxFormRelationships + */ +@JsonPropertyOrder({ + TaxFormRelationships.JSON_PROPERTY_ACCOUNT, + TaxFormRelationships.JSON_PROPERTY_ACCOUNTS, + TaxFormRelationships.JSON_PROPERTY_CUSTOMER +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class TaxFormRelationships { + public static final String JSON_PROPERTY_ACCOUNT = "account"; + private AccountRelationship account; + + public static final String JSON_PROPERTY_ACCOUNTS = "accounts"; + private AccountRelationship1 accounts; + + public static final String JSON_PROPERTY_CUSTOMER = "customer"; + private CustomerRelationship customer; + + public TaxFormRelationships() { + } + + public TaxFormRelationships account(AccountRelationship account) { + this.account = account; + return this; + } + + /** + * Get account + * @return account + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AccountRelationship getAccount() { + return account; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccount(AccountRelationship account) { + this.account = account; + } + + + public TaxFormRelationships accounts(AccountRelationship1 accounts) { + this.accounts = accounts; + return this; + } + + /** + * Get accounts + * @return accounts + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public AccountRelationship1 getAccounts() { + return accounts; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccounts(AccountRelationship1 accounts) { + this.accounts = accounts; + } + + + public TaxFormRelationships customer(CustomerRelationship customer) { + this.customer = customer; + return this; + } + + /** + * Get customer + * @return customer + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CustomerRelationship getCustomer() { + return customer; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCustomer(CustomerRelationship customer) { + this.customer = customer; + } + + + /** + * Return true if this TaxForm_relationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaxFormRelationships taxFormRelationships = (TaxFormRelationships) o; + return Objects.equals(this.account, taxFormRelationships.account) && + Objects.equals(this.accounts, taxFormRelationships.accounts) && + Objects.equals(this.customer, taxFormRelationships.customer); + } + + @Override + public int hashCode() { + return Objects.hash(account, accounts, customer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TaxFormRelationships {\n"); + sb.append(" account: ").append(toIndentedString(account)).append("\n"); + sb.append(" accounts: ").append(toIndentedString(accounts)).append("\n"); + sb.append(" customer: ").append(toIndentedString(customer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `account` to the URL query string + if (getAccount() != null) { + joiner.add(getAccount().toUrlQueryString(prefix + "account" + suffix)); + } + + // add `accounts` to the URL query string + if (getAccounts() != null) { + joiner.add(getAccounts().toUrlQueryString(prefix + "accounts" + suffix)); + } + + // add `customer` to the URL query string + if (getCustomer() != null) { + joiner.add(getCustomer().toUrlQueryString(prefix + "customer" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/Transaction.java b/src/main/java/unit/java/sdk/model/Transaction.java index 44628586..952c99ab 100644 --- a/src/main/java/unit/java/sdk/model/Transaction.java +++ b/src/main/java/unit/java/sdk/model/Transaction.java @@ -32,6 +32,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * Transaction */ @@ -39,7 +40,7 @@ Transaction.JSON_PROPERTY_ID, Transaction.JSON_PROPERTY_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -90,73 +91,73 @@ public class Transaction { * Gets or Sets type */ public enum TypeEnum { - ORIGINATEDACHTRANSACTION("originatedAchTransaction"), + ORIGINATED_ACH_TRANSACTION("originatedAchTransaction"), - RECEIVEDACHTRANSACTION("receivedAchTransaction"), + RECEIVED_ACH_TRANSACTION("receivedAchTransaction"), - RETURNEDACHTRANSACTION("returnedAchTransaction"), + RETURNED_ACH_TRANSACTION("returnedAchTransaction"), - RETURNEDRECEIVEDACHTRANSACTION("returnedReceivedAchTransaction"), + RETURNED_RECEIVED_ACH_TRANSACTION("returnedReceivedAchTransaction"), - DISHONOREDACHTRANSACTION("dishonoredAchTransaction"), + DISHONORED_ACH_TRANSACTION("dishonoredAchTransaction"), - PURCHASETRANSACTION("purchaseTransaction"), + PURCHASE_TRANSACTION("purchaseTransaction"), - BOOKTRANSACTION("bookTransaction"), + BOOK_TRANSACTION("bookTransaction"), - ATMTRANSACTION("atmTransaction"), + ATM_TRANSACTION("atmTransaction"), - FEETRANSACTION("feeTransaction"), + FEE_TRANSACTION("feeTransaction"), - CARDTRANSACTION("cardTransaction"), + CARD_TRANSACTION("cardTransaction"), - RELEASETRANSACTION("releaseTransaction"), + RELEASE_TRANSACTION("releaseTransaction"), - WIRETRANSACTION("wireTransaction"), + WIRE_TRANSACTION("wireTransaction"), - INTERESTSHARETRANSACTION("interestShareTransaction"), + INTEREST_SHARE_TRANSACTION("interestShareTransaction"), - INTERESTTRANSACTION("interestTransaction"), + INTEREST_TRANSACTION("interestTransaction"), - ADJUSTMENTTRANSACTION("adjustmentTransaction"), + ADJUSTMENT_TRANSACTION("adjustmentTransaction"), - DISPUTETRANSACTION("disputeTransaction"), + DISPUTE_TRANSACTION("disputeTransaction"), - CHECKDEPOSITTRANSACTION("checkDepositTransaction"), + CHECK_DEPOSIT_TRANSACTION("checkDepositTransaction"), - RETURNEDCHECKDEPOSITTRANSACTION("returnedCheckDepositTransaction"), + RETURNED_CHECK_DEPOSIT_TRANSACTION("returnedCheckDepositTransaction"), - SPONSOREDINTERESTTRANSACTION("sponsoredInterestTransaction"), + SPONSORED_INTEREST_TRANSACTION("sponsoredInterestTransaction"), - PAYMENTADVANCETRANSACTION("paymentAdvanceTransaction"), + PAYMENT_ADVANCE_TRANSACTION("paymentAdvanceTransaction"), - REPAIDPAYMENTADVANCETRANSACTION("repaidPaymentAdvanceTransaction"), + REPAID_PAYMENT_ADVANCE_TRANSACTION("repaidPaymentAdvanceTransaction"), - CHARGEBACKTRANSACTION("chargebackTransaction"), + CHARGEBACK_TRANSACTION("chargebackTransaction"), - REWARDTRANSACTION("rewardTransaction"), + REWARD_TRANSACTION("rewardTransaction"), - NEGATIVEBALANCECOVERAGETRANSACTION("negativeBalanceCoverageTransaction"), + NEGATIVE_BALANCE_COVERAGE_TRANSACTION("negativeBalanceCoverageTransaction"), - ACCOUNTLOWBALANCECLOSURETRANSACTION("accountLowBalanceClosureTransaction"), + ACCOUNT_LOW_BALANCE_CLOSURE_TRANSACTION("accountLowBalanceClosureTransaction"), - BANKREPAYMENTTRANSACTION("bankRepaymentTransaction"), + BANK_REPAYMENT_TRANSACTION("bankRepaymentTransaction"), - CASHDEPOSITTRANSACTION("cashDepositTransaction"), + CASH_DEPOSIT_TRANSACTION("cashDepositTransaction"), - CUSTOMERREPAYMENTTRANSACTION("customerRepaymentTransaction"), + CUSTOMER_REPAYMENT_TRANSACTION("customerRepaymentTransaction"), - CUSTOMERREPAYMENTRETURNEDTRANSACTION("customerRepaymentReturnedTransaction"), + CUSTOMER_REPAYMENT_RETURNED_TRANSACTION("customerRepaymentReturnedTransaction"), - CHECKPAYMENTTRANSACTION("checkPaymentTransaction"), + CHECK_PAYMENT_TRANSACTION("checkPaymentTransaction"), - RETURNEDCHECKPAYMENTTRANSACTION("returnedCheckPaymentTransaction"), + RETURNED_CHECK_PAYMENT_TRANSACTION("returnedCheckPaymentTransaction"), - CARDREVERSALTRANSACTION("cardReversalTransaction"), + CARD_REVERSAL_TRANSACTION("cardReversalTransaction"), - FEEREVERSALTRANSACTION("feeReversalTransaction"), + FEE_REVERSAL_TRANSACTION("feeReversalTransaction"), - PUSHTOCARDREVERSALTRANSACTION("pushToCardReversalTransaction"); + PUSH_TO_CARD_REVERSAL_TRANSACTION("pushToCardReversalTransaction"); private String value; @@ -196,14 +197,13 @@ public Transaction id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -221,14 +221,13 @@ public Transaction type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -317,12 +316,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/TransactionRelationship.java b/src/main/java/unit/java/sdk/model/TransactionRelationship.java index 0033dcb4..6dbd7368 100644 --- a/src/main/java/unit/java/sdk/model/TransactionRelationship.java +++ b/src/main/java/unit/java/sdk/model/TransactionRelationship.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * TransactionRelationship */ @JsonPropertyOrder({ TransactionRelationship.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TransactionRelationship { public static final String JSON_PROPERTY_DATA = "data"; private TransactionRelationshipData data; @@ -48,14 +49,13 @@ public TransactionRelationship data(TransactionRelationshipData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TransactionRelationshipData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/TransactionRelationshipData.java b/src/main/java/unit/java/sdk/model/TransactionRelationshipData.java index 9d873507..592ec3b5 100644 --- a/src/main/java/unit/java/sdk/model/TransactionRelationshipData.java +++ b/src/main/java/unit/java/sdk/model/TransactionRelationshipData.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * TransactionRelationshipData */ @@ -35,10 +36,43 @@ TransactionRelationshipData.JSON_PROPERTY_TYPE, TransactionRelationshipData.JSON_PROPERTY_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class TransactionRelationshipData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + TRANSACTION("transaction"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + public static final String JSON_PROPERTY_TYPE = "type"; - private String type = "transaction"; + private TypeEnum type = TypeEnum.TRANSACTION; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -46,27 +80,26 @@ public class TransactionRelationshipData { public TransactionRelationshipData() { } - public TransactionRelationshipData type(String type) { + public TransactionRelationshipData type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -76,14 +109,13 @@ public TransactionRelationshipData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -172,12 +204,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitGetAccountEndOfDayListResponse.java b/src/main/java/unit/java/sdk/model/UnitAccountBalanceHistoryResponse.java similarity index 68% rename from src/main/java/unit/java/sdk/model/UnitGetAccountEndOfDayListResponse.java rename to src/main/java/unit/java/sdk/model/UnitAccountBalanceHistoryResponse.java index ae6c6651..32e0b399 100644 --- a/src/main/java/unit/java/sdk/model/UnitGetAccountEndOfDayListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitAccountBalanceHistoryResponse.java @@ -24,52 +24,62 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import unit.java.sdk.model.AccountEndOfDay; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitGetAccountEndOfDayListResponse + * UnitAccountBalanceHistoryResponse */ @JsonPropertyOrder({ - UnitGetAccountEndOfDayListResponse.JSON_PROPERTY_DATA + UnitAccountBalanceHistoryResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitGetAccountEndOfDayListResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitAccountBalanceHistoryResponse { public static final String JSON_PROPERTY_DATA = "data"; - private AccountEndOfDay data; + private List data = new ArrayList<>(); - public UnitGetAccountEndOfDayListResponse() { + public UnitAccountBalanceHistoryResponse() { } - public UnitGetAccountEndOfDayListResponse data(AccountEndOfDay data) { + public UnitAccountBalanceHistoryResponse data(List data) { this.data = data; return this; } - /** + public UnitAccountBalanceHistoryResponse addDataItem(AccountEndOfDay dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public AccountEndOfDay getData() { + public List getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(AccountEndOfDay data) { + public void setData(List data) { this.data = data; } /** - * Return true if this Unit_Get_Account_End_Of_Day_List_Response object is equal to o. + * Return true if this Unit_Account_Balance_History_Response object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +89,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitGetAccountEndOfDayListResponse unitGetAccountEndOfDayListResponse = (UnitGetAccountEndOfDayListResponse) o; - return Objects.equals(this.data, unitGetAccountEndOfDayListResponse.data); + UnitAccountBalanceHistoryResponse unitAccountBalanceHistoryResponse = (UnitAccountBalanceHistoryResponse) o; + return Objects.equals(this.data, unitAccountBalanceHistoryResponse.data); } @Override @@ -91,7 +101,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitGetAccountEndOfDayListResponse {\n"); + sb.append("class UnitAccountBalanceHistoryResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); @@ -142,7 +152,12 @@ public String toUrlQueryString(String prefix) { // add `data` to the URL query string if (getData() != null) { - joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add(getData().get(i).toUrlQueryString(String.format("%sdata%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitAccountResponse.java b/src/main/java/unit/java/sdk/model/UnitAccountResponse.java index a0082fe0..668e2d6b 100644 --- a/src/main/java/unit/java/sdk/model/UnitAccountResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitAccountResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitAccountResponse */ @JsonPropertyOrder({ UnitAccountResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitAccountResponse { public static final String JSON_PROPERTY_DATA = "data"; private Account data; @@ -48,14 +49,13 @@ public UnitAccountResponse data(Account data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Account getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitAccountResponseWithIncluded.java b/src/main/java/unit/java/sdk/model/UnitAccountResponseWithIncluded.java index b4f3e6d0..eae6378f 100644 --- a/src/main/java/unit/java/sdk/model/UnitAccountResponseWithIncluded.java +++ b/src/main/java/unit/java/sdk/model/UnitAccountResponseWithIncluded.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitAccountResponseWithIncluded */ @@ -39,7 +40,7 @@ UnitAccountResponseWithIncluded.JSON_PROPERTY_DATA, UnitAccountResponseWithIncluded.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitAccountResponseWithIncluded { public static final String JSON_PROPERTY_DATA = "data"; private Account data; @@ -55,14 +56,13 @@ public UnitAccountResponseWithIncluded data(Account data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Account getData() { return data; } @@ -88,14 +88,13 @@ public UnitAccountResponseWithIncluded addIncludedItem(Customer includedItem) { return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } diff --git a/src/main/java/unit/java/sdk/model/UnitAccountsListResponse.java b/src/main/java/unit/java/sdk/model/UnitAccountsListResponse.java index a791e301..332d669a 100644 --- a/src/main/java/unit/java/sdk/model/UnitAccountsListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitAccountsListResponse.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitAccountsListResponse */ @@ -41,7 +42,7 @@ UnitAccountsListResponse.JSON_PROPERTY_INCLUDED, UnitAccountsListResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitAccountsListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -68,14 +69,13 @@ public UnitAccountsListResponse addDataItem(Account dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -101,14 +101,13 @@ public UnitAccountsListResponse addIncludedItem(Customer includedItem) { return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } @@ -126,14 +125,13 @@ public UnitAccountsListResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/UnitApiTokenResponse.java b/src/main/java/unit/java/sdk/model/UnitApiTokenResponse.java index ebdc21bc..954262bf 100644 --- a/src/main/java/unit/java/sdk/model/UnitApiTokenResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitApiTokenResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitApiTokenResponse */ @JsonPropertyOrder({ UnitApiTokenResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitApiTokenResponse { public static final String JSON_PROPERTY_DATA = "data"; private ApiToken data; @@ -48,14 +49,13 @@ public UnitApiTokenResponse data(ApiToken data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApiToken getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitApplicationFormResponse.java b/src/main/java/unit/java/sdk/model/UnitApplicationFormResponse.java index 069f1114..38cac113 100644 --- a/src/main/java/unit/java/sdk/model/UnitApplicationFormResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitApplicationFormResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitApplicationFormResponse */ @JsonPropertyOrder({ UnitApplicationFormResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitApplicationFormResponse { public static final String JSON_PROPERTY_DATA = "data"; private ApplicationForm data; @@ -48,14 +49,13 @@ public UnitApplicationFormResponse data(ApplicationForm data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationForm getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitApplicationFormResponseWithIncluded.java b/src/main/java/unit/java/sdk/model/UnitApplicationFormResponseWithIncluded.java index 7ec23e32..dcbaa40d 100644 --- a/src/main/java/unit/java/sdk/model/UnitApplicationFormResponseWithIncluded.java +++ b/src/main/java/unit/java/sdk/model/UnitApplicationFormResponseWithIncluded.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitApplicationFormResponseWithIncluded */ @@ -37,7 +38,7 @@ UnitApplicationFormResponseWithIncluded.JSON_PROPERTY_DATA, UnitApplicationFormResponseWithIncluded.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitApplicationFormResponseWithIncluded { public static final String JSON_PROPERTY_DATA = "data"; private ApplicationForm data; @@ -53,14 +54,13 @@ public UnitApplicationFormResponseWithIncluded data(ApplicationForm data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationForm getData() { return data; } @@ -78,14 +78,13 @@ public UnitApplicationFormResponseWithIncluded included(Application included) { return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Application getIncluded() { return included; } diff --git a/src/main/java/unit/java/sdk/model/UnitApplicationFormsListResponse.java b/src/main/java/unit/java/sdk/model/UnitApplicationFormsListResponse.java index 10b8331d..0ffc55cb 100644 --- a/src/main/java/unit/java/sdk/model/UnitApplicationFormsListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitApplicationFormsListResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitApplicationFormsListResponse */ @JsonPropertyOrder({ UnitApplicationFormsListResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitApplicationFormsListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitApplicationFormsListResponse addDataItem(ApplicationForm dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitApplicationResponseWithIncluded.java b/src/main/java/unit/java/sdk/model/UnitApplicationResponseWithIncluded.java index 1792526b..7fbf4f18 100644 --- a/src/main/java/unit/java/sdk/model/UnitApplicationResponseWithIncluded.java +++ b/src/main/java/unit/java/sdk/model/UnitApplicationResponseWithIncluded.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitApplicationResponseWithIncluded */ @@ -39,7 +40,7 @@ UnitApplicationResponseWithIncluded.JSON_PROPERTY_DATA, UnitApplicationResponseWithIncluded.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitApplicationResponseWithIncluded { public static final String JSON_PROPERTY_DATA = "data"; private Application data; @@ -55,14 +56,13 @@ public UnitApplicationResponseWithIncluded data(Application data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Application getData() { return data; } @@ -88,14 +88,13 @@ public UnitApplicationResponseWithIncluded addIncludedItem(IncludedResourceInner return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } diff --git a/src/main/java/unit/java/sdk/model/UnitAuthorizationRequestResponse.java b/src/main/java/unit/java/sdk/model/UnitAuthorizationRequestResponse.java index 2345c667..6c64336b 100644 --- a/src/main/java/unit/java/sdk/model/UnitAuthorizationRequestResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitAuthorizationRequestResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitAuthorizationRequestResponse */ @JsonPropertyOrder({ UnitAuthorizationRequestResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitAuthorizationRequestResponse { public static final String JSON_PROPERTY_DATA = "data"; private AuthorizationRequest data; @@ -48,14 +49,13 @@ public UnitAuthorizationRequestResponse data(AuthorizationRequest data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AuthorizationRequest getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitAuthorizationRequestsResponse.java b/src/main/java/unit/java/sdk/model/UnitAuthorizationRequestsResponse.java index 0bb67b72..33571284 100644 --- a/src/main/java/unit/java/sdk/model/UnitAuthorizationRequestsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitAuthorizationRequestsResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitAuthorizationRequestsResponse */ @JsonPropertyOrder({ UnitAuthorizationRequestsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitAuthorizationRequestsResponse { public static final String JSON_PROPERTY_DATA = "data"; private AuthorizationRequest data; @@ -48,14 +49,13 @@ public UnitAuthorizationRequestsResponse data(AuthorizationRequest data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AuthorizationRequest getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitAuthorizationResponse.java b/src/main/java/unit/java/sdk/model/UnitAuthorizationResponse.java index d0da4e75..41f7abe2 100644 --- a/src/main/java/unit/java/sdk/model/UnitAuthorizationResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitAuthorizationResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitAuthorizationResponse */ @JsonPropertyOrder({ UnitAuthorizationResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitAuthorizationResponse { public static final String JSON_PROPERTY_DATA = "data"; private Authorization data; @@ -48,14 +49,13 @@ public UnitAuthorizationResponse data(Authorization data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Authorization getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitBackCheckDepositResponse.java b/src/main/java/unit/java/sdk/model/UnitBackCheckDepositResponse.java index 33e943bc..288a6f06 100644 --- a/src/main/java/unit/java/sdk/model/UnitBackCheckDepositResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitBackCheckDepositResponse.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitBackCheckDepositResponse */ @JsonPropertyOrder({ UnitBackCheckDepositResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitBackCheckDepositResponse { public static final String JSON_PROPERTY_DATA = "data"; private String data; @@ -47,14 +48,13 @@ public UnitBackCheckDepositResponse data(String data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getData() { return data; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `data` to the URL query string if (getData() != null) { - joiner.add(String.format("%sdata%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getData()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdata%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getData()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitBeneficialOwnerResponse.java b/src/main/java/unit/java/sdk/model/UnitBeneficialOwnerResponse.java index 74e13cc9..e567ea42 100644 --- a/src/main/java/unit/java/sdk/model/UnitBeneficialOwnerResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitBeneficialOwnerResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitBeneficialOwnerResponse */ @JsonPropertyOrder({ UnitBeneficialOwnerResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitBeneficialOwnerResponse { public static final String JSON_PROPERTY_DATA = "data"; private UnitBeneficialOwnerResponseData data; @@ -48,14 +49,13 @@ public UnitBeneficialOwnerResponse data(UnitBeneficialOwnerResponseData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UnitBeneficialOwnerResponseData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitBeneficialOwnerResponseData.java b/src/main/java/unit/java/sdk/model/UnitBeneficialOwnerResponseData.java index 63254ff1..c33f1f9c 100644 --- a/src/main/java/unit/java/sdk/model/UnitBeneficialOwnerResponseData.java +++ b/src/main/java/unit/java/sdk/model/UnitBeneficialOwnerResponseData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitBeneficialOwnerResponseData */ @@ -37,7 +38,7 @@ UnitBeneficialOwnerResponseData.JSON_PROPERTY_TYPE, UnitBeneficialOwnerResponseData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitBeneficialOwnerResponseData { public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -46,7 +47,7 @@ public class UnitBeneficialOwnerResponseData { * Gets or Sets type */ public enum TypeEnum { - BENEFICIALOWNER("beneficialOwner"); + BENEFICIAL_OWNER("beneficialOwner"); private String value; @@ -76,7 +77,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BENEFICIALOWNER; + private TypeEnum type = TypeEnum.BENEFICIAL_OWNER; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private BeneficialOwner attributes; @@ -89,14 +90,13 @@ public UnitBeneficialOwnerResponseData id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { return id; } @@ -114,14 +114,13 @@ public UnitBeneficialOwnerResponseData type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -139,14 +138,13 @@ public UnitBeneficialOwnerResponseData attributes(BeneficialOwner attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BeneficialOwner getAttributes() { return attributes; } @@ -237,12 +235,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UnitCancelApplicationResponse.java b/src/main/java/unit/java/sdk/model/UnitCancelApplicationResponse.java index d9521fcd..ea1b8a00 100644 --- a/src/main/java/unit/java/sdk/model/UnitCancelApplicationResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCancelApplicationResponse.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCancelApplicationResponse */ @@ -39,7 +40,7 @@ UnitCancelApplicationResponse.JSON_PROPERTY_DATA, UnitCancelApplicationResponse.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCancelApplicationResponse { public static final String JSON_PROPERTY_DATA = "data"; private Application data; @@ -55,14 +56,13 @@ public UnitCancelApplicationResponse data(Application data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Application getData() { return data; } @@ -88,14 +88,13 @@ public UnitCancelApplicationResponse addIncludedItem(ApplicationDocument include return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } diff --git a/src/main/java/unit/java/sdk/model/UnitCardLimitsResponse.java b/src/main/java/unit/java/sdk/model/UnitCardLimitsResponse.java index adfb6f0b..aa9b67db 100644 --- a/src/main/java/unit/java/sdk/model/UnitCardLimitsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCardLimitsResponse.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.SchemasLimits; +import unit.java.sdk.model.UnitCardLimitsResponseData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCardLimitsResponse */ @JsonPropertyOrder({ UnitCardLimitsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCardLimitsResponse { public static final String JSON_PROPERTY_DATA = "data"; - private SchemasLimits data; + private UnitCardLimitsResponseData data; public UnitCardLimitsResponse() { } - public UnitCardLimitsResponse data(SchemasLimits data) { + public UnitCardLimitsResponse data(UnitCardLimitsResponseData data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ - @jakarta.annotation.Nullable + */ + @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public SchemasLimits getData() { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public UnitCardLimitsResponseData getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(SchemasLimits data) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(UnitCardLimitsResponseData data) { this.data = data; } /** - * Return true if this Unit_Card_Limits_Response object is equal to o. + * Return true if this UnitCardLimitsResponse object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponseData.java b/src/main/java/unit/java/sdk/model/UnitCardLimitsResponseData.java similarity index 74% rename from src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponseData.java rename to src/main/java/unit/java/sdk/model/UnitCardLimitsResponseData.java index 6b0e3010..f18fed20 100644 --- a/src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponseData.java +++ b/src/main/java/unit/java/sdk/model/UnitCardLimitsResponseData.java @@ -25,24 +25,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.UnitRepaymentInformationResponseDataAttributes; +import unit.java.sdk.model.UnitCardLimitsResponseDataAttributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitRepaymentInformationResponseData + * UnitCardLimitsResponseData */ @JsonPropertyOrder({ - UnitRepaymentInformationResponseData.JSON_PROPERTY_TYPE, - UnitRepaymentInformationResponseData.JSON_PROPERTY_ATTRIBUTES + UnitCardLimitsResponseData.JSON_PROPERTY_TYPE, + UnitCardLimitsResponseData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitRepaymentInformationResponseData { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitCardLimitsResponseData { /** * Gets or Sets type */ public enum TypeEnum { - CREDITACCOUNTREPAYMENTINFORMATION("creditAccountRepaymentInformation"); + LIMITS("limits"); private String value; @@ -72,27 +73,26 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CREDITACCOUNTREPAYMENTINFORMATION; + private TypeEnum type = TypeEnum.LIMITS; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private UnitRepaymentInformationResponseDataAttributes attributes; + private UnitCardLimitsResponseDataAttributes attributes; - public UnitRepaymentInformationResponseData() { + public UnitCardLimitsResponseData() { } - public UnitRepaymentInformationResponseData type(TypeEnum type) { + public UnitCardLimitsResponseData type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -105,33 +105,32 @@ public void setType(TypeEnum type) { } - public UnitRepaymentInformationResponseData attributes(UnitRepaymentInformationResponseDataAttributes attributes) { + public UnitCardLimitsResponseData attributes(UnitCardLimitsResponseDataAttributes attributes) { this.attributes = attributes; return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public UnitRepaymentInformationResponseDataAttributes getAttributes() { + public UnitCardLimitsResponseDataAttributes getAttributes() { return attributes; } @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAttributes(UnitRepaymentInformationResponseDataAttributes attributes) { + public void setAttributes(UnitCardLimitsResponseDataAttributes attributes) { this.attributes = attributes; } /** - * Return true if this UnitRepaymentInformationResponse_data object is equal to o. + * Return true if this UnitCardLimitsResponse_data object is equal to o. */ @Override public boolean equals(Object o) { @@ -141,9 +140,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitRepaymentInformationResponseData unitRepaymentInformationResponseData = (UnitRepaymentInformationResponseData) o; - return Objects.equals(this.type, unitRepaymentInformationResponseData.type) && - Objects.equals(this.attributes, unitRepaymentInformationResponseData.attributes); + UnitCardLimitsResponseData unitCardLimitsResponseData = (UnitCardLimitsResponseData) o; + return Objects.equals(this.type, unitCardLimitsResponseData.type) && + Objects.equals(this.attributes, unitCardLimitsResponseData.attributes); } @Override @@ -154,7 +153,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitRepaymentInformationResponseData {\n"); + sb.append("class UnitCardLimitsResponseData {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append("}"); @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/SchemasLimitsDataAttributes.java b/src/main/java/unit/java/sdk/model/UnitCardLimitsResponseDataAttributes.java similarity index 80% rename from src/main/java/unit/java/sdk/model/SchemasLimitsDataAttributes.java rename to src/main/java/unit/java/sdk/model/UnitCardLimitsResponseDataAttributes.java index 0d7cf536..eb0bdeb5 100644 --- a/src/main/java/unit/java/sdk/model/SchemasLimitsDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/UnitCardLimitsResponseDataAttributes.java @@ -30,16 +30,17 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * SchemasLimitsDataAttributes + * UnitCardLimitsResponseDataAttributes */ @JsonPropertyOrder({ - SchemasLimitsDataAttributes.JSON_PROPERTY_LIMITS, - SchemasLimitsDataAttributes.JSON_PROPERTY_DAILY_TOTALS, - SchemasLimitsDataAttributes.JSON_PROPERTY_MONTHLY_TOTALS + UnitCardLimitsResponseDataAttributes.JSON_PROPERTY_LIMITS, + UnitCardLimitsResponseDataAttributes.JSON_PROPERTY_DAILY_TOTALS, + UnitCardLimitsResponseDataAttributes.JSON_PROPERTY_MONTHLY_TOTALS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class SchemasLimitsDataAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitCardLimitsResponseDataAttributes { public static final String JSON_PROPERTY_LIMITS = "limits"; private CardLevelLimits limits; @@ -49,22 +50,21 @@ public class SchemasLimitsDataAttributes { public static final String JSON_PROPERTY_MONTHLY_TOTALS = "monthlyTotals"; private CardTotals monthlyTotals; - public SchemasLimitsDataAttributes() { + public UnitCardLimitsResponseDataAttributes() { } - public SchemasLimitsDataAttributes limits(CardLevelLimits limits) { + public UnitCardLimitsResponseDataAttributes limits(CardLevelLimits limits) { this.limits = limits; return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -77,19 +77,18 @@ public void setLimits(CardLevelLimits limits) { } - public SchemasLimitsDataAttributes dailyTotals(CardTotals dailyTotals) { + public UnitCardLimitsResponseDataAttributes dailyTotals(CardTotals dailyTotals) { this.dailyTotals = dailyTotals; return this; } - /** + /** * Get dailyTotals * @return dailyTotals - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DAILY_TOTALS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardTotals getDailyTotals() { return dailyTotals; } @@ -102,19 +101,18 @@ public void setDailyTotals(CardTotals dailyTotals) { } - public SchemasLimitsDataAttributes monthlyTotals(CardTotals monthlyTotals) { + public UnitCardLimitsResponseDataAttributes monthlyTotals(CardTotals monthlyTotals) { this.monthlyTotals = monthlyTotals; return this; } - /** + /** * Get monthlyTotals * @return monthlyTotals - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_MONTHLY_TOTALS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public CardTotals getMonthlyTotals() { return monthlyTotals; } @@ -128,7 +126,7 @@ public void setMonthlyTotals(CardTotals monthlyTotals) { /** - * Return true if this schemas_Limits_data_attributes object is equal to o. + * Return true if this UnitCardLimitsResponse_data_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -138,10 +136,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SchemasLimitsDataAttributes schemasLimitsDataAttributes = (SchemasLimitsDataAttributes) o; - return Objects.equals(this.limits, schemasLimitsDataAttributes.limits) && - Objects.equals(this.dailyTotals, schemasLimitsDataAttributes.dailyTotals) && - Objects.equals(this.monthlyTotals, schemasLimitsDataAttributes.monthlyTotals); + UnitCardLimitsResponseDataAttributes unitCardLimitsResponseDataAttributes = (UnitCardLimitsResponseDataAttributes) o; + return Objects.equals(this.limits, unitCardLimitsResponseDataAttributes.limits) && + Objects.equals(this.dailyTotals, unitCardLimitsResponseDataAttributes.dailyTotals) && + Objects.equals(this.monthlyTotals, unitCardLimitsResponseDataAttributes.monthlyTotals); } @Override @@ -152,7 +150,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SchemasLimitsDataAttributes {\n"); + sb.append("class UnitCardLimitsResponseDataAttributes {\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append(" dailyTotals: ").append(toIndentedString(dailyTotals)).append("\n"); sb.append(" monthlyTotals: ").append(toIndentedString(monthlyTotals)).append("\n"); diff --git a/src/main/java/unit/java/sdk/model/UnitCardResponse.java b/src/main/java/unit/java/sdk/model/UnitCardResponse.java index 37c5fed4..7e3bf533 100644 --- a/src/main/java/unit/java/sdk/model/UnitCardResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCardResponse.java @@ -24,29 +24,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; import java.util.Arrays; -import java.util.List; import unit.java.sdk.model.Card; -import unit.java.sdk.model.IncludedResourceInner; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCardResponse */ @JsonPropertyOrder({ - UnitCardResponse.JSON_PROPERTY_DATA, - UnitCardResponse.JSON_PROPERTY_INCLUDED + UnitCardResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCardResponse { public static final String JSON_PROPERTY_DATA = "data"; private Card data; - public static final String JSON_PROPERTY_INCLUDED = "included"; - private List> included = new ArrayList<>(); - public UnitCardResponse() { } @@ -55,14 +49,13 @@ public UnitCardResponse data(Card data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Card getData() { return data; } @@ -75,41 +68,8 @@ public void setData(Card data) { } - public UnitCardResponse included(List> included) { - this.included = included; - return this; - } - - public UnitCardResponse addIncludedItem(List includedItem) { - if (this.included == null) { - this.included = new ArrayList<>(); - } - this.included.add(includedItem); - return this; - } - - /** - * Get included - * @return included - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INCLUDED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List> getIncluded() { - return included; - } - - - @JsonProperty(JSON_PROPERTY_INCLUDED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIncluded(List> included) { - this.included = included; - } - - /** - * Return true if this Unit_Card_Response object is equal to o. + * Return true if this UnitCardResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -120,13 +80,12 @@ public boolean equals(Object o) { return false; } UnitCardResponse unitCardResponse = (UnitCardResponse) o; - return Objects.equals(this.data, unitCardResponse.data) && - Objects.equals(this.included, unitCardResponse.included); + return Objects.equals(this.data, unitCardResponse.data); } @Override public int hashCode() { - return Objects.hash(data, included); + return Objects.hash(data); } @Override @@ -134,7 +93,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UnitCardResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append("}"); return sb.toString(); } @@ -187,17 +145,6 @@ public String toUrlQueryString(String prefix) { joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); } - // add `included` to the URL query string - if (getIncluded() != null) { - for (int i = 0; i < getIncluded().size(); i++) { - if (getIncluded().get(i) != null) { - joiner.add(String.format("%sincluded%s%s=%s", prefix, suffix, - "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getIncluded().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - } - } - return joiner.toString(); } } diff --git a/src/main/java/unit/java/sdk/model/UnitCardResponseWithIncluded.java b/src/main/java/unit/java/sdk/model/UnitCardResponseWithIncluded.java new file mode 100644 index 00000000..485e0a0a --- /dev/null +++ b/src/main/java/unit/java/sdk/model/UnitCardResponseWithIncluded.java @@ -0,0 +1,203 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import unit.java.sdk.model.Card; +import unit.java.sdk.model.IncludedResourceInner; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * UnitCardResponseWithIncluded + */ +@JsonPropertyOrder({ + UnitCardResponseWithIncluded.JSON_PROPERTY_DATA, + UnitCardResponseWithIncluded.JSON_PROPERTY_INCLUDED +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitCardResponseWithIncluded { + public static final String JSON_PROPERTY_DATA = "data"; + private Card data; + + public static final String JSON_PROPERTY_INCLUDED = "included"; + private List> included = new ArrayList<>(); + + public UnitCardResponseWithIncluded() { + } + + public UnitCardResponseWithIncluded data(Card data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Card getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Card data) { + this.data = data; + } + + + public UnitCardResponseWithIncluded included(List> included) { + this.included = included; + return this; + } + + public UnitCardResponseWithIncluded addIncludedItem(List includedItem) { + if (this.included == null) { + this.included = new ArrayList<>(); + } + this.included.add(includedItem); + return this; + } + + /** + * Get included + * @return included + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_INCLUDED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List> getIncluded() { + return included; + } + + + @JsonProperty(JSON_PROPERTY_INCLUDED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIncluded(List> included) { + this.included = included; + } + + + /** + * Return true if this UnitCardResponseWithIncluded object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnitCardResponseWithIncluded unitCardResponseWithIncluded = (UnitCardResponseWithIncluded) o; + return Objects.equals(this.data, unitCardResponseWithIncluded.data) && + Objects.equals(this.included, unitCardResponseWithIncluded.included); + } + + @Override + public int hashCode() { + return Objects.hash(data, included); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnitCardResponseWithIncluded {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + } + + // add `included` to the URL query string + if (getIncluded() != null) { + for (int i = 0; i < getIncluded().size(); i++) { + if (getIncluded().get(i) != null) { + joiner.add(String.format("%sincluded%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), + URLEncoder.encode(ApiClient.valueToString(getIncluded().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/UnitCardResponseCardsList.java b/src/main/java/unit/java/sdk/model/UnitCardsListReponse.java similarity index 81% rename from src/main/java/unit/java/sdk/model/UnitCardResponseCardsList.java rename to src/main/java/unit/java/sdk/model/UnitCardsListReponse.java index 6f9e7c01..daaa0a21 100644 --- a/src/main/java/unit/java/sdk/model/UnitCardResponseCardsList.java +++ b/src/main/java/unit/java/sdk/model/UnitCardsListReponse.java @@ -32,30 +32,31 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitCardResponseCardsList + * UnitCardsListReponse */ @JsonPropertyOrder({ - UnitCardResponseCardsList.JSON_PROPERTY_DATA, - UnitCardResponseCardsList.JSON_PROPERTY_INCLUDED + UnitCardsListReponse.JSON_PROPERTY_DATA, + UnitCardsListReponse.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitCardResponseCardsList { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitCardsListReponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); public static final String JSON_PROPERTY_INCLUDED = "included"; private List> included = new ArrayList<>(); - public UnitCardResponseCardsList() { + public UnitCardsListReponse() { } - public UnitCardResponseCardsList data(List data) { + public UnitCardsListReponse data(List data) { this.data = data; return this; } - public UnitCardResponseCardsList addDataItem(Card dataItem) { + public UnitCardsListReponse addDataItem(Card dataItem) { if (this.data == null) { this.data = new ArrayList<>(); } @@ -63,14 +64,13 @@ public UnitCardResponseCardsList addDataItem(Card dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -83,12 +83,12 @@ public void setData(List data) { } - public UnitCardResponseCardsList included(List> included) { + public UnitCardsListReponse included(List> included) { this.included = included; return this; } - public UnitCardResponseCardsList addIncludedItem(List includedItem) { + public UnitCardsListReponse addIncludedItem(List includedItem) { if (this.included == null) { this.included = new ArrayList<>(); } @@ -96,14 +96,13 @@ public UnitCardResponseCardsList addIncludedItem(List inc return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getIncluded() { return included; } @@ -117,7 +116,7 @@ public void setIncluded(List> included) { /** - * Return true if this Unit_Card_Response_Cards_List object is equal to o. + * Return true if this UnitCardsListReponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -127,9 +126,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitCardResponseCardsList unitCardResponseCardsList = (UnitCardResponseCardsList) o; - return Objects.equals(this.data, unitCardResponseCardsList.data) && - Objects.equals(this.included, unitCardResponseCardsList.included); + UnitCardsListReponse unitCardsListReponse = (UnitCardsListReponse) o; + return Objects.equals(this.data, unitCardsListReponse.data) && + Objects.equals(this.included, unitCardsListReponse.included); } @Override @@ -140,7 +139,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitCardResponseCardsList {\n"); + sb.append("class UnitCardsListReponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" included: ").append(toIndentedString(included)).append("\n"); sb.append("}"); @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { if (getIncluded().get(i) != null) { joiner.add(String.format("%sincluded%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getIncluded().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getIncluded().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } } diff --git a/src/main/java/unit/java/sdk/model/UnitUpdateCheckDepositResponse.java b/src/main/java/unit/java/sdk/model/UnitCashDepositBarcodeResponse.java similarity index 79% rename from src/main/java/unit/java/sdk/model/UnitUpdateCheckDepositResponse.java rename to src/main/java/unit/java/sdk/model/UnitCashDepositBarcodeResponse.java index 931a1b7c..3f3d482e 100644 --- a/src/main/java/unit/java/sdk/model/UnitUpdateCheckDepositResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCashDepositBarcodeResponse.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CheckDeposit; +import unit.java.sdk.model.CashDepositBarcode; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitUpdateCheckDepositResponse + * UnitCashDepositBarcodeResponse */ @JsonPropertyOrder({ - UnitUpdateCheckDepositResponse.JSON_PROPERTY_DATA + UnitCashDepositBarcodeResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitUpdateCheckDepositResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitCashDepositBarcodeResponse { public static final String JSON_PROPERTY_DATA = "data"; - private CheckDeposit data; + private CashDepositBarcode data; - public UnitUpdateCheckDepositResponse() { + public UnitCashDepositBarcodeResponse() { } - public UnitUpdateCheckDepositResponse data(CheckDeposit data) { + public UnitCashDepositBarcodeResponse data(CashDepositBarcode data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public CheckDeposit getData() { + public CashDepositBarcode getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(CheckDeposit data) { + public void setData(CashDepositBarcode data) { this.data = data; } /** - * Return true if this Unit_Update_Check_Deposit_Response object is equal to o. + * Return true if this Unit_Cash_Deposit_Barcode_Response object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitUpdateCheckDepositResponse unitUpdateCheckDepositResponse = (UnitUpdateCheckDepositResponse) o; - return Objects.equals(this.data, unitUpdateCheckDepositResponse.data); + UnitCashDepositBarcodeResponse unitCashDepositBarcodeResponse = (UnitCashDepositBarcodeResponse) o; + return Objects.equals(this.data, unitCashDepositBarcodeResponse.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitUpdateCheckDepositResponse {\n"); + sb.append("class UnitCashDepositBarcodeResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitCheckDepositResponse.java b/src/main/java/unit/java/sdk/model/UnitCheckDepositResponse.java index 1c5f88e5..4933b652 100644 --- a/src/main/java/unit/java/sdk/model/UnitCheckDepositResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCheckDepositResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCheckDepositResponse */ @JsonPropertyOrder({ UnitCheckDepositResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCheckDepositResponse { public static final String JSON_PROPERTY_DATA = "data"; private CheckDeposit data; @@ -48,14 +49,13 @@ public UnitCheckDepositResponse data(CheckDeposit data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CheckDeposit getData() { return data; } @@ -69,7 +69,7 @@ public void setData(CheckDeposit data) { /** - * Return true if this Unit_Check_Deposit_Response object is equal to o. + * Return true if this UnitCheckDepositResponse object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/unit/java/sdk/model/UnitCheckPaymentResponse.java b/src/main/java/unit/java/sdk/model/UnitCheckPaymentResponse.java index fd01f80c..a36502cb 100644 --- a/src/main/java/unit/java/sdk/model/UnitCheckPaymentResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCheckPaymentResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCheckPaymentResponse */ @JsonPropertyOrder({ UnitCheckPaymentResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCheckPaymentResponse { public static final String JSON_PROPERTY_DATA = "data"; private CheckPayment data; @@ -48,14 +49,13 @@ public UnitCheckPaymentResponse data(CheckPayment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CheckPayment getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitCounterpartiesListResponse.java b/src/main/java/unit/java/sdk/model/UnitCounterpartiesListResponse.java index 8c1f79e8..36d46dba 100644 --- a/src/main/java/unit/java/sdk/model/UnitCounterpartiesListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCounterpartiesListResponse.java @@ -24,46 +24,56 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import unit.java.sdk.model.Counterparty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCounterpartiesListResponse */ @JsonPropertyOrder({ UnitCounterpartiesListResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCounterpartiesListResponse { public static final String JSON_PROPERTY_DATA = "data"; - private Counterparty data; + private List data = new ArrayList<>(); public UnitCounterpartiesListResponse() { } - public UnitCounterpartiesListResponse data(Counterparty data) { + public UnitCounterpartiesListResponse data(List data) { this.data = data; return this; } - /** + public UnitCounterpartiesListResponse addDataItem(Counterparty dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Counterparty getData() { + public List getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Counterparty data) { + public void setData(List data) { this.data = data; } @@ -142,7 +152,12 @@ public String toUrlQueryString(String prefix) { // add `data` to the URL query string if (getData() != null) { - joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add(getData().get(i).toUrlQueryString(String.format("%sdata%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitCounterpartyResponse1.java b/src/main/java/unit/java/sdk/model/UnitCounterpartyBalanceResponse.java similarity index 82% rename from src/main/java/unit/java/sdk/model/UnitCounterpartyResponse1.java rename to src/main/java/unit/java/sdk/model/UnitCounterpartyBalanceResponse.java index e6e41344..80b8b3b0 100644 --- a/src/main/java/unit/java/sdk/model/UnitCounterpartyResponse1.java +++ b/src/main/java/unit/java/sdk/model/UnitCounterpartyBalanceResponse.java @@ -29,33 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitCounterpartyResponse1 + * UnitCounterpartyBalanceResponse */ @JsonPropertyOrder({ - UnitCounterpartyResponse1.JSON_PROPERTY_DATA + UnitCounterpartyBalanceResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitCounterpartyResponse1 { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitCounterpartyBalanceResponse { public static final String JSON_PROPERTY_DATA = "data"; private CounterpartyBalance data; - public UnitCounterpartyResponse1() { + public UnitCounterpartyBalanceResponse() { } - public UnitCounterpartyResponse1 data(CounterpartyBalance data) { + public UnitCounterpartyBalanceResponse data(CounterpartyBalance data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CounterpartyBalance getData() { return data; } @@ -69,7 +69,7 @@ public void setData(CounterpartyBalance data) { /** - * Return true if this Unit_Counterparty_Response_1 object is equal to o. + * Return true if this UnitCounterpartyBalanceResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitCounterpartyResponse1 unitCounterpartyResponse1 = (UnitCounterpartyResponse1) o; - return Objects.equals(this.data, unitCounterpartyResponse1.data); + UnitCounterpartyBalanceResponse unitCounterpartyBalanceResponse = (UnitCounterpartyBalanceResponse) o; + return Objects.equals(this.data, unitCounterpartyBalanceResponse.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitCounterpartyResponse1 {\n"); + sb.append("class UnitCounterpartyBalanceResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitCounterpartyResponse.java b/src/main/java/unit/java/sdk/model/UnitCounterpartyResponse.java index 971bfcd5..aa8b11bc 100644 --- a/src/main/java/unit/java/sdk/model/UnitCounterpartyResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCounterpartyResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCounterpartyResponse */ @JsonPropertyOrder({ UnitCounterpartyResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCounterpartyResponse { public static final String JSON_PROPERTY_DATA = "data"; private Counterparty data; @@ -48,14 +49,13 @@ public UnitCounterpartyResponse data(Counterparty data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Counterparty getData() { return data; } @@ -69,7 +69,7 @@ public void setData(Counterparty data) { /** - * Return true if this Unit_Counterparty_Response object is equal to o. + * Return true if this UnitCounterpartyResponse object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/unit/java/sdk/model/UnitCreateApplicationResponse.java b/src/main/java/unit/java/sdk/model/UnitCreateApplicationResponse.java index a3c0685e..ad4a8b56 100644 --- a/src/main/java/unit/java/sdk/model/UnitCreateApplicationResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCreateApplicationResponse.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCreateApplicationResponse */ @@ -39,7 +40,7 @@ UnitCreateApplicationResponse.JSON_PROPERTY_DATA, UnitCreateApplicationResponse.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCreateApplicationResponse { public static final String JSON_PROPERTY_DATA = "data"; private Application data; @@ -55,14 +56,13 @@ public UnitCreateApplicationResponse data(Application data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Application getData() { return data; } @@ -88,14 +88,13 @@ public UnitCreateApplicationResponse addIncludedItem(ApplicationDocument include return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } diff --git a/src/main/java/unit/java/sdk/model/UnitCustomerResponse.java b/src/main/java/unit/java/sdk/model/UnitCustomerResponse.java index bb701bdc..4cdc815a 100644 --- a/src/main/java/unit/java/sdk/model/UnitCustomerResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCustomerResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCustomerResponse */ @JsonPropertyOrder({ UnitCustomerResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCustomerResponse { public static final String JSON_PROPERTY_DATA = "data"; private Customer data; @@ -48,14 +49,13 @@ public UnitCustomerResponse data(Customer data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Customer getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitCustomerTokenResponse.java b/src/main/java/unit/java/sdk/model/UnitCustomerTokenResponse.java index e6c8f274..d29c2c41 100644 --- a/src/main/java/unit/java/sdk/model/UnitCustomerTokenResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCustomerTokenResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCustomerTokenResponse */ @JsonPropertyOrder({ UnitCustomerTokenResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCustomerTokenResponse { public static final String JSON_PROPERTY_DATA = "data"; private CustomerToken data; @@ -48,14 +49,13 @@ public UnitCustomerTokenResponse data(CustomerToken data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerToken getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitCustomerTokenVerificationResponse.java b/src/main/java/unit/java/sdk/model/UnitCustomerTokenVerificationResponse.java index 8a5acd0e..cb97329c 100644 --- a/src/main/java/unit/java/sdk/model/UnitCustomerTokenVerificationResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCustomerTokenVerificationResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCustomerTokenVerificationResponse */ @JsonPropertyOrder({ UnitCustomerTokenVerificationResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCustomerTokenVerificationResponse { public static final String JSON_PROPERTY_DATA = "data"; private CustomerTokenVerification data; @@ -48,14 +49,13 @@ public UnitCustomerTokenVerificationResponse data(CustomerTokenVerification data return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerTokenVerification getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitCustomersListResponse.java b/src/main/java/unit/java/sdk/model/UnitCustomersListResponse.java index a709ec20..99d950a8 100644 --- a/src/main/java/unit/java/sdk/model/UnitCustomersListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitCustomersListResponse.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitCustomersListResponse */ @@ -39,7 +40,7 @@ UnitCustomersListResponse.JSON_PROPERTY_DATA, UnitCustomersListResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitCustomersListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -63,14 +64,13 @@ public UnitCustomersListResponse addDataItem(Customer dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -88,14 +88,13 @@ public UnitCustomersListResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/UnitCardsListResponse.java b/src/main/java/unit/java/sdk/model/UnitDepositAccountResponse.java similarity index 80% rename from src/main/java/unit/java/sdk/model/UnitCardsListResponse.java rename to src/main/java/unit/java/sdk/model/UnitDepositAccountResponse.java index dc57636f..e4df68f5 100644 --- a/src/main/java/unit/java/sdk/model/UnitCardsListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitDepositAccountResponse.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.Card; +import unit.java.sdk.model.DepositAccount; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitCardsListResponse + * UnitDepositAccountResponse */ @JsonPropertyOrder({ - UnitCardsListResponse.JSON_PROPERTY_DATA + UnitDepositAccountResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitCardsListResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitDepositAccountResponse { public static final String JSON_PROPERTY_DATA = "data"; - private Card data; + private DepositAccount data; - public UnitCardsListResponse() { + public UnitDepositAccountResponse() { } - public UnitCardsListResponse data(Card data) { + public UnitDepositAccountResponse data(DepositAccount data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Card getData() { + public DepositAccount getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Card data) { + public void setData(DepositAccount data) { this.data = data; } /** - * Return true if this Unit_Cards_List_Response object is equal to o. + * Return true if this UnitDepositAccountResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitCardsListResponse unitCardsListResponse = (UnitCardsListResponse) o; - return Objects.equals(this.data, unitCardsListResponse.data); + UnitDepositAccountResponse unitDepositAccountResponse = (UnitDepositAccountResponse) o; + return Objects.equals(this.data, unitDepositAccountResponse.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitCardsListResponse {\n"); + sb.append("class UnitDepositAccountResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitDepositProductsResponse.java b/src/main/java/unit/java/sdk/model/UnitDepositProductsResponse.java new file mode 100644 index 00000000..12bc9e3a --- /dev/null +++ b/src/main/java/unit/java/sdk/model/UnitDepositProductsResponse.java @@ -0,0 +1,166 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import unit.java.sdk.model.DepositProduct; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * UnitDepositProductsResponse + */ +@JsonPropertyOrder({ + UnitDepositProductsResponse.JSON_PROPERTY_DATA +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitDepositProductsResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public UnitDepositProductsResponse() { + } + + public UnitDepositProductsResponse data(List data) { + this.data = data; + return this; + } + + public UnitDepositProductsResponse addDataItem(DepositProduct dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this UnitDepositProductsResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnitDepositProductsResponse unitDepositProductsResponse = (UnitDepositProductsResponse) o; + return Objects.equals(this.data, unitDepositProductsResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnitDepositProductsResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add(getData().get(i).toUrlQueryString(String.format("%sdata%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/UnitDisputeResponse.java b/src/main/java/unit/java/sdk/model/UnitDisputeResponse.java index 52a5fce2..d734ca70 100644 --- a/src/main/java/unit/java/sdk/model/UnitDisputeResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitDisputeResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitDisputeResponse */ @JsonPropertyOrder({ UnitDisputeResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitDisputeResponse { public static final String JSON_PROPERTY_DATA = "data"; private Dispute data; @@ -48,14 +49,13 @@ public UnitDisputeResponse data(Dispute data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Dispute getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitDocumentResponse.java b/src/main/java/unit/java/sdk/model/UnitDocumentResponse.java index 55eff536..f14a1b12 100644 --- a/src/main/java/unit/java/sdk/model/UnitDocumentResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitDocumentResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitDocumentResponse */ @JsonPropertyOrder({ UnitDocumentResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitDocumentResponse { public static final String JSON_PROPERTY_DATA = "data"; private ApplicationDocument data; @@ -48,14 +49,13 @@ public UnitDocumentResponse data(ApplicationDocument data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationDocument getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitErrorInner.java b/src/main/java/unit/java/sdk/model/UnitErrorInner.java index 5e90e2d2..8013a5ec 100644 --- a/src/main/java/unit/java/sdk/model/UnitErrorInner.java +++ b/src/main/java/unit/java/sdk/model/UnitErrorInner.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitErrorInner */ @@ -41,7 +42,7 @@ UnitErrorInner.JSON_PROPERTY_SOURCE, UnitErrorInner.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitErrorInner { public static final String JSON_PROPERTY_STATUS = "status"; private String status; @@ -72,14 +73,13 @@ public UnitErrorInner status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { return status; } @@ -97,14 +97,13 @@ public UnitErrorInner title(String title) { return this; } - /** + /** * Get title * @return title - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TITLE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTitle() { return title; } @@ -122,14 +121,13 @@ public UnitErrorInner code(String code) { return this; } - /** + /** * Get code * @return code - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCode() { return code; } @@ -147,14 +145,13 @@ public UnitErrorInner detail(String detail) { return this; } - /** + /** * Get detail * @return detail - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DETAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDetail() { return detail; } @@ -172,14 +169,13 @@ public UnitErrorInner details(String details) { return this; } - /** + /** * Get details * @return details - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DETAILS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDetails() { return details; } @@ -197,14 +193,13 @@ public UnitErrorInner source(UnitErrorInnerSource source) { return this; } - /** + /** * Get source * @return source - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UnitErrorInnerSource getSource() { return source; } @@ -222,14 +217,13 @@ public UnitErrorInner meta(Object meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getMeta() { return meta; } @@ -328,27 +322,27 @@ public String toUrlQueryString(String prefix) { // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `title` to the URL query string if (getTitle() != null) { - joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stitle%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTitle()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `code` to the URL query string if (getCode() != null) { - joiner.add(String.format("%scode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `detail` to the URL query string if (getDetail() != null) { - joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdetail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDetail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `details` to the URL query string if (getDetails() != null) { - joiner.add(String.format("%sdetails%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdetails%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDetails()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `source` to the URL query string @@ -358,7 +352,7 @@ public String toUrlQueryString(String prefix) { // add `meta` to the URL query string if (getMeta() != null) { - joiner.add(String.format("%smeta%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMeta()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%smeta%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMeta()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitErrorInnerSource.java b/src/main/java/unit/java/sdk/model/UnitErrorInnerSource.java index 2c9bdd76..5c82e625 100644 --- a/src/main/java/unit/java/sdk/model/UnitErrorInnerSource.java +++ b/src/main/java/unit/java/sdk/model/UnitErrorInnerSource.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitErrorInnerSource */ @JsonPropertyOrder({ UnitErrorInnerSource.JSON_PROPERTY_POINTER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitErrorInnerSource { public static final String JSON_PROPERTY_POINTER = "pointer"; private String pointer; @@ -47,14 +48,13 @@ public UnitErrorInnerSource pointer(String pointer) { return this; } - /** + /** * Get pointer * @return pointer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_POINTER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPointer() { return pointer; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `pointer` to the URL query string if (getPointer() != null) { - joiner.add(String.format("%spointer%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPointer()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spointer%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPointer()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitEventListResponse.java b/src/main/java/unit/java/sdk/model/UnitEventListResponse.java index 325146c2..6ac18d1e 100644 --- a/src/main/java/unit/java/sdk/model/UnitEventListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitEventListResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitEventListResponse */ @JsonPropertyOrder({ UnitEventListResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitEventListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitEventListResponse addDataItem(Event dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitEventResponse.java b/src/main/java/unit/java/sdk/model/UnitEventResponse.java index b0ff4cc9..b9a0ab13 100644 --- a/src/main/java/unit/java/sdk/model/UnitEventResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitEventResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitEventResponse */ @JsonPropertyOrder({ UnitEventResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitEventResponse { public static final String JSON_PROPERTY_DATA = "data"; private Event data; @@ -48,14 +49,13 @@ public UnitEventResponse data(Event data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Event getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitFeeResponse.java b/src/main/java/unit/java/sdk/model/UnitFeeResponse.java index 90ba887e..1bea0b4c 100644 --- a/src/main/java/unit/java/sdk/model/UnitFeeResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitFeeResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitFeeResponse */ @JsonPropertyOrder({ UnitFeeResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitFeeResponse { public static final String JSON_PROPERTY_DATA = "data"; private Fee data; @@ -48,14 +49,13 @@ public UnitFeeResponse data(Fee data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Fee getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitFreezeCardResponse.java b/src/main/java/unit/java/sdk/model/UnitFeeReversalResponse.java similarity index 81% rename from src/main/java/unit/java/sdk/model/UnitFreezeCardResponse.java rename to src/main/java/unit/java/sdk/model/UnitFeeReversalResponse.java index 14814470..4b5abd21 100644 --- a/src/main/java/unit/java/sdk/model/UnitFreezeCardResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitFeeReversalResponse.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.Card; +import unit.java.sdk.model.FeeReversal; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitFreezeCardResponse + * UnitFeeReversalResponse */ @JsonPropertyOrder({ - UnitFreezeCardResponse.JSON_PROPERTY_DATA + UnitFeeReversalResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitFreezeCardResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitFeeReversalResponse { public static final String JSON_PROPERTY_DATA = "data"; - private Card data; + private FeeReversal data; - public UnitFreezeCardResponse() { + public UnitFeeReversalResponse() { } - public UnitFreezeCardResponse data(Card data) { + public UnitFeeReversalResponse data(FeeReversal data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Card getData() { + public FeeReversal getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Card data) { + public void setData(FeeReversal data) { this.data = data; } /** - * Return true if this Unit__Freeze_Card_Response object is equal to o. + * Return true if this Unit_Fee_Reversal_Response object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitFreezeCardResponse unitFreezeCardResponse = (UnitFreezeCardResponse) o; - return Objects.equals(this.data, unitFreezeCardResponse.data); + UnitFeeReversalResponse unitFeeReversalResponse = (UnitFeeReversalResponse) o; + return Objects.equals(this.data, unitFeeReversalResponse.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitFreezeCardResponse {\n"); + sb.append("class UnitFeeReversalResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitFrontCheckDepositResponse.java b/src/main/java/unit/java/sdk/model/UnitFrontCheckDepositResponse.java index 7092ed85..2fb95763 100644 --- a/src/main/java/unit/java/sdk/model/UnitFrontCheckDepositResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitFrontCheckDepositResponse.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitFrontCheckDepositResponse */ @JsonPropertyOrder({ UnitFrontCheckDepositResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitFrontCheckDepositResponse { public static final String JSON_PROPERTY_DATA = "data"; private String data; @@ -47,14 +48,13 @@ public UnitFrontCheckDepositResponse data(String data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getData() { return data; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `data` to the URL query string if (getData() != null) { - joiner.add(String.format("%sdata%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getData()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdata%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getData()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitGetAccountLimitsResponse.java b/src/main/java/unit/java/sdk/model/UnitGetAccountLimitsResponse.java index 7a28961d..87dec189 100644 --- a/src/main/java/unit/java/sdk/model/UnitGetAccountLimitsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitGetAccountLimitsResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitGetAccountLimitsResponse */ @JsonPropertyOrder({ UnitGetAccountLimitsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitGetAccountLimitsResponse { public static final String JSON_PROPERTY_DATA = "data"; private Limits data; @@ -48,14 +49,13 @@ public UnitGetAccountLimitsResponse data(Limits data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Limits getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitInstitutionResponse.java b/src/main/java/unit/java/sdk/model/UnitInstitutionResponse.java index 7d1b135c..3e8c6aa4 100644 --- a/src/main/java/unit/java/sdk/model/UnitInstitutionResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitInstitutionResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitInstitutionResponse */ @JsonPropertyOrder({ UnitInstitutionResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitInstitutionResponse { public static final String JSON_PROPERTY_DATA = "data"; private Institution data; @@ -48,14 +49,13 @@ public UnitInstitutionResponse data(Institution data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Institution getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitListApplicationsResponse.java b/src/main/java/unit/java/sdk/model/UnitListApplicationsResponse.java index 18cc5d4b..0ae6c7e8 100644 --- a/src/main/java/unit/java/sdk/model/UnitListApplicationsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitListApplicationsResponse.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitListApplicationsResponse */ @@ -39,7 +40,7 @@ UnitListApplicationsResponse.JSON_PROPERTY_DATA, UnitListApplicationsResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitListApplicationsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -63,14 +64,13 @@ public UnitListApplicationsResponse addDataItem(Application dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -88,14 +88,13 @@ public UnitListApplicationsResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/UnitListAuthorizationRequestsResponse.java b/src/main/java/unit/java/sdk/model/UnitListAuthorizationRequestsResponse.java index da095967..2a14a174 100644 --- a/src/main/java/unit/java/sdk/model/UnitListAuthorizationRequestsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitListAuthorizationRequestsResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitListAuthorizationRequestsResponse */ @JsonPropertyOrder({ UnitListAuthorizationRequestsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitListAuthorizationRequestsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitListAuthorizationRequestsResponse addDataItem(AuthorizationRequest da return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitListAuthorizationsResponse.java b/src/main/java/unit/java/sdk/model/UnitListAuthorizationsResponse.java index 3a05444d..c0ad77a5 100644 --- a/src/main/java/unit/java/sdk/model/UnitListAuthorizationsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitListAuthorizationsResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitListAuthorizationsResponse */ @JsonPropertyOrder({ UnitListAuthorizationsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitListAuthorizationsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitListAuthorizationsResponse addDataItem(Authorization dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitListCheckDepositsResponse.java b/src/main/java/unit/java/sdk/model/UnitListCheckDepositResponse.java similarity index 83% rename from src/main/java/unit/java/sdk/model/UnitListCheckDepositsResponse.java rename to src/main/java/unit/java/sdk/model/UnitListCheckDepositResponse.java index 892fc160..ca6c14b2 100644 --- a/src/main/java/unit/java/sdk/model/UnitListCheckDepositsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitListCheckDepositResponse.java @@ -31,26 +31,27 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitListCheckDepositsResponse + * UnitListCheckDepositResponse */ @JsonPropertyOrder({ - UnitListCheckDepositsResponse.JSON_PROPERTY_DATA + UnitListCheckDepositResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitListCheckDepositsResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitListCheckDepositResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); - public UnitListCheckDepositsResponse() { + public UnitListCheckDepositResponse() { } - public UnitListCheckDepositsResponse data(List data) { + public UnitListCheckDepositResponse data(List data) { this.data = data; return this; } - public UnitListCheckDepositsResponse addDataItem(CheckDeposit dataItem) { + public UnitListCheckDepositResponse addDataItem(CheckDeposit dataItem) { if (this.data == null) { this.data = new ArrayList<>(); } @@ -58,14 +59,13 @@ public UnitListCheckDepositsResponse addDataItem(CheckDeposit dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -79,7 +79,7 @@ public void setData(List data) { /** - * Return true if this Unit_List_Check_Deposits_Response object is equal to o. + * Return true if this UnitListCheckDepositResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,8 +89,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitListCheckDepositsResponse unitListCheckDepositsResponse = (UnitListCheckDepositsResponse) o; - return Objects.equals(this.data, unitListCheckDepositsResponse.data); + UnitListCheckDepositResponse unitListCheckDepositResponse = (UnitListCheckDepositResponse) o; + return Objects.equals(this.data, unitListCheckDepositResponse.data); } @Override @@ -101,7 +101,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitListCheckDepositsResponse {\n"); + sb.append("class UnitListCheckDepositResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitListCheckPaymentsResponse.java b/src/main/java/unit/java/sdk/model/UnitListCheckPaymentsResponse.java index 65d431fa..895978e6 100644 --- a/src/main/java/unit/java/sdk/model/UnitListCheckPaymentsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitListCheckPaymentsResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitListCheckPaymentsResponse */ @JsonPropertyOrder({ UnitListCheckPaymentsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitListCheckPaymentsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitListCheckPaymentsResponse addDataItem(CheckPayment dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitListDocumentsResponse.java b/src/main/java/unit/java/sdk/model/UnitListDocumentsResponse.java index fc2878da..5a3978d3 100644 --- a/src/main/java/unit/java/sdk/model/UnitListDocumentsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitListDocumentsResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitListDocumentsResponse */ @JsonPropertyOrder({ UnitListDocumentsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitListDocumentsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitListDocumentsResponse addDataItem(ApplicationDocument dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitOrgApiTokensListResponse.java b/src/main/java/unit/java/sdk/model/UnitOrgApiTokensListResponse.java index dbd55f03..3a5635a9 100644 --- a/src/main/java/unit/java/sdk/model/UnitOrgApiTokensListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitOrgApiTokensListResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitOrgApiTokensListResponse */ @JsonPropertyOrder({ UnitOrgApiTokensListResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitOrgApiTokensListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitOrgApiTokensListResponse addDataItem(ApiToken dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitPaymentResponse.java b/src/main/java/unit/java/sdk/model/UnitPaymentResponse.java index b67425ec..43de0d5a 100644 --- a/src/main/java/unit/java/sdk/model/UnitPaymentResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitPaymentResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitPaymentResponse */ @JsonPropertyOrder({ UnitPaymentResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitPaymentResponse { public static final String JSON_PROPERTY_DATA = "data"; private Payment data; @@ -48,14 +49,13 @@ public UnitPaymentResponse data(Payment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Payment getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitPaymentResponseWithIncluded.java b/src/main/java/unit/java/sdk/model/UnitPaymentResponseWithIncluded.java index 33a53d50..49e18136 100644 --- a/src/main/java/unit/java/sdk/model/UnitPaymentResponseWithIncluded.java +++ b/src/main/java/unit/java/sdk/model/UnitPaymentResponseWithIncluded.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitPaymentResponseWithIncluded */ @@ -39,7 +40,7 @@ UnitPaymentResponseWithIncluded.JSON_PROPERTY_DATA, UnitPaymentResponseWithIncluded.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitPaymentResponseWithIncluded { public static final String JSON_PROPERTY_DATA = "data"; private Payment data; @@ -55,14 +56,13 @@ public UnitPaymentResponseWithIncluded data(Payment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Payment getData() { return data; } @@ -88,14 +88,13 @@ public UnitPaymentResponseWithIncluded addIncludedItem(IncludedResourceInner inc return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } diff --git a/src/main/java/unit/java/sdk/model/UnitPaymentsListResponse.java b/src/main/java/unit/java/sdk/model/UnitPaymentsListResponse.java index 47270cab..bf3f367a 100644 --- a/src/main/java/unit/java/sdk/model/UnitPaymentsListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitPaymentsListResponse.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitPaymentsListResponse */ @@ -41,7 +42,7 @@ UnitPaymentsListResponse.JSON_PROPERTY_INCLUDED, UnitPaymentsListResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitPaymentsListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -68,14 +69,13 @@ public UnitPaymentsListResponse addDataItem(Payment dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -101,14 +101,13 @@ public UnitPaymentsListResponse addIncludedItem(IncludedResourceInner includedIt return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } @@ -126,14 +125,13 @@ public UnitPaymentsListResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/UnitPinStatusResponse.java b/src/main/java/unit/java/sdk/model/UnitPinStatusResponse.java index 8165c742..fed5b765 100644 --- a/src/main/java/unit/java/sdk/model/UnitPinStatusResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitPinStatusResponse.java @@ -25,108 +25,46 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.UnitPinStatusResponseAttributes; +import unit.java.sdk.model.UnitPinStatusResponseData; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitPinStatusResponse */ @JsonPropertyOrder({ - UnitPinStatusResponse.JSON_PROPERTY_TYPE, - UnitPinStatusResponse.JSON_PROPERTY_ATTRIBUTES + UnitPinStatusResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitPinStatusResponse { - /** - * Gets or Sets type - */ - public enum TypeEnum { - PINSTATUS("pinStatus"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.PINSTATUS; - - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private UnitPinStatusResponseAttributes attributes; + public static final String JSON_PROPERTY_DATA = "data"; + private UnitPinStatusResponseData data; public UnitPinStatusResponse() { } - public UnitPinStatusResponse type(TypeEnum type) { - this.type = type; - return this; - } - - /** - * Get type - * @return type - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public TypeEnum getType() { - return type; - } - - - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setType(TypeEnum type) { - this.type = type; - } - - - public UnitPinStatusResponse attributes(UnitPinStatusResponseAttributes attributes) { - this.attributes = attributes; + public UnitPinStatusResponse data(UnitPinStatusResponseData data) { + this.data = data; return this; } - /** - * Get attributes - * @return attributes - **/ + /** + * Get data + * @return data + */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public UnitPinStatusResponseAttributes getAttributes() { - return attributes; + public UnitPinStatusResponseData getData() { + return data; } - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAttributes(UnitPinStatusResponseAttributes attributes) { - this.attributes = attributes; + public void setData(UnitPinStatusResponseData data) { + this.data = data; } @@ -142,21 +80,19 @@ public boolean equals(Object o) { return false; } UnitPinStatusResponse unitPinStatusResponse = (UnitPinStatusResponse) o; - return Objects.equals(this.type, unitPinStatusResponse.type) && - Objects.equals(this.attributes, unitPinStatusResponse.attributes); + return Objects.equals(this.data, unitPinStatusResponse.data); } @Override public int hashCode() { - return Objects.hash(type, attributes); + return Objects.hash(data); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UnitPinStatusResponse {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); } @@ -204,14 +140,9 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `type` to the URL query string - if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); - } - - // add `attributes` to the URL query string - if (getAttributes() != null) { - joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + // add `data` to the URL query string + if (getData() != null) { + joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitPinStatusResponseData.java b/src/main/java/unit/java/sdk/model/UnitPinStatusResponseData.java new file mode 100644 index 00000000..8f5b7577 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/UnitPinStatusResponseData.java @@ -0,0 +1,219 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.UnitPinStatusResponseDataAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * UnitPinStatusResponseData + */ +@JsonPropertyOrder({ + UnitPinStatusResponseData.JSON_PROPERTY_TYPE, + UnitPinStatusResponseData.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitPinStatusResponseData { + /** + * Gets or Sets type + */ + public enum TypeEnum { + PIN_STATUS("pinStatus"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type = TypeEnum.PIN_STATUS; + + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private UnitPinStatusResponseDataAttributes attributes; + + public UnitPinStatusResponseData() { + } + + public UnitPinStatusResponseData type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public UnitPinStatusResponseData attributes(UnitPinStatusResponseDataAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public UnitPinStatusResponseDataAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAttributes(UnitPinStatusResponseDataAttributes attributes) { + this.attributes = attributes; + } + + + /** + * Return true if this UnitPinStatusResponse_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnitPinStatusResponseData unitPinStatusResponseData = (UnitPinStatusResponseData) o; + return Objects.equals(this.type, unitPinStatusResponseData.type) && + Objects.equals(this.attributes, unitPinStatusResponseData.attributes); + } + + @Override + public int hashCode() { + return Objects.hash(type, attributes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnitPinStatusResponseData {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/UnitPinStatusResponseAttributes.java b/src/main/java/unit/java/sdk/model/UnitPinStatusResponseDataAttributes.java similarity index 81% rename from src/main/java/unit/java/sdk/model/UnitPinStatusResponseAttributes.java rename to src/main/java/unit/java/sdk/model/UnitPinStatusResponseDataAttributes.java index 37509096..e334c411 100644 --- a/src/main/java/unit/java/sdk/model/UnitPinStatusResponseAttributes.java +++ b/src/main/java/unit/java/sdk/model/UnitPinStatusResponseDataAttributes.java @@ -28,21 +28,22 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitPinStatusResponseAttributes + * UnitPinStatusResponseDataAttributes */ @JsonPropertyOrder({ - UnitPinStatusResponseAttributes.JSON_PROPERTY_STATUS + UnitPinStatusResponseDataAttributes.JSON_PROPERTY_STATUS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitPinStatusResponseAttributes { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitPinStatusResponseDataAttributes { /** * Gets or Sets status */ public enum StatusEnum { SET("Set"), - NOTSET("NotSet"); + NOT_SET("NotSet"); private String value; @@ -74,22 +75,21 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; - public UnitPinStatusResponseAttributes() { + public UnitPinStatusResponseDataAttributes() { } - public UnitPinStatusResponseAttributes status(StatusEnum status) { + public UnitPinStatusResponseDataAttributes status(StatusEnum status) { this.status = status; return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StatusEnum getStatus() { return status; } @@ -103,7 +103,7 @@ public void setStatus(StatusEnum status) { /** - * Return true if this UnitPinStatusResponse_attributes object is equal to o. + * Return true if this UnitPinStatusResponse_data_attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -113,8 +113,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitPinStatusResponseAttributes unitPinStatusResponseAttributes = (UnitPinStatusResponseAttributes) o; - return Objects.equals(this.status, unitPinStatusResponseAttributes.status); + UnitPinStatusResponseDataAttributes unitPinStatusResponseDataAttributes = (UnitPinStatusResponseDataAttributes) o; + return Objects.equals(this.status, unitPinStatusResponseDataAttributes.status); } @Override @@ -125,7 +125,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitPinStatusResponseAttributes {\n"); + sb.append("class UnitPinStatusResponseDataAttributes {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append("}"); return sb.toString(); @@ -176,7 +176,7 @@ public String toUrlQueryString(String prefix) { // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitReceivedPaymentListResponse.java b/src/main/java/unit/java/sdk/model/UnitReceivedPaymentListResponse.java index 4348be97..ea4251a0 100644 --- a/src/main/java/unit/java/sdk/model/UnitReceivedPaymentListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitReceivedPaymentListResponse.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitReceivedPaymentListResponse */ @@ -41,7 +42,7 @@ UnitReceivedPaymentListResponse.JSON_PROPERTY_INCLUDED, UnitReceivedPaymentListResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitReceivedPaymentListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -68,14 +69,13 @@ public UnitReceivedPaymentListResponse addDataItem(ReceivedPayment dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -101,14 +101,13 @@ public UnitReceivedPaymentListResponse addIncludedItem(IncludedResourceInner inc return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } @@ -126,14 +125,13 @@ public UnitReceivedPaymentListResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/UnitReceivedPaymentResponse.java b/src/main/java/unit/java/sdk/model/UnitReceivedPaymentResponse.java index f207bb91..c6b4920d 100644 --- a/src/main/java/unit/java/sdk/model/UnitReceivedPaymentResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitReceivedPaymentResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitReceivedPaymentResponse */ @JsonPropertyOrder({ UnitReceivedPaymentResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitReceivedPaymentResponse { public static final String JSON_PROPERTY_DATA = "data"; private ReceivedPayment data; @@ -48,14 +49,13 @@ public UnitReceivedPaymentResponse data(ReceivedPayment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReceivedPayment getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitReceivedPaymentResponseWithIncluded.java b/src/main/java/unit/java/sdk/model/UnitReceivedPaymentResponseWithIncluded.java index 4ee19d39..37e584ed 100644 --- a/src/main/java/unit/java/sdk/model/UnitReceivedPaymentResponseWithIncluded.java +++ b/src/main/java/unit/java/sdk/model/UnitReceivedPaymentResponseWithIncluded.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitReceivedPaymentResponseWithIncluded */ @@ -39,7 +40,7 @@ UnitReceivedPaymentResponseWithIncluded.JSON_PROPERTY_DATA, UnitReceivedPaymentResponseWithIncluded.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitReceivedPaymentResponseWithIncluded { public static final String JSON_PROPERTY_DATA = "data"; private ReceivedPayment data; @@ -55,14 +56,13 @@ public UnitReceivedPaymentResponseWithIncluded data(ReceivedPayment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ReceivedPayment getData() { return data; } @@ -88,14 +88,13 @@ public UnitReceivedPaymentResponseWithIncluded addIncludedItem(IncludedResourceI return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } diff --git a/src/main/java/unit/java/sdk/model/UnitRecurringPaymentListResponse.java b/src/main/java/unit/java/sdk/model/UnitRecurringPaymentListResponse.java index d87339f5..b9f0407c 100644 --- a/src/main/java/unit/java/sdk/model/UnitRecurringPaymentListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRecurringPaymentListResponse.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRecurringPaymentListResponse */ @@ -39,7 +40,7 @@ UnitRecurringPaymentListResponse.JSON_PROPERTY_DATA, UnitRecurringPaymentListResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRecurringPaymentListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -63,14 +64,13 @@ public UnitRecurringPaymentListResponse addDataItem(RecurringPayment dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -88,14 +88,13 @@ public UnitRecurringPaymentListResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/UnitRecurringPaymentResponse.java b/src/main/java/unit/java/sdk/model/UnitRecurringPaymentResponse.java index d45d32b9..42cbec63 100644 --- a/src/main/java/unit/java/sdk/model/UnitRecurringPaymentResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRecurringPaymentResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRecurringPaymentResponse */ @JsonPropertyOrder({ UnitRecurringPaymentResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRecurringPaymentResponse { public static final String JSON_PROPERTY_DATA = "data"; private RecurringPayment data; @@ -48,14 +49,13 @@ public UnitRecurringPaymentResponse data(RecurringPayment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringPayment getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitRecurringRepaymentResponse.java b/src/main/java/unit/java/sdk/model/UnitRecurringRepaymentResponse.java index f9253815..1d104560 100644 --- a/src/main/java/unit/java/sdk/model/UnitRecurringRepaymentResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRecurringRepaymentResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRecurringRepaymentResponse */ @JsonPropertyOrder({ UnitRecurringRepaymentResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRecurringRepaymentResponse { public static final String JSON_PROPERTY_DATA = "data"; private RecurringRepayment data; @@ -48,14 +49,13 @@ public UnitRecurringRepaymentResponse data(RecurringRepayment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecurringRepayment getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitRecurringRepaymentsListResponse.java b/src/main/java/unit/java/sdk/model/UnitRecurringRepaymentsListResponse.java index 9e9ce9a5..20270146 100644 --- a/src/main/java/unit/java/sdk/model/UnitRecurringRepaymentsListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRecurringRepaymentsListResponse.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRecurringRepaymentsListResponse */ @@ -39,7 +40,7 @@ UnitRecurringRepaymentsListResponse.JSON_PROPERTY_DATA, UnitRecurringRepaymentsListResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRecurringRepaymentsListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -63,14 +64,13 @@ public UnitRecurringRepaymentsListResponse addDataItem(RecurringRepayment dataIt return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -88,14 +88,13 @@ public UnitRecurringRepaymentsListResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponse.java b/src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponse.java index 7acbfec4..5d9145ec 100644 --- a/src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRepaymentInformationResponse.java @@ -25,45 +25,45 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.UnitRepaymentInformationResponseData; +import unit.java.sdk.model.RepaymentInformation; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRepaymentInformationResponse */ @JsonPropertyOrder({ UnitRepaymentInformationResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRepaymentInformationResponse { public static final String JSON_PROPERTY_DATA = "data"; - private UnitRepaymentInformationResponseData data; + private RepaymentInformation data; public UnitRepaymentInformationResponse() { } - public UnitRepaymentInformationResponse data(UnitRepaymentInformationResponseData data) { + public UnitRepaymentInformationResponse data(RepaymentInformation data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public UnitRepaymentInformationResponseData getData() { + public RepaymentInformation getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(UnitRepaymentInformationResponseData data) { + public void setData(RepaymentInformation data) { this.data = data; } diff --git a/src/main/java/unit/java/sdk/model/UnitRepaymentResponse.java b/src/main/java/unit/java/sdk/model/UnitRepaymentResponse.java index 702417f9..76a28b79 100644 --- a/src/main/java/unit/java/sdk/model/UnitRepaymentResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRepaymentResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRepaymentResponse */ @JsonPropertyOrder({ UnitRepaymentResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRepaymentResponse { public static final String JSON_PROPERTY_DATA = "data"; private Repayment data; @@ -48,14 +49,13 @@ public UnitRepaymentResponse data(Repayment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Repayment getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitRepaymentsListResponse.java b/src/main/java/unit/java/sdk/model/UnitRepaymentsListResponse.java index fbde1877..d798cb0f 100644 --- a/src/main/java/unit/java/sdk/model/UnitRepaymentsListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRepaymentsListResponse.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRepaymentsListResponse */ @@ -39,7 +40,7 @@ UnitRepaymentsListResponse.JSON_PROPERTY_DATA, UnitRepaymentsListResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRepaymentsListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -63,14 +64,13 @@ public UnitRepaymentsListResponse addDataItem(Repayment dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -88,14 +88,13 @@ public UnitRepaymentsListResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/UnitReportStolenCardResponse.java b/src/main/java/unit/java/sdk/model/UnitReportStolenCardResponse.java deleted file mode 100644 index ce0d322e..00000000 --- a/src/main/java/unit/java/sdk/model/UnitReportStolenCardResponse.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Unit OpenAPI specifications - * An OpenAPI specifications for unit-sdk clients - * - * The version of the OpenAPI document: 0.1.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package unit.java.sdk.model; - -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.util.StringJoiner; -import java.util.Objects; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import unit.java.sdk.model.Card; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - - -/** - * UnitReportStolenCardResponse - */ -@JsonPropertyOrder({ - UnitReportStolenCardResponse.JSON_PROPERTY_DATA -}) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitReportStolenCardResponse { - public static final String JSON_PROPERTY_DATA = "data"; - private Card data; - - public UnitReportStolenCardResponse() { - } - - public UnitReportStolenCardResponse data(Card data) { - this.data = data; - return this; - } - - /** - * Get data - * @return data - **/ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Card getData() { - return data; - } - - - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Card data) { - this.data = data; - } - - - /** - * Return true if this Unit_Report_Stolen_Card_Response object is equal to o. - */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UnitReportStolenCardResponse unitReportStolenCardResponse = (UnitReportStolenCardResponse) o; - return Objects.equals(this.data, unitReportStolenCardResponse.data); - } - - @Override - public int hashCode() { - return Objects.hash(data); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UnitReportStolenCardResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - /** - * Convert the instance into URL query string. - * - * @return URL query string - */ - public String toUrlQueryString() { - return toUrlQueryString(null); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - String suffix = ""; - String containerSuffix = ""; - String containerPrefix = ""; - if (prefix == null) { - // style=form, explode=true, e.g. /pet?name=cat&type=manx - prefix = ""; - } else { - // deepObject style e.g. /pet?id[name]=cat&id[type]=manx - prefix = prefix + "["; - suffix = "]"; - containerSuffix = "]"; - containerPrefix = "["; - } - - StringJoiner joiner = new StringJoiner("&"); - - // add `data` to the URL query string - if (getData() != null) { - joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); - } - - return joiner.toString(); - } -} - diff --git a/src/main/java/unit/java/sdk/model/UnitConfirmCheckDepositResponse.java b/src/main/java/unit/java/sdk/model/UnitReturnedReceivedAchTransactionResponse.java similarity index 74% rename from src/main/java/unit/java/sdk/model/UnitConfirmCheckDepositResponse.java rename to src/main/java/unit/java/sdk/model/UnitReturnedReceivedAchTransactionResponse.java index 2f14d8d1..f58b0bb5 100644 --- a/src/main/java/unit/java/sdk/model/UnitConfirmCheckDepositResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitReturnedReceivedAchTransactionResponse.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.CheckDeposit; +import unit.java.sdk.model.ReturnedReceivedAchTransaction; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitConfirmCheckDepositResponse + * UnitReturnedReceivedAchTransactionResponse */ @JsonPropertyOrder({ - UnitConfirmCheckDepositResponse.JSON_PROPERTY_DATA + UnitReturnedReceivedAchTransactionResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitConfirmCheckDepositResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitReturnedReceivedAchTransactionResponse { public static final String JSON_PROPERTY_DATA = "data"; - private CheckDeposit data; + private ReturnedReceivedAchTransaction data; - public UnitConfirmCheckDepositResponse() { + public UnitReturnedReceivedAchTransactionResponse() { } - public UnitConfirmCheckDepositResponse data(CheckDeposit data) { + public UnitReturnedReceivedAchTransactionResponse data(ReturnedReceivedAchTransaction data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public CheckDeposit getData() { + public ReturnedReceivedAchTransaction getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(CheckDeposit data) { + public void setData(ReturnedReceivedAchTransaction data) { this.data = data; } /** - * Return true if this Unit_Confirm_Check_Deposit_Response object is equal to o. + * Return true if this UnitReturnedReceivedAchTransactionResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitConfirmCheckDepositResponse unitConfirmCheckDepositResponse = (UnitConfirmCheckDepositResponse) o; - return Objects.equals(this.data, unitConfirmCheckDepositResponse.data); + UnitReturnedReceivedAchTransactionResponse unitReturnedReceivedAchTransactionResponse = (UnitReturnedReceivedAchTransactionResponse) o; + return Objects.equals(this.data, unitReturnedReceivedAchTransactionResponse.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitConfirmCheckDepositResponse {\n"); + sb.append("class UnitReturnedReceivedAchTransactionResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitRewardResponse.java b/src/main/java/unit/java/sdk/model/UnitRewardResponse.java index 16b8de41..7d3982fa 100644 --- a/src/main/java/unit/java/sdk/model/UnitRewardResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRewardResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRewardResponse */ @JsonPropertyOrder({ UnitRewardResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRewardResponse { public static final String JSON_PROPERTY_DATA = "data"; private Reward data; @@ -48,14 +49,13 @@ public UnitRewardResponse data(Reward data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Reward getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitRewardsListResponse.java b/src/main/java/unit/java/sdk/model/UnitRewardsListResponse.java index df4a1762..64d90b58 100644 --- a/src/main/java/unit/java/sdk/model/UnitRewardsListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitRewardsListResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitRewardsListResponse */ @JsonPropertyOrder({ UnitRewardsListResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitRewardsListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitRewardsListResponse addDataItem(Reward dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitStatementsResponse.java b/src/main/java/unit/java/sdk/model/UnitStatementsResponse.java index 746259dd..8144d2a2 100644 --- a/src/main/java/unit/java/sdk/model/UnitStatementsResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitStatementsResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitStatementsResponse */ @JsonPropertyOrder({ UnitStatementsResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitStatementsResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitStatementsResponse addDataItem(Statement dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitStoreLocationsListResponse.java b/src/main/java/unit/java/sdk/model/UnitStoreLocationsListResponse.java new file mode 100644 index 00000000..c81583c2 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/UnitStoreLocationsListResponse.java @@ -0,0 +1,202 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import unit.java.sdk.model.PaginationMeta; +import unit.java.sdk.model.StoreLocation; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * UnitStoreLocationsListResponse + */ +@JsonPropertyOrder({ + UnitStoreLocationsListResponse.JSON_PROPERTY_DATA, + UnitStoreLocationsListResponse.JSON_PROPERTY_META +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitStoreLocationsListResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = new ArrayList<>(); + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public UnitStoreLocationsListResponse() { + } + + public UnitStoreLocationsListResponse data(List data) { + this.data = data; + return this; + } + + public UnitStoreLocationsListResponse addDataItem(StoreLocation dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public UnitStoreLocationsListResponse meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this UnitStoreLocationsListResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnitStoreLocationsListResponse unitStoreLocationsListResponse = (UnitStoreLocationsListResponse) o; + return Objects.equals(this.data, unitStoreLocationsListResponse.data) && + Objects.equals(this.meta, unitStoreLocationsListResponse.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnitStoreLocationsListResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `data` to the URL query string + if (getData() != null) { + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add(getData().get(i).toUrlQueryString(String.format("%sdata%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + // add `meta` to the URL query string + if (getMeta() != null) { + joiner.add(getMeta().toUrlQueryString(prefix + "meta" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/UnitCloseCardResponse.java b/src/main/java/unit/java/sdk/model/UnitTaxFormResponse.java similarity index 82% rename from src/main/java/unit/java/sdk/model/UnitCloseCardResponse.java rename to src/main/java/unit/java/sdk/model/UnitTaxFormResponse.java index 3813e262..eabd916f 100644 --- a/src/main/java/unit/java/sdk/model/UnitCloseCardResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitTaxFormResponse.java @@ -25,51 +25,51 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.Card; +import unit.java.sdk.model.TaxForm; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitCloseCardResponse + * UnitTaxFormResponse */ @JsonPropertyOrder({ - UnitCloseCardResponse.JSON_PROPERTY_DATA + UnitTaxFormResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitCloseCardResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitTaxFormResponse { public static final String JSON_PROPERTY_DATA = "data"; - private Card data; + private TaxForm data; - public UnitCloseCardResponse() { + public UnitTaxFormResponse() { } - public UnitCloseCardResponse data(Card data) { + public UnitTaxFormResponse data(TaxForm data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Card getData() { + public TaxForm getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Card data) { + public void setData(TaxForm data) { this.data = data; } /** - * Return true if this Unit_Close_Card_Response object is equal to o. + * Return true if this Unit_Tax_Form_Response object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitCloseCardResponse unitCloseCardResponse = (UnitCloseCardResponse) o; - return Objects.equals(this.data, unitCloseCardResponse.data); + UnitTaxFormResponse unitTaxFormResponse = (UnitTaxFormResponse) o; + return Objects.equals(this.data, unitTaxFormResponse.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitCloseCardResponse {\n"); + sb.append("class UnitTaxFormResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitUnfreezeCardResponse.java b/src/main/java/unit/java/sdk/model/UnitTaxFormsListResponse.java similarity index 70% rename from src/main/java/unit/java/sdk/model/UnitUnfreezeCardResponse.java rename to src/main/java/unit/java/sdk/model/UnitTaxFormsListResponse.java index cfc1261b..a661601f 100644 --- a/src/main/java/unit/java/sdk/model/UnitUnfreezeCardResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitTaxFormsListResponse.java @@ -24,52 +24,62 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Arrays; -import unit.java.sdk.model.Card; +import java.util.List; +import unit.java.sdk.model.TaxForm; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * UnitUnfreezeCardResponse + * UnitTaxFormsListResponse */ @JsonPropertyOrder({ - UnitUnfreezeCardResponse.JSON_PROPERTY_DATA + UnitTaxFormsListResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class UnitUnfreezeCardResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitTaxFormsListResponse { public static final String JSON_PROPERTY_DATA = "data"; - private Card data; + private List data = new ArrayList<>(); - public UnitUnfreezeCardResponse() { + public UnitTaxFormsListResponse() { } - public UnitUnfreezeCardResponse data(Card data) { + public UnitTaxFormsListResponse data(List data) { this.data = data; return this; } - /** + public UnitTaxFormsListResponse addDataItem(TaxForm dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Card getData() { + public List getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(Card data) { + public void setData(List data) { this.data = data; } /** - * Return true if this Unit__Unfreeze_Card_Response object is equal to o. + * Return true if this Unit_Tax_Forms_List_Response object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +89,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - UnitUnfreezeCardResponse unitUnfreezeCardResponse = (UnitUnfreezeCardResponse) o; - return Objects.equals(this.data, unitUnfreezeCardResponse.data); + UnitTaxFormsListResponse unitTaxFormsListResponse = (UnitTaxFormsListResponse) o; + return Objects.equals(this.data, unitTaxFormsListResponse.data); } @Override @@ -91,7 +101,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class UnitUnfreezeCardResponse {\n"); + sb.append("class UnitTaxFormsListResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); @@ -142,7 +152,12 @@ public String toUrlQueryString(String prefix) { // add `data` to the URL query string if (getData() != null) { - joiner.add(getData().toUrlQueryString(prefix + "data" + suffix)); + for (int i = 0; i < getData().size(); i++) { + if (getData().get(i) != null) { + joiner.add(getData().get(i).toUrlQueryString(String.format("%sdata%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitTransactionResponse.java b/src/main/java/unit/java/sdk/model/UnitTransactionResponse.java index 05d6ef13..5d312043 100644 --- a/src/main/java/unit/java/sdk/model/UnitTransactionResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitTransactionResponse.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitTransactionResponse */ @JsonPropertyOrder({ UnitTransactionResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitTransactionResponse { public static final String JSON_PROPERTY_DATA = "data"; private Transaction data; @@ -48,14 +49,13 @@ public UnitTransactionResponse data(Transaction data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Transaction getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UnitTransactionResponseWithIncludedResource.java b/src/main/java/unit/java/sdk/model/UnitTransactionResponseWithIncludedResource.java index 94dc31d6..32274d4e 100644 --- a/src/main/java/unit/java/sdk/model/UnitTransactionResponseWithIncludedResource.java +++ b/src/main/java/unit/java/sdk/model/UnitTransactionResponseWithIncludedResource.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitTransactionResponseWithIncludedResource */ @@ -39,7 +40,7 @@ UnitTransactionResponseWithIncludedResource.JSON_PROPERTY_DATA, UnitTransactionResponseWithIncludedResource.JSON_PROPERTY_INCLUDED }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitTransactionResponseWithIncludedResource { public static final String JSON_PROPERTY_DATA = "data"; private Transaction data; @@ -55,14 +56,13 @@ public UnitTransactionResponseWithIncludedResource data(Transaction data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Transaction getData() { return data; } @@ -88,14 +88,13 @@ public UnitTransactionResponseWithIncludedResource addIncludedItem(IncludedResou return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } diff --git a/src/main/java/unit/java/sdk/model/UnitTransactionsListResponse.java b/src/main/java/unit/java/sdk/model/UnitTransactionsListResponse.java index 318233fd..0f44bc2f 100644 --- a/src/main/java/unit/java/sdk/model/UnitTransactionsListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitTransactionsListResponse.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitTransactionsListResponse */ @@ -41,7 +42,7 @@ UnitTransactionsListResponse.JSON_PROPERTY_INCLUDED, UnitTransactionsListResponse.JSON_PROPERTY_META }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitTransactionsListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -68,14 +69,13 @@ public UnitTransactionsListResponse addDataItem(Transaction dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } @@ -101,14 +101,13 @@ public UnitTransactionsListResponse addIncludedItem(IncludedResourceInner includ return this; } - /** + /** * Get included * @return included - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_INCLUDED) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { return included; } @@ -126,14 +125,13 @@ public UnitTransactionsListResponse meta(PaginationMeta meta) { return this; } - /** + /** * Get meta * @return meta - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_META) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PaginationMeta getMeta() { return meta; } diff --git a/src/main/java/unit/java/sdk/model/WebhookResponse.java b/src/main/java/unit/java/sdk/model/UnitWebhookResponse.java similarity index 85% rename from src/main/java/unit/java/sdk/model/WebhookResponse.java rename to src/main/java/unit/java/sdk/model/UnitWebhookResponse.java index 7cef8cb2..7282d391 100644 --- a/src/main/java/unit/java/sdk/model/WebhookResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitWebhookResponse.java @@ -29,33 +29,33 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** - * WebhookResponse + * UnitWebhookResponse */ @JsonPropertyOrder({ - WebhookResponse.JSON_PROPERTY_DATA + UnitWebhookResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") -public class WebhookResponse { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UnitWebhookResponse { public static final String JSON_PROPERTY_DATA = "data"; private Webhook data; - public WebhookResponse() { + public UnitWebhookResponse() { } - public WebhookResponse data(Webhook data) { + public UnitWebhookResponse data(Webhook data) { this.data = data; return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Webhook getData() { return data; } @@ -69,7 +69,7 @@ public void setData(Webhook data) { /** - * Return true if this WebhookResponse object is equal to o. + * Return true if this UnitWebhookResponse object is equal to o. */ @Override public boolean equals(Object o) { @@ -79,8 +79,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - WebhookResponse webhookResponse = (WebhookResponse) o; - return Objects.equals(this.data, webhookResponse.data); + UnitWebhookResponse unitWebhookResponse = (UnitWebhookResponse) o; + return Objects.equals(this.data, unitWebhookResponse.data); } @Override @@ -91,7 +91,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class WebhookResponse {\n"); + sb.append("class UnitWebhookResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/unit/java/sdk/model/UnitWebhooksListResponse.java b/src/main/java/unit/java/sdk/model/UnitWebhooksListResponse.java index 5ffa5ee6..d1c5c3d6 100644 --- a/src/main/java/unit/java/sdk/model/UnitWebhooksListResponse.java +++ b/src/main/java/unit/java/sdk/model/UnitWebhooksListResponse.java @@ -31,13 +31,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UnitWebhooksListResponse */ @JsonPropertyOrder({ UnitWebhooksListResponse.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UnitWebhooksListResponse { public static final String JSON_PROPERTY_DATA = "data"; private List data = new ArrayList<>(); @@ -58,14 +59,13 @@ public UnitWebhooksListResponse addDataItem(Webhook dataItem) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateAccountRequest.java b/src/main/java/unit/java/sdk/model/UpdateAccountRequest.java index d419b8a1..c608a554 100644 --- a/src/main/java/unit/java/sdk/model/UpdateAccountRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateAccountRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateAccountRequest */ @JsonPropertyOrder({ UpdateAccountRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateAccountRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateAccountRequestData data; @@ -48,14 +49,13 @@ public UpdateAccountRequest data(UpdateAccountRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateAccountRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateAccountRequestData.java b/src/main/java/unit/java/sdk/model/UpdateAccountRequestData.java index 1a99a4a1..89528484 100644 --- a/src/main/java/unit/java/sdk/model/UpdateAccountRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateAccountRequestData.java @@ -54,7 +54,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdateAccountRequestData.UpdateAccountRequestDataDeserializer.class) @JsonSerialize(using = UpdateAccountRequestData.UpdateAccountRequestDataSerializer.class) public class UpdateAccountRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/UpdateAchPayment.java b/src/main/java/unit/java/sdk/model/UpdateAchPayment.java index b34813a5..80c86972 100644 --- a/src/main/java/unit/java/sdk/model/UpdateAchPayment.java +++ b/src/main/java/unit/java/sdk/model/UpdateAchPayment.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateAchPayment */ @@ -36,13 +37,13 @@ UpdateAchPayment.JSON_PROPERTY_TYPE, UpdateAchPayment.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateAchPayment { /** * Gets or Sets type */ public enum TypeEnum { - ACHPAYMENT("achPayment"); + ACH_PAYMENT("achPayment"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ACHPAYMENT; + private TypeEnum type = TypeEnum.ACH_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateAchPaymentAttributes attributes; @@ -85,14 +86,13 @@ public UpdateAchPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateAchPayment attributes(UpdateAchPaymentAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateAchPaymentAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateAchPaymentAttributes.java b/src/main/java/unit/java/sdk/model/UpdateAchPaymentAttributes.java index 4ddfb11b..8cd4977d 100644 --- a/src/main/java/unit/java/sdk/model/UpdateAchPaymentAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateAchPaymentAttributes.java @@ -30,17 +30,22 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateAchPaymentAttributes */ @JsonPropertyOrder({ - UpdateAchPaymentAttributes.JSON_PROPERTY_TAGS + UpdateAchPaymentAttributes.JSON_PROPERTY_TAGS, + UpdateAchPaymentAttributes.JSON_PROPERTY_CLEARING_DAYS_OVERRIDE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateAchPaymentAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); + public static final String JSON_PROPERTY_CLEARING_DAYS_OVERRIDE = "clearingDaysOverride"; + private Integer clearingDaysOverride; + public UpdateAchPaymentAttributes() { } @@ -57,14 +62,13 @@ public UpdateAchPaymentAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -77,8 +81,32 @@ public void setTags(Map tags) { } + public UpdateAchPaymentAttributes clearingDaysOverride(Integer clearingDaysOverride) { + this.clearingDaysOverride = clearingDaysOverride; + return this; + } + + /** + * Get clearingDaysOverride + * @return clearingDaysOverride + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CLEARING_DAYS_OVERRIDE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getClearingDaysOverride() { + return clearingDaysOverride; + } + + + @JsonProperty(JSON_PROPERTY_CLEARING_DAYS_OVERRIDE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setClearingDaysOverride(Integer clearingDaysOverride) { + this.clearingDaysOverride = clearingDaysOverride; + } + + /** - * Return true if this UpdateAchPayment_attributes object is equal to o. + * Return true if this Update_Ach_Payment_Attributes object is equal to o. */ @Override public boolean equals(Object o) { @@ -89,12 +117,13 @@ public boolean equals(Object o) { return false; } UpdateAchPaymentAttributes updateAchPaymentAttributes = (UpdateAchPaymentAttributes) o; - return Objects.equals(this.tags, updateAchPaymentAttributes.tags); + return Objects.equals(this.tags, updateAchPaymentAttributes.tags) && + Objects.equals(this.clearingDaysOverride, updateAchPaymentAttributes.clearingDaysOverride); } @Override public int hashCode() { - return Objects.hash(tags); + return Objects.hash(tags, clearingDaysOverride); } @Override @@ -102,6 +131,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateAchPaymentAttributes {\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" clearingDaysOverride: ").append(toIndentedString(clearingDaysOverride)).append("\n"); sb.append("}"); return sb.toString(); } @@ -154,10 +184,15 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } + // add `clearingDaysOverride` to the URL query string + if (getClearingDaysOverride() != null) { + joiner.add(String.format("%sclearingDaysOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getClearingDaysOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + return joiner.toString(); } } diff --git a/src/main/java/unit/java/sdk/model/UpdateAchReceivedPayment.java b/src/main/java/unit/java/sdk/model/UpdateAchReceivedPayment.java index a118d1ee..1d2f27c3 100644 --- a/src/main/java/unit/java/sdk/model/UpdateAchReceivedPayment.java +++ b/src/main/java/unit/java/sdk/model/UpdateAchReceivedPayment.java @@ -25,10 +25,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.UpdateAchPaymentAttributes; +import unit.java.sdk.model.UpdateAchReceivedPaymentAttributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateAchReceivedPayment */ @@ -36,13 +37,13 @@ UpdateAchReceivedPayment.JSON_PROPERTY_TYPE, UpdateAchReceivedPayment.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateAchReceivedPayment { /** * Gets or Sets type */ public enum TypeEnum { - ACHRECEIVEDPAYMENT("achReceivedPayment"); + ACH_RECEIVED_PAYMENT("achReceivedPayment"); private String value; @@ -72,10 +73,10 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.ACHRECEIVEDPAYMENT; + private TypeEnum type = TypeEnum.ACH_RECEIVED_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private UpdateAchPaymentAttributes attributes; + private UpdateAchReceivedPaymentAttributes attributes; public UpdateAchReceivedPayment() { } @@ -85,14 +86,13 @@ public UpdateAchReceivedPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -105,27 +105,26 @@ public void setType(TypeEnum type) { } - public UpdateAchReceivedPayment attributes(UpdateAchPaymentAttributes attributes) { + public UpdateAchReceivedPayment attributes(UpdateAchReceivedPaymentAttributes attributes) { this.attributes = attributes; return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public UpdateAchPaymentAttributes getAttributes() { + public UpdateAchReceivedPaymentAttributes getAttributes() { return attributes; } @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAttributes(UpdateAchPaymentAttributes attributes) { + public void setAttributes(UpdateAchReceivedPaymentAttributes attributes) { this.attributes = attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateAchReceivedPaymentAttributes.java b/src/main/java/unit/java/sdk/model/UpdateAchReceivedPaymentAttributes.java new file mode 100644 index 00000000..1eb1cb11 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/UpdateAchReceivedPaymentAttributes.java @@ -0,0 +1,164 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * UpdateAchReceivedPaymentAttributes + */ +@JsonPropertyOrder({ + UpdateAchReceivedPaymentAttributes.JSON_PROPERTY_TAGS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UpdateAchReceivedPaymentAttributes { + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + public UpdateAchReceivedPaymentAttributes() { + } + + public UpdateAchReceivedPaymentAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public UpdateAchReceivedPaymentAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { + this.tags = tags; + } + + + /** + * Return true if this Update_Ach_Received_Payment_Attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateAchReceivedPaymentAttributes updateAchReceivedPaymentAttributes = (UpdateAchReceivedPaymentAttributes) o; + return Objects.equals(this.tags, updateAchReceivedPaymentAttributes.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateAchReceivedPaymentAttributes {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/UpdateAchStopPayment.java b/src/main/java/unit/java/sdk/model/UpdateAchStopPayment.java index 4ac1b833..f619a01a 100644 --- a/src/main/java/unit/java/sdk/model/UpdateAchStopPayment.java +++ b/src/main/java/unit/java/sdk/model/UpdateAchStopPayment.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateAchStopPayment */ @@ -38,7 +39,7 @@ UpdateAchStopPayment.JSON_PROPERTY_TAGS, UpdateAchStopPayment.JSON_PROPERTY_EXPIRATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateAchStopPayment { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -62,14 +63,13 @@ public UpdateAchStopPayment putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -87,14 +87,13 @@ public UpdateAchStopPayment expiration(LocalDate expiration) { return this; } - /** + /** * Get expiration * @return expiration - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EXPIRATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getExpiration() { return expiration; } @@ -186,13 +185,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `expiration` to the URL query string if (getExpiration() != null) { - joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sexpiration%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getExpiration()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateApplicationRequest.java b/src/main/java/unit/java/sdk/model/UpdateApplicationRequest.java index 826eb0ef..1250e08b 100644 --- a/src/main/java/unit/java/sdk/model/UpdateApplicationRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateApplicationRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateApplicationRequest */ @JsonPropertyOrder({ UpdateApplicationRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateApplicationRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateApplicationRequestData data; @@ -48,14 +49,13 @@ public UpdateApplicationRequest data(UpdateApplicationRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateApplicationRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateApplicationRequestData.java b/src/main/java/unit/java/sdk/model/UpdateApplicationRequestData.java index 66e7e22f..7c049199 100644 --- a/src/main/java/unit/java/sdk/model/UpdateApplicationRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateApplicationRequestData.java @@ -57,7 +57,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdateApplicationRequestData.UpdateApplicationRequestDataDeserializer.class) @JsonSerialize(using = UpdateApplicationRequestData.UpdateApplicationRequestDataSerializer.class) public class UpdateApplicationRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/UpdateBookPayment.java b/src/main/java/unit/java/sdk/model/UpdateBookPayment.java index cc089964..8b867bca 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBookPayment.java +++ b/src/main/java/unit/java/sdk/model/UpdateBookPayment.java @@ -25,10 +25,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.UpdateAchPaymentAttributes; +import unit.java.sdk.model.UpdateBookPaymentAttributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBookPayment */ @@ -36,13 +37,13 @@ UpdateBookPayment.JSON_PROPERTY_TYPE, UpdateBookPayment.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBookPayment { /** * Gets or Sets type */ public enum TypeEnum { - BOOKPAYMENT("bookPayment"); + BOOK_PAYMENT("bookPayment"); private String value; @@ -72,10 +73,10 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BOOKPAYMENT; + private TypeEnum type = TypeEnum.BOOK_PAYMENT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private UpdateAchPaymentAttributes attributes; + private UpdateBookPaymentAttributes attributes; public UpdateBookPayment() { } @@ -85,14 +86,13 @@ public UpdateBookPayment type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -105,27 +105,26 @@ public void setType(TypeEnum type) { } - public UpdateBookPayment attributes(UpdateAchPaymentAttributes attributes) { + public UpdateBookPayment attributes(UpdateBookPaymentAttributes attributes) { this.attributes = attributes; return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public UpdateAchPaymentAttributes getAttributes() { + public UpdateBookPaymentAttributes getAttributes() { return attributes; } @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setAttributes(UpdateAchPaymentAttributes attributes) { + public void setAttributes(UpdateBookPaymentAttributes attributes) { this.attributes = attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBookPaymentAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBookPaymentAttributes.java new file mode 100644 index 00000000..819b90a4 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/UpdateBookPaymentAttributes.java @@ -0,0 +1,164 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * UpdateBookPaymentAttributes + */ +@JsonPropertyOrder({ + UpdateBookPaymentAttributes.JSON_PROPERTY_TAGS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class UpdateBookPaymentAttributes { + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + public UpdateBookPaymentAttributes() { + } + + public UpdateBookPaymentAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public UpdateBookPaymentAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTags(Map tags) { + this.tags = tags; + } + + + /** + * Return true if this Update_Book_Payment_Attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateBookPaymentAttributes updateBookPaymentAttributes = (UpdateBookPaymentAttributes) o; + return Objects.equals(this.tags, updateBookPaymentAttributes.tags); + } + + @Override + public int hashCode() { + return Objects.hash(tags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateBookPaymentAttributes {\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/UpdateBookTransaction.java b/src/main/java/unit/java/sdk/model/UpdateBookTransaction.java index 8aa249c8..0a929a4d 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBookTransaction.java +++ b/src/main/java/unit/java/sdk/model/UpdateBookTransaction.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBookTransaction */ @@ -38,13 +39,13 @@ UpdateBookTransaction.JSON_PROPERTY_ATTRIBUTES, UpdateBookTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBookTransaction { /** * Gets or Sets type */ public enum TypeEnum { - BOOKTRANSACTION("bookTransaction"); + BOOK_TRANSACTION("bookTransaction"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BOOKTRANSACTION; + private TypeEnum type = TypeEnum.BOOK_TRANSACTION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBookTransactionAttributes attributes; @@ -90,14 +91,13 @@ public UpdateBookTransaction type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public UpdateBookTransaction attributes(UpdateBookTransactionAttributes attribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBookTransactionAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public UpdateBookTransaction relationships(UpdateTransactionRelationships relati return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UpdateTransactionRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBookTransactionAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBookTransactionAttributes.java index 11a18753..f55df1c4 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBookTransactionAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateBookTransactionAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBookTransactionAttributes */ @@ -37,7 +38,7 @@ UpdateBookTransactionAttributes.JSON_PROPERTY_TAGS, UpdateBookTransactionAttributes.JSON_PROPERTY_SUMMARY }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBookTransactionAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -61,14 +62,13 @@ public UpdateBookTransactionAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -86,14 +86,13 @@ public UpdateBookTransactionAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSummary() { return summary; } @@ -185,13 +184,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessApplication.java b/src/main/java/unit/java/sdk/model/UpdateBusinessApplication.java index 4e58eca4..3dfedf6c 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessApplication.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessApplication.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessApplication */ @@ -36,13 +37,13 @@ UpdateBusinessApplication.JSON_PROPERTY_TYPE, UpdateBusinessApplication.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessApplication { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSAPPLICATION("businessApplication"); + BUSINESS_APPLICATION("businessApplication"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSAPPLICATION; + private TypeEnum type = TypeEnum.BUSINESS_APPLICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessApplicationAttributes attributes; @@ -85,14 +86,13 @@ public UpdateBusinessApplication type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateBusinessApplication attributes(UpdateBusinessApplicationAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessApplicationAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationAttributes.java index f58fded4..7d5b9704 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationAttributes.java @@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessApplicationAttributes */ @@ -50,7 +51,7 @@ UpdateBusinessApplicationAttributes.JSON_PROPERTY_WEBSITE, UpdateBusinessApplicationAttributes.JSON_PROPERTY_BUSINESS_VERTICAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessApplicationAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -95,14 +96,13 @@ public UpdateBusinessApplicationAttributes putTagsItem(String key, String tagsIt return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -120,14 +120,13 @@ public UpdateBusinessApplicationAttributes annualRevenue(BusinessAnnualRevenue a return this; } - /** + /** * Get annualRevenue * @return annualRevenue - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_REVENUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessAnnualRevenue getAnnualRevenue() { return annualRevenue; } @@ -145,14 +144,13 @@ public UpdateBusinessApplicationAttributes numberOfEmployees(BusinessNumberOfEmp return this; } - /** + /** * Get numberOfEmployees * @return numberOfEmployees - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessNumberOfEmployees getNumberOfEmployees() { return numberOfEmployees; } @@ -170,14 +168,13 @@ public UpdateBusinessApplicationAttributes cashFlow(CashFlow cashFlow) { return this; } - /** + /** * Get cashFlow * @return cashFlow - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CASH_FLOW) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CashFlow getCashFlow() { return cashFlow; } @@ -195,14 +192,13 @@ public UpdateBusinessApplicationAttributes yearOfIncorporation(String yearOfInco return this; } - /** + /** * Get yearOfIncorporation * @return yearOfIncorporation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_YEAR_OF_INCORPORATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getYearOfIncorporation() { return yearOfIncorporation; } @@ -228,14 +224,13 @@ public UpdateBusinessApplicationAttributes addCountriesOfOperationItem(String co return this; } - /** + /** * Get countriesOfOperation * @return countriesOfOperation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTRIES_OF_OPERATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCountriesOfOperation() { return countriesOfOperation; } @@ -253,14 +248,13 @@ public UpdateBusinessApplicationAttributes stockSymbol(String stockSymbol) { return this; } - /** + /** * Get stockSymbol * @return stockSymbol - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STOCK_SYMBOL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStockSymbol() { return stockSymbol; } @@ -278,14 +272,13 @@ public UpdateBusinessApplicationAttributes website(String website) { return this; } - /** + /** * Get website * @return website - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWebsite() { return website; } @@ -303,14 +296,13 @@ public UpdateBusinessApplicationAttributes businessVertical(BusinessVertical bus return this; } - /** + /** * Get businessVertical * @return businessVertical - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUSINESS_VERTICAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessVertical getBusinessVertical() { return businessVertical; } @@ -416,28 +408,28 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `annualRevenue` to the URL query string if (getAnnualRevenue() != null) { - joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `numberOfEmployees` to the URL query string if (getNumberOfEmployees() != null) { - joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `cashFlow` to the URL query string if (getCashFlow() != null) { - joiner.add(String.format("%scashFlow%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCashFlow()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scashFlow%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCashFlow()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `yearOfIncorporation` to the URL query string if (getYearOfIncorporation() != null) { - joiner.add(String.format("%syearOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getYearOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%syearOfIncorporation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getYearOfIncorporation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `countriesOfOperation` to the URL query string @@ -445,23 +437,23 @@ public String toUrlQueryString(String prefix) { for (int i = 0; i < getCountriesOfOperation().size(); i++) { joiner.add(String.format("%scountriesOfOperation%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix), - URLEncoder.encode(String.valueOf(getCountriesOfOperation().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + URLEncoder.encode(ApiClient.valueToString(getCountriesOfOperation().get(i)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `stockSymbol` to the URL query string if (getStockSymbol() != null) { - joiner.add(String.format("%sstockSymbol%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStockSymbol()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstockSymbol%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStockSymbol()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `website` to the URL query string if (getWebsite() != null) { - joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessVertical` to the URL query string if (getBusinessVertical() != null) { - joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationBeneficialOwner.java b/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationBeneficialOwner.java index 2fbde718..99ab989d 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationBeneficialOwner.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationBeneficialOwner.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessApplicationBeneficialOwner */ @@ -36,13 +37,13 @@ UpdateBusinessApplicationBeneficialOwner.JSON_PROPERTY_TYPE, UpdateBusinessApplicationBeneficialOwner.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessApplicationBeneficialOwner { /** * Gets or Sets type */ public enum TypeEnum { - BENEFICIALOWNER("beneficialOwner"); + BENEFICIAL_OWNER("beneficialOwner"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BENEFICIALOWNER; + private TypeEnum type = TypeEnum.BENEFICIAL_OWNER; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessApplicationBeneficialOwnerAttributes attributes; @@ -85,14 +86,13 @@ public UpdateBusinessApplicationBeneficialOwner type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateBusinessApplicationBeneficialOwner attributes(UpdateBusinessApplica return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessApplicationBeneficialOwnerAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationBeneficialOwnerAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationBeneficialOwnerAttributes.java index 629e3ddd..a9b2fa6d 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationBeneficialOwnerAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessApplicationBeneficialOwnerAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessApplicationBeneficialOwnerAttributes */ @@ -41,7 +42,7 @@ UpdateBusinessApplicationBeneficialOwnerAttributes.JSON_PROPERTY_SOURCE_OF_INCOME, UpdateBusinessApplicationBeneficialOwnerAttributes.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessApplicationBeneficialOwnerAttributes { public static final String JSON_PROPERTY_OCCUPATION = "occupation"; private Occupation occupation; @@ -63,14 +64,13 @@ public UpdateBusinessApplicationBeneficialOwnerAttributes occupation(Occupation return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -88,14 +88,13 @@ public UpdateBusinessApplicationBeneficialOwnerAttributes annualIncome(AnnualInc return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -113,14 +112,13 @@ public UpdateBusinessApplicationBeneficialOwnerAttributes sourceOfIncome(SourceO return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -138,14 +136,13 @@ public UpdateBusinessApplicationBeneficialOwnerAttributes relationships(Applicat return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ApplicationRelationship getRelationships() { return relationships; } @@ -238,17 +235,17 @@ public String toUrlQueryString(String prefix) { // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `relationships` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwner.java b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwner.java index 904b1352..c70e957c 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwner.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwner.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessBeneficialOwner */ @@ -38,13 +39,13 @@ UpdateBusinessBeneficialOwner.JSON_PROPERTY_ATTRIBUTES, UpdateBusinessBeneficialOwner.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessBeneficialOwner { /** * Gets or Sets type */ public enum TypeEnum { - BENEFICIALOWNER("beneficialOwner"); + BENEFICIAL_OWNER("beneficialOwner"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BENEFICIALOWNER; + private TypeEnum type = TypeEnum.BENEFICIAL_OWNER; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessBeneficialOwnerAttributes attributes; @@ -90,14 +91,13 @@ public UpdateBusinessBeneficialOwner type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public UpdateBusinessBeneficialOwner attributes(UpdateBusinessBeneficialOwnerAtt return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessBeneficialOwnerAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public UpdateBusinessBeneficialOwner relationships(UpdateBusinessBeneficialOwner return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessBeneficialOwnerRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerAttributes.java index 5481bf45..52a2cc0e 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessBeneficialOwnerAttributes */ @@ -39,7 +40,7 @@ UpdateBusinessBeneficialOwnerAttributes.JSON_PROPERTY_ANNUAL_INCOME, UpdateBusinessBeneficialOwnerAttributes.JSON_PROPERTY_SOURCE_OF_INCOME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessBeneficialOwnerAttributes { public static final String JSON_PROPERTY_OCCUPATION = "occupation"; private Occupation occupation; @@ -58,14 +59,13 @@ public UpdateBusinessBeneficialOwnerAttributes occupation(Occupation occupation) return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -83,14 +83,13 @@ public UpdateBusinessBeneficialOwnerAttributes annualIncome(AnnualIncome annualI return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -108,14 +107,13 @@ public UpdateBusinessBeneficialOwnerAttributes sourceOfIncome(SourceOfIncome sou return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -206,17 +204,17 @@ public String toUrlQueryString(String prefix) { // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRelationships.java b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRelationships.java index 65bacac9..36e9bbf2 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRelationships.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRelationships.java @@ -30,13 +30,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessBeneficialOwnerRelationships */ @JsonPropertyOrder({ UpdateBusinessBeneficialOwnerRelationships.JSON_PROPERTY_APPLICATION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessBeneficialOwnerRelationships { public static final String JSON_PROPERTY_APPLICATION = "application"; private ApplicationRelationship application; @@ -49,14 +50,13 @@ public UpdateBusinessBeneficialOwnerRelationships application(ApplicationRelatio return this; } - /** + /** * Get application * @return application - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_APPLICATION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ApplicationRelationship getApplication() { return application; } diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRequest.java b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRequest.java index 7ca52c57..0465c6ef 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessBeneficialOwnerRequest */ @JsonPropertyOrder({ UpdateBusinessBeneficialOwnerRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessBeneficialOwnerRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateBusinessBeneficialOwnerRequestData data; @@ -48,14 +49,13 @@ public UpdateBusinessBeneficialOwnerRequest data(UpdateBusinessBeneficialOwnerRe return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessBeneficialOwnerRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRequestData.java b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRequestData.java index 4f14532a..e42af16f 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessBeneficialOwnerRequestData.java @@ -54,7 +54,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdateBusinessBeneficialOwnerRequestData.UpdateBusinessBeneficialOwnerRequestDataDeserializer.class) @JsonSerialize(using = UpdateBusinessBeneficialOwnerRequestData.UpdateBusinessBeneficialOwnerRequestDataSerializer.class) public class UpdateBusinessBeneficialOwnerRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessCreditCard.java b/src/main/java/unit/java/sdk/model/UpdateBusinessCreditCard.java index 182ee0ee..3b7bcd5f 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessCreditCard.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessCreditCard.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessCreditCard */ @@ -36,13 +37,13 @@ UpdateBusinessCreditCard.JSON_PROPERTY_TYPE, UpdateBusinessCreditCard.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessCreditCard { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSCREDITCARD("businessCreditCard"); + BUSINESS_CREDIT_CARD("businessCreditCard"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSCREDITCARD; + private TypeEnum type = TypeEnum.BUSINESS_CREDIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessDebitCardAttributes attributes; @@ -85,14 +86,13 @@ public UpdateBusinessCreditCard type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateBusinessCreditCard attributes(UpdateBusinessDebitCardAttributes att return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessDebitCardAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessCustomer.java b/src/main/java/unit/java/sdk/model/UpdateBusinessCustomer.java index 72982095..1a6a2b65 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessCustomer.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessCustomer.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessCustomer */ @@ -36,13 +37,13 @@ UpdateBusinessCustomer.JSON_PROPERTY_TYPE, UpdateBusinessCustomer.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessCustomer { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSCUSTOMER("businessCustomer"); + BUSINESS_CUSTOMER("businessCustomer"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSCUSTOMER; + private TypeEnum type = TypeEnum.BUSINESS_CUSTOMER; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessCustomerAttributes attributes; @@ -85,14 +86,13 @@ public UpdateBusinessCustomer type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateBusinessCustomer attributes(UpdateBusinessCustomerAttributes attrib return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UpdateBusinessCustomerAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessCustomerAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBusinessCustomerAttributes.java index 35d7696d..d0e70cde 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessCustomerAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessCustomerAttributes.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessCustomerAttributes */ @@ -52,7 +53,7 @@ UpdateBusinessCustomerAttributes.JSON_PROPERTY_TAGS, UpdateBusinessCustomerAttributes.JSON_PROPERTY_AUTHORIZED_USERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessCustomerAttributes { public static final String JSON_PROPERTY_DBA = "dba"; private JsonNullable dba = JsonNullable.undefined(); @@ -83,13 +84,12 @@ public UpdateBusinessCustomerAttributes dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getDba() { return dba.orElse(null); } @@ -116,14 +116,13 @@ public UpdateBusinessCustomerAttributes ein(String ein) { return this; } - /** + /** * Get ein * @return ein - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EIN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEin() { return ein; } @@ -141,14 +140,13 @@ public UpdateBusinessCustomerAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -166,14 +164,13 @@ public UpdateBusinessCustomerAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -191,14 +188,13 @@ public UpdateBusinessCustomerAttributes contact(ResponseContact contact) { return this; } - /** + /** * Get contact * @return contact - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTACT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ResponseContact getContact() { return contact; } @@ -224,14 +220,13 @@ public UpdateBusinessCustomerAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -261,13 +256,12 @@ public UpdateBusinessCustomerAttributes addAuthorizedUsersItem(AuthorizedUser au return this; } - /** + /** * Get authorizedUsers * @return authorizedUsers - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public List getAuthorizedUsers() { return authorizedUsers.orElse(null); } @@ -386,12 +380,12 @@ public String toUrlQueryString(String prefix) { // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `ein` to the URL query string if (getEin() != null) { - joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sein%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEin()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -414,7 +408,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessDebitCard.java b/src/main/java/unit/java/sdk/model/UpdateBusinessDebitCard.java index 340ea3fe..3cbd1d06 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessDebitCard.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessDebitCard.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessDebitCard */ @@ -36,13 +37,13 @@ UpdateBusinessDebitCard.JSON_PROPERTY_TYPE, UpdateBusinessDebitCard.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessDebitCard { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSDEBITCARD("businessDebitCard"); + BUSINESS_DEBIT_CARD("businessDebitCard"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSDEBITCARD; + private TypeEnum type = TypeEnum.BUSINESS_DEBIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessDebitCardAttributes attributes; @@ -85,14 +86,13 @@ public UpdateBusinessDebitCard type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateBusinessDebitCard attributes(UpdateBusinessDebitCardAttributes attr return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessDebitCardAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessDebitCardAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBusinessDebitCardAttributes.java index e26aa892..5a111614 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessDebitCardAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessDebitCardAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessDebitCardAttributes */ @@ -46,7 +47,7 @@ UpdateBusinessDebitCardAttributes.JSON_PROPERTY_LIMITS, UpdateBusinessDebitCardAttributes.JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessDebitCardAttributes { public static final String JSON_PROPERTY_SHIPPING_ADDRESS = "shippingAddress"; private Address shippingAddress; @@ -80,14 +81,13 @@ public UpdateBusinessDebitCardAttributes shippingAddress(Address shippingAddress return this; } - /** + /** * Get shippingAddress * @return shippingAddress - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIPPING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getShippingAddress() { return shippingAddress; } @@ -105,14 +105,13 @@ public UpdateBusinessDebitCardAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -130,14 +129,13 @@ public UpdateBusinessDebitCardAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -155,14 +153,13 @@ public UpdateBusinessDebitCardAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -180,14 +177,13 @@ public UpdateBusinessDebitCardAttributes design(String design) { return this; } - /** + /** * Get design * @return design - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesign() { return design; } @@ -213,14 +209,13 @@ public UpdateBusinessDebitCardAttributes putTagsItem(String key, String tagsItem return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -238,14 +233,13 @@ public UpdateBusinessDebitCardAttributes limits(CardLevelLimits limits) { return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -263,14 +257,13 @@ public UpdateBusinessDebitCardAttributes defaultFundingAccountId(String defaultF return this; } - /** + /** * Get defaultFundingAccountId * @return defaultFundingAccountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDefaultFundingAccountId() { return defaultFundingAccountId; } @@ -386,12 +379,12 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `design` to the URL query string if (getDesign() != null) { - joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -399,7 +392,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -410,7 +403,7 @@ public String toUrlQueryString(String prefix) { // add `defaultFundingAccountId` to the URL query string if (getDefaultFundingAccountId() != null) { - joiner.add(String.format("%sdefaultFundingAccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDefaultFundingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdefaultFundingAccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDefaultFundingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessOfficer.java b/src/main/java/unit/java/sdk/model/UpdateBusinessOfficer.java index 63def256..1973ffba 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessOfficer.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessOfficer.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessOfficer */ @@ -36,13 +37,13 @@ UpdateBusinessOfficer.JSON_PROPERTY_TYPE, UpdateBusinessOfficer.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessOfficer { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSAPPLICATION("businessApplication"); + BUSINESS_APPLICATION("businessApplication"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSAPPLICATION; + private TypeEnum type = TypeEnum.BUSINESS_APPLICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessOfficerAttributes attributes; @@ -85,14 +86,13 @@ public UpdateBusinessOfficer type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateBusinessOfficer attributes(UpdateBusinessOfficerAttributes attribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessOfficerAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessOfficerAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBusinessOfficerAttributes.java index 3c7ae1c0..fb5869b1 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessOfficerAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessOfficerAttributes.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessOfficerAttributes */ @JsonPropertyOrder({ UpdateBusinessOfficerAttributes.JSON_PROPERTY_OFFICER }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessOfficerAttributes { public static final String JSON_PROPERTY_OFFICER = "officer"; private BusinessOfficer officer; @@ -48,14 +49,13 @@ public UpdateBusinessOfficerAttributes officer(BusinessOfficer officer) { return this; } - /** + /** * Get officer * @return officer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OFFICER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessOfficer getOfficer() { return officer; } diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualCreditCard.java b/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualCreditCard.java index cf12aaae..1e845586 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualCreditCard.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualCreditCard.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessVirtualCreditCard */ @@ -36,13 +37,13 @@ UpdateBusinessVirtualCreditCard.JSON_PROPERTY_TYPE, UpdateBusinessVirtualCreditCard.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessVirtualCreditCard { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSVIRTUALCREDITCARD("businessVirtualCreditCard"); + BUSINESS_VIRTUAL_CREDIT_CARD("businessVirtualCreditCard"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSVIRTUALCREDITCARD; + private TypeEnum type = TypeEnum.BUSINESS_VIRTUAL_CREDIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessVirtualDebitCardAttributes attributes; @@ -85,14 +86,13 @@ public UpdateBusinessVirtualCreditCard type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateBusinessVirtualCreditCard attributes(UpdateBusinessVirtualDebitCard return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessVirtualDebitCardAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualDebitCard.java b/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualDebitCard.java index c4a46fa9..918ee6a9 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualDebitCard.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualDebitCard.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessVirtualDebitCard */ @@ -36,13 +37,13 @@ UpdateBusinessVirtualDebitCard.JSON_PROPERTY_TYPE, UpdateBusinessVirtualDebitCard.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessVirtualDebitCard { /** * Gets or Sets type */ public enum TypeEnum { - BUSINESSVIRTUALDEBITCARD("businessVirtualDebitCard"); + BUSINESS_VIRTUAL_DEBIT_CARD("businessVirtualDebitCard"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.BUSINESSVIRTUALDEBITCARD; + private TypeEnum type = TypeEnum.BUSINESS_VIRTUAL_DEBIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBusinessVirtualDebitCardAttributes attributes; @@ -85,14 +86,13 @@ public UpdateBusinessVirtualDebitCard type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateBusinessVirtualDebitCard attributes(UpdateBusinessVirtualDebitCardA return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBusinessVirtualDebitCardAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualDebitCardAttributes.java b/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualDebitCardAttributes.java index 64856c92..c884bc27 100644 --- a/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualDebitCardAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateBusinessVirtualDebitCardAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateBusinessVirtualDebitCardAttributes */ @@ -44,7 +45,7 @@ UpdateBusinessVirtualDebitCardAttributes.JSON_PROPERTY_LIMITS, UpdateBusinessVirtualDebitCardAttributes.JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateBusinessVirtualDebitCardAttributes { public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address; @@ -72,14 +73,13 @@ public UpdateBusinessVirtualDebitCardAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -97,14 +97,13 @@ public UpdateBusinessVirtualDebitCardAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -122,14 +121,13 @@ public UpdateBusinessVirtualDebitCardAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -155,14 +153,13 @@ public UpdateBusinessVirtualDebitCardAttributes putTagsItem(String key, String t return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -180,14 +177,13 @@ public UpdateBusinessVirtualDebitCardAttributes limits(CardLevelLimits limits) { return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -205,14 +201,13 @@ public UpdateBusinessVirtualDebitCardAttributes defaultFundingAccountId(String d return this; } - /** + /** * Get defaultFundingAccountId * @return defaultFundingAccountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDefaultFundingAccountId() { return defaultFundingAccountId; } @@ -319,7 +314,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -327,7 +322,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -338,7 +333,7 @@ public String toUrlQueryString(String prefix) { // add `defaultFundingAccountId` to the URL query string if (getDefaultFundingAccountId() != null) { - joiner.add(String.format("%sdefaultFundingAccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDefaultFundingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdefaultFundingAccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDefaultFundingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateCardRequest.java b/src/main/java/unit/java/sdk/model/UpdateCardRequest.java index 28acfcd4..7f77e473 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCardRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateCardRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCardRequest */ @JsonPropertyOrder({ UpdateCardRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCardRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateCardRequestData data; @@ -48,14 +49,13 @@ public UpdateCardRequest data(UpdateCardRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateCardRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateCardRequestData.java b/src/main/java/unit/java/sdk/model/UpdateCardRequestData.java index b43d7208..fb755400 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCardRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateCardRequestData.java @@ -58,7 +58,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdateCardRequestData.UpdateCardRequestDataDeserializer.class) @JsonSerialize(using = UpdateCardRequestData.UpdateCardRequestDataSerializer.class) public class UpdateCardRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/UpdateChargebackTransaction.java b/src/main/java/unit/java/sdk/model/UpdateChargebackTransaction.java index f6ce3b93..2b8de859 100644 --- a/src/main/java/unit/java/sdk/model/UpdateChargebackTransaction.java +++ b/src/main/java/unit/java/sdk/model/UpdateChargebackTransaction.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateChargebackTransaction */ @@ -38,13 +39,13 @@ UpdateChargebackTransaction.JSON_PROPERTY_ATTRIBUTES, UpdateChargebackTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateChargebackTransaction { /** * Gets or Sets type */ public enum TypeEnum { - CHARGEBACKTRANSACTION("chargebackTransaction"); + CHARGEBACK_TRANSACTION("chargebackTransaction"); private String value; @@ -74,7 +75,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CHARGEBACKTRANSACTION; + private TypeEnum type = TypeEnum.CHARGEBACK_TRANSACTION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateBookTransactionAttributes attributes; @@ -90,14 +91,13 @@ public UpdateChargebackTransaction type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -115,14 +115,13 @@ public UpdateChargebackTransaction attributes(UpdateBookTransactionAttributes at return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateBookTransactionAttributes getAttributes() { return attributes; } @@ -140,14 +139,13 @@ public UpdateChargebackTransaction relationships(UpdateTransactionRelationships return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UpdateTransactionRelationships getRelationships() { return relationships; } @@ -238,7 +236,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateCheckDeposit.java b/src/main/java/unit/java/sdk/model/UpdateCheckDeposit.java index 86b38e0b..5f62265c 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCheckDeposit.java +++ b/src/main/java/unit/java/sdk/model/UpdateCheckDeposit.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCheckDeposit */ @@ -36,13 +37,13 @@ UpdateCheckDeposit.JSON_PROPERTY_TYPE, UpdateCheckDeposit.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCheckDeposit { /** * Gets or Sets type */ public enum TypeEnum { - CHECKDEPOSIT("checkDeposit"); + CHECK_DEPOSIT("checkDeposit"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CHECKDEPOSIT; + private TypeEnum type = TypeEnum.CHECK_DEPOSIT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateCheckDepositAttributes attributes; @@ -85,14 +86,13 @@ public UpdateCheckDeposit type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateCheckDeposit attributes(UpdateCheckDepositAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateCheckDepositAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateCheckDepositAttributes.java b/src/main/java/unit/java/sdk/model/UpdateCheckDepositAttributes.java index 876d50f3..1fe52438 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCheckDepositAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateCheckDepositAttributes.java @@ -30,17 +30,18 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCheckDepositAttributes */ @JsonPropertyOrder({ - UpdateCheckDepositAttributes.JSON_PROPERTY_AMOUNT, + UpdateCheckDepositAttributes.JSON_PROPERTY_CLEARING_DAYS_OVERRIDE, UpdateCheckDepositAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCheckDepositAttributes { - public static final String JSON_PROPERTY_AMOUNT = "amount"; - private Integer amount; + public static final String JSON_PROPERTY_CLEARING_DAYS_OVERRIDE = "clearingDaysOverride"; + private Integer clearingDaysOverride; public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -48,29 +49,28 @@ public class UpdateCheckDepositAttributes { public UpdateCheckDepositAttributes() { } - public UpdateCheckDepositAttributes amount(Integer amount) { - this.amount = amount; + public UpdateCheckDepositAttributes clearingDaysOverride(Integer clearingDaysOverride) { + this.clearingDaysOverride = clearingDaysOverride; return this; } - /** - * Get amount + /** + * Get clearingDaysOverride * minimum: 1 - * @return amount - **/ + * @return clearingDaysOverride + */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonProperty(JSON_PROPERTY_CLEARING_DAYS_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getAmount() { - return amount; + public Integer getClearingDaysOverride() { + return clearingDaysOverride; } - @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonProperty(JSON_PROPERTY_CLEARING_DAYS_OVERRIDE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAmount(Integer amount) { - this.amount = amount; + public void setClearingDaysOverride(Integer clearingDaysOverride) { + this.clearingDaysOverride = clearingDaysOverride; } @@ -87,14 +87,13 @@ public UpdateCheckDepositAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -119,20 +118,20 @@ public boolean equals(Object o) { return false; } UpdateCheckDepositAttributes updateCheckDepositAttributes = (UpdateCheckDepositAttributes) o; - return Objects.equals(this.amount, updateCheckDepositAttributes.amount) && + return Objects.equals(this.clearingDaysOverride, updateCheckDepositAttributes.clearingDaysOverride) && Objects.equals(this.tags, updateCheckDepositAttributes.tags); } @Override public int hashCode() { - return Objects.hash(amount, tags); + return Objects.hash(clearingDaysOverride, tags); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdateCheckDepositAttributes {\n"); - sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" clearingDaysOverride: ").append(toIndentedString(clearingDaysOverride)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append("}"); return sb.toString(); @@ -181,9 +180,9 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `amount` to the URL query string - if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + // add `clearingDaysOverride` to the URL query string + if (getClearingDaysOverride() != null) { + joiner.add(String.format("%sclearingDaysOverride%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getClearingDaysOverride()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -191,7 +190,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/UpdateCheckDepositRequest.java b/src/main/java/unit/java/sdk/model/UpdateCheckDepositRequest.java index 3748b731..5f1a7504 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCheckDepositRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateCheckDepositRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCheckDepositRequest */ @JsonPropertyOrder({ UpdateCheckDepositRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCheckDepositRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateCheckDeposit data; @@ -48,14 +49,13 @@ public UpdateCheckDepositRequest data(UpdateCheckDeposit data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateCheckDeposit getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateCounterparty.java b/src/main/java/unit/java/sdk/model/UpdateCounterparty.java index 502c507d..8d9659e0 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCounterparty.java +++ b/src/main/java/unit/java/sdk/model/UpdateCounterparty.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCounterparty */ @@ -36,10 +37,43 @@ UpdateCounterparty.JSON_PROPERTY_TYPE, UpdateCounterparty.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCounterparty { + /** + * Gets or Sets type + */ + public enum TypeEnum { + COUNTERPARTY("counterparty"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + public static final String JSON_PROPERTY_TYPE = "type"; - private String type = "counterparty"; + private TypeEnum type = TypeEnum.COUNTERPARTY; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateCounterpartyAttributes attributes; @@ -47,27 +81,26 @@ public class UpdateCounterparty { public UpdateCounterparty() { } - public UpdateCounterparty type(String type) { + public UpdateCounterparty type(TypeEnum type) { this.type = type; return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public String getType() { + public TypeEnum getType() { return type; } @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setType(String type) { + public void setType(TypeEnum type) { this.type = type; } @@ -77,14 +110,13 @@ public UpdateCounterparty attributes(UpdateCounterpartyAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateCounterpartyAttributes getAttributes() { return attributes; } @@ -173,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateCounterpartyAttributes.java b/src/main/java/unit/java/sdk/model/UpdateCounterpartyAttributes.java index a881ed51..e9234b8e 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCounterpartyAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateCounterpartyAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCounterpartyAttributes */ @@ -40,7 +41,7 @@ UpdateCounterpartyAttributes.JSON_PROPERTY_VERIFY_NAME, UpdateCounterpartyAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCounterpartyAttributes { public static final String JSON_PROPERTY_PLAID_PROCESSOR_TOKEN = "plaidProcessorToken"; private String plaidProcessorToken; @@ -52,11 +53,11 @@ public class UpdateCounterpartyAttributes { * Gets or Sets permissions */ public enum PermissionsEnum { - CREDITONLY("CreditOnly"), + CREDIT_ONLY("CreditOnly"), - DEBITONLY("DebitOnly"), + DEBIT_ONLY("DebitOnly"), - CREDITANDDEBIT("CreditAndDebit"); + CREDIT_AND_DEBIT("CreditAndDebit"); private String value; @@ -102,14 +103,13 @@ public UpdateCounterpartyAttributes plaidProcessorToken(String plaidProcessorTok return this; } - /** + /** * Get plaidProcessorToken * @return plaidProcessorToken - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PLAID_PROCESSOR_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPlaidProcessorToken() { return plaidProcessorToken; } @@ -127,14 +127,13 @@ public UpdateCounterpartyAttributes name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { return name; } @@ -152,14 +151,13 @@ public UpdateCounterpartyAttributes permissions(PermissionsEnum permissions) { return this; } - /** + /** * Get permissions * @return permissions - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PERMISSIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PermissionsEnum getPermissions() { return permissions; } @@ -177,14 +175,13 @@ public UpdateCounterpartyAttributes verifyName(Boolean verifyName) { return this; } - /** + /** * Get verifyName * @return verifyName - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_VERIFY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getVerifyName() { return verifyName; } @@ -210,14 +207,13 @@ public UpdateCounterpartyAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -312,22 +308,22 @@ public String toUrlQueryString(String prefix) { // add `plaidProcessorToken` to the URL query string if (getPlaidProcessorToken() != null) { - joiner.add(String.format("%splaidProcessorToken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPlaidProcessorToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%splaidProcessorToken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPlaidProcessorToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `permissions` to the URL query string if (getPermissions() != null) { - joiner.add(String.format("%spermissions%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getPermissions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%spermissions%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPermissions()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `verifyName` to the URL query string if (getVerifyName() != null) { - joiner.add(String.format("%sverifyName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getVerifyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sverifyName%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getVerifyName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -335,7 +331,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/UpdateCounterpartyRequest.java b/src/main/java/unit/java/sdk/model/UpdateCounterpartyRequest.java index 66576708..627d8cb9 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCounterpartyRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateCounterpartyRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCounterpartyRequest */ @JsonPropertyOrder({ UpdateCounterpartyRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCounterpartyRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateCounterpartyRequestData data; @@ -48,14 +49,13 @@ public UpdateCounterpartyRequest data(UpdateCounterpartyRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateCounterpartyRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateCounterpartyRequestData.java b/src/main/java/unit/java/sdk/model/UpdateCounterpartyRequestData.java index f43b638d..4615130a 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCounterpartyRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateCounterpartyRequestData.java @@ -53,7 +53,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdateCounterpartyRequestData.UpdateCounterpartyRequestDataDeserializer.class) @JsonSerialize(using = UpdateCounterpartyRequestData.UpdateCounterpartyRequestDataSerializer.class) public class UpdateCounterpartyRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/UpdateCreditAccount.java b/src/main/java/unit/java/sdk/model/UpdateCreditAccount.java index 746c96f1..2047020e 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCreditAccount.java +++ b/src/main/java/unit/java/sdk/model/UpdateCreditAccount.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCreditAccount */ @@ -36,13 +37,13 @@ UpdateCreditAccount.JSON_PROPERTY_TYPE, UpdateCreditAccount.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCreditAccount { /** * Gets or Sets type */ public enum TypeEnum { - CREDITACCOUNT("creditAccount"); + CREDIT_ACCOUNT("creditAccount"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.CREDITACCOUNT; + private TypeEnum type = TypeEnum.CREDIT_ACCOUNT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateCreditAccountAttributes attributes; @@ -85,14 +86,13 @@ public UpdateCreditAccount type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateCreditAccount attributes(UpdateCreditAccountAttributes attributes) return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateCreditAccountAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateCreditAccountAttributes.java b/src/main/java/unit/java/sdk/model/UpdateCreditAccountAttributes.java index 5cce1053..6250a0e8 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCreditAccountAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateCreditAccountAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCreditAccountAttributes */ @@ -37,7 +38,7 @@ UpdateCreditAccountAttributes.JSON_PROPERTY_TAGS, UpdateCreditAccountAttributes.JSON_PROPERTY_CREDIT_LIMIT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCreditAccountAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -61,14 +62,13 @@ public UpdateCreditAccountAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -86,14 +86,13 @@ public UpdateCreditAccountAttributes creditLimit(Integer creditLimit) { return this; } - /** + /** * Get creditLimit * @return creditLimit - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREDIT_LIMIT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getCreditLimit() { return creditLimit; } @@ -185,13 +184,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `creditLimit` to the URL query string if (getCreditLimit() != null) { - joiner.add(String.format("%screditLimit%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreditLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screditLimit%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreditLimit()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateCustomerRequest.java b/src/main/java/unit/java/sdk/model/UpdateCustomerRequest.java index d779e6f2..690b9ede 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCustomerRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateCustomerRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateCustomerRequest */ @JsonPropertyOrder({ UpdateCustomerRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateCustomerRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateCustomerRequestData data; @@ -48,14 +49,13 @@ public UpdateCustomerRequest data(UpdateCustomerRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UpdateCustomerRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateCustomerRequestData.java b/src/main/java/unit/java/sdk/model/UpdateCustomerRequestData.java index 5e109d53..9f5fbe2a 100644 --- a/src/main/java/unit/java/sdk/model/UpdateCustomerRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateCustomerRequestData.java @@ -54,7 +54,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdateCustomerRequestData.UpdateCustomerRequestDataDeserializer.class) @JsonSerialize(using = UpdateCustomerRequestData.UpdateCustomerRequestDataSerializer.class) public class UpdateCustomerRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/UpdateDepositAccount.java b/src/main/java/unit/java/sdk/model/UpdateDepositAccount.java index 37c27b09..d57caf6d 100644 --- a/src/main/java/unit/java/sdk/model/UpdateDepositAccount.java +++ b/src/main/java/unit/java/sdk/model/UpdateDepositAccount.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateDepositAccount */ @@ -36,13 +37,13 @@ UpdateDepositAccount.JSON_PROPERTY_TYPE, UpdateDepositAccount.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateDepositAccount { /** * Gets or Sets type */ public enum TypeEnum { - DEPOSITACCOUNT("depositAccount"); + DEPOSIT_ACCOUNT("depositAccount"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.DEPOSITACCOUNT; + private TypeEnum type = TypeEnum.DEPOSIT_ACCOUNT; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateDepositAccountAttributes attributes; @@ -85,14 +86,13 @@ public UpdateDepositAccount type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateDepositAccount attributes(UpdateDepositAccountAttributes attributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateDepositAccountAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateDepositAccountAttributes.java b/src/main/java/unit/java/sdk/model/UpdateDepositAccountAttributes.java index fd105a4d..456d43fb 100644 --- a/src/main/java/unit/java/sdk/model/UpdateDepositAccountAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateDepositAccountAttributes.java @@ -30,6 +30,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateDepositAccountAttributes */ @@ -37,7 +38,7 @@ UpdateDepositAccountAttributes.JSON_PROPERTY_TAGS, UpdateDepositAccountAttributes.JSON_PROPERTY_DEPOSIT_PRODUCT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateDepositAccountAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -61,14 +62,13 @@ public UpdateDepositAccountAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -86,14 +86,13 @@ public UpdateDepositAccountAttributes depositProduct(String depositProduct) { return this; } - /** + /** * Get depositProduct * @return depositProduct - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEPOSIT_PRODUCT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDepositProduct() { return depositProduct; } @@ -185,13 +184,13 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `depositProduct` to the URL query string if (getDepositProduct() != null) { - joiner.add(String.format("%sdepositProduct%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDepositProduct()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdepositProduct%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDepositProduct()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateIndividualApplication.java b/src/main/java/unit/java/sdk/model/UpdateIndividualApplication.java index 6efd5c7e..491009e9 100644 --- a/src/main/java/unit/java/sdk/model/UpdateIndividualApplication.java +++ b/src/main/java/unit/java/sdk/model/UpdateIndividualApplication.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateIndividualApplication */ @@ -36,13 +37,13 @@ UpdateIndividualApplication.JSON_PROPERTY_TYPE, UpdateIndividualApplication.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIndividualApplication { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALAPPLICATION("individualApplication"); + INDIVIDUAL_APPLICATION("individualApplication"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALAPPLICATION; + private TypeEnum type = TypeEnum.INDIVIDUAL_APPLICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateIndividualApplicationAttributes attributes; @@ -85,14 +86,13 @@ public UpdateIndividualApplication type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateIndividualApplication attributes(UpdateIndividualApplicationAttribu return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateIndividualApplicationAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateIndividualApplicationAttributes.java b/src/main/java/unit/java/sdk/model/UpdateIndividualApplicationAttributes.java index 90228767..e4ff943f 100644 --- a/src/main/java/unit/java/sdk/model/UpdateIndividualApplicationAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateIndividualApplicationAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateIndividualApplicationAttributes */ @@ -42,7 +43,7 @@ UpdateIndividualApplicationAttributes.JSON_PROPERTY_ANNUAL_INCOME, UpdateIndividualApplicationAttributes.JSON_PROPERTY_SOURCE_OF_INCOME }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIndividualApplicationAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -72,14 +73,13 @@ public UpdateIndividualApplicationAttributes putTagsItem(String key, String tags return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -97,14 +97,13 @@ public UpdateIndividualApplicationAttributes occupation(Occupation occupation) { return this; } - /** + /** * Get occupation * @return occupation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OCCUPATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Occupation getOccupation() { return occupation; } @@ -122,14 +121,13 @@ public UpdateIndividualApplicationAttributes annualIncome(AnnualIncome annualInc return this; } - /** + /** * Get annualIncome * @return annualIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public AnnualIncome getAnnualIncome() { return annualIncome; } @@ -147,14 +145,13 @@ public UpdateIndividualApplicationAttributes sourceOfIncome(SourceOfIncome sourc return this; } - /** + /** * Get sourceOfIncome * @return sourceOfIncome - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SourceOfIncome getSourceOfIncome() { return sourceOfIncome; } @@ -250,23 +247,23 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `occupation` to the URL query string if (getOccupation() != null) { - joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soccupation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOccupation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `annualIncome` to the URL query string if (getAnnualIncome() != null) { - joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `sourceOfIncome` to the URL query string if (getSourceOfIncome() != null) { - joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssourceOfIncome%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSourceOfIncome()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateIndividualCustomer.java b/src/main/java/unit/java/sdk/model/UpdateIndividualCustomer.java index 3beacec6..87dced29 100644 --- a/src/main/java/unit/java/sdk/model/UpdateIndividualCustomer.java +++ b/src/main/java/unit/java/sdk/model/UpdateIndividualCustomer.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateIndividualCustomer */ @@ -36,13 +37,13 @@ UpdateIndividualCustomer.JSON_PROPERTY_TYPE, UpdateIndividualCustomer.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIndividualCustomer { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALCUSTOMER("individualCustomer"); + INDIVIDUAL_CUSTOMER("individualCustomer"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALCUSTOMER; + private TypeEnum type = TypeEnum.INDIVIDUAL_CUSTOMER; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateIndividualCustomerAttributes attributes; @@ -85,14 +86,13 @@ public UpdateIndividualCustomer type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateIndividualCustomer attributes(UpdateIndividualCustomerAttributes at return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UpdateIndividualCustomerAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateIndividualCustomerAttributes.java b/src/main/java/unit/java/sdk/model/UpdateIndividualCustomerAttributes.java index dc232d2f..f36bc71e 100644 --- a/src/main/java/unit/java/sdk/model/UpdateIndividualCustomerAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateIndividualCustomerAttributes.java @@ -39,6 +39,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateIndividualCustomerAttributes */ @@ -51,7 +52,7 @@ UpdateIndividualCustomerAttributes.JSON_PROPERTY_AUTHORIZED_USERS, UpdateIndividualCustomerAttributes.JSON_PROPERTY_JWT_SUBJECT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIndividualCustomerAttributes { public static final String JSON_PROPERTY_EMAIL = "email"; private String email; @@ -82,14 +83,13 @@ public UpdateIndividualCustomerAttributes email(String email) { return this; } - /** + /** * Get email * @return email - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { return email; } @@ -107,14 +107,13 @@ public UpdateIndividualCustomerAttributes phone(Phone phone) { return this; } - /** + /** * Get phone * @return phone - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_PHONE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Phone getPhone() { return phone; } @@ -132,14 +131,13 @@ public UpdateIndividualCustomerAttributes address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getAddress() { return address; } @@ -157,13 +155,12 @@ public UpdateIndividualCustomerAttributes dba(String dba) { return this; } - /** + /** * Get dba * @return dba - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getDba() { return dba.orElse(null); } @@ -198,14 +195,13 @@ public UpdateIndividualCustomerAttributes putTagsItem(String key, String tagsIte return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -235,13 +231,12 @@ public UpdateIndividualCustomerAttributes addAuthorizedUsersItem(AuthorizedUser return this; } - /** + /** * Get authorizedUsers * @return authorizedUsers - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public List getAuthorizedUsers() { return authorizedUsers.orElse(null); } @@ -268,13 +263,12 @@ public UpdateIndividualCustomerAttributes jwtSubject(String jwtSubject) { return this; } - /** + /** * Get jwtSubject * @return jwtSubject - **/ + */ @jakarta.annotation.Nullable @JsonIgnore - public String getJwtSubject() { return jwtSubject.orElse(null); } @@ -393,7 +387,7 @@ public String toUrlQueryString(String prefix) { // add `email` to the URL query string if (getEmail() != null) { - joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%semail%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEmail()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `phone` to the URL query string @@ -408,7 +402,7 @@ public String toUrlQueryString(String prefix) { // add `dba` to the URL query string if (getDba() != null) { - joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdba%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDba()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -416,7 +410,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -432,7 +426,7 @@ public String toUrlQueryString(String prefix) { // add `jwtSubject` to the URL query string if (getJwtSubject() != null) { - joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjwtSubject%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJwtSubject()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateIndividualDebitCard.java b/src/main/java/unit/java/sdk/model/UpdateIndividualDebitCard.java index 5b501575..8cf89964 100644 --- a/src/main/java/unit/java/sdk/model/UpdateIndividualDebitCard.java +++ b/src/main/java/unit/java/sdk/model/UpdateIndividualDebitCard.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateIndividualDebitCard */ @@ -36,13 +37,13 @@ UpdateIndividualDebitCard.JSON_PROPERTY_TYPE, UpdateIndividualDebitCard.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIndividualDebitCard { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALDEBITCARD("individualDebitCard"); + INDIVIDUAL_DEBIT_CARD("individualDebitCard"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALDEBITCARD; + private TypeEnum type = TypeEnum.INDIVIDUAL_DEBIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateIndividualDebitCardAttributes attributes; @@ -85,14 +86,13 @@ public UpdateIndividualDebitCard type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateIndividualDebitCard attributes(UpdateIndividualDebitCardAttributes return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateIndividualDebitCardAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateIndividualDebitCardAttributes.java b/src/main/java/unit/java/sdk/model/UpdateIndividualDebitCardAttributes.java index 0f0af19c..d1a8943d 100644 --- a/src/main/java/unit/java/sdk/model/UpdateIndividualDebitCardAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateIndividualDebitCardAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateIndividualDebitCardAttributes */ @@ -42,7 +43,7 @@ UpdateIndividualDebitCardAttributes.JSON_PROPERTY_LIMITS, UpdateIndividualDebitCardAttributes.JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIndividualDebitCardAttributes { public static final String JSON_PROPERTY_SHIPPING_ADDRESS = "shippingAddress"; private Address shippingAddress; @@ -67,14 +68,13 @@ public UpdateIndividualDebitCardAttributes shippingAddress(Address shippingAddre return this; } - /** + /** * Get shippingAddress * @return shippingAddress - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SHIPPING_ADDRESS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Address getShippingAddress() { return shippingAddress; } @@ -92,14 +92,13 @@ public UpdateIndividualDebitCardAttributes design(String design) { return this; } - /** + /** * Get design * @return design - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESIGN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDesign() { return design; } @@ -125,14 +124,13 @@ public UpdateIndividualDebitCardAttributes putTagsItem(String key, String tagsIt return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -150,14 +148,13 @@ public UpdateIndividualDebitCardAttributes limits(CardLevelLimits limits) { return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -175,14 +172,13 @@ public UpdateIndividualDebitCardAttributes defaultFundingAccountId(String defaul return this; } - /** + /** * Get defaultFundingAccountId * @return defaultFundingAccountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDefaultFundingAccountId() { return defaultFundingAccountId; } @@ -282,7 +278,7 @@ public String toUrlQueryString(String prefix) { // add `design` to the URL query string if (getDesign() != null) { - joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdesign%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDesign()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `tags` to the URL query string @@ -290,7 +286,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -301,7 +297,7 @@ public String toUrlQueryString(String prefix) { // add `defaultFundingAccountId` to the URL query string if (getDefaultFundingAccountId() != null) { - joiner.add(String.format("%sdefaultFundingAccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDefaultFundingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdefaultFundingAccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDefaultFundingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateIndividualVirtualDebitCard.java b/src/main/java/unit/java/sdk/model/UpdateIndividualVirtualDebitCard.java index 946cf7ae..2212ca47 100644 --- a/src/main/java/unit/java/sdk/model/UpdateIndividualVirtualDebitCard.java +++ b/src/main/java/unit/java/sdk/model/UpdateIndividualVirtualDebitCard.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateIndividualVirtualDebitCard */ @@ -36,13 +37,13 @@ UpdateIndividualVirtualDebitCard.JSON_PROPERTY_TYPE, UpdateIndividualVirtualDebitCard.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIndividualVirtualDebitCard { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALVIRTUALDEBITCARD("individualVirtualDebitCard"); + INDIVIDUAL_VIRTUAL_DEBIT_CARD("individualVirtualDebitCard"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALVIRTUALDEBITCARD; + private TypeEnum type = TypeEnum.INDIVIDUAL_VIRTUAL_DEBIT_CARD; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateIndividualVirtualDebitCardAttributes attributes; @@ -85,14 +86,13 @@ public UpdateIndividualVirtualDebitCard type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateIndividualVirtualDebitCard attributes(UpdateIndividualVirtualDebitC return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateIndividualVirtualDebitCardAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateIndividualVirtualDebitCardAttributes.java b/src/main/java/unit/java/sdk/model/UpdateIndividualVirtualDebitCardAttributes.java index 7a37cda0..26021678 100644 --- a/src/main/java/unit/java/sdk/model/UpdateIndividualVirtualDebitCardAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateIndividualVirtualDebitCardAttributes.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateIndividualVirtualDebitCardAttributes */ @@ -39,7 +40,7 @@ UpdateIndividualVirtualDebitCardAttributes.JSON_PROPERTY_LIMITS, UpdateIndividualVirtualDebitCardAttributes.JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateIndividualVirtualDebitCardAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -66,14 +67,13 @@ public UpdateIndividualVirtualDebitCardAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -91,14 +91,13 @@ public UpdateIndividualVirtualDebitCardAttributes limits(CardLevelLimits limits) return this; } - /** + /** * Get limits * @return limits - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LIMITS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CardLevelLimits getLimits() { return limits; } @@ -116,14 +115,13 @@ public UpdateIndividualVirtualDebitCardAttributes defaultFundingAccountId(String return this; } - /** + /** * Get defaultFundingAccountId * @return defaultFundingAccountId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEFAULT_FUNDING_ACCOUNT_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDefaultFundingAccountId() { return defaultFundingAccountId; } @@ -217,7 +215,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } @@ -228,7 +226,7 @@ public String toUrlQueryString(String prefix) { // add `defaultFundingAccountId` to the URL query string if (getDefaultFundingAccountId() != null) { - joiner.add(String.format("%sdefaultFundingAccountId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDefaultFundingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdefaultFundingAccountId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDefaultFundingAccountId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdatePaymentRequest.java b/src/main/java/unit/java/sdk/model/UpdatePaymentRequest.java index 8c23c975..d34d87c9 100644 --- a/src/main/java/unit/java/sdk/model/UpdatePaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdatePaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdatePaymentRequest */ @JsonPropertyOrder({ UpdatePaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdatePaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdatePaymentRequestData data; @@ -48,14 +49,13 @@ public UpdatePaymentRequest data(UpdatePaymentRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdatePaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdatePaymentRequestData.java b/src/main/java/unit/java/sdk/model/UpdatePaymentRequestData.java index ad5e890d..b01b98d4 100644 --- a/src/main/java/unit/java/sdk/model/UpdatePaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdatePaymentRequestData.java @@ -26,7 +26,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; import unit.java.sdk.model.UpdateAchPayment; -import unit.java.sdk.model.UpdateAchPaymentAttributes; +import unit.java.sdk.model.UpdateAchReceivedPayment; +import unit.java.sdk.model.UpdateAchReceivedPaymentAttributes; import unit.java.sdk.model.UpdateBookPayment; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -54,7 +55,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdatePaymentRequestData.UpdatePaymentRequestDataDeserializer.class) @JsonSerialize(using = UpdatePaymentRequestData.UpdatePaymentRequestDataSerializer.class) public class UpdatePaymentRequestData extends AbstractOpenApiSchema { @@ -117,6 +118,32 @@ public UpdatePaymentRequestData deserialize(JsonParser jp, DeserializationContex log.log(Level.FINER, "Input data does not match schema 'UpdateAchPayment'", e); } + // deserialize UpdateAchReceivedPayment + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (UpdateAchReceivedPayment.class.equals(Integer.class) || UpdateAchReceivedPayment.class.equals(Long.class) || UpdateAchReceivedPayment.class.equals(Float.class) || UpdateAchReceivedPayment.class.equals(Double.class) || UpdateAchReceivedPayment.class.equals(Boolean.class) || UpdateAchReceivedPayment.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((UpdateAchReceivedPayment.class.equals(Integer.class) || UpdateAchReceivedPayment.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((UpdateAchReceivedPayment.class.equals(Float.class) || UpdateAchReceivedPayment.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (UpdateAchReceivedPayment.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (UpdateAchReceivedPayment.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(UpdateAchReceivedPayment.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'UpdateAchReceivedPayment'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'UpdateAchReceivedPayment'", e); + } + // deserialize UpdateBookPayment try { boolean attemptParsing = true; @@ -172,6 +199,11 @@ public UpdatePaymentRequestData(UpdateAchPayment o) { setActualInstance(o); } + public UpdatePaymentRequestData(UpdateAchReceivedPayment o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public UpdatePaymentRequestData(UpdateBookPayment o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -179,6 +211,7 @@ public UpdatePaymentRequestData(UpdateBookPayment o) { static { schemas.put("UpdateAchPayment", UpdateAchPayment.class); + schemas.put("UpdateAchReceivedPayment", UpdateAchReceivedPayment.class); schemas.put("UpdateBookPayment", UpdateBookPayment.class); JSON.registerDescendants(UpdatePaymentRequestData.class, Collections.unmodifiableMap(schemas)); } @@ -191,7 +224,7 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * UpdateAchPayment, UpdateBookPayment + * UpdateAchPayment, UpdateAchReceivedPayment, UpdateBookPayment * * It could be an instance of the 'oneOf' schemas. * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). @@ -203,19 +236,24 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(UpdateAchReceivedPayment.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(UpdateBookPayment.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be UpdateAchPayment, UpdateBookPayment"); + throw new RuntimeException("Invalid instance type. Must be UpdateAchPayment, UpdateAchReceivedPayment, UpdateBookPayment"); } /** * Get the actual instance, which can be the following: - * UpdateAchPayment, UpdateBookPayment + * UpdateAchPayment, UpdateAchReceivedPayment, UpdateBookPayment * - * @return The actual instance (UpdateAchPayment, UpdateBookPayment) + * @return The actual instance (UpdateAchPayment, UpdateAchReceivedPayment, UpdateBookPayment) */ @Override public Object getActualInstance() { @@ -233,6 +271,17 @@ public UpdateAchPayment getUpdateAchPayment() throws ClassCastException { return (UpdateAchPayment)super.getActualInstance(); } + /** + * Get the actual instance of `UpdateAchReceivedPayment`. If the actual instance is not `UpdateAchReceivedPayment`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `UpdateAchReceivedPayment` + * @throws ClassCastException if the instance is not `UpdateAchReceivedPayment` + */ + public UpdateAchReceivedPayment getUpdateAchReceivedPayment() throws ClassCastException { + return (UpdateAchReceivedPayment)super.getActualInstance(); + } + /** * Get the actual instance of `UpdateBookPayment`. If the actual instance is not `UpdateBookPayment`, * the ClassCastException will be thrown. @@ -290,6 +339,12 @@ public String toUrlQueryString(String prefix) { } return joiner.toString(); } + if (getActualInstance() instanceof UpdateAchReceivedPayment) { + if (getActualInstance() != null) { + joiner.add(((UpdateAchReceivedPayment)getActualInstance()).toUrlQueryString(prefix + "one_of_2" + suffix)); + } + return joiner.toString(); + } return null; } diff --git a/src/main/java/unit/java/sdk/model/UpdateReceivedPaymentRequest.java b/src/main/java/unit/java/sdk/model/UpdateReceivedPaymentRequest.java index 76184c27..987eb868 100644 --- a/src/main/java/unit/java/sdk/model/UpdateReceivedPaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateReceivedPaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateReceivedPaymentRequest */ @JsonPropertyOrder({ UpdateReceivedPaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateReceivedPaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateReceivedPaymentRequestData data; @@ -48,14 +49,13 @@ public UpdateReceivedPaymentRequest data(UpdateReceivedPaymentRequestData data) return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateReceivedPaymentRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateReceivedPaymentRequestData.java b/src/main/java/unit/java/sdk/model/UpdateReceivedPaymentRequestData.java index 5e67164c..91572640 100644 --- a/src/main/java/unit/java/sdk/model/UpdateReceivedPaymentRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateReceivedPaymentRequestData.java @@ -25,8 +25,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Arrays; -import unit.java.sdk.model.UpdateAchPaymentAttributes; -import unit.java.sdk.model.UpdateAchReceivedPayment; +import unit.java.sdk.model.SchemasUpdateAchReceivedPayment; +import unit.java.sdk.model.SchemasUpdateAchReceivedPaymentAttributes; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.core.type.TypeReference; @@ -53,7 +53,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdateReceivedPaymentRequestData.UpdateReceivedPaymentRequestDataDeserializer.class) @JsonSerialize(using = UpdateReceivedPaymentRequestData.UpdateReceivedPaymentRequestDataSerializer.class) public class UpdateReceivedPaymentRequestData extends AbstractOpenApiSchema { @@ -90,30 +90,30 @@ public UpdateReceivedPaymentRequestData deserialize(JsonParser jp, Deserializati boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); int match = 0; JsonToken token = tree.traverse(jp.getCodec()).nextToken(); - // deserialize UpdateAchReceivedPayment + // deserialize SchemasUpdateAchReceivedPayment try { boolean attemptParsing = true; // ensure that we respect type coercion as set on the client ObjectMapper - if (UpdateAchReceivedPayment.class.equals(Integer.class) || UpdateAchReceivedPayment.class.equals(Long.class) || UpdateAchReceivedPayment.class.equals(Float.class) || UpdateAchReceivedPayment.class.equals(Double.class) || UpdateAchReceivedPayment.class.equals(Boolean.class) || UpdateAchReceivedPayment.class.equals(String.class)) { + if (SchemasUpdateAchReceivedPayment.class.equals(Integer.class) || SchemasUpdateAchReceivedPayment.class.equals(Long.class) || SchemasUpdateAchReceivedPayment.class.equals(Float.class) || SchemasUpdateAchReceivedPayment.class.equals(Double.class) || SchemasUpdateAchReceivedPayment.class.equals(Boolean.class) || SchemasUpdateAchReceivedPayment.class.equals(String.class)) { attemptParsing = typeCoercion; if (!attemptParsing) { - attemptParsing |= ((UpdateAchReceivedPayment.class.equals(Integer.class) || UpdateAchReceivedPayment.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); - attemptParsing |= ((UpdateAchReceivedPayment.class.equals(Float.class) || UpdateAchReceivedPayment.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); - attemptParsing |= (UpdateAchReceivedPayment.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); - attemptParsing |= (UpdateAchReceivedPayment.class.equals(String.class) && token == JsonToken.VALUE_STRING); + attemptParsing |= ((SchemasUpdateAchReceivedPayment.class.equals(Integer.class) || SchemasUpdateAchReceivedPayment.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((SchemasUpdateAchReceivedPayment.class.equals(Float.class) || SchemasUpdateAchReceivedPayment.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (SchemasUpdateAchReceivedPayment.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (SchemasUpdateAchReceivedPayment.class.equals(String.class) && token == JsonToken.VALUE_STRING); } } if (attemptParsing) { - deserialized = tree.traverse(jp.getCodec()).readValueAs(UpdateAchReceivedPayment.class); + deserialized = tree.traverse(jp.getCodec()).readValueAs(SchemasUpdateAchReceivedPayment.class); // TODO: there is no validation against JSON schema constraints // (min, max, enum, pattern...), this does not perform a strict JSON // validation, which means the 'match' count may be higher than it should be. match++; - log.log(Level.FINER, "Input data matches schema 'UpdateAchReceivedPayment'"); + log.log(Level.FINER, "Input data matches schema 'SchemasUpdateAchReceivedPayment'"); } } catch (Exception e) { // deserialization failed, continue - log.log(Level.FINER, "Input data does not match schema 'UpdateAchReceivedPayment'", e); + log.log(Level.FINER, "Input data does not match schema 'SchemasUpdateAchReceivedPayment'", e); } if (match == 1) { @@ -140,13 +140,13 @@ public UpdateReceivedPaymentRequestData() { super("oneOf", Boolean.FALSE); } - public UpdateReceivedPaymentRequestData(UpdateAchReceivedPayment o) { + public UpdateReceivedPaymentRequestData(SchemasUpdateAchReceivedPayment o) { super("oneOf", Boolean.FALSE); setActualInstance(o); } static { - schemas.put("UpdateAchReceivedPayment", UpdateAchReceivedPayment.class); + schemas.put("SchemasUpdateAchReceivedPayment", SchemasUpdateAchReceivedPayment.class); JSON.registerDescendants(UpdateReceivedPaymentRequestData.class, Collections.unmodifiableMap(schemas)); } @@ -158,26 +158,26 @@ public Map> getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * UpdateAchReceivedPayment + * SchemasUpdateAchReceivedPayment * * It could be an instance of the 'oneOf' schemas. * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). */ @Override public void setActualInstance(Object instance) { - if (JSON.isInstanceOf(UpdateAchReceivedPayment.class, instance, new HashSet>())) { + if (JSON.isInstanceOf(SchemasUpdateAchReceivedPayment.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be UpdateAchReceivedPayment"); + throw new RuntimeException("Invalid instance type. Must be SchemasUpdateAchReceivedPayment"); } /** * Get the actual instance, which can be the following: - * UpdateAchReceivedPayment + * SchemasUpdateAchReceivedPayment * - * @return The actual instance (UpdateAchReceivedPayment) + * @return The actual instance (SchemasUpdateAchReceivedPayment) */ @Override public Object getActualInstance() { @@ -185,14 +185,14 @@ public Object getActualInstance() { } /** - * Get the actual instance of `UpdateAchReceivedPayment`. If the actual instance is not `UpdateAchReceivedPayment`, + * Get the actual instance of `SchemasUpdateAchReceivedPayment`. If the actual instance is not `SchemasUpdateAchReceivedPayment`, * the ClassCastException will be thrown. * - * @return The actual instance of `UpdateAchReceivedPayment` - * @throws ClassCastException if the instance is not `UpdateAchReceivedPayment` + * @return The actual instance of `SchemasUpdateAchReceivedPayment` + * @throws ClassCastException if the instance is not `SchemasUpdateAchReceivedPayment` */ - public UpdateAchReceivedPayment getUpdateAchReceivedPayment() throws ClassCastException { - return (UpdateAchReceivedPayment)super.getActualInstance(); + public SchemasUpdateAchReceivedPayment getSchemasUpdateAchReceivedPayment() throws ClassCastException { + return (SchemasUpdateAchReceivedPayment)super.getActualInstance(); } @@ -229,9 +229,9 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - if (getActualInstance() instanceof UpdateAchReceivedPayment) { + if (getActualInstance() instanceof SchemasUpdateAchReceivedPayment) { if (getActualInstance() != null) { - joiner.add(((UpdateAchReceivedPayment)getActualInstance()).toUrlQueryString(prefix + "one_of_0" + suffix)); + joiner.add(((SchemasUpdateAchReceivedPayment)getActualInstance()).toUrlQueryString(prefix + "one_of_0" + suffix)); } return joiner.toString(); } diff --git a/src/main/java/unit/java/sdk/model/UpdateSoleProprietorApplication.java b/src/main/java/unit/java/sdk/model/UpdateSoleProprietorApplication.java index 495759e2..843d4277 100644 --- a/src/main/java/unit/java/sdk/model/UpdateSoleProprietorApplication.java +++ b/src/main/java/unit/java/sdk/model/UpdateSoleProprietorApplication.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateSoleProprietorApplication */ @@ -36,13 +37,13 @@ UpdateSoleProprietorApplication.JSON_PROPERTY_TYPE, UpdateSoleProprietorApplication.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateSoleProprietorApplication { /** * Gets or Sets type */ public enum TypeEnum { - INDIVIDUALAPPLICATION("individualApplication"); + INDIVIDUAL_APPLICATION("individualApplication"); private String value; @@ -72,7 +73,7 @@ public static TypeEnum fromValue(String value) { } public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type = TypeEnum.INDIVIDUALAPPLICATION; + private TypeEnum type = TypeEnum.INDIVIDUAL_APPLICATION; public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; private UpdateSoleProprietorApplicationAttributes attributes; @@ -85,14 +86,13 @@ public UpdateSoleProprietorApplication type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateSoleProprietorApplication attributes(UpdateSoleProprietorApplicatio return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateSoleProprietorApplicationAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateSoleProprietorApplicationAttributes.java b/src/main/java/unit/java/sdk/model/UpdateSoleProprietorApplicationAttributes.java index aafbe184..415d86c1 100644 --- a/src/main/java/unit/java/sdk/model/UpdateSoleProprietorApplicationAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateSoleProprietorApplicationAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateSoleProprietorApplicationAttributes */ @@ -43,7 +44,7 @@ UpdateSoleProprietorApplicationAttributes.JSON_PROPERTY_BUSINESS_VERTICAL, UpdateSoleProprietorApplicationAttributes.JSON_PROPERTY_WEBSITE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateSoleProprietorApplicationAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -76,14 +77,13 @@ public UpdateSoleProprietorApplicationAttributes putTagsItem(String key, String return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -101,14 +101,13 @@ public UpdateSoleProprietorApplicationAttributes annualRevenue(SoleProprietorshi return this; } - /** + /** * Get annualRevenue * @return annualRevenue - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ANNUAL_REVENUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SoleProprietorshipAnnualRevenue getAnnualRevenue() { return annualRevenue; } @@ -126,14 +125,13 @@ public UpdateSoleProprietorApplicationAttributes numberOfEmployees(SoleProprieto return this; } - /** + /** * Get numberOfEmployees * @return numberOfEmployees - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_NUMBER_OF_EMPLOYEES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SoleProprietorshipNumberOfEmployees getNumberOfEmployees() { return numberOfEmployees; } @@ -151,14 +149,13 @@ public UpdateSoleProprietorApplicationAttributes businessVertical(BusinessVertic return this; } - /** + /** * Get businessVertical * @return businessVertical - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BUSINESS_VERTICAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessVertical getBusinessVertical() { return businessVertical; } @@ -176,14 +173,13 @@ public UpdateSoleProprietorApplicationAttributes website(String website) { return this; } - /** + /** * Get website * @return website - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_WEBSITE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWebsite() { return website; } @@ -281,28 +277,28 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } // add `annualRevenue` to the URL query string if (getAnnualRevenue() != null) { - joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sannualRevenue%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAnnualRevenue()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `numberOfEmployees` to the URL query string if (getNumberOfEmployees() != null) { - joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snumberOfEmployees%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNumberOfEmployees()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `businessVertical` to the URL query string if (getBusinessVertical() != null) { - joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbusinessVertical%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBusinessVertical()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `website` to the URL query string if (getWebsite() != null) { - joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%swebsite%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWebsite()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/UpdateStopPaymentRequest.java b/src/main/java/unit/java/sdk/model/UpdateStopPaymentRequest.java index 8464e38c..58f7d334 100644 --- a/src/main/java/unit/java/sdk/model/UpdateStopPaymentRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateStopPaymentRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateStopPaymentRequest */ @JsonPropertyOrder({ UpdateStopPaymentRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateStopPaymentRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateAchStopPayment data; @@ -48,14 +49,13 @@ public UpdateStopPaymentRequest data(UpdateAchStopPayment data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateAchStopPayment getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateTransactionRelationships.java b/src/main/java/unit/java/sdk/model/UpdateTransactionRelationships.java index 5459fb4d..4881ecc7 100644 --- a/src/main/java/unit/java/sdk/model/UpdateTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/UpdateTransactionRelationships.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateTransactionRelationships */ @JsonPropertyOrder({ UpdateTransactionRelationships.JSON_PROPERTY_ACCOUNT }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -48,14 +49,13 @@ public UpdateTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } diff --git a/src/main/java/unit/java/sdk/model/UpdateTransactionRequest.java b/src/main/java/unit/java/sdk/model/UpdateTransactionRequest.java index 48c54f80..6df9bf85 100644 --- a/src/main/java/unit/java/sdk/model/UpdateTransactionRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateTransactionRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateTransactionRequest */ @JsonPropertyOrder({ UpdateTransactionRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateTransactionRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateTransactionRequestData data; @@ -48,14 +49,13 @@ public UpdateTransactionRequest data(UpdateTransactionRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateTransactionRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateTransactionRequestData.java b/src/main/java/unit/java/sdk/model/UpdateTransactionRequestData.java index 4845c64f..1bc7f500 100644 --- a/src/main/java/unit/java/sdk/model/UpdateTransactionRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateTransactionRequestData.java @@ -56,7 +56,7 @@ import com.fasterxml.jackson.databind.ser.std.StdSerializer; import unit.java.sdk.JSON; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonDeserialize(using = UpdateTransactionRequestData.UpdateTransactionRequestDataDeserializer.class) @JsonSerialize(using = UpdateTransactionRequestData.UpdateTransactionRequestDataSerializer.class) public class UpdateTransactionRequestData extends AbstractOpenApiSchema { diff --git a/src/main/java/unit/java/sdk/model/UpdateTransactionTags.java b/src/main/java/unit/java/sdk/model/UpdateTransactionTags.java index 0365b0c3..ffc39d4c 100644 --- a/src/main/java/unit/java/sdk/model/UpdateTransactionTags.java +++ b/src/main/java/unit/java/sdk/model/UpdateTransactionTags.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateTransactionTags */ @@ -36,7 +37,7 @@ UpdateTransactionTags.JSON_PROPERTY_TYPE, UpdateTransactionTags.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateTransactionTags { /** * Gets or Sets type @@ -85,14 +86,13 @@ public UpdateTransactionTags type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -110,14 +110,13 @@ public UpdateTransactionTags attributes(UpdateTransactionTagsAttributes attribut return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public UpdateTransactionTagsAttributes getAttributes() { return attributes; } @@ -206,7 +205,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateTransactionTagsAttributes.java b/src/main/java/unit/java/sdk/model/UpdateTransactionTagsAttributes.java index cd3171f8..e23be8d8 100644 --- a/src/main/java/unit/java/sdk/model/UpdateTransactionTagsAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateTransactionTagsAttributes.java @@ -30,13 +30,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateTransactionTagsAttributes */ @JsonPropertyOrder({ UpdateTransactionTagsAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateTransactionTagsAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -57,14 +58,13 @@ public UpdateTransactionTagsAttributes putTagsItem(String key, String tagsItem) return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Map getTags() { return tags; } @@ -154,7 +154,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/UpdateWebhookRequest.java b/src/main/java/unit/java/sdk/model/UpdateWebhookRequest.java index 9d02c4b6..17ac94f7 100644 --- a/src/main/java/unit/java/sdk/model/UpdateWebhookRequest.java +++ b/src/main/java/unit/java/sdk/model/UpdateWebhookRequest.java @@ -29,13 +29,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateWebhookRequest */ @JsonPropertyOrder({ UpdateWebhookRequest.JSON_PROPERTY_DATA }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateWebhookRequest { public static final String JSON_PROPERTY_DATA = "data"; private UpdateWebhookRequestData data; @@ -48,14 +49,13 @@ public UpdateWebhookRequest data(UpdateWebhookRequestData data) { return this; } - /** + /** * Get data * @return data - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UpdateWebhookRequestData getData() { return data; } diff --git a/src/main/java/unit/java/sdk/model/UpdateWebhookRequestData.java b/src/main/java/unit/java/sdk/model/UpdateWebhookRequestData.java index 04dca05e..f9ad3f03 100644 --- a/src/main/java/unit/java/sdk/model/UpdateWebhookRequestData.java +++ b/src/main/java/unit/java/sdk/model/UpdateWebhookRequestData.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateWebhookRequestData */ @@ -36,7 +37,7 @@ UpdateWebhookRequestData.JSON_PROPERTY_TYPE, UpdateWebhookRequestData.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateWebhookRequestData { public static final String JSON_PROPERTY_TYPE = "type"; private String type; @@ -52,14 +53,13 @@ public UpdateWebhookRequestData type(String type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { return type; } @@ -77,14 +77,13 @@ public UpdateWebhookRequestData attributes(UpdateWebhookRequestDataAttributes at return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public UpdateWebhookRequestDataAttributes getAttributes() { return attributes; } @@ -173,7 +172,7 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/UpdateWebhookRequestDataAttributes.java b/src/main/java/unit/java/sdk/model/UpdateWebhookRequestDataAttributes.java index 2b3268b4..a1220504 100644 --- a/src/main/java/unit/java/sdk/model/UpdateWebhookRequestDataAttributes.java +++ b/src/main/java/unit/java/sdk/model/UpdateWebhookRequestDataAttributes.java @@ -30,13 +30,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * UpdateWebhookRequestDataAttributes */ @JsonPropertyOrder({ UpdateWebhookRequestDataAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class UpdateWebhookRequestDataAttributes { public static final String JSON_PROPERTY_TAGS = "tags"; private Map tags = new HashMap<>(); @@ -57,14 +58,13 @@ public UpdateWebhookRequestDataAttributes putTagsItem(String key, String tagsIte return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -154,7 +154,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/UploadApplicationDocumentContentType.java b/src/main/java/unit/java/sdk/model/UploadApplicationDocumentContentType.java new file mode 100644 index 00000000..51e15866 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/UploadApplicationDocumentContentType.java @@ -0,0 +1,80 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets UploadApplicationDocumentContentType + */ +public enum UploadApplicationDocumentContentType { + + APPLICATION_PDF("application/pdf"), + + IMAGE_PNG("image/png"), + + IMAGE_JPEG("image/jpeg"); + + private String value; + + UploadApplicationDocumentContentType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static UploadApplicationDocumentContentType fromValue(String value) { + for (UploadApplicationDocumentContentType b : UploadApplicationDocumentContentType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + if (prefix == null) { + prefix = ""; + } + + return String.format("%s=%s", prefix, this.toString()); + } + +} + diff --git a/src/main/java/unit/java/sdk/model/VerifyDocument.java b/src/main/java/unit/java/sdk/model/VerifyDocument.java index 6253ef10..cea56176 100644 --- a/src/main/java/unit/java/sdk/model/VerifyDocument.java +++ b/src/main/java/unit/java/sdk/model/VerifyDocument.java @@ -28,13 +28,14 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * VerifyDocument */ @JsonPropertyOrder({ VerifyDocument.JSON_PROPERTY_JOB_ID }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class VerifyDocument { public static final String JSON_PROPERTY_JOB_ID = "jobId"; private String jobId; @@ -47,14 +48,13 @@ public VerifyDocument jobId(String jobId) { return this; } - /** + /** * Get jobId * @return jobId - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_JOB_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getJobId() { return jobId; } @@ -141,7 +141,7 @@ public String toUrlQueryString(String prefix) { // add `jobId` to the URL query string if (getJobId() != null) { - joiner.add(String.format("%sjobId%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getJobId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sjobId%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getJobId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/VirtualCardStatus.java b/src/main/java/unit/java/sdk/model/VirtualCardStatus.java index 32fcc6f7..eaa54a7c 100644 --- a/src/main/java/unit/java/sdk/model/VirtualCardStatus.java +++ b/src/main/java/unit/java/sdk/model/VirtualCardStatus.java @@ -40,11 +40,11 @@ public enum VirtualCardStatus { FROZEN("Frozen"), - CLOSEDBYCUSTOMER("ClosedByCustomer"), + CLOSED_BY_CUSTOMER("ClosedByCustomer"), UNKNOWN("Unknown"), - SUSPECTEDFRAUD("SuspectedFraud"); + SUSPECTED_FRAUD("SuspectedFraud"); private String value; diff --git a/src/main/java/unit/java/sdk/model/WalletAccount.java b/src/main/java/unit/java/sdk/model/WalletAccount.java new file mode 100644 index 00000000..8c6879e8 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletAccount.java @@ -0,0 +1,228 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.Account; +import unit.java.sdk.model.WalletAccountAllOfAttributes; +import unit.java.sdk.model.WalletAccountAllOfRelationships; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; +/** + * WalletAccount + */ +@JsonPropertyOrder({ + WalletAccount.JSON_PROPERTY_ATTRIBUTES, + WalletAccount.JSON_PROPERTY_RELATIONSHIPS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@JsonIgnoreProperties( + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + +public class WalletAccount extends Account { + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private WalletAccountAllOfAttributes attributes; + + public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; + private WalletAccountAllOfRelationships relationships; + + public WalletAccount() { + } + + public WalletAccount attributes(WalletAccountAllOfAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletAccountAllOfAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(WalletAccountAllOfAttributes attributes) { + this.attributes = attributes; + } + + + public WalletAccount relationships(WalletAccountAllOfRelationships relationships) { + this.relationships = relationships; + return this; + } + + /** + * Get relationships + * @return relationships + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletAccountAllOfRelationships getRelationships() { + return relationships; + } + + + @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRelationships(WalletAccountAllOfRelationships relationships) { + this.relationships = relationships; + } + + + @Override + public WalletAccount id(String id) { + this.setId(id); + return this; + } + + @Override + public WalletAccount type(TypeEnum type) { + this.setType(type); + return this; + } + + /** + * Return true if this WalletAccount object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletAccount walletAccount = (WalletAccount) o; + return Objects.equals(this.attributes, walletAccount.attributes) && + Objects.equals(this.relationships, walletAccount.relationships) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, relationships, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletAccount {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `id` to the URL query string + if (getId() != null) { + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + // add `relationships` to the URL query string + if (getRelationships() != null) { + joiner.add(getRelationships().toUrlQueryString(prefix + "relationships" + suffix)); + } + + return joiner.toString(); + } +static { + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap>(); + mappings.put("WalletAccount", WalletAccount.class); + JSON.registerDiscriminator(WalletAccount.class, "type", mappings); +} +} + diff --git a/src/main/java/unit/java/sdk/model/WalletAccountAllOfAttributes.java b/src/main/java/unit/java/sdk/model/WalletAccountAllOfAttributes.java new file mode 100644 index 00000000..6e01f1fb --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletAccountAllOfAttributes.java @@ -0,0 +1,751 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletAccountAllOfAttributes + */ +@JsonPropertyOrder({ + WalletAccountAllOfAttributes.JSON_PROPERTY_CREATED_AT, + WalletAccountAllOfAttributes.JSON_PROPERTY_NAME, + WalletAccountAllOfAttributes.JSON_PROPERTY_STATUS, + WalletAccountAllOfAttributes.JSON_PROPERTY_WALLET_TERMS, + WalletAccountAllOfAttributes.JSON_PROPERTY_ROUTING_NUMBER, + WalletAccountAllOfAttributes.JSON_PROPERTY_ACCOUNT_NUMBER, + WalletAccountAllOfAttributes.JSON_PROPERTY_CURRENCY, + WalletAccountAllOfAttributes.JSON_PROPERTY_BALANCE, + WalletAccountAllOfAttributes.JSON_PROPERTY_HOLD, + WalletAccountAllOfAttributes.JSON_PROPERTY_AVAILABLE, + WalletAccountAllOfAttributes.JSON_PROPERTY_TAGS, + WalletAccountAllOfAttributes.JSON_PROPERTY_CLOSE_REASON, + WalletAccountAllOfAttributes.JSON_PROPERTY_FRAUD_REASON, + WalletAccountAllOfAttributes.JSON_PROPERTY_FREEZE_REASON +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletAccountAllOfAttributes { + public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; + private OffsetDateTime createdAt; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + /** + * Gets or Sets status + */ + public enum StatusEnum { + OPEN("Open"), + + CLOSED("Closed"), + + FROZEN("Frozen"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public static final String JSON_PROPERTY_WALLET_TERMS = "walletTerms"; + private String walletTerms; + + public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; + private String routingNumber; + + public static final String JSON_PROPERTY_ACCOUNT_NUMBER = "accountNumber"; + private String accountNumber; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private String currency = "USD"; + + public static final String JSON_PROPERTY_BALANCE = "balance"; + private Integer balance; + + public static final String JSON_PROPERTY_HOLD = "hold"; + private Integer hold; + + public static final String JSON_PROPERTY_AVAILABLE = "available"; + private Integer available; + + public static final String JSON_PROPERTY_TAGS = "tags"; + private Map tags = new HashMap<>(); + + /** + * Gets or Sets closeReason + */ + public enum CloseReasonEnum { + BY_CUSTOMER("ByCustomer"), + + FRAUD("Fraud"), + + OVERDUE("Overdue"), + + NEGATIVE_BALANCE("NegativeBalance"), + + BY_BANK("ByBank"), + + BREACH_OF_TERMS_AND_CONDITIONS("BreachOfTermsAndConditions"), + + NO_ACCOUNT_ACTIVITY("NoAccountActivity"), + + PROGRAM_CHANGE("ProgramChange"); + + private String value; + + CloseReasonEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CloseReasonEnum fromValue(String value) { + for (CloseReasonEnum b : CloseReasonEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CLOSE_REASON = "closeReason"; + private CloseReasonEnum closeReason; + + /** + * Gets or Sets fraudReason + */ + public enum FraudReasonEnum { + ACH_ACTIVITY("ACHActivity"), + + CARD_ACTIVITY("CardActivity"), + + CHECK_ACTIVITY("CheckActivity"), + + APPLICATION_HISTORY("ApplicationHistory"), + + ACCOUNT_ACTIVITY("AccountActivity"), + + CLIENT_IDENTIFIED("ClientIdentified"), + + IDENTITY_THEFT("IdentityTheft"), + + LINKED_TO_FRAUDULENT_CUSTOMER("LinkedToFraudulentCustomer"); + + private String value; + + FraudReasonEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FraudReasonEnum fromValue(String value) { + for (FraudReasonEnum b : FraudReasonEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_FRAUD_REASON = "fraudReason"; + private FraudReasonEnum fraudReason; + + public static final String JSON_PROPERTY_FREEZE_REASON = "freezeReason"; + private String freezeReason; + + public WalletAccountAllOfAttributes() { + } + + public WalletAccountAllOfAttributes createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public WalletAccountAllOfAttributes name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + public WalletAccountAllOfAttributes status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public StatusEnum getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public WalletAccountAllOfAttributes walletTerms(String walletTerms) { + this.walletTerms = walletTerms; + return this; + } + + /** + * Get walletTerms + * @return walletTerms + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_WALLET_TERMS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getWalletTerms() { + return walletTerms; + } + + + @JsonProperty(JSON_PROPERTY_WALLET_TERMS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWalletTerms(String walletTerms) { + this.walletTerms = walletTerms; + } + + + public WalletAccountAllOfAttributes routingNumber(String routingNumber) { + this.routingNumber = routingNumber; + return this; + } + + /** + * Get routingNumber + * @return routingNumber + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRoutingNumber() { + return routingNumber; + } + + + @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRoutingNumber(String routingNumber) { + this.routingNumber = routingNumber; + } + + + public WalletAccountAllOfAttributes accountNumber(String accountNumber) { + this.accountNumber = accountNumber; + return this; + } + + /** + * Get accountNumber + * @return accountNumber + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAccountNumber() { + return accountNumber; + } + + + @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + + + public WalletAccountAllOfAttributes currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Get currency + * @return currency + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public String getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCurrency(String currency) { + this.currency = currency; + } + + + public WalletAccountAllOfAttributes balance(Integer balance) { + this.balance = balance; + return this; + } + + /** + * Get balance + * @return balance + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_BALANCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getBalance() { + return balance; + } + + + @JsonProperty(JSON_PROPERTY_BALANCE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBalance(Integer balance) { + this.balance = balance; + } + + + public WalletAccountAllOfAttributes hold(Integer hold) { + this.hold = hold; + return this; + } + + /** + * Get hold + * @return hold + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_HOLD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getHold() { + return hold; + } + + + @JsonProperty(JSON_PROPERTY_HOLD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setHold(Integer hold) { + this.hold = hold; + } + + + public WalletAccountAllOfAttributes available(Integer available) { + this.available = available; + return this; + } + + /** + * Get available + * @return available + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_AVAILABLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Integer getAvailable() { + return available; + } + + + @JsonProperty(JSON_PROPERTY_AVAILABLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAvailable(Integer available) { + this.available = available; + } + + + public WalletAccountAllOfAttributes tags(Map tags) { + this.tags = tags; + return this; + } + + public WalletAccountAllOfAttributes putTagsItem(String key, String tagsItem) { + if (this.tags == null) { + this.tags = new HashMap<>(); + } + this.tags.put(key, tagsItem); + return this; + } + + /** + * Get tags + * @return tags + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public Map getTags() { + return tags; + } + + + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTags(Map tags) { + this.tags = tags; + } + + + public WalletAccountAllOfAttributes closeReason(CloseReasonEnum closeReason) { + this.closeReason = closeReason; + return this; + } + + /** + * Get closeReason + * @return closeReason + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_CLOSE_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public CloseReasonEnum getCloseReason() { + return closeReason; + } + + + @JsonProperty(JSON_PROPERTY_CLOSE_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloseReason(CloseReasonEnum closeReason) { + this.closeReason = closeReason; + } + + + public WalletAccountAllOfAttributes fraudReason(FraudReasonEnum fraudReason) { + this.fraudReason = fraudReason; + return this; + } + + /** + * Get fraudReason + * @return fraudReason + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FRAUD_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public FraudReasonEnum getFraudReason() { + return fraudReason; + } + + + @JsonProperty(JSON_PROPERTY_FRAUD_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFraudReason(FraudReasonEnum fraudReason) { + this.fraudReason = fraudReason; + } + + + public WalletAccountAllOfAttributes freezeReason(String freezeReason) { + this.freezeReason = freezeReason; + return this; + } + + /** + * Get freezeReason + * @return freezeReason + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_FREEZE_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getFreezeReason() { + return freezeReason; + } + + + @JsonProperty(JSON_PROPERTY_FREEZE_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFreezeReason(String freezeReason) { + this.freezeReason = freezeReason; + } + + + /** + * Return true if this WalletAccount_allOf_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletAccountAllOfAttributes walletAccountAllOfAttributes = (WalletAccountAllOfAttributes) o; + return Objects.equals(this.createdAt, walletAccountAllOfAttributes.createdAt) && + Objects.equals(this.name, walletAccountAllOfAttributes.name) && + Objects.equals(this.status, walletAccountAllOfAttributes.status) && + Objects.equals(this.walletTerms, walletAccountAllOfAttributes.walletTerms) && + Objects.equals(this.routingNumber, walletAccountAllOfAttributes.routingNumber) && + Objects.equals(this.accountNumber, walletAccountAllOfAttributes.accountNumber) && + Objects.equals(this.currency, walletAccountAllOfAttributes.currency) && + Objects.equals(this.balance, walletAccountAllOfAttributes.balance) && + Objects.equals(this.hold, walletAccountAllOfAttributes.hold) && + Objects.equals(this.available, walletAccountAllOfAttributes.available) && + Objects.equals(this.tags, walletAccountAllOfAttributes.tags) && + Objects.equals(this.closeReason, walletAccountAllOfAttributes.closeReason) && + Objects.equals(this.fraudReason, walletAccountAllOfAttributes.fraudReason) && + Objects.equals(this.freezeReason, walletAccountAllOfAttributes.freezeReason); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, name, status, walletTerms, routingNumber, accountNumber, currency, balance, hold, available, tags, closeReason, fraudReason, freezeReason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletAccountAllOfAttributes {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" walletTerms: ").append(toIndentedString(walletTerms)).append("\n"); + sb.append(" routingNumber: ").append(toIndentedString(routingNumber)).append("\n"); + sb.append(" accountNumber: ").append(toIndentedString(accountNumber)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" balance: ").append(toIndentedString(balance)).append("\n"); + sb.append(" hold: ").append(toIndentedString(hold)).append("\n"); + sb.append(" available: ").append(toIndentedString(available)).append("\n"); + sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" closeReason: ").append(toIndentedString(closeReason)).append("\n"); + sb.append(" fraudReason: ").append(toIndentedString(fraudReason)).append("\n"); + sb.append(" freezeReason: ").append(toIndentedString(freezeReason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `createdAt` to the URL query string + if (getCreatedAt() != null) { + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `name` to the URL query string + if (getName() != null) { + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `status` to the URL query string + if (getStatus() != null) { + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `walletTerms` to the URL query string + if (getWalletTerms() != null) { + joiner.add(String.format("%swalletTerms%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getWalletTerms()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `routingNumber` to the URL query string + if (getRoutingNumber() != null) { + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `accountNumber` to the URL query string + if (getAccountNumber() != null) { + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `currency` to the URL query string + if (getCurrency() != null) { + joiner.add(String.format("%scurrency%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCurrency()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `balance` to the URL query string + if (getBalance() != null) { + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `hold` to the URL query string + if (getHold() != null) { + joiner.add(String.format("%shold%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getHold()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `available` to the URL query string + if (getAvailable() != null) { + joiner.add(String.format("%savailable%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAvailable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `tags` to the URL query string + if (getTags() != null) { + for (String _key : getTags().keySet()) { + joiner.add(String.format("%stags%s%s=%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + } + + // add `closeReason` to the URL query string + if (getCloseReason() != null) { + joiner.add(String.format("%scloseReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCloseReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `fraudReason` to the URL query string + if (getFraudReason() != null) { + joiner.add(String.format("%sfraudReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFraudReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `freezeReason` to the URL query string + if (getFreezeReason() != null) { + joiner.add(String.format("%sfreezeReason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getFreezeReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/WalletAccountAllOfRelationships.java b/src/main/java/unit/java/sdk/model/WalletAccountAllOfRelationships.java new file mode 100644 index 00000000..e402e916 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletAccountAllOfRelationships.java @@ -0,0 +1,152 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import java.util.Map; +import unit.java.sdk.model.CustomerRelationship; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletAccountAllOfRelationships + */ +@JsonPropertyOrder({ + WalletAccountAllOfRelationships.JSON_PROPERTY_CUSTOMER +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletAccountAllOfRelationships { + public static final String JSON_PROPERTY_CUSTOMER = "customer"; + private CustomerRelationship customer; + + public WalletAccountAllOfRelationships() { + } + + public WalletAccountAllOfRelationships customer(CustomerRelationship customer) { + this.customer = customer; + return this; + } + + /** + * Get customer + * @return customer + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public CustomerRelationship getCustomer() { + return customer; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCustomer(CustomerRelationship customer) { + this.customer = customer; + } + + + /** + * Return true if this WalletAccount_allOf_relationships object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletAccountAllOfRelationships walletAccountAllOfRelationships = (WalletAccountAllOfRelationships) o; + return Objects.equals(this.customer, walletAccountAllOfRelationships.customer); + } + + @Override + public int hashCode() { + return Objects.hash(customer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletAccountAllOfRelationships {\n"); + sb.append(" customer: ").append(toIndentedString(customer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `customer` to the URL query string + if (getCustomer() != null) { + joiner.add(getCustomer().toUrlQueryString(prefix + "customer" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/WalletLimits.java b/src/main/java/unit/java/sdk/model/WalletLimits.java new file mode 100644 index 00000000..2dd82836 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletLimits.java @@ -0,0 +1,181 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.Limits; +import unit.java.sdk.model.WalletLimitsAllOfAttributes; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; +/** + * WalletLimits + */ +@JsonPropertyOrder({ + WalletLimits.JSON_PROPERTY_ATTRIBUTES +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +@JsonIgnoreProperties( + value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization + allowSetters = true // allows the type to be set during deserialization +) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) + +public class WalletLimits extends Limits { + public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; + private WalletLimitsAllOfAttributes attributes; + + public WalletLimits() { + } + + public WalletLimits attributes(WalletLimitsAllOfAttributes attributes) { + this.attributes = attributes; + return this; + } + + /** + * Get attributes + * @return attributes + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributes getAttributes() { + return attributes; + } + + + @JsonProperty(JSON_PROPERTY_ATTRIBUTES) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAttributes(WalletLimitsAllOfAttributes attributes) { + this.attributes = attributes; + } + + + @Override + public WalletLimits type(TypeEnum type) { + this.setType(type); + return this; + } + + /** + * Return true if this WalletLimits object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletLimits walletLimits = (WalletLimits) o; + return Objects.equals(this.attributes, walletLimits.attributes) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(attributes, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletLimits {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `type` to the URL query string + if (getType() != null) { + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `attributes` to the URL query string + if (getAttributes() != null) { + joiner.add(getAttributes().toUrlQueryString(prefix + "attributes" + suffix)); + } + + return joiner.toString(); + } +static { + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap>(); + mappings.put("WalletLimits", WalletLimits.class); + JSON.registerDiscriminator(WalletLimits.class, "type", mappings); +} +} + diff --git a/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributes.java b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributes.java new file mode 100644 index 00000000..dc31e1e7 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributes.java @@ -0,0 +1,295 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.DepositLimitsAllOfAttributesAch; +import unit.java.sdk.model.DepositLimitsAllOfAttributesCard; +import unit.java.sdk.model.DepositLimitsAllOfAttributesCheckDeposit; +import unit.java.sdk.model.WalletLimitsAllOfAttributesCheckPayment; +import unit.java.sdk.model.WalletLimitsAllOfAttributesWire; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletLimitsAllOfAttributes + */ +@JsonPropertyOrder({ + WalletLimitsAllOfAttributes.JSON_PROPERTY_ACH, + WalletLimitsAllOfAttributes.JSON_PROPERTY_CARD, + WalletLimitsAllOfAttributes.JSON_PROPERTY_CHECK_DEPOSIT, + WalletLimitsAllOfAttributes.JSON_PROPERTY_WIRE, + WalletLimitsAllOfAttributes.JSON_PROPERTY_CHECK_PAYMENT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletLimitsAllOfAttributes { + public static final String JSON_PROPERTY_ACH = "ach"; + private DepositLimitsAllOfAttributesAch ach; + + public static final String JSON_PROPERTY_CARD = "card"; + private DepositLimitsAllOfAttributesCard card; + + public static final String JSON_PROPERTY_CHECK_DEPOSIT = "checkDeposit"; + private DepositLimitsAllOfAttributesCheckDeposit checkDeposit; + + public static final String JSON_PROPERTY_WIRE = "wire"; + private WalletLimitsAllOfAttributesWire wire; + + public static final String JSON_PROPERTY_CHECK_PAYMENT = "checkPayment"; + private WalletLimitsAllOfAttributesCheckPayment checkPayment; + + public WalletLimitsAllOfAttributes() { + } + + public WalletLimitsAllOfAttributes ach(DepositLimitsAllOfAttributesAch ach) { + this.ach = ach; + return this; + } + + /** + * Get ach + * @return ach + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_ACH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesAch getAch() { + return ach; + } + + + @JsonProperty(JSON_PROPERTY_ACH) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAch(DepositLimitsAllOfAttributesAch ach) { + this.ach = ach; + } + + + public WalletLimitsAllOfAttributes card(DepositLimitsAllOfAttributesCard card) { + this.card = card; + return this; + } + + /** + * Get card + * @return card + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CARD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesCard getCard() { + return card; + } + + + @JsonProperty(JSON_PROPERTY_CARD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCard(DepositLimitsAllOfAttributesCard card) { + this.card = card; + } + + + public WalletLimitsAllOfAttributes checkDeposit(DepositLimitsAllOfAttributesCheckDeposit checkDeposit) { + this.checkDeposit = checkDeposit; + return this; + } + + /** + * Get checkDeposit + * @return checkDeposit + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CHECK_DEPOSIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public DepositLimitsAllOfAttributesCheckDeposit getCheckDeposit() { + return checkDeposit; + } + + + @JsonProperty(JSON_PROPERTY_CHECK_DEPOSIT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCheckDeposit(DepositLimitsAllOfAttributesCheckDeposit checkDeposit) { + this.checkDeposit = checkDeposit; + } + + + public WalletLimitsAllOfAttributes wire(WalletLimitsAllOfAttributesWire wire) { + this.wire = wire; + return this; + } + + /** + * Get wire + * @return wire + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_WIRE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributesWire getWire() { + return wire; + } + + + @JsonProperty(JSON_PROPERTY_WIRE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setWire(WalletLimitsAllOfAttributesWire wire) { + this.wire = wire; + } + + + public WalletLimitsAllOfAttributes checkPayment(WalletLimitsAllOfAttributesCheckPayment checkPayment) { + this.checkPayment = checkPayment; + return this; + } + + /** + * Get checkPayment + * @return checkPayment + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_CHECK_PAYMENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributesCheckPayment getCheckPayment() { + return checkPayment; + } + + + @JsonProperty(JSON_PROPERTY_CHECK_PAYMENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCheckPayment(WalletLimitsAllOfAttributesCheckPayment checkPayment) { + this.checkPayment = checkPayment; + } + + + /** + * Return true if this WalletLimits_allOf_attributes object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletLimitsAllOfAttributes walletLimitsAllOfAttributes = (WalletLimitsAllOfAttributes) o; + return Objects.equals(this.ach, walletLimitsAllOfAttributes.ach) && + Objects.equals(this.card, walletLimitsAllOfAttributes.card) && + Objects.equals(this.checkDeposit, walletLimitsAllOfAttributes.checkDeposit) && + Objects.equals(this.wire, walletLimitsAllOfAttributes.wire) && + Objects.equals(this.checkPayment, walletLimitsAllOfAttributes.checkPayment); + } + + @Override + public int hashCode() { + return Objects.hash(ach, card, checkDeposit, wire, checkPayment); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletLimitsAllOfAttributes {\n"); + sb.append(" ach: ").append(toIndentedString(ach)).append("\n"); + sb.append(" card: ").append(toIndentedString(card)).append("\n"); + sb.append(" checkDeposit: ").append(toIndentedString(checkDeposit)).append("\n"); + sb.append(" wire: ").append(toIndentedString(wire)).append("\n"); + sb.append(" checkPayment: ").append(toIndentedString(checkPayment)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `ach` to the URL query string + if (getAch() != null) { + joiner.add(getAch().toUrlQueryString(prefix + "ach" + suffix)); + } + + // add `card` to the URL query string + if (getCard() != null) { + joiner.add(getCard().toUrlQueryString(prefix + "card" + suffix)); + } + + // add `checkDeposit` to the URL query string + if (getCheckDeposit() != null) { + joiner.add(getCheckDeposit().toUrlQueryString(prefix + "checkDeposit" + suffix)); + } + + // add `wire` to the URL query string + if (getWire() != null) { + joiner.add(getWire().toUrlQueryString(prefix + "wire" + suffix)); + } + + // add `checkPayment` to the URL query string + if (getCheckPayment() != null) { + joiner.add(getCheckPayment().toUrlQueryString(prefix + "checkPayment" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPayment.java b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPayment.java new file mode 100644 index 00000000..47fdd4eb --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPayment.java @@ -0,0 +1,222 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.WalletLimitsAllOfAttributesCheckPaymentLimits; +import unit.java.sdk.model.WalletLimitsAllOfAttributesCheckPaymentTotalsDaily; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletLimitsAllOfAttributesCheckPayment + */ +@JsonPropertyOrder({ + WalletLimitsAllOfAttributesCheckPayment.JSON_PROPERTY_LIMITS, + WalletLimitsAllOfAttributesCheckPayment.JSON_PROPERTY_TOTALS_DAILY, + WalletLimitsAllOfAttributesCheckPayment.JSON_PROPERTY_TOTALS_MONTLY +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletLimitsAllOfAttributesCheckPayment { + public static final String JSON_PROPERTY_LIMITS = "limits"; + private WalletLimitsAllOfAttributesCheckPaymentLimits limits; + + public static final String JSON_PROPERTY_TOTALS_DAILY = "totalsDaily"; + private WalletLimitsAllOfAttributesCheckPaymentTotalsDaily totalsDaily; + + public static final String JSON_PROPERTY_TOTALS_MONTLY = "totalsMontly"; + private WalletLimitsAllOfAttributesCheckPaymentTotalsDaily totalsMontly; + + public WalletLimitsAllOfAttributesCheckPayment() { + } + + public WalletLimitsAllOfAttributesCheckPayment limits(WalletLimitsAllOfAttributesCheckPaymentLimits limits) { + this.limits = limits; + return this; + } + + /** + * Get limits + * @return limits + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LIMITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributesCheckPaymentLimits getLimits() { + return limits; + } + + + @JsonProperty(JSON_PROPERTY_LIMITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLimits(WalletLimitsAllOfAttributesCheckPaymentLimits limits) { + this.limits = limits; + } + + + public WalletLimitsAllOfAttributesCheckPayment totalsDaily(WalletLimitsAllOfAttributesCheckPaymentTotalsDaily totalsDaily) { + this.totalsDaily = totalsDaily; + return this; + } + + /** + * Get totalsDaily + * @return totalsDaily + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributesCheckPaymentTotalsDaily getTotalsDaily() { + return totalsDaily; + } + + + @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsDaily(WalletLimitsAllOfAttributesCheckPaymentTotalsDaily totalsDaily) { + this.totalsDaily = totalsDaily; + } + + + public WalletLimitsAllOfAttributesCheckPayment totalsMontly(WalletLimitsAllOfAttributesCheckPaymentTotalsDaily totalsMontly) { + this.totalsMontly = totalsMontly; + return this; + } + + /** + * Get totalsMontly + * @return totalsMontly + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTALS_MONTLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributesCheckPaymentTotalsDaily getTotalsMontly() { + return totalsMontly; + } + + + @JsonProperty(JSON_PROPERTY_TOTALS_MONTLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsMontly(WalletLimitsAllOfAttributesCheckPaymentTotalsDaily totalsMontly) { + this.totalsMontly = totalsMontly; + } + + + /** + * Return true if this WalletLimits_allOf_attributes_checkPayment object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletLimitsAllOfAttributesCheckPayment walletLimitsAllOfAttributesCheckPayment = (WalletLimitsAllOfAttributesCheckPayment) o; + return Objects.equals(this.limits, walletLimitsAllOfAttributesCheckPayment.limits) && + Objects.equals(this.totalsDaily, walletLimitsAllOfAttributesCheckPayment.totalsDaily) && + Objects.equals(this.totalsMontly, walletLimitsAllOfAttributesCheckPayment.totalsMontly); + } + + @Override + public int hashCode() { + return Objects.hash(limits, totalsDaily, totalsMontly); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletLimitsAllOfAttributesCheckPayment {\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" totalsDaily: ").append(toIndentedString(totalsDaily)).append("\n"); + sb.append(" totalsMontly: ").append(toIndentedString(totalsMontly)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `limits` to the URL query string + if (getLimits() != null) { + joiner.add(getLimits().toUrlQueryString(prefix + "limits" + suffix)); + } + + // add `totalsDaily` to the URL query string + if (getTotalsDaily() != null) { + joiner.add(getTotalsDaily().toUrlQueryString(prefix + "totalsDaily" + suffix)); + } + + // add `totalsMontly` to the URL query string + if (getTotalsMontly() != null) { + joiner.add(getTotalsMontly().toUrlQueryString(prefix + "totalsMontly" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPaymentLimits.java b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPaymentLimits.java new file mode 100644 index 00000000..77b2c49b --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPaymentLimits.java @@ -0,0 +1,256 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletLimitsAllOfAttributesCheckPaymentLimits + */ +@JsonPropertyOrder({ + WalletLimitsAllOfAttributesCheckPaymentLimits.JSON_PROPERTY_DAILY_SENT, + WalletLimitsAllOfAttributesCheckPaymentLimits.JSON_PROPERTY_MONTLY_SENT, + WalletLimitsAllOfAttributesCheckPaymentLimits.JSON_PROPERTY_DAILY_SENT_SOFT, + WalletLimitsAllOfAttributesCheckPaymentLimits.JSON_PROPERTY_MONTHLY_SENT_SOFT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletLimitsAllOfAttributesCheckPaymentLimits { + public static final String JSON_PROPERTY_DAILY_SENT = "dailySent"; + private BigDecimal dailySent; + + public static final String JSON_PROPERTY_MONTLY_SENT = "montlySent"; + private BigDecimal montlySent; + + public static final String JSON_PROPERTY_DAILY_SENT_SOFT = "dailySentSoft"; + private BigDecimal dailySentSoft; + + public static final String JSON_PROPERTY_MONTHLY_SENT_SOFT = "monthlySentSoft"; + private BigDecimal monthlySentSoft; + + public WalletLimitsAllOfAttributesCheckPaymentLimits() { + } + + public WalletLimitsAllOfAttributesCheckPaymentLimits dailySent(BigDecimal dailySent) { + this.dailySent = dailySent; + return this; + } + + /** + * Get dailySent + * @return dailySent + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DAILY_SENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDailySent() { + return dailySent; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_SENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDailySent(BigDecimal dailySent) { + this.dailySent = dailySent; + } + + + public WalletLimitsAllOfAttributesCheckPaymentLimits montlySent(BigDecimal montlySent) { + this.montlySent = montlySent; + return this; + } + + /** + * Get montlySent + * @return montlySent + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MONTLY_SENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMontlySent() { + return montlySent; + } + + + @JsonProperty(JSON_PROPERTY_MONTLY_SENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMontlySent(BigDecimal montlySent) { + this.montlySent = montlySent; + } + + + public WalletLimitsAllOfAttributesCheckPaymentLimits dailySentSoft(BigDecimal dailySentSoft) { + this.dailySentSoft = dailySentSoft; + return this; + } + + /** + * Get dailySentSoft + * @return dailySentSoft + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DAILY_SENT_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getDailySentSoft() { + return dailySentSoft; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_SENT_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDailySentSoft(BigDecimal dailySentSoft) { + this.dailySentSoft = dailySentSoft; + } + + + public WalletLimitsAllOfAttributesCheckPaymentLimits monthlySentSoft(BigDecimal monthlySentSoft) { + this.monthlySentSoft = monthlySentSoft; + return this; + } + + /** + * Get monthlySentSoft + * @return monthlySentSoft + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MONTHLY_SENT_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMonthlySentSoft() { + return monthlySentSoft; + } + + + @JsonProperty(JSON_PROPERTY_MONTHLY_SENT_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMonthlySentSoft(BigDecimal monthlySentSoft) { + this.monthlySentSoft = monthlySentSoft; + } + + + /** + * Return true if this WalletLimits_allOf_attributes_checkPayment_limits object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletLimitsAllOfAttributesCheckPaymentLimits walletLimitsAllOfAttributesCheckPaymentLimits = (WalletLimitsAllOfAttributesCheckPaymentLimits) o; + return Objects.equals(this.dailySent, walletLimitsAllOfAttributesCheckPaymentLimits.dailySent) && + Objects.equals(this.montlySent, walletLimitsAllOfAttributesCheckPaymentLimits.montlySent) && + Objects.equals(this.dailySentSoft, walletLimitsAllOfAttributesCheckPaymentLimits.dailySentSoft) && + Objects.equals(this.monthlySentSoft, walletLimitsAllOfAttributesCheckPaymentLimits.monthlySentSoft); + } + + @Override + public int hashCode() { + return Objects.hash(dailySent, montlySent, dailySentSoft, monthlySentSoft); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletLimitsAllOfAttributesCheckPaymentLimits {\n"); + sb.append(" dailySent: ").append(toIndentedString(dailySent)).append("\n"); + sb.append(" montlySent: ").append(toIndentedString(montlySent)).append("\n"); + sb.append(" dailySentSoft: ").append(toIndentedString(dailySentSoft)).append("\n"); + sb.append(" monthlySentSoft: ").append(toIndentedString(monthlySentSoft)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `dailySent` to the URL query string + if (getDailySent() != null) { + joiner.add(String.format("%sdailySent%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailySent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `montlySent` to the URL query string + if (getMontlySent() != null) { + joiner.add(String.format("%smontlySent%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMontlySent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `dailySentSoft` to the URL query string + if (getDailySentSoft() != null) { + joiner.add(String.format("%sdailySentSoft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailySentSoft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `monthlySentSoft` to the URL query string + if (getMonthlySentSoft() != null) { + joiner.add(String.format("%smonthlySentSoft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMonthlySentSoft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPaymentTotalsDaily.java b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPaymentTotalsDaily.java new file mode 100644 index 00000000..b28ca6de --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesCheckPaymentTotalsDaily.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletLimitsAllOfAttributesCheckPaymentTotalsDaily + */ +@JsonPropertyOrder({ + WalletLimitsAllOfAttributesCheckPaymentTotalsDaily.JSON_PROPERTY_SENT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletLimitsAllOfAttributesCheckPaymentTotalsDaily { + public static final String JSON_PROPERTY_SENT = "sent"; + private BigDecimal sent; + + public WalletLimitsAllOfAttributesCheckPaymentTotalsDaily() { + } + + public WalletLimitsAllOfAttributesCheckPaymentTotalsDaily sent(BigDecimal sent) { + this.sent = sent; + return this; + } + + /** + * Get sent + * @return sent + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_SENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getSent() { + return sent; + } + + + @JsonProperty(JSON_PROPERTY_SENT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSent(BigDecimal sent) { + this.sent = sent; + } + + + /** + * Return true if this WalletLimits_allOf_attributes_checkPayment_totalsDaily object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletLimitsAllOfAttributesCheckPaymentTotalsDaily walletLimitsAllOfAttributesCheckPaymentTotalsDaily = (WalletLimitsAllOfAttributesCheckPaymentTotalsDaily) o; + return Objects.equals(this.sent, walletLimitsAllOfAttributesCheckPaymentTotalsDaily.sent); + } + + @Override + public int hashCode() { + return Objects.hash(sent); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletLimitsAllOfAttributesCheckPaymentTotalsDaily {\n"); + sb.append(" sent: ").append(toIndentedString(sent)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `sent` to the URL query string + if (getSent() != null) { + joiner.add(String.format("%ssent%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSent()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWire.java b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWire.java new file mode 100644 index 00000000..56b8eb51 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWire.java @@ -0,0 +1,222 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import unit.java.sdk.model.WalletLimitsAllOfAttributesWireLimits; +import unit.java.sdk.model.WalletLimitsAllOfAttributesWireTotalsDaily; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletLimitsAllOfAttributesWire + */ +@JsonPropertyOrder({ + WalletLimitsAllOfAttributesWire.JSON_PROPERTY_LIMITS, + WalletLimitsAllOfAttributesWire.JSON_PROPERTY_TOTALS_DAILY, + WalletLimitsAllOfAttributesWire.JSON_PROPERTY_TOTALS_MONTLY +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletLimitsAllOfAttributesWire { + public static final String JSON_PROPERTY_LIMITS = "limits"; + private WalletLimitsAllOfAttributesWireLimits limits; + + public static final String JSON_PROPERTY_TOTALS_DAILY = "totalsDaily"; + private WalletLimitsAllOfAttributesWireTotalsDaily totalsDaily; + + public static final String JSON_PROPERTY_TOTALS_MONTLY = "totalsMontly"; + private WalletLimitsAllOfAttributesWireTotalsDaily totalsMontly; + + public WalletLimitsAllOfAttributesWire() { + } + + public WalletLimitsAllOfAttributesWire limits(WalletLimitsAllOfAttributesWireLimits limits) { + this.limits = limits; + return this; + } + + /** + * Get limits + * @return limits + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_LIMITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributesWireLimits getLimits() { + return limits; + } + + + @JsonProperty(JSON_PROPERTY_LIMITS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setLimits(WalletLimitsAllOfAttributesWireLimits limits) { + this.limits = limits; + } + + + public WalletLimitsAllOfAttributesWire totalsDaily(WalletLimitsAllOfAttributesWireTotalsDaily totalsDaily) { + this.totalsDaily = totalsDaily; + return this; + } + + /** + * Get totalsDaily + * @return totalsDaily + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributesWireTotalsDaily getTotalsDaily() { + return totalsDaily; + } + + + @JsonProperty(JSON_PROPERTY_TOTALS_DAILY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsDaily(WalletLimitsAllOfAttributesWireTotalsDaily totalsDaily) { + this.totalsDaily = totalsDaily; + } + + + public WalletLimitsAllOfAttributesWire totalsMontly(WalletLimitsAllOfAttributesWireTotalsDaily totalsMontly) { + this.totalsMontly = totalsMontly; + return this; + } + + /** + * Get totalsMontly + * @return totalsMontly + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TOTALS_MONTLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public WalletLimitsAllOfAttributesWireTotalsDaily getTotalsMontly() { + return totalsMontly; + } + + + @JsonProperty(JSON_PROPERTY_TOTALS_MONTLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotalsMontly(WalletLimitsAllOfAttributesWireTotalsDaily totalsMontly) { + this.totalsMontly = totalsMontly; + } + + + /** + * Return true if this WalletLimits_allOf_attributes_wire object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletLimitsAllOfAttributesWire walletLimitsAllOfAttributesWire = (WalletLimitsAllOfAttributesWire) o; + return Objects.equals(this.limits, walletLimitsAllOfAttributesWire.limits) && + Objects.equals(this.totalsDaily, walletLimitsAllOfAttributesWire.totalsDaily) && + Objects.equals(this.totalsMontly, walletLimitsAllOfAttributesWire.totalsMontly); + } + + @Override + public int hashCode() { + return Objects.hash(limits, totalsDaily, totalsMontly); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletLimitsAllOfAttributesWire {\n"); + sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); + sb.append(" totalsDaily: ").append(toIndentedString(totalsDaily)).append("\n"); + sb.append(" totalsMontly: ").append(toIndentedString(totalsMontly)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `limits` to the URL query string + if (getLimits() != null) { + joiner.add(getLimits().toUrlQueryString(prefix + "limits" + suffix)); + } + + // add `totalsDaily` to the URL query string + if (getTotalsDaily() != null) { + joiner.add(getTotalsDaily().toUrlQueryString(prefix + "totalsDaily" + suffix)); + } + + // add `totalsMontly` to the URL query string + if (getTotalsMontly() != null) { + joiner.add(getTotalsMontly().toUrlQueryString(prefix + "totalsMontly" + suffix)); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWireLimits.java b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWireLimits.java new file mode 100644 index 00000000..432a2ffb --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWireLimits.java @@ -0,0 +1,256 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletLimitsAllOfAttributesWireLimits + */ +@JsonPropertyOrder({ + WalletLimitsAllOfAttributesWireLimits.JSON_PROPERTY_DAILY_TRANSFER, + WalletLimitsAllOfAttributesWireLimits.JSON_PROPERTY_MONTLY_TRANSFER, + WalletLimitsAllOfAttributesWireLimits.JSON_PROPERTY_DAILY_TRANSFER_SOFT, + WalletLimitsAllOfAttributesWireLimits.JSON_PROPERTY_MONTLY_TRANSFER_SOFT +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletLimitsAllOfAttributesWireLimits { + public static final String JSON_PROPERTY_DAILY_TRANSFER = "dailyTransfer"; + private BigDecimal dailyTransfer; + + public static final String JSON_PROPERTY_MONTLY_TRANSFER = "montlyTransfer"; + private BigDecimal montlyTransfer; + + public static final String JSON_PROPERTY_DAILY_TRANSFER_SOFT = "dailyTransferSoft"; + private BigDecimal dailyTransferSoft; + + public static final String JSON_PROPERTY_MONTLY_TRANSFER_SOFT = "montlyTransferSoft"; + private BigDecimal montlyTransferSoft; + + public WalletLimitsAllOfAttributesWireLimits() { + } + + public WalletLimitsAllOfAttributesWireLimits dailyTransfer(BigDecimal dailyTransfer) { + this.dailyTransfer = dailyTransfer; + return this; + } + + /** + * Get dailyTransfer + * @return dailyTransfer + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_DAILY_TRANSFER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getDailyTransfer() { + return dailyTransfer; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_TRANSFER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDailyTransfer(BigDecimal dailyTransfer) { + this.dailyTransfer = dailyTransfer; + } + + + public WalletLimitsAllOfAttributesWireLimits montlyTransfer(BigDecimal montlyTransfer) { + this.montlyTransfer = montlyTransfer; + return this; + } + + /** + * Get montlyTransfer + * @return montlyTransfer + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_MONTLY_TRANSFER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getMontlyTransfer() { + return montlyTransfer; + } + + + @JsonProperty(JSON_PROPERTY_MONTLY_TRANSFER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setMontlyTransfer(BigDecimal montlyTransfer) { + this.montlyTransfer = montlyTransfer; + } + + + public WalletLimitsAllOfAttributesWireLimits dailyTransferSoft(BigDecimal dailyTransferSoft) { + this.dailyTransferSoft = dailyTransferSoft; + return this; + } + + /** + * Get dailyTransferSoft + * @return dailyTransferSoft + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_DAILY_TRANSFER_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getDailyTransferSoft() { + return dailyTransferSoft; + } + + + @JsonProperty(JSON_PROPERTY_DAILY_TRANSFER_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDailyTransferSoft(BigDecimal dailyTransferSoft) { + this.dailyTransferSoft = dailyTransferSoft; + } + + + public WalletLimitsAllOfAttributesWireLimits montlyTransferSoft(BigDecimal montlyTransferSoft) { + this.montlyTransferSoft = montlyTransferSoft; + return this; + } + + /** + * Get montlyTransferSoft + * @return montlyTransferSoft + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_MONTLY_TRANSFER_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public BigDecimal getMontlyTransferSoft() { + return montlyTransferSoft; + } + + + @JsonProperty(JSON_PROPERTY_MONTLY_TRANSFER_SOFT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMontlyTransferSoft(BigDecimal montlyTransferSoft) { + this.montlyTransferSoft = montlyTransferSoft; + } + + + /** + * Return true if this WalletLimits_allOf_attributes_wire_limits object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletLimitsAllOfAttributesWireLimits walletLimitsAllOfAttributesWireLimits = (WalletLimitsAllOfAttributesWireLimits) o; + return Objects.equals(this.dailyTransfer, walletLimitsAllOfAttributesWireLimits.dailyTransfer) && + Objects.equals(this.montlyTransfer, walletLimitsAllOfAttributesWireLimits.montlyTransfer) && + Objects.equals(this.dailyTransferSoft, walletLimitsAllOfAttributesWireLimits.dailyTransferSoft) && + Objects.equals(this.montlyTransferSoft, walletLimitsAllOfAttributesWireLimits.montlyTransferSoft); + } + + @Override + public int hashCode() { + return Objects.hash(dailyTransfer, montlyTransfer, dailyTransferSoft, montlyTransferSoft); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletLimitsAllOfAttributesWireLimits {\n"); + sb.append(" dailyTransfer: ").append(toIndentedString(dailyTransfer)).append("\n"); + sb.append(" montlyTransfer: ").append(toIndentedString(montlyTransfer)).append("\n"); + sb.append(" dailyTransferSoft: ").append(toIndentedString(dailyTransferSoft)).append("\n"); + sb.append(" montlyTransferSoft: ").append(toIndentedString(montlyTransferSoft)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `dailyTransfer` to the URL query string + if (getDailyTransfer() != null) { + joiner.add(String.format("%sdailyTransfer%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyTransfer()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `montlyTransfer` to the URL query string + if (getMontlyTransfer() != null) { + joiner.add(String.format("%smontlyTransfer%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMontlyTransfer()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `dailyTransferSoft` to the URL query string + if (getDailyTransferSoft() != null) { + joiner.add(String.format("%sdailyTransferSoft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDailyTransferSoft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + // add `montlyTransferSoft` to the URL query string + if (getMontlyTransferSoft() != null) { + joiner.add(String.format("%smontlyTransferSoft%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getMontlyTransferSoft()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWireTotalsDaily.java b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWireTotalsDaily.java new file mode 100644 index 00000000..f1db6bf7 --- /dev/null +++ b/src/main/java/unit/java/sdk/model/WalletLimitsAllOfAttributesWireTotalsDaily.java @@ -0,0 +1,151 @@ +/* + * Unit OpenAPI specifications + * An OpenAPI specifications for unit-sdk clients + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package unit.java.sdk.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.math.BigDecimal; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import unit.java.sdk.ApiClient; +/** + * WalletLimitsAllOfAttributesWireTotalsDaily + */ +@JsonPropertyOrder({ + WalletLimitsAllOfAttributesWireTotalsDaily.JSON_PROPERTY_TRANSFERS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") +public class WalletLimitsAllOfAttributesWireTotalsDaily { + public static final String JSON_PROPERTY_TRANSFERS = "transfers"; + private BigDecimal transfers; + + public WalletLimitsAllOfAttributesWireTotalsDaily() { + } + + public WalletLimitsAllOfAttributesWireTotalsDaily transfers(BigDecimal transfers) { + this.transfers = transfers; + return this; + } + + /** + * Get transfers + * @return transfers + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_TRANSFERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public BigDecimal getTransfers() { + return transfers; + } + + + @JsonProperty(JSON_PROPERTY_TRANSFERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTransfers(BigDecimal transfers) { + this.transfers = transfers; + } + + + /** + * Return true if this WalletLimits_allOf_attributes_wire_totalsDaily object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletLimitsAllOfAttributesWireTotalsDaily walletLimitsAllOfAttributesWireTotalsDaily = (WalletLimitsAllOfAttributesWireTotalsDaily) o; + return Objects.equals(this.transfers, walletLimitsAllOfAttributesWireTotalsDaily.transfers); + } + + @Override + public int hashCode() { + return Objects.hash(transfers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WalletLimitsAllOfAttributesWireTotalsDaily {\n"); + sb.append(" transfers: ").append(toIndentedString(transfers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `transfers` to the URL query string + if (getTransfers() != null) { + joiner.add(String.format("%stransfers%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTransfers()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + } + + return joiner.toString(); + } +} + diff --git a/src/main/java/unit/java/sdk/model/Webhook.java b/src/main/java/unit/java/sdk/model/Webhook.java index 91b08e03..9642f330 100644 --- a/src/main/java/unit/java/sdk/model/Webhook.java +++ b/src/main/java/unit/java/sdk/model/Webhook.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * Webhook */ @@ -37,7 +38,7 @@ Webhook.JSON_PROPERTY_ID, Webhook.JSON_PROPERTY_ATTRIBUTES }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class Webhook { /** * Gets or Sets type @@ -89,14 +90,13 @@ public Webhook type(TypeEnum type) { return this; } - /** + /** * Get type * @return type - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TypeEnum getType() { return type; } @@ -114,14 +114,13 @@ public Webhook id(String id) { return this; } - /** + /** * Get id * @return id - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getId() { return id; } @@ -139,14 +138,13 @@ public Webhook attributes(WebhookAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WebhookAttributes getAttributes() { return attributes; } @@ -237,12 +235,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/WebhookAttributes.java b/src/main/java/unit/java/sdk/model/WebhookAttributes.java index 026a0091..820ea9eb 100644 --- a/src/main/java/unit/java/sdk/model/WebhookAttributes.java +++ b/src/main/java/unit/java/sdk/model/WebhookAttributes.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * WebhookAttributes */ @@ -42,7 +43,7 @@ WebhookAttributes.JSON_PROPERTY_TOKEN, WebhookAttributes.JSON_PROPERTY_SUBSCRIPTION_TYPE }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class WebhookAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -62,7 +63,7 @@ public class WebhookAttributes { public enum ContentTypeEnum { JSON("Json"), - JSONAPI("JsonAPI"); + JSON_API("JsonAPI"); private String value; @@ -98,9 +99,9 @@ public static ContentTypeEnum fromValue(String value) { * Gets or Sets deliveryMode */ public enum DeliveryModeEnum { - ATMOSTONCE("AtMostOnce"), + AT_MOST_ONCE("AtMostOnce"), - ATLEASTONCE("AtLeastOnce"); + AT_LEAST_ONCE("AtLeastOnce"); private String value; @@ -146,14 +147,13 @@ public WebhookAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -171,14 +171,13 @@ public WebhookAttributes label(String label) { return this; } - /** + /** * Get label * @return label - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LABEL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLabel() { return label; } @@ -196,14 +195,13 @@ public WebhookAttributes url(String url) { return this; } - /** + /** * Get url * @return url - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { return url; } @@ -221,14 +219,13 @@ public WebhookAttributes status(String status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { return status; } @@ -246,14 +243,13 @@ public WebhookAttributes contentType(ContentTypeEnum contentType) { return this; } - /** + /** * Get contentType * @return contentType - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ContentTypeEnum getContentType() { return contentType; } @@ -271,14 +267,13 @@ public WebhookAttributes deliveryMode(DeliveryModeEnum deliveryMode) { return this; } - /** + /** * Get deliveryMode * @return deliveryMode - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DELIVERY_MODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DeliveryModeEnum getDeliveryMode() { return deliveryMode; } @@ -296,14 +291,13 @@ public WebhookAttributes token(String token) { return this; } - /** + /** * Get token * @return token - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOKEN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getToken() { return token; } @@ -321,14 +315,13 @@ public WebhookAttributes subscriptionType(String subscriptionType) { return this; } - /** + /** * Get subscriptionType * @return subscriptionType - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSubscriptionType() { return subscriptionType; } @@ -429,42 +422,42 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `label` to the URL query string if (getLabel() != null) { - joiner.add(String.format("%slabel%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getLabel()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%slabel%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLabel()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `url` to the URL query string if (getUrl() != null) { - joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%surl%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getUrl()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `contentType` to the URL query string if (getContentType() != null) { - joiner.add(String.format("%scontentType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getContentType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%scontentType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getContentType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `deliveryMode` to the URL query string if (getDeliveryMode() != null) { - joiner.add(String.format("%sdeliveryMode%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDeliveryMode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdeliveryMode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDeliveryMode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `token` to the URL query string if (getToken() != null) { - joiner.add(String.format("%stoken%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stoken%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getToken()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `subscriptionType` to the URL query string if (getSubscriptionType() != null) { - joiner.add(String.format("%ssubscriptionType%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSubscriptionType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssubscriptionType%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSubscriptionType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/WeeklySchedule.java b/src/main/java/unit/java/sdk/model/WeeklySchedule.java index 5790f1ae..7908faf0 100644 --- a/src/main/java/unit/java/sdk/model/WeeklySchedule.java +++ b/src/main/java/unit/java/sdk/model/WeeklySchedule.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * WeeklySchedule */ @@ -40,7 +41,7 @@ WeeklySchedule.JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS, WeeklySchedule.JSON_PROPERTY_INTERVAL }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class WeeklySchedule { public static final String JSON_PROPERTY_START_TIME = "startTime"; private LocalDate startTime; @@ -101,14 +102,13 @@ public WeeklySchedule startTime(LocalDate startTime) { return this; } - /** + /** * Get startTime * @return startTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_START_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getStartTime() { return startTime; } @@ -126,14 +126,13 @@ public WeeklySchedule endTime(LocalDate endTime) { return this; } - /** + /** * Get endTime * @return endTime - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_END_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getEndTime() { return endTime; } @@ -151,16 +150,15 @@ public WeeklySchedule dayOfMonth(Integer dayOfMonth) { return this; } - /** + /** * Get dayOfMonth * minimum: -5 * maximum: 28 * @return dayOfMonth - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DAY_OF_MONTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getDayOfMonth() { return dayOfMonth; } @@ -178,14 +176,13 @@ public WeeklySchedule nextScheduledAction(LocalDate nextScheduledAction) { return this; } - /** + /** * Get nextScheduledAction * @return nextScheduledAction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NEXT_SCHEDULED_ACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public LocalDate getNextScheduledAction() { return nextScheduledAction; } @@ -203,15 +200,14 @@ public WeeklySchedule totalNumberOfPayments(Integer totalNumberOfPayments) { return this; } - /** + /** * Get totalNumberOfPayments * minimum: 1 * @return totalNumberOfPayments - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TOTAL_NUMBER_OF_PAYMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotalNumberOfPayments() { return totalNumberOfPayments; } @@ -229,14 +225,13 @@ public WeeklySchedule interval(IntervalEnum interval) { return this; } - /** + /** * Get interval * @return interval - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_INTERVAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public IntervalEnum getInterval() { return interval; } @@ -333,32 +328,32 @@ public String toUrlQueryString(String prefix) { // add `startTime` to the URL query string if (getStartTime() != null) { - joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstartTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStartTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `endTime` to the URL query string if (getEndTime() != null) { - joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sendTime%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getEndTime()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `dayOfMonth` to the URL query string if (getDayOfMonth() != null) { - joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdayOfMonth%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDayOfMonth()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `nextScheduledAction` to the URL query string if (getNextScheduledAction() != null) { - joiner.add(String.format("%snextScheduledAction%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getNextScheduledAction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%snextScheduledAction%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getNextScheduledAction()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `totalNumberOfPayments` to the URL query string if (getTotalNumberOfPayments() != null) { - joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stotalNumberOfPayments%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getTotalNumberOfPayments()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `interval` to the URL query string if (getInterval() != null) { - joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sinterval%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getInterval()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/WirePayment.java b/src/main/java/unit/java/sdk/model/WirePayment.java index e85880cd..3bdb5b17 100644 --- a/src/main/java/unit/java/sdk/model/WirePayment.java +++ b/src/main/java/unit/java/sdk/model/WirePayment.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * WirePayment */ @@ -42,7 +43,7 @@ WirePayment.JSON_PROPERTY_ATTRIBUTES, WirePayment.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public WirePayment attributes(WirePaymentAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WirePaymentAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public WirePayment relationships(WirePaymentRelationships relationships) { return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WirePaymentRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/WirePaymentAllOfAttributes.java b/src/main/java/unit/java/sdk/model/WirePaymentAllOfAttributes.java index 0db8fc8f..7d9ed2c9 100644 --- a/src/main/java/unit/java/sdk/model/WirePaymentAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/WirePaymentAllOfAttributes.java @@ -32,6 +32,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * WirePaymentAllOfAttributes */ @@ -46,7 +47,7 @@ WirePaymentAllOfAttributes.JSON_PROPERTY_REASON, WirePaymentAllOfAttributes.JSON_PROPERTY_IMAD_OMAD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class WirePaymentAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -159,14 +160,13 @@ public WirePaymentAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -184,15 +184,14 @@ public WirePaymentAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * minimum: 1 * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -210,14 +209,13 @@ public WirePaymentAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -235,14 +233,13 @@ public WirePaymentAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getDescription() { return description; } @@ -260,14 +257,13 @@ public WirePaymentAllOfAttributes counterparty(WirePaymentCounterparty counterpa return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WirePaymentCounterparty getCounterparty() { return counterparty; } @@ -285,14 +281,13 @@ public WirePaymentAllOfAttributes status(StatusEnum status) { return this; } - /** + /** * Get status * @return status - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public StatusEnum getStatus() { return status; } @@ -310,14 +305,13 @@ public WirePaymentAllOfAttributes settlementDate(LocalDate settlementDate) { return this; } - /** + /** * Get settlementDate * @return settlementDate - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SETTLEMENT_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LocalDate getSettlementDate() { return settlementDate; } @@ -335,14 +329,13 @@ public WirePaymentAllOfAttributes reason(String reason) { return this; } - /** + /** * Get reason * @return reason - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReason() { return reason; } @@ -360,14 +353,13 @@ public WirePaymentAllOfAttributes imadOmad(WirePaymentAllOfAttributesImadOmad im return this; } - /** + /** * Get imadOmad * @return imadOmad - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IMAD_OMAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WirePaymentAllOfAttributesImadOmad getImadOmad() { return imadOmad; } @@ -470,22 +462,22 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -495,17 +487,17 @@ public String toUrlQueryString(String prefix) { // add `status` to the URL query string if (getStatus() != null) { - joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sstatus%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStatus()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `settlementDate` to the URL query string if (getSettlementDate() != null) { - joiner.add(String.format("%ssettlementDate%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSettlementDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssettlementDate%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSettlementDate()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `reason` to the URL query string if (getReason() != null) { - joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreason%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReason()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `imadOmad` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/WirePaymentAllOfAttributesImadOmad.java b/src/main/java/unit/java/sdk/model/WirePaymentAllOfAttributesImadOmad.java index 5e5140d1..d21807a7 100644 --- a/src/main/java/unit/java/sdk/model/WirePaymentAllOfAttributesImadOmad.java +++ b/src/main/java/unit/java/sdk/model/WirePaymentAllOfAttributesImadOmad.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * WirePaymentAllOfAttributesImadOmad */ @@ -35,7 +36,7 @@ WirePaymentAllOfAttributesImadOmad.JSON_PROPERTY_IMAD, WirePaymentAllOfAttributesImadOmad.JSON_PROPERTY_OMAD }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class WirePaymentAllOfAttributesImadOmad { public static final String JSON_PROPERTY_IMAD = "imad"; private String imad; @@ -51,14 +52,13 @@ public WirePaymentAllOfAttributesImadOmad imad(String imad) { return this; } - /** + /** * Get imad * @return imad - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IMAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getImad() { return imad; } @@ -76,14 +76,13 @@ public WirePaymentAllOfAttributesImadOmad omad(String omad) { return this; } - /** + /** * Get omad * @return omad - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_OMAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOmad() { return omad; } @@ -172,12 +171,12 @@ public String toUrlQueryString(String prefix) { // add `imad` to the URL query string if (getImad() != null) { - joiner.add(String.format("%simad%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getImad()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%simad%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getImad()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `omad` to the URL query string if (getOmad() != null) { - joiner.add(String.format("%somad%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOmad()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%somad%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOmad()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } return joiner.toString(); diff --git a/src/main/java/unit/java/sdk/model/WirePaymentCounterparty.java b/src/main/java/unit/java/sdk/model/WirePaymentCounterparty.java index c33b6176..e93b4856 100644 --- a/src/main/java/unit/java/sdk/model/WirePaymentCounterparty.java +++ b/src/main/java/unit/java/sdk/model/WirePaymentCounterparty.java @@ -29,6 +29,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * WirePaymentCounterparty */ @@ -38,7 +39,7 @@ WirePaymentCounterparty.JSON_PROPERTY_NAME, WirePaymentCounterparty.JSON_PROPERTY_ADDRESS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class WirePaymentCounterparty { public static final String JSON_PROPERTY_ROUTING_NUMBER = "routingNumber"; private String routingNumber; @@ -60,14 +61,13 @@ public WirePaymentCounterparty routingNumber(String routingNumber) { return this; } - /** + /** * Get routingNumber * @return routingNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ROUTING_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getRoutingNumber() { return routingNumber; } @@ -85,14 +85,13 @@ public WirePaymentCounterparty accountNumber(String accountNumber) { return this; } - /** + /** * Get accountNumber * @return accountNumber - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT_NUMBER) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getAccountNumber() { return accountNumber; } @@ -110,14 +109,13 @@ public WirePaymentCounterparty name(String name) { return this; } - /** + /** * Get name * @return name - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getName() { return name; } @@ -135,14 +133,13 @@ public WirePaymentCounterparty address(Address address) { return this; } - /** + /** * Get address * @return address - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ADDRESS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Address getAddress() { return address; } @@ -235,17 +232,17 @@ public String toUrlQueryString(String prefix) { // add `routingNumber` to the URL query string if (getRoutingNumber() != null) { - joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sroutingNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getRoutingNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `accountNumber` to the URL query string if (getAccountNumber() != null) { - joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%saccountNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAccountNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `name` to the URL query string if (getName() != null) { - joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sname%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `address` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/WirePaymentRelationships.java b/src/main/java/unit/java/sdk/model/WirePaymentRelationships.java index ebddfd43..f598d588 100644 --- a/src/main/java/unit/java/sdk/model/WirePaymentRelationships.java +++ b/src/main/java/unit/java/sdk/model/WirePaymentRelationships.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * WirePaymentRelationships */ @@ -42,7 +43,7 @@ WirePaymentRelationships.JSON_PROPERTY_CUSTOMERS, WirePaymentRelationships.JSON_PROPERTY_TRANSACTION }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class WirePaymentRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -64,14 +65,13 @@ public WirePaymentRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -89,14 +89,13 @@ public WirePaymentRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -114,14 +113,13 @@ public WirePaymentRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } @@ -139,14 +137,13 @@ public WirePaymentRelationships transaction(TransactionRelationship transaction) return this; } - /** + /** * Get transaction * @return transaction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_TRANSACTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public TransactionRelationship getTransaction() { return transaction; } diff --git a/src/main/java/unit/java/sdk/model/WireTransaction.java b/src/main/java/unit/java/sdk/model/WireTransaction.java index 29cdcdb9..3281bf57 100644 --- a/src/main/java/unit/java/sdk/model/WireTransaction.java +++ b/src/main/java/unit/java/sdk/model/WireTransaction.java @@ -35,6 +35,7 @@ import unit.java.sdk.JSON; +import unit.java.sdk.ApiClient; /** * WireTransaction */ @@ -42,7 +43,7 @@ WireTransaction.JSON_PROPERTY_ATTRIBUTES, WireTransaction.JSON_PROPERTY_RELATIONSHIPS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") @JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization @@ -64,14 +65,13 @@ public WireTransaction attributes(WireTransactionAllOfAttributes attributes) { return this; } - /** + /** * Get attributes * @return attributes - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ATTRIBUTES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WireTransactionAllOfAttributes getAttributes() { return attributes; } @@ -89,14 +89,13 @@ public WireTransaction relationships(WireTransactionRelationships relationships) return this; } - /** + /** * Get relationships * @return relationships - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public WireTransactionRelationships getRelationships() { return relationships; } @@ -199,12 +198,12 @@ public String toUrlQueryString(String prefix) { // add `id` to the URL query string if (getId() != null) { - joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sid%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getId()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `type` to the URL query string if (getType() != null) { - joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%stype%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getType()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `attributes` to the URL query string diff --git a/src/main/java/unit/java/sdk/model/WireTransactionAllOfAttributes.java b/src/main/java/unit/java/sdk/model/WireTransactionAllOfAttributes.java index 6c1d3ef4..58cf23c5 100644 --- a/src/main/java/unit/java/sdk/model/WireTransactionAllOfAttributes.java +++ b/src/main/java/unit/java/sdk/model/WireTransactionAllOfAttributes.java @@ -33,6 +33,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * WireTransactionAllOfAttributes */ @@ -52,7 +53,7 @@ WireTransactionAllOfAttributes.JSON_PROPERTY_IMAD_OMAD, WireTransactionAllOfAttributes.JSON_PROPERTY_TAGS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class WireTransactionAllOfAttributes { public static final String JSON_PROPERTY_CREATED_AT = "createdAt"; private OffsetDateTime createdAt; @@ -139,14 +140,13 @@ public WireTransactionAllOfAttributes createdAt(OffsetDateTime createdAt) { return this; } - /** + /** * Get createdAt * @return createdAt - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OffsetDateTime getCreatedAt() { return createdAt; } @@ -164,14 +164,13 @@ public WireTransactionAllOfAttributes direction(DirectionEnum direction) { return this; } - /** + /** * Get direction * @return direction - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public DirectionEnum getDirection() { return direction; } @@ -189,14 +188,13 @@ public WireTransactionAllOfAttributes amount(Integer amount) { return this; } - /** + /** * Get amount * @return amount - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_AMOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getAmount() { return amount; } @@ -214,14 +212,13 @@ public WireTransactionAllOfAttributes balance(Integer balance) { return this; } - /** + /** * Get balance * @return balance - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_BALANCE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getBalance() { return balance; } @@ -239,14 +236,13 @@ public WireTransactionAllOfAttributes summary(String summary) { return this; } - /** + /** * Get summary * @return summary - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_SUMMARY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public String getSummary() { return summary; } @@ -264,14 +260,13 @@ public WireTransactionAllOfAttributes counterparty(PaymentCounterparty counterpa return this; } - /** + /** * Get counterparty * @return counterparty - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_COUNTERPARTY) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public PaymentCounterparty getCounterparty() { return counterparty; } @@ -289,14 +284,13 @@ public WireTransactionAllOfAttributes description(String description) { return this; } - /** + /** * Get description * @return description - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { return description; } @@ -314,14 +308,13 @@ public WireTransactionAllOfAttributes senderReference(String senderReference) { return this; } - /** + /** * Get senderReference * @return senderReference - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_SENDER_REFERENCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSenderReference() { return senderReference; } @@ -339,14 +332,13 @@ public WireTransactionAllOfAttributes referenceForBeneficiary(String referenceFo return this; } - /** + /** * Get referenceForBeneficiary * @return referenceForBeneficiary - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReferenceForBeneficiary() { return referenceForBeneficiary; } @@ -364,14 +356,13 @@ public WireTransactionAllOfAttributes originatorToBeneficiaryInformation(String return this; } - /** + /** * Get originatorToBeneficiaryInformation * @return originatorToBeneficiaryInformation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ORIGINATOR_TO_BENEFICIARY_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOriginatorToBeneficiaryInformation() { return originatorToBeneficiaryInformation; } @@ -389,14 +380,13 @@ public WireTransactionAllOfAttributes beneficiaryInformation(String beneficiaryI return this; } - /** + /** * Get beneficiaryInformation * @return beneficiaryInformation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BENEFICIARY_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryInformation() { return beneficiaryInformation; } @@ -414,14 +404,13 @@ public WireTransactionAllOfAttributes beneficiaryAdviceInformation(String benefi return this; } - /** + /** * Get beneficiaryAdviceInformation * @return beneficiaryAdviceInformation - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_BENEFICIARY_ADVICE_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeneficiaryAdviceInformation() { return beneficiaryAdviceInformation; } @@ -439,14 +428,13 @@ public WireTransactionAllOfAttributes imadOmad(WirePaymentAllOfAttributesImadOma return this; } - /** + /** * Get imadOmad * @return imadOmad - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_IMAD_OMAD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WirePaymentAllOfAttributesImadOmad getImadOmad() { return imadOmad; } @@ -472,14 +460,13 @@ public WireTransactionAllOfAttributes putTagsItem(String key, String tagsItem) { return this; } - /** + /** * Get tags * @return tags - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TAGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTags() { return tags; } @@ -592,27 +579,27 @@ public String toUrlQueryString(String prefix) { // add `createdAt` to the URL query string if (getCreatedAt() != null) { - joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%screatedAt%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getCreatedAt()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `direction` to the URL query string if (getDirection() != null) { - joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdirection%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDirection()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `amount` to the URL query string if (getAmount() != null) { - joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%samount%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAmount()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `balance` to the URL query string if (getBalance() != null) { - joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbalance%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBalance()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `summary` to the URL query string if (getSummary() != null) { - joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssummary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSummary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `counterparty` to the URL query string @@ -622,32 +609,32 @@ public String toUrlQueryString(String prefix) { // add `description` to the URL query string if (getDescription() != null) { - joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sdescription%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `senderReference` to the URL query string if (getSenderReference() != null) { - joiner.add(String.format("%ssenderReference%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getSenderReference()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%ssenderReference%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSenderReference()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `referenceForBeneficiary` to the URL query string if (getReferenceForBeneficiary() != null) { - joiner.add(String.format("%sreferenceForBeneficiary%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getReferenceForBeneficiary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sreferenceForBeneficiary%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getReferenceForBeneficiary()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `originatorToBeneficiaryInformation` to the URL query string if (getOriginatorToBeneficiaryInformation() != null) { - joiner.add(String.format("%soriginatorToBeneficiaryInformation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getOriginatorToBeneficiaryInformation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%soriginatorToBeneficiaryInformation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getOriginatorToBeneficiaryInformation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `beneficiaryInformation` to the URL query string if (getBeneficiaryInformation() != null) { - joiner.add(String.format("%sbeneficiaryInformation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBeneficiaryInformation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbeneficiaryInformation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBeneficiaryInformation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `beneficiaryAdviceInformation` to the URL query string if (getBeneficiaryAdviceInformation() != null) { - joiner.add(String.format("%sbeneficiaryAdviceInformation%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getBeneficiaryAdviceInformation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + joiner.add(String.format("%sbeneficiaryAdviceInformation%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getBeneficiaryAdviceInformation()), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } // add `imadOmad` to the URL query string @@ -660,7 +647,7 @@ public String toUrlQueryString(String prefix) { for (String _key : getTags().keySet()) { joiner.add(String.format("%stags%s%s=%s", prefix, suffix, "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, _key, containerSuffix), - getTags().get(_key), URLEncoder.encode(String.valueOf(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); + getTags().get(_key), URLEncoder.encode(ApiClient.valueToString(getTags().get(_key)), StandardCharsets.UTF_8).replaceAll("\\+", "%20"))); } } diff --git a/src/main/java/unit/java/sdk/model/WireTransactionRelationships.java b/src/main/java/unit/java/sdk/model/WireTransactionRelationships.java index 91a7fccf..dcd4710a 100644 --- a/src/main/java/unit/java/sdk/model/WireTransactionRelationships.java +++ b/src/main/java/unit/java/sdk/model/WireTransactionRelationships.java @@ -31,6 +31,7 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import unit.java.sdk.ApiClient; /** * WireTransactionRelationships */ @@ -39,7 +40,7 @@ WireTransactionRelationships.JSON_PROPERTY_CUSTOMER, WireTransactionRelationships.JSON_PROPERTY_CUSTOMERS }) -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0") public class WireTransactionRelationships { public static final String JSON_PROPERTY_ACCOUNT = "account"; private AccountRelationship account; @@ -58,14 +59,13 @@ public WireTransactionRelationships account(AccountRelationship account) { return this; } - /** + /** * Get account * @return account - **/ + */ @jakarta.annotation.Nonnull @JsonProperty(JSON_PROPERTY_ACCOUNT) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public AccountRelationship getAccount() { return account; } @@ -83,14 +83,13 @@ public WireTransactionRelationships customer(CustomerRelationship customer) { return this; } - /** + /** * Get customer * @return customer - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerRelationship getCustomer() { return customer; } @@ -108,14 +107,13 @@ public WireTransactionRelationships customers(CustomersRelationship customers) { return this; } - /** + /** * Get customers * @return customers - **/ + */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CUSTOMERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomersRelationship getCustomers() { return customers; } diff --git a/src/test/java/unit/java/sdk/AccountTests.java b/src/test/java/unit/java/sdk/AccountTests.java index 5b9aa21b..34f2cac3 100644 --- a/src/test/java/unit/java/sdk/AccountTests.java +++ b/src/test/java/unit/java/sdk/AccountTests.java @@ -1,32 +1,65 @@ package unit.java.sdk; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import org.junit.Test; +import static unit.java.sdk.CustomerTests.CreateBusinessCustomer; import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; import unit.java.sdk.api.UnitApi; import unit.java.sdk.model.Account; +import unit.java.sdk.model.AccountEndOfDay; +import unit.java.sdk.model.AddAccountOwnersRequest; +import unit.java.sdk.model.BusinessCustomer; +import unit.java.sdk.model.CloseAccountRequest; +import unit.java.sdk.model.CloseAccountRequestData; +import unit.java.sdk.model.CloseAccountRequestDataAttributes; import unit.java.sdk.model.CreateAccountRequest; import unit.java.sdk.model.CreateAccountRequestData; +import unit.java.sdk.model.CreateCreditAccount; +import unit.java.sdk.model.CreateCreditAccountAttributes; +import unit.java.sdk.model.CreateCreditAccountRelationships; import unit.java.sdk.model.CreateDepositAccount; import unit.java.sdk.model.CreateDepositAccountAttributes; import unit.java.sdk.model.CreateDepositAccountRelationships; +import unit.java.sdk.model.CreateWalletAccount; +import unit.java.sdk.model.CreateWalletAccountAttributes; +import unit.java.sdk.model.CreateWalletAccountRelationships; +import unit.java.sdk.model.CreditAccount; +import unit.java.sdk.model.Customer; import unit.java.sdk.model.CustomerRelationship; import unit.java.sdk.model.CustomerRelationshipData; import unit.java.sdk.model.DepositAccount; -import unit.java.sdk.model.IndividualCustomer; +import unit.java.sdk.model.DepositAccountOwner; +import unit.java.sdk.model.DepositProduct; +import unit.java.sdk.model.FreezeAccountRequest; +import unit.java.sdk.model.FreezeAccountRequestData; +import unit.java.sdk.model.FreezeAccountRequestDataAttributes; +import unit.java.sdk.model.GetAccountBalanceHistoryFilterParameter; +import unit.java.sdk.model.Limits; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.RemoveAccountOwnersRequest; +import unit.java.sdk.model.RepaymentInformation; +import unit.java.sdk.model.UnitAccountBalanceHistoryResponse; import unit.java.sdk.model.UnitAccountResponse; import unit.java.sdk.model.UnitAccountResponseWithIncluded; import unit.java.sdk.model.UnitAccountsListResponse; +import unit.java.sdk.model.UnitDepositAccountResponse; +import unit.java.sdk.model.UnitDepositProductsResponse; +import unit.java.sdk.model.UnitGetAccountLimitsResponse; +import unit.java.sdk.model.UnitRepaymentInformationResponse; import unit.java.sdk.model.UpdateAccountRequest; import unit.java.sdk.model.UpdateAccountRequestData; import unit.java.sdk.model.UpdateDepositAccount; import unit.java.sdk.model.UpdateDepositAccountAttributes; +import unit.java.sdk.model.WalletAccount; public class AccountTests { UnitApi unitApi = GenerateUnitApiClient(); + String walletTerms = System.getenv("wallet_terms"); @Test public void GetAccountListApiTest() throws ApiException { @@ -78,9 +111,8 @@ public void UpdateAccountApiTest() throws ApiException { }); } - public static DepositAccount CreateDepositAccount(UnitApi unitApi) throws ApiException { - IndividualCustomer customer = CreateIndividualCustomer(unitApi); - + public static DepositAccount CreateDepositAccount(UnitApi unitApi, Customer customer) throws ApiException { + if(customer == null) customer = CreateIndividualCustomer(unitApi); CreateDepositAccount cda = new CreateDepositAccount(); CreateDepositAccountAttributes attributes = new CreateDepositAccountAttributes(); attributes.setDepositProduct("checking"); @@ -100,11 +132,353 @@ public static DepositAccount CreateDepositAccount(UnitApi unitApi) throws ApiExc CreateAccountRequest ca = new CreateAccountRequest(); ca.setData(new CreateAccountRequestData(cda)); - return (DepositAccount) unitApi.createAccount(ca).getData(); + + DepositAccount depositAccount = (DepositAccount) unitApi.createAccount(ca).getData(); + assert depositAccount.getType().equals(Account.TypeEnum.DEPOSIT_ACCOUNT); + return depositAccount; + } + + @Test + public void CreateDepositAccountApiTest() throws ApiException { + CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + } + + DepositAccount CreateAndCloseDepositAccount() throws ApiException { + DepositAccount depositAccount = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + CloseAccountRequest closeAccountRequest = new CloseAccountRequest(); + CloseAccountRequestData closeAccountRequestData = new CloseAccountRequestData(); + CloseAccountRequestDataAttributes closeAccountRequestAttributes = new CloseAccountRequestDataAttributes(); + closeAccountRequestAttributes.setReason(CloseAccountRequestDataAttributes.ReasonEnum.BY_CUSTOMER); + closeAccountRequestData.setAttributes(closeAccountRequestAttributes); + closeAccountRequestData.setType(CloseAccountRequestData.TypeEnum.DEPOSIT_ACCOUNT_CLOSE); + closeAccountRequest.setData(closeAccountRequestData); + + UnitAccountResponse res = unitApi.closeAccount(depositAccount.getId(), closeAccountRequest); + assert res.getData().getType().equals(Account.TypeEnum.DEPOSIT_ACCOUNT); + + return (DepositAccount) res.getData(); + } + + @Test + public void CloseDepositAccountApiTest() throws ApiException { + CreateAndCloseDepositAccount(); + } + + @Test + public void ReopenDepositAccountApiTest() throws ApiException { + DepositAccount closedDepositAccount = CreateAndCloseDepositAccount(); + UnitAccountResponse res = unitApi.reopenAccount(closedDepositAccount.getId()); + assert res.getData().getType().equals(Account.TypeEnum.DEPOSIT_ACCOUNT); + } + + private DepositAccount CreateAndFreezeDepositAccount() throws ApiException { + DepositAccount depositAccount = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + FreezeAccountRequest freezeAccountRequest = new FreezeAccountRequest(); + FreezeAccountRequestData freezeAccountRequestData = new FreezeAccountRequestData(); + FreezeAccountRequestDataAttributes freezeAccountRequestDataAttributes = new FreezeAccountRequestDataAttributes(); + freezeAccountRequestDataAttributes.setReason(FreezeAccountRequestDataAttributes.ReasonEnum.FRAUD); + freezeAccountRequestData.setType(FreezeAccountRequestData.TypeEnum.ACCOUNT_FREEZE); + freezeAccountRequestData.setAttributes(freezeAccountRequestDataAttributes); + freezeAccountRequest.setData(freezeAccountRequestData); + UnitAccountResponse res = unitApi.freezeAccount(depositAccount.getId(), freezeAccountRequest); + DepositAccount frozenDepositAccount = (DepositAccount) res.getData(); + assert frozenDepositAccount.getType().equals(Account.TypeEnum.DEPOSIT_ACCOUNT); + return frozenDepositAccount; + } + + @Test + public void FreezeDepositAccountApiTest() throws ApiException { + CreateAndFreezeDepositAccount(); + } + + @Test + public void UnfreezeDepositAccountApiTest() throws ApiException { + DepositAccount frozenAccount = CreateAndFreezeDepositAccount(); + UnitAccountResponse res = unitApi.unfreezeAccount(frozenAccount.getId()); + assert res.getData().getType().equals(Account.TypeEnum.DEPOSIT_ACCOUNT); + } + + @Test + public void GetDepositAccountLimitsApiTest() throws ApiException { + DepositAccount depositAccount = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + UnitGetAccountLimitsResponse res = unitApi.getAccountLimits(depositAccount.getId()); + assert res.getData().getType().equals(Limits.TypeEnum.LIMITS); + } + + @Test + public void GetDepositAccountAvailableProducts() throws ApiException { + DepositAccount depositAccount = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + UnitDepositProductsResponse res = unitApi.getDepositProductsList(depositAccount.getId()); + res.getData().forEach(product -> { + assert product.getType().equals(DepositProduct.TypeEnum.ACCOUNT_DEPOSIT_PRODUCT); + }); + } + + @Test + public void GetDepositAccountBalanceHistory() throws ApiException { + DepositAccount depositAccount = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + ListPageParameters pageParams = new ListPageParameters(); + pageParams.setLimit(20); + GetAccountBalanceHistoryFilterParameter mainFilters = new GetAccountBalanceHistoryFilterParameter(); + mainFilters.setAccountId(depositAccount.getId()); + UnitAccountBalanceHistoryResponse res = unitApi.getAccountBalanceHistory(pageParams, mainFilters); + res.getData().forEach(accountEndOfDay -> { + assert accountEndOfDay.getType().equals(AccountEndOfDay.TypeEnum.ACCOUNT_END_OF_DAY); + }); + } + + DepositAccount CreateDepositAccountAndAddOwnersToIt (List owners) throws ApiException { + DepositAccount depositAccount = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + AddAccountOwnersRequest addAccountOwnersRequest = new AddAccountOwnersRequest(); + addAccountOwnersRequest.setData(owners); + UnitDepositAccountResponse res = unitApi.addAccountOwners(depositAccount.getId(), addAccountOwnersRequest); + assert res.getData().getType().equals(Account.TypeEnum.DEPOSIT_ACCOUNT); + return res.getData(); + } + + @Test + public void AddDepositAccountOwnersApiTest() throws ApiException { + List owners = new ArrayList(); + DepositAccount depositAccountOne = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + DepositAccount depositAccountTwo = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + DepositAccountOwner ownerOne = new DepositAccountOwner(); + ownerOne.setId(depositAccountOne.getId()); + ownerOne.setType(DepositAccountOwner.TypeEnum.CUSTOMER); + DepositAccountOwner ownerTwo = new DepositAccountOwner(); + ownerTwo.setId(depositAccountTwo.getId()); + ownerTwo.setType(DepositAccountOwner.TypeEnum.CUSTOMER); + owners.add(ownerOne); + owners.add(ownerTwo); + CreateDepositAccountAndAddOwnersToIt(owners); + } + + @Test + public void RemoveDepositAccountOwnersApiTest() throws ApiException { + List owners = new ArrayList(); + DepositAccount depositAccountOne = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + DepositAccount depositAccountTwo = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + DepositAccountOwner ownerOne = new DepositAccountOwner(); + ownerOne.setId(depositAccountOne.getId()); + ownerOne.setType(DepositAccountOwner.TypeEnum.CUSTOMER); + DepositAccountOwner ownerTwo = new DepositAccountOwner(); + ownerTwo.setId(depositAccountTwo.getId()); + ownerTwo.setType(DepositAccountOwner.TypeEnum.CUSTOMER); + owners.add(ownerOne); + owners.add(ownerTwo); + DepositAccount accountWithOwners = CreateDepositAccountAndAddOwnersToIt(owners); + + RemoveAccountOwnersRequest removeAccountOwnersRequest = new RemoveAccountOwnersRequest(); + removeAccountOwnersRequest.setData(owners); + UnitDepositAccountResponse res = unitApi.removeAccountOwners(accountWithOwners.getId(), removeAccountOwnersRequest); + assert res.getData().getType().equals(Account.TypeEnum.DEPOSIT_ACCOUNT); + } + + public static CreditAccount CreateCreditAccount(UnitApi unitApi) throws ApiException { + BusinessCustomer customer = CreateBusinessCustomer(unitApi); + + CreateCreditAccount cca = new CreateCreditAccount(); + CreateCreditAccountAttributes attributes = new CreateCreditAccountAttributes(); + attributes.setCreditTerms("credit_terms_test"); + attributes.setCreditLimit(20000); + + CreateCreditAccountRelationships relationships = new CreateCreditAccountRelationships(); + CustomerRelationshipData customerRelationshipData = new CustomerRelationshipData(); + customerRelationshipData.setId(customer.getId()); + customerRelationshipData.setType(CustomerRelationshipData.TypeEnum.CUSTOMER); + CustomerRelationship customerLinkageRelationship = new CustomerRelationship(); + customerLinkageRelationship.setData(customerRelationshipData); + + relationships.setCustomer(customerLinkageRelationship); + + cca.setAttributes(attributes); + cca.setRelationships(relationships); + + CreateAccountRequest ca = new CreateAccountRequest(); + ca.setData(new CreateAccountRequestData(cca)); + + CreditAccount creditAccount = (CreditAccount) unitApi.createAccount(ca).getData(); + assert creditAccount.getType().equals(Account.TypeEnum.CREDIT_ACCOUNT); + return creditAccount; + } + + @Test + public void CreateCreditAccountApiTest() throws ApiException { + CreateCreditAccount(unitApi); } @Test - public void CreateDepositAccountTest() throws ApiException { - assert CreateDepositAccount(unitApi).getType().equals(Account.TypeEnum.DEPOSITACCOUNT); + public void CloseCreditAccountApiTest() throws ApiException { + CreditAccount creditAccount = CreateCreditAccount(unitApi); + CloseAccountRequest closeAccountRequest = new CloseAccountRequest(); + CloseAccountRequestData closeAccountRequestData = new CloseAccountRequestData(); + CloseAccountRequestDataAttributes closeAccountRequestAttributes = new CloseAccountRequestDataAttributes(); + closeAccountRequestAttributes.setReason(CloseAccountRequestDataAttributes.ReasonEnum.BY_CUSTOMER); + closeAccountRequestData.setAttributes(closeAccountRequestAttributes); + closeAccountRequestData.setType(CloseAccountRequestData.TypeEnum.CREDIT_ACCOUNT_CLOSE); + closeAccountRequest.setData(closeAccountRequestData); + + UnitAccountResponse res = unitApi.closeAccount(creditAccount.getId(), closeAccountRequest); + assert res.getData().getType().equals(Account.TypeEnum.CREDIT_ACCOUNT); + } + + public CreditAccount CreateAndFreezeCreditAccount() throws ApiException { + CreditAccount creditAccount = CreateCreditAccount(unitApi); + FreezeAccountRequest freezeAccountRequest = new FreezeAccountRequest(); + FreezeAccountRequestData freezeAccountRequestData = new FreezeAccountRequestData(); + FreezeAccountRequestDataAttributes freezeAccountRequestDataAttributes = new FreezeAccountRequestDataAttributes(); + freezeAccountRequestDataAttributes.setReason(FreezeAccountRequestDataAttributes.ReasonEnum.FRAUD); + freezeAccountRequestData.setType(FreezeAccountRequestData.TypeEnum.CREDIT_ACCOUNT_FREEZE); + freezeAccountRequestData.setAttributes(freezeAccountRequestDataAttributes); + freezeAccountRequest.setData(freezeAccountRequestData); + UnitAccountResponse res = unitApi.freezeAccount(creditAccount.getId(), freezeAccountRequest); + CreditAccount frozenCreditAccount = (CreditAccount) res.getData(); + assert frozenCreditAccount.getType().equals(Account.TypeEnum.CREDIT_ACCOUNT); + return frozenCreditAccount; + } + + @Test + public void FreezeCreditAccountApiTest() throws ApiException { + CreateAndFreezeCreditAccount(); + } + + @Test + public void UnfreezeCreditAccounApiTest() throws ApiException { + CreditAccount frozenAccount = CreateAndFreezeCreditAccount(); + UnitAccountResponse res = unitApi.unfreezeAccount(frozenAccount.getId()); + assert res.getData().getType().equals(Account.TypeEnum.CREDIT_ACCOUNT); + } + + @Test + public void GetCreditAccountLimitsApiTest() throws ApiException { + CreditAccount creditAccount = CreateCreditAccount(unitApi); + UnitGetAccountLimitsResponse res = unitApi.getAccountLimits(creditAccount.getId()); + assert res.getData().getType().equals(Limits.TypeEnum.CREDIT_LIMITS); + } + + @Test + public void GetCreditAccountBalanceHistoryApiTest() throws ApiException { + CreditAccount depositAccount = CreateCreditAccount(unitApi); + ListPageParameters pageParams = new ListPageParameters(); + pageParams.setLimit(20); + GetAccountBalanceHistoryFilterParameter mainFilters = new GetAccountBalanceHistoryFilterParameter(); + mainFilters.setAccountId(depositAccount.getId()); + UnitAccountBalanceHistoryResponse res = unitApi.getAccountBalanceHistory(pageParams, mainFilters); + res.getData().forEach(accountEndOfDay -> { + assert accountEndOfDay.getType().equals(AccountEndOfDay.TypeEnum. ACCOUNT_END_OF_DAY); + }); + } + + @Test + public void GetCreditAccountRepaymentInformation() throws ApiException { + CreditAccount creditAccount = CreateCreditAccount(unitApi); + UnitRepaymentInformationResponse res = unitApi.getRepaymentInformation(creditAccount.getId()); + assert res.getData().getType().equals(RepaymentInformation.TypeEnum.CREDIT_ACCOUNT_REPAYMENT_INFORMATION); + } + + WalletAccount CreateWalletAccount() throws ApiException { + BusinessCustomer customer = CreateBusinessCustomer(unitApi); + + CreateWalletAccount req = new CreateWalletAccount(); + CreateWalletAccountAttributes attributes = new CreateWalletAccountAttributes(); + attributes.setWalletTerms(walletTerms); + + CreateWalletAccountRelationships relationships = new CreateWalletAccountRelationships(); + CustomerRelationshipData customerRelationshipData = new CustomerRelationshipData(); + customerRelationshipData.setId(customer.getId()); + customerRelationshipData.setType(CustomerRelationshipData.TypeEnum.CUSTOMER); + CustomerRelationship customerLinkageRelationship = new CustomerRelationship(); + customerLinkageRelationship.setData(customerRelationshipData); + + relationships.setCustomer(customerLinkageRelationship); + + req.setAttributes(attributes); + req.setRelationships(relationships); + + CreateAccountRequest ca = new CreateAccountRequest(); + ca.setData(new CreateAccountRequestData(req)); + + WalletAccount walletAccount = (WalletAccount) unitApi.createAccount(ca).getData(); + assert walletAccount.getType().equals(Account.TypeEnum.WALLET_ACCOUNT); + return walletAccount; + } + + @Test + public void CreateWalletAccountApiTest() throws ApiException { + CreateWalletAccount(); + } + + WalletAccount CreateAndCloseWalletAccount() throws ApiException { + WalletAccount walletAccount = CreateWalletAccount(); + CloseAccountRequest closeAccountRequest = new CloseAccountRequest(); + CloseAccountRequestData closeAccountRequestData = new CloseAccountRequestData(); + CloseAccountRequestDataAttributes closeAccountRequestAttributes = new CloseAccountRequestDataAttributes(); + closeAccountRequestAttributes.setReason(CloseAccountRequestDataAttributes.ReasonEnum.BY_CUSTOMER); + closeAccountRequestData.setAttributes(closeAccountRequestAttributes); + closeAccountRequestData.setType(CloseAccountRequestData.TypeEnum.WALLET_ACCOUNT_CLOSE); + closeAccountRequest.setData(closeAccountRequestData); + + UnitAccountResponse res = unitApi.closeAccount(walletAccount.getId(), closeAccountRequest); + assert res.getData().getType().equals(Account.TypeEnum.WALLET_ACCOUNT); + + return (WalletAccount) res.getData(); + } + + @Test + public void CloseWalletAccountApiTest() throws ApiException { + CreateAndCloseWalletAccount(); + } + + @Test + public void ReopenWalletAccountApiTest() throws ApiException { + WalletAccount closedWalletAccount = CreateAndCloseWalletAccount(); + UnitAccountResponse res = unitApi.reopenAccount(closedWalletAccount.getId()); + assert res.getData().getType().equals(Account.TypeEnum.WALLET_ACCOUNT); + } + + WalletAccount CreateAndFreezeWalletAccount() throws ApiException { + WalletAccount walletAccount = CreateWalletAccount(); + FreezeAccountRequest freezeAccountRequest = new FreezeAccountRequest(); + FreezeAccountRequestData freezeAccountRequestData = new FreezeAccountRequestData(); + FreezeAccountRequestDataAttributes freezeAccountRequestDataAttributes = new FreezeAccountRequestDataAttributes(); + freezeAccountRequestDataAttributes.setReason(FreezeAccountRequestDataAttributes.ReasonEnum.FRAUD); + freezeAccountRequestData.setType(FreezeAccountRequestData.TypeEnum.ACCOUNT_FREEZE); + freezeAccountRequestData.setAttributes(freezeAccountRequestDataAttributes); + freezeAccountRequest.setData(freezeAccountRequestData); + UnitAccountResponse res = unitApi.freezeAccount(walletAccount.getId(), freezeAccountRequest); + WalletAccount frozenWalletAccount = (WalletAccount) res.getData(); + assert frozenWalletAccount.getType().equals(Account.TypeEnum.WALLET_ACCOUNT); + return frozenWalletAccount; + } + + @Test + public void FreezeWalletAccountApiTest() throws ApiException { + CreateAndFreezeWalletAccount(); + } + + @Test + public void UnfreezeWalletAccountApiTest() throws ApiException { + WalletAccount frozenAccount = CreateAndFreezeWalletAccount(); + UnitAccountResponse res = unitApi.unfreezeAccount(frozenAccount.getId()); + assert res.getData().getType().equals(Account.TypeEnum.WALLET_ACCOUNT); + } + + @Test + public void GetWalletAccountLimitsApiTest() throws ApiException { + WalletAccount walletAccount = CreateWalletAccount(); + UnitGetAccountLimitsResponse res = unitApi.getAccountLimits(walletAccount.getId()); + assert res.getData().getType().equals(Limits.TypeEnum.WALLET_LIMITS); + } + + @Test + public void GetWalletAccountBalanceHistoryApiTest() throws ApiException { + WalletAccount walletAccount = CreateWalletAccount(); + ListPageParameters pageParams = new ListPageParameters(); + pageParams.setLimit(20); + GetAccountBalanceHistoryFilterParameter mainFilters = new GetAccountBalanceHistoryFilterParameter(); + mainFilters.setAccountId(walletAccount.getId()); + UnitAccountBalanceHistoryResponse res = unitApi.getAccountBalanceHistory(pageParams, mainFilters); + res.getData().forEach(accountEndOfDay -> { + assert accountEndOfDay.getType().equals(AccountEndOfDay.TypeEnum.ACCOUNT_END_OF_DAY); + }); } } diff --git a/src/test/java/unit/java/sdk/ApplicationTests.java b/src/test/java/unit/java/sdk/ApplicationTests.java index 7e0afb1c..12c884d1 100644 --- a/src/test/java/unit/java/sdk/ApplicationTests.java +++ b/src/test/java/unit/java/sdk/ApplicationTests.java @@ -1,5 +1,7 @@ package unit.java.sdk; +import java.io.File; +import java.io.InputStream; import java.util.ArrayList; import java.util.List; @@ -59,6 +61,7 @@ import unit.java.sdk.model.UpdateIndividualApplicationAttributes; import unit.java.sdk.model.UpdateSoleProprietorApplication; import unit.java.sdk.model.UpdateSoleProprietorApplicationAttributes; +import unit.java.sdk.model.UploadApplicationDocumentContentType; import unit.java.sdk.model.CreateApplicationFormRequestDataAttributes.AllowedApplicationTypesEnum; import unit.java.sdk.model.CreateApplicationFormRequestDataAttributes.LangEnum; @@ -108,7 +111,7 @@ public void GetApplicationApiTest() throws ApiException { @Test public void UpdateIndividualApplicationApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)); - assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.INDIVIDUALAPPLICATION); + assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.INDIVIDUAL_APPLICATION); IndividualApplication individualApp = (IndividualApplication) res.getData(); ApplicationStatus status = individualApp.getAttributes().getStatus(); @@ -116,7 +119,7 @@ public void UpdateIndividualApplicationApiTest() throws ApiException { UpdateIndividualApplication body = new UpdateIndividualApplication(); UpdateIndividualApplicationAttributes attributes = new UpdateIndividualApplicationAttributes(); - attributes.setOccupation(Occupation.ARCHITECTORENGINEER); + attributes.setOccupation(Occupation.ARCHITECT_OR_ENGINEER); body.setAttributes(attributes); UpdateApplicationRequestData d = new UpdateApplicationRequestData(body); @@ -128,13 +131,13 @@ public void UpdateIndividualApplicationApiTest() throws ApiException { assert app.getData().getType().toString().toLowerCase() .equals(app.getData().getClass().getSimpleName().toLowerCase()); IndividualApplication resApplication = (IndividualApplication) app.getData(); - assert resApplication.getAttributes().getOccupation().equals(Occupation.ARCHITECTORENGINEER); + assert resApplication.getAttributes().getOccupation().equals(Occupation.ARCHITECT_OR_ENGINEER); } @Test public void UpdateSoleProprietorApplicationApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateSoleProprietorApplicationRequest()); - assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.INDIVIDUALAPPLICATION); + assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.INDIVIDUAL_APPLICATION); IndividualApplication individualApp = (IndividualApplication) res.getData(); ApplicationStatus status = individualApp.getAttributes().getStatus(); @@ -142,7 +145,7 @@ public void UpdateSoleProprietorApplicationApiTest() throws ApiException { UpdateSoleProprietorApplication body = new UpdateSoleProprietorApplication(); UpdateSoleProprietorApplicationAttributes attributes = new UpdateSoleProprietorApplicationAttributes(); - attributes.setAnnualRevenue(SoleProprietorshipAnnualRevenue.UPTO50K); + attributes.setAnnualRevenue(SoleProprietorshipAnnualRevenue.UP_TO50K); body.setAttributes(attributes); UpdateApplicationRequestData d = new UpdateApplicationRequestData(body); @@ -155,13 +158,13 @@ public void UpdateSoleProprietorApplicationApiTest() throws ApiException { .equals(app.getData().getClass().getSimpleName().toLowerCase()); IndividualApplication resApplication = (IndividualApplication) app.getData(); - assert resApplication.getAttributes().getAnnualRevenue().equals(SoleProprietorshipAnnualRevenue.UPTO50K); + assert resApplication.getAttributes().getAnnualRevenue().equals(SoleProprietorshipAnnualRevenue.UP_TO50K); } @Test public void UpdateBusinessApplicationApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateBusinessApplicationRequest()); - assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.BUSINESSAPPLICATION); + assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.BUSINESS_APPLICATION); BusinessApplication businessApp = (BusinessApplication) res.getData(); ApplicationStatus status = businessApp.getAttributes().getStatus(); @@ -188,7 +191,7 @@ public void UpdateBusinessApplicationApiTest() throws ApiException { @Test public void UpdateBusinessOfficerApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateBusinessApplicationRequest()); - assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.BUSINESSAPPLICATION); + assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.BUSINESS_APPLICATION); BusinessApplication businessApp = (BusinessApplication) res.getData(); ApplicationStatus status = businessApp.getAttributes().getStatus(); @@ -197,11 +200,11 @@ public void UpdateBusinessOfficerApiTest() throws ApiException { UpdateBusinessOfficer body = new UpdateBusinessOfficer(); UpdateBusinessOfficerAttributes attributes = new UpdateBusinessOfficerAttributes(); BusinessOfficer officer = new BusinessOfficer(); - AnnualIncome income = AnnualIncome.BETWEEN100KAND250K; + AnnualIncome income = AnnualIncome.BETWEEN100K_AND250K; officer.setAnnualIncome(income); attributes.setOfficer(officer); - body.setType(UpdateBusinessOfficer.TypeEnum.BUSINESSAPPLICATION); + body.setType(UpdateBusinessOfficer.TypeEnum.BUSINESS_APPLICATION); body.setAttributes(attributes); UpdateApplicationRequestData d = new UpdateApplicationRequestData(body); @@ -219,7 +222,7 @@ public void UpdateBusinessOfficerApiTest() throws ApiException { @Test public void UpdateBusinessBeneficialOwnerApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateBusinessApplicationRequest()); - assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.BUSINESSAPPLICATION); + assert res.getData().getType().equals(unit.java.sdk.model.Application.TypeEnum.BUSINESS_APPLICATION); BusinessApplication businessApp = (BusinessApplication) res.getData(); ApplicationStatus status = businessApp.getAttributes().getStatus(); @@ -227,15 +230,15 @@ public void UpdateBusinessBeneficialOwnerApiTest() throws ApiException { UpdateBusinessBeneficialOwner body = new UpdateBusinessBeneficialOwner(); UpdateBusinessBeneficialOwnerAttributes attributes = new UpdateBusinessBeneficialOwnerAttributes(); - AnnualIncome income = AnnualIncome.BETWEEN100KAND250K; + AnnualIncome income = AnnualIncome.BETWEEN100K_AND250K; attributes.setAnnualIncome(income); - body.setType(UpdateBusinessBeneficialOwner.TypeEnum.BENEFICIALOWNER); + body.setType(UpdateBusinessBeneficialOwner.TypeEnum.BENEFICIAL_OWNER); UpdateBusinessBeneficialOwnerRelationships relationships = new UpdateBusinessBeneficialOwnerRelationships(); ApplicationRelationship applicationRelationship = new ApplicationRelationship(); ApplicationRelationshipData applicationRelationshipData = new ApplicationRelationshipData(); applicationRelationshipData.setId(res.getData().getId()); - applicationRelationshipData.setType(ApplicationRelationshipData.TypeEnum.BUSINESSAPPLICATION); + applicationRelationshipData.setType(ApplicationRelationshipData.TypeEnum.BUSINESS_APPLICATION); applicationRelationship.setData(applicationRelationshipData); relationships.setApplication(applicationRelationship); body.setRelationships(relationships); @@ -260,52 +263,130 @@ public void UpdateBusinessBeneficialOwnerApiTest() throws ApiException { @Test public void CreateIndividualApplicationApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)); - assert res.getData().getType().equals(Application.TypeEnum.INDIVIDUALAPPLICATION); + assert res.getData().getType().equals(Application.TypeEnum.INDIVIDUAL_APPLICATION); } @Test public void CreateSoleProprietorApplicationApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateSoleProprietorApplicationRequest()); - assert res.getData().getType().equals(Application.TypeEnum.INDIVIDUALAPPLICATION); + assert res.getData().getType().equals(Application.TypeEnum.INDIVIDUAL_APPLICATION); } @Test public void CreateBusinessApplicationApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateBusinessApplicationRequest()); - assert res.getData().getType().equals(Application.TypeEnum.BUSINESSAPPLICATION); + assert res.getData().getType().equals(Application.TypeEnum.BUSINESS_APPLICATION); } @Test public void CancelApplicationApiTest() throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateIndividualApplicationRequest("000000004")); Application application = res.getData(); - assert application.getType().equals(Application.TypeEnum.INDIVIDUALAPPLICATION); + assert application.getType().equals(Application.TypeEnum.INDIVIDUAL_APPLICATION); CancelApplicationRequest cancelApplicationRequest = new CancelApplicationRequest(); CancelApplicationRequestData cancelApplicationRequestData = new CancelApplicationRequestData(); CancelApplicationRequestDataAttributes cancelApplicationRequestDataAttributes = new CancelApplicationRequestDataAttributes(); cancelApplicationRequestDataAttributes.setReason("By Org"); cancelApplicationRequestData.setAttributes(cancelApplicationRequestDataAttributes); - cancelApplicationRequestData.setType(CancelApplicationRequestData.TypeEnum.APPLICATIONCANCEL); + cancelApplicationRequestData.setType(CancelApplicationRequestData.TypeEnum.APPLICATION_CANCEL); cancelApplicationRequest.setData(cancelApplicationRequestData); UnitCancelApplicationResponse cancelRes = unitApi.cancelApplication(application.getId(), cancelApplicationRequest); - assert cancelRes.getData().getType().equals(Application.TypeEnum.INDIVIDUALAPPLICATION); + assert cancelRes.getData().getType().equals(Application.TypeEnum.INDIVIDUAL_APPLICATION); } - @Test - public void CreateAndGetDocumentForApplicationApiTest() throws ApiException { - UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)); - assert res.getData().getType().equals(Application.TypeEnum.INDIVIDUALAPPLICATION); + ApplicationDocument CreateApplicationDocument(IndividualApplication application) throws ApiException { + if(application == null) { + UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)); + assert res.getData().getType().equals(Application.TypeEnum.INDIVIDUAL_APPLICATION); + + application = (IndividualApplication) res.getData(); + } - UnitDocumentResponse document = unitApi.createApplicationDocument(res.getData().getId(), DefaultContentType.APPLICATION_VND_API_JSON); + UnitDocumentResponse document = unitApi.createApplicationDocument(application.getId(), DefaultContentType.APPLICATION_VND_API_JSON); assert document.getData().getType().equals(ApplicationDocument.TypeEnum.DOCUMENT); - UnitListDocumentsResponse response = unitApi.getApplicationDocuments(res.getData().getId()); + return document.getData(); + } + + @Test + public void CreateApplicationDocumentAndGetApiTest() throws ApiException { + IndividualApplication application = (IndividualApplication) unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)).getData(); + CreateApplicationDocument(application); + UnitListDocumentsResponse response = unitApi.getApplicationDocuments(application.getId()); assert !response.getData().isEmpty(); } + @Test + public void UploadPngApplicationDocumentApiTest() throws ApiException { + IndividualApplication application = (IndividualApplication) unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)).getData(); + ApplicationDocument document = CreateApplicationDocument(application); + File file = new File("./src/test/java/unit/java/sdk/unit_photo.png"); + UnitDocumentResponse res = unitApi.uploadApplicationDocumentFile(application.getId(), document.getId(), file, UploadApplicationDocumentContentType.IMAGE_PNG); + assert res.getData().getType().equals(ApplicationDocument.TypeEnum.DOCUMENT); + InputStream streamRes = unitApi.downloadApplicationDocument(application.getId(), document.getId()); + assert streamRes != null; + } + + @Test + public void UploadJpegApplicationDocumentApiTest() throws ApiException { + IndividualApplication application = (IndividualApplication) unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)).getData(); + ApplicationDocument document = CreateApplicationDocument(application); + File file = new File("./src/test/java/unit/java/sdk/unit_photo.jpeg"); + UnitDocumentResponse res = unitApi.uploadApplicationDocumentFile(application.getId(), document.getId(), file, UploadApplicationDocumentContentType.IMAGE_JPEG); + assert res.getData().getType().equals(ApplicationDocument.TypeEnum.DOCUMENT); + InputStream streamRes = unitApi.downloadApplicationDocument(application.getId(), document.getId()); + assert streamRes != null; + } + + @Test + public void UploadPdfApplicationDocumentApiTest() throws ApiException { + IndividualApplication application = (IndividualApplication) unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)).getData(); + ApplicationDocument document = CreateApplicationDocument(application); + File file = new File("./src/test/java/unit/java/sdk/unit_pdf.pdf"); + UnitDocumentResponse res = unitApi.uploadApplicationDocumentFile(application.getId(), document.getId(), file, UploadApplicationDocumentContentType.IMAGE_JPEG); + assert res.getData().getType().equals(ApplicationDocument.TypeEnum.DOCUMENT); + InputStream streamRes = unitApi.downloadApplicationDocument(application.getId(), document.getId()); + assert streamRes != null; + } + + @Test + public void UploadPngApplicationDocumentBacksideApiTest() throws ApiException { + IndividualApplication application = (IndividualApplication) unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)).getData(); + ApplicationDocument document = CreateApplicationDocument(application); + File file = new File("./src/test/java/unit/java/sdk/unit_photo.png"); + UnitDocumentResponse res = unitApi.uploadApplicationDocumentFileBackSide(application.getId(), document.getId(), file, UploadApplicationDocumentContentType.IMAGE_JPEG); + assert res.getData().getType().equals(ApplicationDocument.TypeEnum.DOCUMENT); + InputStream streamRes = unitApi.downloadApplicationDocument(application.getId(), document.getId()); + assert streamRes != null; + } + + @Test + public void UploadJpegApplicationDocumentBacksideApiTest() throws ApiException { + IndividualApplication application = (IndividualApplication) unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)).getData(); + ApplicationDocument document = CreateApplicationDocument(application); + File file = new File("./src/test/java/unit/java/sdk/unit_photo.jpeg"); + UnitDocumentResponse res = unitApi.uploadApplicationDocumentFileBackSide(application.getId(), document.getId(), file, UploadApplicationDocumentContentType.IMAGE_JPEG); + assert res.getData().getType().equals(ApplicationDocument.TypeEnum.DOCUMENT); + + InputStream streamRes = unitApi.downloadApplicationDocument(application.getId(), document.getId()); + assert streamRes != null; + } + + @Test + public void UploadPdfApplicationDocumentBacksideApiTest() throws ApiException { + IndividualApplication application = (IndividualApplication) unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)).getData(); + ApplicationDocument document = CreateApplicationDocument(application); + File file = new File("./src/test/java/unit/java/sdk/unit_pdf.pdf"); + UnitDocumentResponse res = unitApi.uploadApplicationDocumentFileBackSide(application.getId(), document.getId(), file, UploadApplicationDocumentContentType.IMAGE_JPEG); + assert res.getData().getType().equals(ApplicationDocument.TypeEnum.DOCUMENT); + + InputStream streamRes = unitApi.downloadApplicationDocument(application.getId(), document.getId()); + assert streamRes != null; + } + @Test public void ListDocumentsApiTest() throws ApiException { UnitListApplicationsResponse response = unitApi.getApplicationsList(null, null, null); @@ -338,7 +419,7 @@ public void CreateApplicationFormApiTest() throws ApiException { req.setData(data); UnitApplicationFormResponse res = unitApi.createApplicationForm(req); - assert res.getData().getType().equals(ApplicationForm.TypeEnum.APPLICATIONFORM); + assert res.getData().getType().equals(ApplicationForm.TypeEnum.APPLICATION_FORM); } @Test diff --git a/src/test/java/unit/java/sdk/CardTests.java b/src/test/java/unit/java/sdk/CardTests.java new file mode 100644 index 00000000..944131ad --- /dev/null +++ b/src/test/java/unit/java/sdk/CardTests.java @@ -0,0 +1,449 @@ +package unit.java.sdk; + +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import java.time.LocalDate; + +import static unit.java.sdk.AccountTests.CreateDepositAccount; +import static unit.java.sdk.AccountTests.CreateCreditAccount; +import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; +import static unit.java.sdk.CustomerTests.CreateBusinessCustomer; + +import org.junit.Test; +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.AccountRelationshipData; +import unit.java.sdk.model.Address; +import unit.java.sdk.model.Card; +import unit.java.sdk.model.CardLevelLimits; +import unit.java.sdk.model.CreateBusinessCardAttributes; +import unit.java.sdk.model.CreateBusinessCreditCardRequest; +import unit.java.sdk.model.CreateBusinessDebitCardRequest; +import unit.java.sdk.model.CreateBusinessVirtualCreditCardRequest; +import unit.java.sdk.model.CreateBusinessVirtualDebitCardRequest; +import unit.java.sdk.model.CreateBusinessVirtualDebitCardRequestAttributes; +import unit.java.sdk.model.CreateCardRelationships; +import unit.java.sdk.model.CreateCardRequest; +import unit.java.sdk.model.CreateCardRequestData; +import unit.java.sdk.model.CreateIndividualDebitCardRequest; +import unit.java.sdk.model.CreateIndividualDebitCardRequestAttributes; +import unit.java.sdk.model.CreateIndividualVirtualDebitCardRequest; +import unit.java.sdk.model.CreateIndividualVirtualDebitCardRequestAttributes; +import unit.java.sdk.model.CreditAccount; +import unit.java.sdk.model.DepositAccount; +import unit.java.sdk.model.FullName; +import unit.java.sdk.model.IndividualDebitCard; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.Phone; +import unit.java.sdk.model.ReplaceCardRequest; +import unit.java.sdk.model.ReplaceCardRequestData; +import unit.java.sdk.model.ReplaceCardRequestDataAttributes; +import unit.java.sdk.model.UnitCardLimitsResponse; +import unit.java.sdk.model.UnitCardLimitsResponseData; +import unit.java.sdk.model.UnitCardResponse; +import unit.java.sdk.model.UnitCardResponseWithIncluded; +import unit.java.sdk.model.UnitCardsListReponse; +import unit.java.sdk.model.UnitPinStatusResponse; +import unit.java.sdk.model.UnitPinStatusResponseData; + +public class CardTests { + UnitApi unitApi = GenerateUnitApiClient(); + + static IndividualDebitCard CreateIndividualDebitCard(UnitApi unitApi, DepositAccount account) throws ApiException { + if(account == null) account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + CreateCardRequest req = new CreateCardRequest(); + CreateIndividualDebitCardRequest specificData = new CreateIndividualDebitCardRequest(); + + CreateCardRelationships relationships = new CreateCardRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData relationshipData = new AccountRelationshipData(); + relationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + relationshipData.setId(account.getId()); + relationships.setAccount(accountRelationship); + accountRelationship.setData(relationshipData); + relationships.setAccount(accountRelationship); + + CreateIndividualDebitCardRequestAttributes attributes = new CreateIndividualDebitCardRequestAttributes(); + Address shippingAddress = new Address(); + shippingAddress.setStreet("5230 Newell Rd"); + shippingAddress.setState("CA"); + shippingAddress.setCountry("US"); + shippingAddress.setPostalCode("94303"); + shippingAddress.setCity("Palo Alto"); + attributes.setShippingAddress(shippingAddress); + + CardLevelLimits limits = new CardLevelLimits(); + limits.setDailyPurchase(1000); + limits.setDailyWithdrawal(500); + limits.setMonthlyPurchase(20000); + limits.setMonthlyWithdrawal(10000); + attributes.setLimits(limits); + + specificData.setType(CreateIndividualDebitCardRequest.TypeEnum.INDIVIDUAL_DEBIT_CARD); + specificData.setAttributes(attributes); + specificData.setRelationships(relationships); + + + CreateCardRequestData reqData = new CreateCardRequestData(specificData); + req.setData(reqData); + UnitCardResponse res = unitApi.createCard(req); + assert res.getData().getType().equals(Card.TypeEnum.INDIVIDUAL_DEBIT_CARD); + + return (IndividualDebitCard) res.getData(); + } + + static IndividualDebitCard CreateAndActivateIndividualDebitCard(UnitApi unitApi, DepositAccount account) throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, account); + unitApi.activateCardSimulation(card.getId()); + return card; + } + + @Test + public void CreateIndividualDebitCardApiTest() throws ApiException { + CreateIndividualDebitCard(unitApi, null); + } + + @Test + public void CreateBusinessDebitCardApiTest() throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, CreateBusinessCustomer(unitApi)); + CreateCardRequest req = new CreateCardRequest(); + CreateBusinessDebitCardRequest specificData = new CreateBusinessDebitCardRequest(); + + CreateCardRelationships relationships = new CreateCardRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData relationshipData = new AccountRelationshipData(); + relationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + relationshipData.setId(account.getId()); + relationships.setAccount(accountRelationship); + accountRelationship.setData(relationshipData); + relationships.setAccount(accountRelationship); + + CreateBusinessCardAttributes attributes = new CreateBusinessCardAttributes(); + Address shippingAddress = new Address(); + shippingAddress.setStreet("5230 Newell Rd"); + shippingAddress.setState("CA"); + shippingAddress.setCountry("US"); + shippingAddress.setPostalCode("94303"); + shippingAddress.setCity("Palo Alto"); + attributes.setShippingAddress(shippingAddress); + + CardLevelLimits limits = new CardLevelLimits(); + limits.setDailyPurchase(1000); + limits.setDailyWithdrawal(500); + limits.setMonthlyPurchase(20000); + limits.setMonthlyWithdrawal(10000); + attributes.setLimits(limits); + + attributes.setAddress(shippingAddress); + attributes.email("test@mail.com"); + + FullName fullName = new FullName(); + fullName.setFirst("John"); + fullName.setLast("Doe"); + attributes.setFullName(fullName); + Phone phone = new Phone(); + phone.setCountryCode("1"); + phone.setNumber("5555555555"); + attributes.setPhone(phone); + attributes.setSsn("123456789"); + + LocalDate dateOfBirth = LocalDate.of(2008, 8, 10); + attributes.setDateOfBirth(dateOfBirth); + + specificData.setType(CreateBusinessDebitCardRequest.TypeEnum.BUSINESS_DEBIT_CARD); + specificData.setAttributes(attributes); + specificData.setRelationships(relationships); + + CreateCardRequestData reqData = new CreateCardRequestData(specificData); + req.setData(reqData); + UnitCardResponse res = unitApi.createCard(req); + assert res.getData().getType().equals(Card.TypeEnum.BUSINESS_DEBIT_CARD); + } + + @Test + public void CreateBusinessCreditCardApiTest() throws ApiException { + CreditAccount account = CreateCreditAccount(unitApi); + CreateCardRequest req = new CreateCardRequest(); + CreateBusinessCreditCardRequest specificData = new CreateBusinessCreditCardRequest(); + + CreateCardRelationships relationships = new CreateCardRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData relationshipData = new AccountRelationshipData(); + relationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + relationshipData.setId(account.getId()); + relationships.setAccount(accountRelationship); + accountRelationship.setData(relationshipData); + relationships.setAccount(accountRelationship); + + CreateBusinessCardAttributes attributes = new CreateBusinessCardAttributes(); + Address shippingAddress = new Address(); + shippingAddress.setStreet("5230 Newell Rd"); + shippingAddress.setState("CA"); + shippingAddress.setCountry("US"); + shippingAddress.setPostalCode("94303"); + shippingAddress.setCity("Palo Alto"); + attributes.setShippingAddress(shippingAddress); + + CardLevelLimits limits = new CardLevelLimits(); + limits.setDailyPurchase(0); + limits.setDailyWithdrawal(0); + limits.setMonthlyPurchase(0); + limits.setMonthlyWithdrawal(0); + attributes.setLimits(limits); + + attributes.setAddress(shippingAddress); + attributes.email("test@mail.com"); + + FullName fullName = new FullName(); + fullName.setFirst("John"); + fullName.setLast("Doe"); + attributes.setFullName(fullName); + Phone phone = new Phone(); + phone.setCountryCode("1"); + phone.setNumber("5555555555"); + attributes.setPhone(phone); + attributes.setSsn("123456789"); + + LocalDate dateOfBirth = LocalDate.of(2008, 8, 10); + attributes.setDateOfBirth(dateOfBirth); + + specificData.setType(CreateBusinessCreditCardRequest.TypeEnum.BUSINESS_CREDIT_CARD); + specificData.setAttributes(attributes); + specificData.setRelationships(relationships); + + CreateCardRequestData reqData = new CreateCardRequestData(specificData); + req.setData(reqData); + UnitCardResponse res = unitApi.createCard(req); + assert res.getData().getType().equals(Card.TypeEnum.BUSINESS_CREDIT_CARD); + } + + @Test + public void CreateIndividualVirtualDebitCardApiTest() throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + CreateCardRequest req = new CreateCardRequest(); + CreateIndividualVirtualDebitCardRequest specificData = new CreateIndividualVirtualDebitCardRequest(); + + CreateCardRelationships relationships = new CreateCardRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData relationshipData = new AccountRelationshipData(); + relationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + relationshipData.setId(account.getId()); + relationships.setAccount(accountRelationship); + accountRelationship.setData(relationshipData); + relationships.setAccount(accountRelationship); + + CreateIndividualVirtualDebitCardRequestAttributes attributes = new CreateIndividualVirtualDebitCardRequestAttributes(); + + CardLevelLimits limits = new CardLevelLimits(); + limits.setDailyPurchase(1000); + limits.setDailyWithdrawal(500); + limits.setMonthlyPurchase(20000); + limits.setMonthlyWithdrawal(10000); + attributes.setLimits(limits); + + specificData.setType(CreateIndividualVirtualDebitCardRequest.TypeEnum.INDIVIDUAL_VIRTUAL_DEBIT_CARD); + specificData.setAttributes(attributes); + specificData.setRelationships(relationships); + + + CreateCardRequestData reqData = new CreateCardRequestData(specificData); + req.setData(reqData); + UnitCardResponse res = unitApi.createCard(req); + assert res.getData().getType().equals(Card.TypeEnum.INDIVIDUAL_VIRTUAL_DEBIT_CARD); + } + + @Test + public void CreateBusinessVirtualDebitCard() throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, CreateBusinessCustomer(unitApi)); + CreateCardRequest req = new CreateCardRequest(); + CreateBusinessVirtualDebitCardRequest specificData = new CreateBusinessVirtualDebitCardRequest(); + + CreateCardRelationships relationships = new CreateCardRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData relationshipData = new AccountRelationshipData(); + relationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + relationshipData.setId(account.getId()); + relationships.setAccount(accountRelationship); + accountRelationship.setData(relationshipData); + relationships.setAccount(accountRelationship); + + CreateBusinessVirtualDebitCardRequestAttributes attributes = new CreateBusinessVirtualDebitCardRequestAttributes(); + + CardLevelLimits limits = new CardLevelLimits(); + limits.setDailyPurchase(1000); + limits.setDailyWithdrawal(500); + limits.setMonthlyPurchase(20000); + limits.setMonthlyWithdrawal(10000); + attributes.setLimits(limits); + + attributes.email("test@mail.com"); + + Address address = new Address(); + address.setStreet("5230 Newell Rd"); + address.setState("CA"); + address.setCountry("US"); + address.setPostalCode("94303"); + address.setCity("Palo Alto"); + attributes.setAddress(address); + + FullName fullName = new FullName(); + fullName.setFirst("John"); + fullName.setLast("Doe"); + attributes.setFullName(fullName); + Phone phone = new Phone(); + phone.setCountryCode("1"); + phone.setNumber("5555555555"); + attributes.setPhone(phone); + attributes.setSsn("123456789"); + + LocalDate dateOfBirth = LocalDate.of(2008, 8, 10); + attributes.setDateOfBirth(dateOfBirth); + + specificData.setType(CreateBusinessVirtualDebitCardRequest.TypeEnum.BUSINESS_VIRTUAL_DEBIT_CARD); + specificData.setAttributes(attributes); + specificData.setRelationships(relationships); + + CreateCardRequestData reqData = new CreateCardRequestData(specificData); + req.setData(reqData); + UnitCardResponse res = unitApi.createCard(req); + assert res.getData().getType().equals(Card.TypeEnum.BUSINESS_VIRTUAL_DEBIT_CARD); + } + + @Test public void CreateBusinessVirtualCreditCard() throws ApiException { + CreditAccount account = CreateCreditAccount(unitApi); + CreateCardRequest req = new CreateCardRequest(); + CreateBusinessVirtualCreditCardRequest specificData = new CreateBusinessVirtualCreditCardRequest(); + + CreateCardRelationships relationships = new CreateCardRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData relationshipData = new AccountRelationshipData(); + relationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + relationshipData.setId(account.getId()); + relationships.setAccount(accountRelationship); + accountRelationship.setData(relationshipData); + relationships.setAccount(accountRelationship); + + CreateBusinessVirtualDebitCardRequestAttributes attributes = new CreateBusinessVirtualDebitCardRequestAttributes(); + + CardLevelLimits limits = new CardLevelLimits(); + limits.setDailyPurchase(0); + limits.setDailyWithdrawal(0); + limits.setMonthlyPurchase(0); + limits.setMonthlyWithdrawal(0); + attributes.setLimits(limits); + + attributes.email("test@mail.com"); + + Address address = new Address(); + address.setStreet("5230 Newell Rd"); + address.setState("CA"); + address.setCountry("US"); + address.setPostalCode("94303"); + address.setCity("Palo Alto"); + + attributes.setAddress(address); + + FullName fullName = new FullName(); + fullName.setFirst("John"); + fullName.setLast("Doe"); + attributes.setFullName(fullName); + Phone phone = new Phone(); + phone.setCountryCode("1"); + phone.setNumber("5555555555"); + attributes.setPhone(phone); + attributes.setSsn("123456789"); + + LocalDate dateOfBirth = LocalDate.of(2008, 8, 10); + attributes.setDateOfBirth(dateOfBirth); + + specificData.setType(CreateBusinessVirtualCreditCardRequest.TypeEnum.BUSINESS_VIRTUAL_CREDIT_CARD); + specificData.setAttributes(attributes); + specificData.setRelationships(relationships); + + CreateCardRequestData reqData = new CreateCardRequestData(specificData); + req.setData(reqData); + UnitCardResponse res = unitApi.createCard(req); + assert res.getData().getType().equals(Card.TypeEnum.BUSINESS_VIRTUAL_CREDIT_CARD); + } + + @Test + public void GetPinStatusApiTest() throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, null); + unitApi.activateCardSimulation(card.getId()); + UnitPinStatusResponse res = unitApi.getCardPinStatus(card.getId()); + assert res.getData().getType().equals(UnitPinStatusResponseData.TypeEnum.PIN_STATUS); + } + + @Test + public void CloseCardApiTest() throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, null); + UnitCardResponse res = unitApi.closeCard(card.getId()); + assert res.getData().getType().equals(Card.TypeEnum.INDIVIDUAL_DEBIT_CARD); + } + + @Test + public void FreezeCardApiTest() throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, null); + UnitCardResponse res = unitApi.freezeCard(card.getId()); + assert res.getData().getType().equals(Card.TypeEnum.INDIVIDUAL_DEBIT_CARD); + } + + @Test + public void UnfreezeCardApiTest() throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, null); + UnitCardResponse freezeRes = unitApi.freezeCard(card.getId()); + assert freezeRes.getData().getType().equals(Card.TypeEnum.INDIVIDUAL_DEBIT_CARD); + UnitCardResponse unfreezeRes = unitApi.unfreezeCard(card.getId()); + assert unfreezeRes.getData().getType().equals(Card.TypeEnum.INDIVIDUAL_DEBIT_CARD); + } + + @Test + public void ReplaceCardApiTest() throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, null); + ReplaceCardRequest req = new ReplaceCardRequest(); + ReplaceCardRequestData data = new ReplaceCardRequestData(); + ReplaceCardRequestDataAttributes attributes = new ReplaceCardRequestDataAttributes(); + Address shippingAddress = new Address(); + shippingAddress.setStreet("5230 Newell Rd"); + shippingAddress.setState("CA"); + shippingAddress.setCountry("US"); + shippingAddress.setPostalCode("94303"); + shippingAddress.setCity("Palo Alto"); + attributes.setShippingAddress(shippingAddress); + data.setAttributes(attributes); + data.setType(ReplaceCardRequestData.TypeEnum.REPLACE_CARD); + req.setData(data); + + UnitCardResponse res = unitApi.replaceCard(card.getId(), req); + assert res.getData().getType().equals(Card.TypeEnum.INDIVIDUAL_DEBIT_CARD); + } + + @Test + public void GetCardsListApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitCardsListReponse res = unitApi.getCardsList(params, null, null, null); + assert !res.getData().isEmpty(); + } + + @Test + public void GetCardByIdApiTest() throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, null); + UnitCardResponseWithIncluded res = unitApi.getCard(card.getId(), null); + assert res.getData().getType().equals(Card.TypeEnum.INDIVIDUAL_DEBIT_CARD); + } + + @Test + public void GetCardLimitsApiTest() throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, null); + UnitCardLimitsResponse res = unitApi.getCardLimits(card.getId()); + assert res.getData().getType().equals(UnitCardLimitsResponseData.TypeEnum.LIMITS); + } + + @Test + public void ActivateCardApiTest() throws ApiException { + IndividualDebitCard card = CreateIndividualDebitCard(unitApi, null); + UnitCardLimitsResponse res = unitApi.getCardLimits(card.getId()); + assert res.getData().getType().equals(UnitCardLimitsResponseData.TypeEnum.LIMITS); + } +} \ No newline at end of file diff --git a/src/test/java/unit/java/sdk/CheckDepositTests.java b/src/test/java/unit/java/sdk/CheckDepositTests.java new file mode 100644 index 00000000..5b0ac5e5 --- /dev/null +++ b/src/test/java/unit/java/sdk/CheckDepositTests.java @@ -0,0 +1,94 @@ +package unit.java.sdk; + +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import java.util.HashMap; +import java.util.Map; + +import static unit.java.sdk.AccountTests.CreateDepositAccount; +import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; + +import org.junit.Test; + +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.AccountRelationshipData; +import unit.java.sdk.model.CheckDeposit; +import unit.java.sdk.model.CreateCheckDepositRelationships; +import unit.java.sdk.model.CreateCheckDepositRequest; +import unit.java.sdk.model.CreateCheckDepositRequestData; +import unit.java.sdk.model.CreateCheckDepositRequestDataAttributes; +import unit.java.sdk.model.DepositAccount; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.UnitCheckDepositResponse; +import unit.java.sdk.model.UnitListCheckDepositResponse; +import unit.java.sdk.model.UpdateCheckDeposit; +import unit.java.sdk.model.UpdateCheckDepositAttributes; +import unit.java.sdk.model.UpdateCheckDepositRequest; + +public class CheckDepositTests { + UnitApi unitApi = GenerateUnitApiClient(); + + CheckDeposit CreateCheckDeposit() throws ApiException { + CreateCheckDepositRequest req = new CreateCheckDepositRequest(); + CreateCheckDepositRequestData data = new CreateCheckDepositRequestData(); + CreateCheckDepositRequestDataAttributes attributes = new CreateCheckDepositRequestDataAttributes(); + attributes.setAmount(2000); + attributes.setDescription("Test"); + + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + CreateCheckDepositRelationships relationships = new CreateCheckDepositRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + accountRelationshipData.setId(account.getId()); + accountRelationship.setData(accountRelationshipData); + relationships.setAccount(accountRelationship); + + data.setAttributes(attributes); + data.setRelationships(relationships); + req.setData(data); + + UnitCheckDepositResponse res = unitApi.createCheckDeposit(req); + CheckDeposit checkDeposit = res.getData(); + assert checkDeposit.getType().equals(CheckDeposit.TypeEnum.CHECK_DEPOSIT); + return checkDeposit; + } + + @Test + public void CreateCheckDepositApiTest() throws ApiException { + CreateCheckDeposit(); + } + + @Test + public void UpdateCheckDepositApiTest() throws ApiException { + CheckDeposit checkDeposit = CreateCheckDeposit(); + UpdateCheckDepositRequest req = new UpdateCheckDepositRequest(); + UpdateCheckDeposit data = new UpdateCheckDeposit(); + UpdateCheckDepositAttributes attributes = new UpdateCheckDepositAttributes(); + Map tags = new HashMap(); + tags.put("test", "value"); + attributes.setTags(tags); + + data.setAttributes(attributes); + data.setType(UpdateCheckDeposit.TypeEnum.CHECK_DEPOSIT); + req.setData(data); + + UnitCheckDepositResponse res = unitApi.updateCheckDeposit(checkDeposit.getId(), req); + assert res.getData().getType().equals(CheckDeposit.TypeEnum.CHECK_DEPOSIT); + } + + @Test + public void GetCheckDepositsApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + UnitListCheckDepositResponse res = unitApi.getCheckDepositsList(params, null, null, null); + res.getData().forEach(checkDeposit -> { + try { + UnitCheckDepositResponse checkDepositResponse = unitApi.getCheckDeposit(checkDeposit.getId()); + assert checkDepositResponse.getData().getType().equals(CheckDeposit.TypeEnum.CHECK_DEPOSIT); + } catch (ApiException e) { + throw new RuntimeException(e); + } + }); + } +} diff --git a/src/test/java/unit/java/sdk/CounterpartyTests.java b/src/test/java/unit/java/sdk/CounterpartyTests.java new file mode 100644 index 00000000..fd0360ec --- /dev/null +++ b/src/test/java/unit/java/sdk/CounterpartyTests.java @@ -0,0 +1,163 @@ +package unit.java.sdk; + +import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import java.util.HashMap; +import java.util.Map; + +import org.junit.Test; + +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.Counterparty; +import unit.java.sdk.model.CounterpartyBalance; +import unit.java.sdk.model.CreateAchCounterparty; +import unit.java.sdk.model.CreateAchCounterpartyAttributes; +import unit.java.sdk.model.CreateAchCounterpartyAttributes.AccountTypeEnum; +import unit.java.sdk.model.CreatePlaidCounterpartyAttributes.PermissionsEnum; +import unit.java.sdk.model.CreateCounterpartyRelationships; +import unit.java.sdk.model.CreateCounterpartyRequest; +import unit.java.sdk.model.CreateCounterpartyRequestData; +import unit.java.sdk.model.CreatePlaidCounterparty; +import unit.java.sdk.model.CreatePlaidCounterpartyAttributes; +import unit.java.sdk.model.Customer; +import unit.java.sdk.model.CustomerRelationship; +import unit.java.sdk.model.CustomerRelationshipData; +import unit.java.sdk.model.IndividualCustomer; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.UnitCounterpartiesListResponse; +import unit.java.sdk.model.UnitCounterpartyBalanceResponse; +import unit.java.sdk.model.UnitCounterpartyResponse; +import unit.java.sdk.model.UpdateCounterparty; +import unit.java.sdk.model.UpdateCounterpartyAttributes; +import unit.java.sdk.model.UpdateCounterpartyRequest; +import unit.java.sdk.model.UpdateCounterpartyRequestData; + +public class CounterpartyTests { + UnitApi unitApi = GenerateUnitApiClient(); + String plaidToken = System.getenv("test_plaid_counterparty_token"); + + public static Counterparty CreateCounterparty(UnitApi unitApi, Customer customer) throws ApiException { + if(customer == null) customer = CreateIndividualCustomer(unitApi); + CreateCounterpartyRequest req = new CreateCounterpartyRequest(); + CreateAchCounterparty createCounterparty = new CreateAchCounterparty(); + CreateAchCounterpartyAttributes attributes = new CreateAchCounterpartyAttributes(); + CreateCounterpartyRelationships relationships = new CreateCounterpartyRelationships(); + CustomerRelationship customerRelationship = new CustomerRelationship(); + CustomerRelationshipData customerRelationshipData = new CustomerRelationshipData(); + + customerRelationshipData.setId(customer.getId()); + customerRelationshipData.setType(CustomerRelationshipData.TypeEnum.CUSTOMER); + customerRelationship.setData(customerRelationshipData); + relationships.setCustomer(customerRelationship); + + attributes.setName("John Doe"); + attributes.setRoutingNumber("011000133"); + attributes.setAccountNumber("123"); + attributes.setAccountType(AccountTypeEnum.CHECKING); + attributes.setType(CreateAchCounterpartyAttributes.TypeEnum.PERSON); + + createCounterparty.setType(CreateAchCounterparty.TypeEnum.ACH_COUNTERPARTY); + createCounterparty.setAttributes(attributes); + createCounterparty.setRelationships(relationships); + CreateCounterpartyRequestData data = new CreateCounterpartyRequestData(createCounterparty); + req.setData(data); + + UnitCounterpartyResponse res = unitApi.createCounterparty(req); + Counterparty counterparty = res.getData(); + assert counterparty.getType().equals(Counterparty.TypeEnum.ACH_COUNTERPARTY); + return counterparty; + } + + @Test + public void CreateCounterpartyApiTest() throws ApiException { + CreateCounterparty(unitApi, null); + } + + Counterparty CreateCounterpartyWithPlaidToken() throws ApiException { + IndividualCustomer customer = CreateIndividualCustomer(unitApi); + CreateCounterpartyRequest req = new CreateCounterpartyRequest(); + CreatePlaidCounterparty createCounterparty = new CreatePlaidCounterparty(); + CreatePlaidCounterpartyAttributes attributes = new CreatePlaidCounterpartyAttributes(); + CreateCounterpartyRelationships relationships = new CreateCounterpartyRelationships(); + CustomerRelationship customerRelationship = new CustomerRelationship(); + CustomerRelationshipData customerRelationshipData = new CustomerRelationshipData(); + + customerRelationshipData.setId(customer.getId()); + customerRelationshipData.setType(CustomerRelationshipData.TypeEnum.CUSTOMER); + customerRelationship.setData(customerRelationshipData); + relationships.setCustomer(customerRelationship); + + attributes.setName("John Doe"); + attributes.setType(CreatePlaidCounterpartyAttributes.TypeEnum.PERSON); + attributes.setPlaidProcessorToken(plaidToken); + attributes.setPermissions(PermissionsEnum.DEBIT_ONLY); + + createCounterparty.setType(CreatePlaidCounterparty.TypeEnum.ACH_COUNTERPARTY); + createCounterparty.setAttributes(attributes); + createCounterparty.setRelationships(relationships); + CreateCounterpartyRequestData data = new CreateCounterpartyRequestData(createCounterparty); + req.setData(data); + + UnitCounterpartyResponse res = unitApi.createCounterparty(req); + Counterparty counterparty = res.getData(); + assert counterparty.getType().equals(Counterparty.TypeEnum.ACH_COUNTERPARTY); + return counterparty; + } + + @Test + public void CreateCounterpartyWithPlaidTokenApiTest() throws ApiException { + CreateCounterpartyWithPlaidToken(); + } + + @Test + public void DeleteCounterpartyApiTest() throws ApiException { + Counterparty counterparty = CreateCounterparty(unitApi, null); + unitApi.deleteCounterparty(counterparty.getId()); + } + + @Test + public void GetCounterpartiesApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitCounterpartiesListResponse res = unitApi.getCounterpartiesList(params, null, null); + res.getData().forEach(counterparty -> { + try { + UnitCounterpartyResponse getRes = unitApi.getCounterparty(counterparty.getId()); + assert getRes.getData().getType().equals(Counterparty.TypeEnum.ACH_COUNTERPARTY); + } catch (ApiException e) { + throw new RuntimeException(e); + } + }); + } + + @Test + public void GetCounterpartyBalanceApiTest() throws ApiException { + Counterparty counterparty = CreateCounterpartyWithPlaidToken(); + UnitCounterpartyBalanceResponse res = unitApi.getCounterpartyBalance(counterparty.getId()); + assert res.getData().getType().equals(CounterpartyBalance.TypeEnum.COUNTERPARTY_BALANCE); + } + + @Test + public void UpdateCounterpartyApiTest() throws ApiException { + Counterparty counterparty = CreateCounterparty(unitApi, null); + UpdateCounterpartyRequest req = new UpdateCounterpartyRequest(); + UpdateCounterparty updateCounterparty = new UpdateCounterparty(); + UpdateCounterpartyAttributes attributes = new UpdateCounterpartyAttributes(); + Map tags = new HashMap(); + String key = "TestKey"; + String value = "TestValue"; + tags.put(key, value); + attributes.setTags(tags); + updateCounterparty.setType(UpdateCounterparty.TypeEnum.COUNTERPARTY); + updateCounterparty.setAttributes(attributes); + + UpdateCounterpartyRequestData data = new UpdateCounterpartyRequestData(updateCounterparty); + + req.setData(data); + UnitCounterpartyResponse res = unitApi.updateCounterparty(counterparty.getId(), req); + Counterparty resCounterparty = res.getData(); + assert resCounterparty.getType().equals(Counterparty.TypeEnum.ACH_COUNTERPARTY); + assert resCounterparty.getAttributes().getTags().get(key).equals(value); + } +} diff --git a/src/test/java/unit/java/sdk/CustomerTests.java b/src/test/java/unit/java/sdk/CustomerTests.java index 7588bcf2..0d361b82 100644 --- a/src/test/java/unit/java/sdk/CustomerTests.java +++ b/src/test/java/unit/java/sdk/CustomerTests.java @@ -43,7 +43,7 @@ public class CustomerTests { public static IndividualCustomer CreateIndividualCustomer(UnitApi unitApi) throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateIndividualApplicationRequest(null)); - assert res.getData().getType().equals(Application.TypeEnum.INDIVIDUALAPPLICATION); + assert res.getData().getType().equals(Application.TypeEnum.INDIVIDUAL_APPLICATION); IndividualApplication app = (IndividualApplication) res.getData(); String customerId = app.getRelationships().getCustomer().getData().getId(); @@ -53,7 +53,7 @@ public static IndividualCustomer CreateIndividualCustomer(UnitApi unitApi) throw public static BusinessCustomer CreateBusinessCustomer(UnitApi unitApi) throws ApiException { UnitCreateApplicationResponse res = unitApi.createApplication(GenerateCreateBusinessApplicationRequest()); - assert res.getData().getType().equals(Application.TypeEnum.BUSINESSAPPLICATION); + assert res.getData().getType().equals(Application.TypeEnum.BUSINESS_APPLICATION); BusinessApplication app = (BusinessApplication) res.getData(); String customerId = app.getRelationships().getCustomer().getData().getId(); @@ -70,34 +70,34 @@ public void GetCustomersListApiTest() throws ApiException { @Test public void CreateIndividualCustomerTest() throws ApiException { IndividualCustomer customer = CreateIndividualCustomer(unitApi); - assert customer.getType().equals(IndividualCustomer.TypeEnum.INDIVIDUALCUSTOMER); + assert customer.getType().equals(IndividualCustomer.TypeEnum.INDIVIDUAL_CUSTOMER); } @Test public void UpdateIndividualCustomerTest() throws ApiException { IndividualCustomer customer = CreateIndividualCustomer(unitApi); - assert customer.getType().equals(IndividualCustomer.TypeEnum.INDIVIDUALCUSTOMER); + assert customer.getType().equals(IndividualCustomer.TypeEnum.INDIVIDUAL_CUSTOMER); String email = "test@mail.test"; UpdateIndividualCustomer updateIndividualCustomer = new UpdateIndividualCustomer(); UpdateIndividualCustomerAttributes updateIndividualCustomerAttributes = new UpdateIndividualCustomerAttributes(); updateIndividualCustomerAttributes.email(email); updateIndividualCustomer.setAttributes(updateIndividualCustomerAttributes); - updateIndividualCustomer.setType(UpdateIndividualCustomer.TypeEnum.INDIVIDUALCUSTOMER); + updateIndividualCustomer.setType(UpdateIndividualCustomer.TypeEnum.INDIVIDUAL_CUSTOMER); UpdateCustomerRequest updateCustomerRequest = new UpdateCustomerRequest(); UpdateCustomerRequestData updateCustomerRequestData = new UpdateCustomerRequestData(updateIndividualCustomer); updateCustomerRequest.setData(updateCustomerRequestData); UnitCustomerResponse updateCutomerResponse = unitApi.updateCustomer(customer.getId(), updateCustomerRequest); IndividualCustomer individualCustomer = (IndividualCustomer) updateCutomerResponse.getData(); - assert individualCustomer.getType().equals(IndividualCustomer.TypeEnum.INDIVIDUALCUSTOMER); + assert individualCustomer.getType().equals(IndividualCustomer.TypeEnum.INDIVIDUAL_CUSTOMER); assert individualCustomer.getAttributes().getEmail().equals(email); } @Test public void UpdateBusinessCustomerTest() throws ApiException { BusinessCustomer customer = CreateBusinessCustomer(unitApi); - assert customer.getType().equals(IndividualCustomer.TypeEnum.BUSINESSCUSTOMER); + assert customer.getType().equals(IndividualCustomer.TypeEnum.BUSINESS_CUSTOMER); String email = "test@mail.test"; UpdateBusinessCustomer updateBusinessCustomer = new UpdateBusinessCustomer(); @@ -110,36 +110,36 @@ public void UpdateBusinessCustomerTest() throws ApiException { responseContact.setJwtSubject(contact.getJwtSubject()); updateBusinessCustomerAttributes.contact(responseContact); updateBusinessCustomer.setAttributes(updateBusinessCustomerAttributes); - updateBusinessCustomer.setType(UpdateBusinessCustomer.TypeEnum.BUSINESSCUSTOMER); + updateBusinessCustomer.setType(UpdateBusinessCustomer.TypeEnum.BUSINESS_CUSTOMER); UpdateCustomerRequest updateCustomerRequest = new UpdateCustomerRequest(); UpdateCustomerRequestData updateCustomerRequestData = new UpdateCustomerRequestData(updateBusinessCustomer); updateCustomerRequest.setData(updateCustomerRequestData); UnitCustomerResponse updateCutomerResponse = unitApi.updateCustomer(customer.getId(), updateCustomerRequest); BusinessCustomer individualCustomer = (BusinessCustomer) updateCutomerResponse.getData(); - assert individualCustomer.getType().equals(BusinessCustomer.TypeEnum.BUSINESSCUSTOMER); + assert individualCustomer.getType().equals(BusinessCustomer.TypeEnum.BUSINESS_CUSTOMER); assert individualCustomer.getAttributes().getContact().getEmail().equals(email); } @Test public void ArchiveCustomerTest() throws ApiException { Customer customer = CreateBusinessCustomer(unitApi); - assert customer.getType().equals(IndividualCustomer.TypeEnum.BUSINESSCUSTOMER); + assert customer.getType().equals(IndividualCustomer.TypeEnum.BUSINESS_CUSTOMER); ArchiveCustomerRequest request = new ArchiveCustomerRequest(); ArchiveCustomerRequestData requestData = new ArchiveCustomerRequestData(); ArchiveCustomerRequestDataAttributes requestDataAttributes = new ArchiveCustomerRequestDataAttributes(); requestDataAttributes.setReason(unit.java.sdk.model.ArchiveCustomerRequestDataAttributes.ReasonEnum.INACTIVE); requestData.setAttributes(requestDataAttributes); - requestData.setType(ArchiveCustomerRequestData.TypeEnum.ARCHIVECUSTOMER); + requestData.setType(ArchiveCustomerRequestData.TypeEnum.ARCHIVE_CUSTOMER); request.setData(requestData); UnitCustomerResponse res = unitApi.archiveCustomer(customer.getId(), request); - assert res.getData().getType().equals(Customer.TypeEnum.BUSINESSCUSTOMER); + assert res.getData().getType().equals(Customer.TypeEnum.BUSINESS_CUSTOMER); } Customer CreateCustomerAndAddAuthorizedUser(String email) throws ApiException { Customer customer = CreateBusinessCustomer(unitApi); - assert customer.getType().equals(IndividualCustomer.TypeEnum.BUSINESSCUSTOMER); + assert customer.getType().equals(IndividualCustomer.TypeEnum.BUSINESS_CUSTOMER); AddAuthorizedUsersRequest request = new AddAuthorizedUsersRequest(); AddAuthorizedUsersRequestData data = new AddAuthorizedUsersRequestData(); @@ -160,7 +160,7 @@ Customer CreateCustomerAndAddAuthorizedUser(String email) throws ApiException { attributes.addAuthorizedUsersItem(user); data.setAttributes(attributes); - data.setType(AddAuthorizedUsersRequestData.TypeEnum.ADDAUTHORIZEDUSERS); + data.setType(AddAuthorizedUsersRequestData.TypeEnum.ADD_AUTHORIZED_USERS); request.setData(data); UnitCustomerResponse res = unitApi.addAuthorizedUsers(customer.getId(), request); @@ -170,14 +170,14 @@ Customer CreateCustomerAndAddAuthorizedUser(String email) throws ApiException { @Test public void AddAuthorizedUsersApiTest() throws ApiException { Customer customer = CreateCustomerAndAddAuthorizedUser("test@test.test"); - assert customer.getType().equals(Customer.TypeEnum.BUSINESSCUSTOMER); + assert customer.getType().equals(Customer.TypeEnum.BUSINESS_CUSTOMER); } @Test public void RemoveAuthorizedUsersApiTest() throws ApiException { String email = "test@test.test"; Customer customer = CreateCustomerAndAddAuthorizedUser(email); - assert customer.getType().equals(Customer.TypeEnum.BUSINESSCUSTOMER); + assert customer.getType().equals(Customer.TypeEnum.BUSINESS_CUSTOMER); RemoveAuthorizedUsersRequest req = new RemoveAuthorizedUsersRequest(); RemoveAuthorizedUsersRequestData data = new RemoveAuthorizedUsersRequestData(); @@ -185,7 +185,7 @@ public void RemoveAuthorizedUsersApiTest() throws ApiException { attributes.addAuthorizedUsersEmailsItem(email); data.setAttributes(attributes); - data.setType(RemoveAuthorizedUsersRequestData.TypeEnum.REMOVEAUTHORIZEDUSERS); + data.setType(RemoveAuthorizedUsersRequestData.TypeEnum.REMOVE_AUTHORIZED_USERS); req.setData(data); UnitCustomerResponse res = unitApi.removeAuthorizedUsers(customer.getId(), req); diff --git a/src/test/java/unit/java/sdk/FeeTests.java b/src/test/java/unit/java/sdk/FeeTests.java new file mode 100644 index 00000000..cd52f264 --- /dev/null +++ b/src/test/java/unit/java/sdk/FeeTests.java @@ -0,0 +1,115 @@ +package unit.java.sdk; + +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import java.util.ArrayList; +import java.util.List; + +import static unit.java.sdk.AccountTests.CreateCreditAccount; + +import org.junit.Test; + + +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.AccountRelationshipData; +import unit.java.sdk.model.CreateFeeRelationships; +import unit.java.sdk.model.CreateFeeRequest; +import unit.java.sdk.model.CreateFeeRequestData; +import unit.java.sdk.model.CreateFeeRequestDataAttributes; +import unit.java.sdk.model.CreditAccount; +import unit.java.sdk.model.Fee; +import unit.java.sdk.model.FeeReversal; +import unit.java.sdk.model.GetTransactionsListFilterParameter; +import unit.java.sdk.model.ReverseFeeRequest; +import unit.java.sdk.model.ReverseFeeRequestData; +import unit.java.sdk.model.ReverseFeeRequestDataAttributes; +import unit.java.sdk.model.ReverseFeeRequestRelationships; +import unit.java.sdk.model.Transaction; +import unit.java.sdk.model.TransactionRelationship; +import unit.java.sdk.model.TransactionRelationshipData; +import unit.java.sdk.model.UnitFeeResponse; +import unit.java.sdk.model.UnitFeeReversalResponse; +import unit.java.sdk.model.UnitTransactionsListResponse; + +public class FeeTests { + UnitApi unitApi = GenerateUnitApiClient(); + + + Fee CreateFee(CreditAccount account) throws ApiException { + CreateFeeRequest req = new CreateFeeRequest(); + CreateFeeRequestData data = new CreateFeeRequestData(); + CreateFeeRequestDataAttributes attributes = new CreateFeeRequestDataAttributes(); + + attributes.setAmount(100); + attributes.setDescription("Test"); + + CreateFeeRelationships relationships = new CreateFeeRelationships(); + AccountRelationship relationship = new AccountRelationship(); + AccountRelationshipData relationshipData = new AccountRelationshipData(); + relationshipData.setId(account.getId()); + relationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + relationship.setData(relationshipData); + relationships.setAccount(relationship); + + data.setAttributes(attributes); + data.setRelationships(relationships); + data.setType(CreateFeeRequestData.TypeEnum.FEE); + req.setData(data); + + UnitFeeResponse res = unitApi.createFee(req); + assert res.getData().getType().equals(Fee.TypeEnum.FEE); + return res.getData(); + } + + @Test + public void CreateFeeApiTest() throws ApiException { + CreditAccount account = CreateCreditAccount(unitApi); + CreateFee(account); + } + + @Test + public void ReverseFeeApiTest() throws ApiException { + CreditAccount account = CreateCreditAccount(unitApi); + CreateFee(account); + + GetTransactionsListFilterParameter filter = new GetTransactionsListFilterParameter(); + filter.setAccountId(account.getId()); + filter.setFromAmount(100); + List directions = new ArrayList(); + directions.add(GetTransactionsListFilterParameter.DirectionEnum.CREDIT); + filter.setDirection(null); + UnitTransactionsListResponse transactionRes = unitApi.getTransactionsList(null, filter, null, null); + assert !transactionRes.getData().isEmpty(); + + Transaction transaction = transactionRes.getData().get(0); + + ReverseFeeRequest req = new ReverseFeeRequest(); + ReverseFeeRequestData data = new ReverseFeeRequestData(); + ReverseFeeRequestDataAttributes attributes = new ReverseFeeRequestDataAttributes(); + + attributes.setDescription("Test"); + + ReverseFeeRequestRelationships relationships = new ReverseFeeRequestRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.CREDIT_ACCOUNT); + accountRelationship.setData(accountRelationshipData); + + TransactionRelationship transactionRelationship = new TransactionRelationship(); + TransactionRelationshipData transactionRelationshipData = new TransactionRelationshipData(); + transactionRelationshipData.setId(transaction.getId()); + transactionRelationshipData.setType(TransactionRelationshipData.TypeEnum.TRANSACTION); + transactionRelationship.setData(transactionRelationshipData); + relationships.setAccount(accountRelationship); + relationships.setTransaction(transactionRelationship); + + data.setRelationships(relationships); + data.setAttributes(attributes); + req.setData(data); + + UnitFeeReversalResponse res = unitApi.reverseFee(req); + assert res.getData().getType().equals(FeeReversal.TypeEnum.FEE_REVERSAL); + } +} diff --git a/src/test/java/unit/java/sdk/PaymentTests.java b/src/test/java/unit/java/sdk/PaymentTests.java index cdb74dea..7c5b6270 100644 --- a/src/test/java/unit/java/sdk/PaymentTests.java +++ b/src/test/java/unit/java/sdk/PaymentTests.java @@ -6,15 +6,36 @@ import static unit.java.sdk.TestHelpers.CreatePaymentCounterparty; import static unit.java.sdk.TestHelpers.CreateWirePaymentCounterparty; import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import java.util.List; + +import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; +import static unit.java.sdk.CounterpartyTests.CreateCounterparty; +import static unit.java.sdk.CardTests.CreateAndActivateIndividualDebitCard; import unit.java.sdk.api.UnitApi; import unit.java.sdk.model.AccountRelationship; import unit.java.sdk.model.AccountRelationshipData; +import unit.java.sdk.model.AchPayment; import unit.java.sdk.model.BookPayment; +import unit.java.sdk.model.CashDepositBarcode; +import unit.java.sdk.model.Counterparty; import unit.java.sdk.model.CounterpartyAccountRelationship; import unit.java.sdk.model.CounterpartyAccountRelationshipData; +import unit.java.sdk.model.CounterpartyRelationship; +import unit.java.sdk.model.CounterpartyRelationshipData; import unit.java.sdk.model.CreateAchPayment; import unit.java.sdk.model.CreateAchPaymentAttributes; +import unit.java.sdk.model.CreateAchPaymentCounterparty; +import unit.java.sdk.model.CreateAchPaymentCounterpartyAttributes; +import unit.java.sdk.model.CreateAchPaymentCounterpartyRelationships; +import unit.java.sdk.model.CreateAchPaymentPlaid; +import unit.java.sdk.model.CreateAchPaymentPlaidAttributes; +import unit.java.sdk.model.CreateAchPaymentPlaidRelationships; import unit.java.sdk.model.CreateAchPaymentRelationships; +import unit.java.sdk.model.CreateAtmDepositSimulationRelationships; +import unit.java.sdk.model.CreateAtmDepositSimulationRequest; +import unit.java.sdk.model.CreateAtmDepositSimulationRequestData; +import unit.java.sdk.model.CreateAtmDepositSimulationRequestDataAttributes; import unit.java.sdk.model.CreateBookPayment; import unit.java.sdk.model.CreateBookPaymentAttributes; import unit.java.sdk.model.CreateBookPaymentRelationships; @@ -23,14 +44,35 @@ import unit.java.sdk.model.CreateWirePayment; import unit.java.sdk.model.CreateWirePaymentAttributes; import unit.java.sdk.model.CreateWirePaymentRelationships; +import unit.java.sdk.model.CustomerRelationship; +import unit.java.sdk.model.CustomerRelationshipData; import unit.java.sdk.model.DepositAccount; +import unit.java.sdk.model.GenerateBarcodeRequest; +import unit.java.sdk.model.GenerateBarcodeRequestData; +import unit.java.sdk.model.GenerateBarcodeRequestDataAttributes; +import unit.java.sdk.model.GenerateBarcodeRequestRelationships; +import unit.java.sdk.model.GetCashDepositStoreLocationsListFilterParameter; +import unit.java.sdk.model.IndividualCustomer; +import unit.java.sdk.model.IndividualDebitCard; +import unit.java.sdk.model.ListPageParameters; import unit.java.sdk.model.Payment; +import unit.java.sdk.model.StoreLocation; +import unit.java.sdk.model.UnitCashDepositBarcodeResponse; import unit.java.sdk.model.UnitPaymentResponse; import unit.java.sdk.model.UnitPaymentResponseWithIncluded; import unit.java.sdk.model.UnitPaymentsListResponse; +import unit.java.sdk.model.UnitStoreLocationsListResponse; +import unit.java.sdk.model.UpdateAchPayment; +import unit.java.sdk.model.UpdateAchPaymentAttributes; +import unit.java.sdk.model.UpdateBookPayment; +import unit.java.sdk.model.UpdateBookPaymentAttributes; +import unit.java.sdk.model.UpdatePaymentRequest; +import unit.java.sdk.model.UpdatePaymentRequestData; +import unit.java.sdk.model.GetCashDepositStoreLocationsListFilterParameter.ServiceTypeEnum; public class PaymentTests { UnitApi unitApi = GenerateUnitApiClient(); + String plaidToken = System.getenv("test_plaid_counterparty_token"); @Test public void GetPaymentsListApiTest() throws ApiException { @@ -49,29 +91,28 @@ public void GetPaymentsApiTest() throws ApiException { } } - @Test - public void CreateBookPaymentTest() throws ApiException { + BookPayment CreateBookPayment() throws ApiException { CreateBookPayment createBookPayment = new CreateBookPayment(); CreateBookPaymentAttributes attributes = new CreateBookPaymentAttributes(); attributes.setAmount(1000); attributes.setDescription("Funding"); createBookPayment.setAttributes(attributes); - DepositAccount account1 = (DepositAccount) CreateDepositAccount(unitApi); - DepositAccount account2 = (DepositAccount) CreateDepositAccount(unitApi); + DepositAccount account1 = (DepositAccount) CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + DepositAccount account2 = (DepositAccount) CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); CreateBookPaymentRelationships relationships = new CreateBookPaymentRelationships(); AccountRelationship accountRelationship = new AccountRelationship(); AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); accountRelationshipData.setId(account1.getId()); - accountRelationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSITACCOUNT); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); accountRelationship.setData(accountRelationshipData); CounterpartyAccountRelationship counterpartyAccountRelationship = new CounterpartyAccountRelationship(); CounterpartyAccountRelationshipData counterpartyAccountRelationshipData = new CounterpartyAccountRelationshipData(); counterpartyAccountRelationshipData.setId(account2.getId()); - counterpartyAccountRelationshipData.setType(CounterpartyAccountRelationshipData.TypeEnum.DEPOSITACCOUNT); + counterpartyAccountRelationshipData.setType(CounterpartyAccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); counterpartyAccountRelationship.setData(counterpartyAccountRelationshipData); relationships.setAccount(accountRelationship); @@ -82,11 +123,37 @@ public void CreateBookPaymentTest() throws ApiException { CreatePaymentRequest request = new CreatePaymentRequest(); request.data(new CreatePaymentRequestData(createBookPayment)); UnitPaymentResponse response = unitApi.createPayment(request); - assert response.getData().getType().equals(BookPayment.TypeEnum.BOOKPAYMENT); + assert response.getData().getType().equals(BookPayment.TypeEnum.BOOK_PAYMENT); + return (BookPayment) response.getData(); } - + @Test - public void CreateAchPaymentTest() throws ApiException { + public void CreateBookPaymentApiTest() throws ApiException { + CreateBookPayment(); + } + + @Test + public void UpdateBookPaymentApiTest() throws ApiException { + BookPayment payment = CreateBookPayment(); + UpdatePaymentRequest req = new UpdatePaymentRequest(); + UpdateBookPayment updateBookPayment = new UpdateBookPayment(); + UpdateBookPaymentAttributes attributes = new UpdateBookPaymentAttributes(); + updateBookPayment.setAttributes(attributes); + updateBookPayment.setType(UpdateBookPayment.TypeEnum.BOOK_PAYMENT); + UpdatePaymentRequestData data = new UpdatePaymentRequestData(updateBookPayment); + req.setData(data); + + String key = "by"; + String value = "Test Value"; + attributes.putTagsItem(key, value); + UnitPaymentResponse res = unitApi.updatePayment(payment.getId(), req); + BookPayment paymentRes = (BookPayment) res.getData(); + assert paymentRes.getType().equals(Payment.TypeEnum.BOOK_PAYMENT); + assert paymentRes.getAttributes().getTags().containsKey(key); + assert paymentRes.getAttributes().getTags().containsValue(value); + } + + AchPayment CreateAchPayment() throws ApiException { CreateAchPayment createAchPayment = new CreateAchPayment(); CreateAchPaymentAttributes attributes = new CreateAchPaymentAttributes(); attributes.setAmount(1000); @@ -95,7 +162,29 @@ public void CreateAchPaymentTest() throws ApiException { attributes.setDescription("Funding"); createAchPayment.setAttributes(attributes); - DepositAccount account = (DepositAccount) CreateDepositAccount(unitApi); + DepositAccount account = (DepositAccount) CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + IndividualDebitCard card = CreateAndActivateIndividualDebitCard(unitApi, account); + CreateAtmDepositSimulationRequest atmDepositSimulationRequest = new CreateAtmDepositSimulationRequest(); + CreateAtmDepositSimulationRequestData atmDepositSimulationRequestData = new CreateAtmDepositSimulationRequestData(); + CreateAtmDepositSimulationRequestDataAttributes atmDepositSimulationRequestDataAttributes = new CreateAtmDepositSimulationRequestDataAttributes(); + atmDepositSimulationRequestDataAttributes.setAmount(2000); + atmDepositSimulationRequestDataAttributes.setAtmLocation("Cupertino, CA, US"); + atmDepositSimulationRequestDataAttributes.setAtmName("HOME FED SAV BK"); + atmDepositSimulationRequestDataAttributes.setLast4Digits(card.getAttributes().getLast4Digits()); + + CreateAtmDepositSimulationRelationships atmDepositRelationships = new CreateAtmDepositSimulationRelationships(); + AccountRelationship atmDepositAccountRelationship = new AccountRelationship(); + AccountRelationshipData atmDepositAccountRelationshipData = new AccountRelationshipData(); + atmDepositAccountRelationshipData.setId(account.getId()); + atmDepositAccountRelationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + atmDepositAccountRelationship.setData(atmDepositAccountRelationshipData); + atmDepositRelationships.setAccount(atmDepositAccountRelationship); + + atmDepositSimulationRequestData.setAttributes(atmDepositSimulationRequestDataAttributes); + atmDepositSimulationRequestData.setRelationships(atmDepositRelationships); + + atmDepositSimulationRequest.setData(atmDepositSimulationRequestData); + unitApi.createAtmDepositSimulation(atmDepositSimulationRequest); CreateAchPaymentRelationships relationships = new CreateAchPaymentRelationships(); AccountRelationship accountRelationship = new AccountRelationship(); @@ -109,21 +198,123 @@ public void CreateAchPaymentTest() throws ApiException { CreatePaymentRequest request = new CreatePaymentRequest(); request.data(new CreatePaymentRequestData(createAchPayment)); UnitPaymentResponse response = unitApi.createPayment(request); - assert response.getData().getType().equals(Payment.TypeEnum.ACHPAYMENT); + assert response.getData().getType().equals(Payment.TypeEnum.ACH_PAYMENT); + return (AchPayment) response.getData(); + } + + @Test + public void CreateAchPaymentApiTest() throws ApiException { + CreateAchPayment(); } @Test - public void CreateWirePaymentTest() throws ApiException { + public void CreateAchPaymentCounterpartyApiTest() throws ApiException { + CreateAchPaymentCounterparty createAchPayment = new CreateAchPaymentCounterparty(); + CreateAchPaymentCounterpartyAttributes attributes = new CreateAchPaymentCounterpartyAttributes(); + attributes.setAmount(1000); + attributes.setDirection(CreateAchPaymentCounterpartyAttributes.DirectionEnum.CREDIT); + attributes.setDescription("Funding"); + createAchPayment.setAttributes(attributes); + + DepositAccount account = (DepositAccount) CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + + CreateAchPaymentCounterpartyRelationships relationships = new CreateAchPaymentCounterpartyRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.ACCOUNT); + accountRelationship.setData(accountRelationshipData); + relationships.setAccount(accountRelationship); + + Counterparty counterparty = CreateCounterparty(unitApi, null); + CounterpartyRelationship counterpartyRelationship = new CounterpartyRelationship(); + CounterpartyRelationshipData counterpartyAccountRelationshipData = new CounterpartyRelationshipData(); + counterpartyAccountRelationshipData.setId(counterparty.getId()); + counterpartyAccountRelationshipData.setType(CounterpartyRelationshipData.TypeEnum.COUNTERPARTY); + counterpartyRelationship.setData(counterpartyAccountRelationshipData); + relationships.setCounterparty(counterpartyRelationship); + + + createAchPayment.setRelationships(relationships); + CreatePaymentRequest request = new CreatePaymentRequest(); + request.data(new CreatePaymentRequestData(createAchPayment)); + UnitPaymentResponse response = unitApi.createPayment(request); + assert response.getData().getType().equals(Payment.TypeEnum.ACH_PAYMENT); + } + + AchPayment CreateAchPaymentPlaid() throws ApiException { + CreateAchPaymentPlaid createAchPayment = new CreateAchPaymentPlaid(); + CreateAchPaymentPlaidAttributes attributes = new CreateAchPaymentPlaidAttributes(); + attributes.setAmount(1000); + attributes.setDirection(CreateAchPaymentPlaidAttributes.DirectionEnum.DEBIT); + attributes.setPlaidProcessorToken(plaidToken); + attributes.setDescription("Funding"); + createAchPayment.setAttributes(attributes); + + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + + CreateAchPaymentPlaidRelationships relationships = new CreateAchPaymentPlaidRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.ACCOUNT); + accountRelationship.setData(accountRelationshipData); + relationships.setAccount(accountRelationship); + createAchPayment.setRelationships(relationships); + + CreatePaymentRequest request = new CreatePaymentRequest(); + request.data(new CreatePaymentRequestData(createAchPayment)); + UnitPaymentResponse response = unitApi.createPayment(request); + assert response.getData().getType().equals(Payment.TypeEnum.ACH_PAYMENT); + return (AchPayment) response.getData(); + } + + @Test + public void CreateAchPaymentPlaidApiTest() throws ApiException { + CreateAchPaymentPlaid(); + } + + @Test + public void UpdateAchPaymentApiTest() throws ApiException { + AchPayment payment = CreateAchPayment(); + UpdatePaymentRequest req = new UpdatePaymentRequest(); + UpdateAchPayment updateBookPayment = new UpdateAchPayment(); + UpdateAchPaymentAttributes attributes = new UpdateAchPaymentAttributes(); + updateBookPayment.setAttributes(attributes); + updateBookPayment.setType(UpdateAchPayment.TypeEnum.ACH_PAYMENT); + UpdatePaymentRequestData data = new UpdatePaymentRequestData(updateBookPayment); + req.setData(data); + + String key = "by"; + String value = "Test Value"; + attributes.putTagsItem(key, value); + UnitPaymentResponse res = unitApi.updatePayment(payment.getId(), req); + AchPayment paymentRes = (AchPayment) res.getData(); + assert paymentRes.getType().equals(Payment.TypeEnum.ACH_PAYMENT); + assert paymentRes.getAttributes().getTags().containsKey(key); + assert paymentRes.getAttributes().getTags().containsValue(value); + } + + @Test + public void CancelAchPaymentTest() throws ApiException { + AchPayment payment = CreateAchPayment(); + + UnitPaymentResponse res = unitApi.cancelPayment(payment.getId(), new Object()); + assert res.getData().getType().equals(Payment.TypeEnum.ACH_PAYMENT); + } + + @Test + public void CreateWirePaymentApiTest() throws ApiException { CreateWirePayment createWirePayment = new CreateWirePayment(); CreateWirePaymentAttributes attributes = new CreateWirePaymentAttributes(); - createWirePayment.setType(CreateWirePayment.TypeEnum.WIREPAYMENT); + createWirePayment.setType(CreateWirePayment.TypeEnum.WIRE_PAYMENT); attributes.setAmount(100); attributes.setDirection(CreateWirePaymentAttributes.DirectionEnum.CREDIT); attributes.setCounterparty(CreateWirePaymentCounterparty()); attributes.setDescription("Wire payment"); createWirePayment.setAttributes(attributes); - DepositAccount account = CreateDepositAccount(unitApi); + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); CreateWirePaymentRelationships relationships = new CreateWirePaymentRelationships(); AccountRelationship accountRelationship = new AccountRelationship(); @@ -137,6 +328,67 @@ public void CreateWirePaymentTest() throws ApiException { CreatePaymentRequest request = new CreatePaymentRequest(); request.data(new CreatePaymentRequestData(createWirePayment)); UnitPaymentResponse response = unitApi.createPayment(request); - assert response.getData().getType().equals(Payment.TypeEnum.WIREPAYMENT); + assert response.getData().getType().equals(Payment.TypeEnum.WIRE_PAYMENT); + } + + public List GetCashDepositStoresList() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + GetCashDepositStoreLocationsListFilterParameter filter = new GetCashDepositStoreLocationsListFilterParameter(); + filter.setPostalCode("10001"); + filter.setServiceType(ServiceTypeEnum.BARCODE); + UnitStoreLocationsListResponse res = unitApi.getCashDepositStoreLocationsList(params, filter); + assert !res.getData().isEmpty(); + return res.getData(); + } + + @Test + public void GetCashDepositStoresListApiTest() throws ApiException { + GetCashDepositStoresList(); + } + + public CashDepositBarcode GenerateBarcode() throws ApiException { + StoreLocation store = GetCashDepositStoresList().get(0); + + IndividualCustomer customer = CreateIndividualCustomer(unitApi); + DepositAccount account = CreateDepositAccount(unitApi, customer); + + GenerateBarcodeRequest req = new GenerateBarcodeRequest(); + GenerateBarcodeRequestData data = new GenerateBarcodeRequestData(); + GenerateBarcodeRequestDataAttributes attributes = new GenerateBarcodeRequestDataAttributes(); + GenerateBarcodeRequestRelationships relationships = new GenerateBarcodeRequestRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.ACCOUNT); + accountRelationship.setData(accountRelationshipData); + relationships.setAccount(accountRelationship); + CustomerRelationship customerRelationship = new CustomerRelationship(); + CustomerRelationshipData customerRelationshipData = new CustomerRelationshipData(); + customerRelationshipData.setId(customer.getId()); + customerRelationshipData.setType(CustomerRelationshipData.TypeEnum.CUSTOMER); + customerRelationship.setData(customerRelationshipData); + relationships.setCustomer(customerRelationship); + + attributes.setStoreId(store.getAttributes().getStoreId()); + + data.setAttributes(attributes); + data.setRelationships(relationships); + req.setData(data); + + UnitCashDepositBarcodeResponse res = unitApi.generateBarcode(req); + assert res.getData().getType().equals(CashDepositBarcode.TypeEnum.CASH_DEPOSIT_BARCODE); + return res.getData(); + } + + @Test + public void GenerateBarcodeApiTest() throws ApiException { + GenerateBarcode(); + } + + @Test + public void GetBarcodeImageApiTest() throws ApiException { + CashDepositBarcode barcode = GenerateBarcode(); + unitApi.getBarcodeImage(barcode.getAttributes().getBarcodeNumber()); } } diff --git a/src/test/java/unit/java/sdk/ReceivedPaymentTests.java b/src/test/java/unit/java/sdk/ReceivedPaymentTests.java index 386e82a8..cb661a19 100644 --- a/src/test/java/unit/java/sdk/ReceivedPaymentTests.java +++ b/src/test/java/unit/java/sdk/ReceivedPaymentTests.java @@ -2,29 +2,90 @@ import org.junit.Test; +import static unit.java.sdk.AccountTests.CreateDepositAccount; import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import java.time.LocalDate; +import java.time.ZoneId; +import java.util.Calendar; +import java.util.Date; + import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.AccountRelationshipData; +import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRelationships; +import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRequest; +import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRequestData; +import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRequestDataAttributes; +import unit.java.sdk.model.CreateIncomingAchPaymentRequest; +import unit.java.sdk.model.CreateIncomingAchPaymentRequestData; +import unit.java.sdk.model.CreateIncomingAchPaymentRequestDataAttributes; +import unit.java.sdk.model.CreateIncomingAchPaymentTransactionRelationships; +import unit.java.sdk.model.DepositAccount; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.ReceivedPayment; import unit.java.sdk.model.UnitReceivedPaymentListResponse; +import unit.java.sdk.model.UnitReceivedPaymentResponse; import unit.java.sdk.model.UnitReceivedPaymentResponseWithIncluded; public class ReceivedPaymentTests { UnitApi unitApi = GenerateUnitApiClient(); + + ReceivedPayment CreateReceivedTransaction(Integer amount) throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, null); + CreateACHReceivedPaymentTransactionRequest req = new CreateACHReceivedPaymentTransactionRequest(); + CreateACHReceivedPaymentTransactionRequestData data = new CreateACHReceivedPaymentTransactionRequestData(); + CreateACHReceivedPaymentTransactionRequestDataAttributes attributes = new CreateACHReceivedPaymentTransactionRequestDataAttributes(); + attributes.setAmount(amount); + attributes.setDescription("paycheck simulation Sandbox"); + attributes.setCompanyName("UBER LTD"); + attributes.setCompletionDate(LocalDate.now()); + Date dt = new Date(); + Calendar c = Calendar.getInstance(); + c.setTime(dt); + c.add(Calendar.DATE, 1); + attributes.setCompletionDate(c.toInstant().atZone(ZoneId.systemDefault()).toLocalDate()); + attributes.setSecCode("PPD"); + + CreateACHReceivedPaymentTransactionRelationships relationships = new CreateACHReceivedPaymentTransactionRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + accountRelationship.setData(accountRelationshipData); + relationships.setAccount(accountRelationship); + data.setRelationships(relationships); + + data.setAttributes(attributes); + + req.setData(data); + + UnitReceivedPaymentResponse res = unitApi.createACHReceivedPaymentTransactionSimulation(req); + assert res.getData().getType().equals(ReceivedPayment.TypeEnum.ACH_RECEIVED_PAYMENT); + return res.getData(); + } @Test public void GetReceivedPaymentListApiTest() throws ApiException { - UnitReceivedPaymentListResponse response = unitApi.getReceivedPaymentsList(null); + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitReceivedPaymentListResponse response = unitApi.getReceivedPaymentsList(params, null, null, null); assert !response.getData().isEmpty(); } @Test public void GetReceivedPaymentListWithIncludedApiTest() throws ApiException { - UnitReceivedPaymentListResponse response = unitApi.getReceivedPaymentsList("customer"); + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitReceivedPaymentListResponse response = unitApi.getReceivedPaymentsList(params, null, "customer", null); assert !response.getData().isEmpty(); } @Test public void GetReceivedPaymentApiTest() throws ApiException { - UnitReceivedPaymentListResponse response = unitApi.getReceivedPaymentsList(null); + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitReceivedPaymentListResponse response = unitApi.getReceivedPaymentsList(null, null, null, null); assert !response.getData().isEmpty(); response.getData().forEach(x -> { @@ -38,4 +99,44 @@ public void GetReceivedPaymentApiTest() throws ApiException { }); } + @Test + public void AdvanceReceivedPaymentApiTest() throws ApiException { + ReceivedPayment payment = CreateReceivedTransaction(1000); + UnitReceivedPaymentResponse res = unitApi.advanceReceivedPayment(payment.getId()); + assert res.getData().getType().equals(ReceivedPayment.TypeEnum.ACH_RECEIVED_PAYMENT); + } + + @Test + public void ReprocessReceivedPaymentApiTest() throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, null); + CreateIncomingAchPaymentRequest req = new CreateIncomingAchPaymentRequest(); + CreateIncomingAchPaymentRequestData data = new CreateIncomingAchPaymentRequestData(); + CreateIncomingAchPaymentRequestDataAttributes attributes = new CreateIncomingAchPaymentRequestDataAttributes(); + attributes.setAmount(40000000); + attributes.setCompanyName("Easy"); + attributes.setSettlementDate(LocalDate.now()); + attributes.setDirection(CreateIncomingAchPaymentRequestDataAttributes.DirectionEnum.DEBIT); + attributes.setSecCode("WEB"); + attributes.setReceivingEntityName("Easy Company"); + + CreateIncomingAchPaymentTransactionRelationships relationships = new CreateIncomingAchPaymentTransactionRelationships(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + accountRelationship.setData(accountRelationshipData); + relationships.setAccount(accountRelationship); + data.setRelationships(relationships); + + data.setAttributes(attributes); + + req.setData(data); + + UnitReceivedPaymentResponse res = unitApi.createIncomingAchPaymentSimulation(req); + ReceivedPayment payment = res.getData(); + assert payment.getType().equals(ReceivedPayment.TypeEnum.ACH_RECEIVED_PAYMENT); + + UnitReceivedPaymentResponse reprocessRes = unitApi.reprocessReceivedPayment(payment.getId()); + assert reprocessRes.getData().getType().equals(ReceivedPayment.TypeEnum.ACH_RECEIVED_PAYMENT); + } } diff --git a/src/test/java/unit/java/sdk/RecurringPaymentTests.java b/src/test/java/unit/java/sdk/RecurringPaymentTests.java index 595dbd1d..af165cb0 100644 --- a/src/test/java/unit/java/sdk/RecurringPaymentTests.java +++ b/src/test/java/unit/java/sdk/RecurringPaymentTests.java @@ -1,8 +1,36 @@ package unit.java.sdk; +import static unit.java.sdk.AccountTests.CreateDepositAccount; +import static unit.java.sdk.CounterpartyTests.CreateCounterparty; +import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; +import static unit.java.sdk.CustomerTests.CreateBusinessCustomer; + import org.junit.Test; import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.AccountRelationship; +import unit.java.sdk.model.AccountRelationshipData; +import unit.java.sdk.model.Counterparty; +import unit.java.sdk.model.CounterpartyAccountRelationship; +import unit.java.sdk.model.CounterpartyAccountRelationshipData; +import unit.java.sdk.model.CounterpartyRelationship; +import unit.java.sdk.model.CounterpartyRelationshipData; +import unit.java.sdk.model.CreatePaymentRelationshipsWithCounterparty; +import unit.java.sdk.model.CreatePaymentRelationshipsWithCounterpartyAccount; +import unit.java.sdk.model.CreateRecurringCreditAchPayment; +import unit.java.sdk.model.CreateRecurringCreditAchPaymentAttributes; +import unit.java.sdk.model.CreateRecurringCreditBookPayment; +import unit.java.sdk.model.CreateRecurringCreditBookPaymentAttributes; +import unit.java.sdk.model.CreateRecurringDebitAchPayment; +import unit.java.sdk.model.CreateRecurringDebitAchPaymentAttributes; +import unit.java.sdk.model.CreateRecurringPaymentRequest; +import unit.java.sdk.model.CreateRecurringPaymentRequestData; +import unit.java.sdk.model.Customer; +import unit.java.sdk.model.DepositAccount; +import unit.java.sdk.model.MonthlySchedule; +import unit.java.sdk.model.RecurringCreditAchPayment; +import unit.java.sdk.model.RecurringPayment; +import unit.java.sdk.model.Schedule; import unit.java.sdk.model.UnitRecurringPaymentListResponse; import unit.java.sdk.model.UnitRecurringPaymentResponse; @@ -33,4 +61,159 @@ public void GetRecurringPaymentApiTest() throws ApiException { }); } + RecurringCreditAchPayment CreateRecurringCreditAchPayment() throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + Counterparty counterparty = CreateCounterparty(unitApi, CreateBusinessCustomer(unitApi)); + + CreateRecurringPaymentRequest req = new CreateRecurringPaymentRequest(); + + CreateRecurringCreditAchPayment createRecurringPayment = new CreateRecurringCreditAchPayment(); + CreateRecurringCreditAchPaymentAttributes attributes = new CreateRecurringCreditAchPaymentAttributes(); + + attributes.amount(10); + attributes.setDescription("Test"); + Schedule schedule = new Schedule(); + MonthlySchedule monthlySchedule = new MonthlySchedule(); + monthlySchedule.setDayOfMonth(16); + monthlySchedule.setTotalNumberOfPayments(5); + monthlySchedule.setInterval(MonthlySchedule.IntervalEnum.MONTHLY); + schedule.setActualInstance(monthlySchedule); + attributes.setSchedule(schedule); + + CreatePaymentRelationshipsWithCounterparty relationships = new CreatePaymentRelationshipsWithCounterparty(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.ACCOUNT); + accountRelationship.setData(accountRelationshipData); + + CounterpartyRelationship counterpartyRelationship = new CounterpartyRelationship(); + CounterpartyRelationshipData counterpartyAccountRelationshipData = new CounterpartyRelationshipData(); + counterpartyAccountRelationshipData.setId(counterparty.getId()); + counterpartyAccountRelationshipData.setType(CounterpartyRelationshipData.TypeEnum.COUNTERPARTY); + counterpartyRelationship.setData(counterpartyAccountRelationshipData); + + relationships.setAccount(accountRelationship); + relationships.setCounterparty(counterpartyRelationship); + + createRecurringPayment.setAttributes(attributes); + createRecurringPayment.setRelationships(relationships); + createRecurringPayment.setType(CreateRecurringCreditAchPayment.TypeEnum.RECURRING_CREDIT_ACH_PAYMENT); + CreateRecurringPaymentRequestData data = new CreateRecurringPaymentRequestData(createRecurringPayment); + req.setData(data); + + UnitRecurringPaymentResponse res = unitApi.createRecurringPayment(req); + RecurringCreditAchPayment recurringCreditAchPayment = (RecurringCreditAchPayment) res.getData(); + assert recurringCreditAchPayment.getType().equals(RecurringPayment.TypeEnum.RECURRING_CREDIT_ACH_PAYMENT); + return recurringCreditAchPayment; + } + + @Test + public void CreateRecurringCreditAchPaymentApiTest() throws ApiException { + CreateRecurringCreditAchPayment(); + } + + @Test + public void CreateRecurringDebitAchPaymentApiTest() throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + Counterparty counterparty = CreateCounterparty(unitApi, CreateBusinessCustomer(unitApi)); + + CreateRecurringPaymentRequest req = new CreateRecurringPaymentRequest(); + + CreateRecurringDebitAchPayment createRecurringPayment = new CreateRecurringDebitAchPayment(); + CreateRecurringDebitAchPaymentAttributes attributes = new CreateRecurringDebitAchPaymentAttributes(); + + attributes.amount(10); + attributes.setDescription("Test"); + Schedule schedule = new Schedule(); + MonthlySchedule monthlySchedule = new MonthlySchedule(); + monthlySchedule.setDayOfMonth(16); + monthlySchedule.setTotalNumberOfPayments(5); + monthlySchedule.setInterval(MonthlySchedule.IntervalEnum.MONTHLY); + schedule.setActualInstance(monthlySchedule); + attributes.setSchedule(schedule); + + CreatePaymentRelationshipsWithCounterparty relationships = new CreatePaymentRelationshipsWithCounterparty(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.ACCOUNT); + accountRelationship.setData(accountRelationshipData); + + CounterpartyRelationship counterpartyRelationship = new CounterpartyRelationship(); + CounterpartyRelationshipData counterpartyAccountRelationshipData = new CounterpartyRelationshipData(); + counterpartyAccountRelationshipData.setId(counterparty.getId()); + counterpartyAccountRelationshipData.setType(CounterpartyRelationshipData.TypeEnum.COUNTERPARTY); + counterpartyRelationship.setData(counterpartyAccountRelationshipData); + + relationships.setAccount(accountRelationship); + relationships.setCounterparty(counterpartyRelationship); + + createRecurringPayment.setAttributes(attributes); + createRecurringPayment.setRelationships(relationships); + createRecurringPayment.setType(CreateRecurringDebitAchPayment.TypeEnum.RECURRING_DEBIT_ACH_PAYMENT); + CreateRecurringPaymentRequestData data = new CreateRecurringPaymentRequestData(createRecurringPayment); + req.setData(data); + + UnitRecurringPaymentResponse res = unitApi.createRecurringPayment(req); + assert res.getData().getType().equals(RecurringPayment.TypeEnum.RECURRING_DEBIT_ACH_PAYMENT); + } + + @Test + public void CreateRecurringCreditBookPaymentApiTest() throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + Customer counterpartyCustomer = CreateIndividualCustomer(unitApi); + CreateCounterparty(unitApi, counterpartyCustomer); + DepositAccount counterpartyAccount = CreateDepositAccount(unitApi, counterpartyCustomer); + + CreateRecurringPaymentRequest req = new CreateRecurringPaymentRequest(); + + CreateRecurringCreditBookPayment createRecurringPayment = new CreateRecurringCreditBookPayment(); + CreateRecurringCreditBookPaymentAttributes attributes = new CreateRecurringCreditBookPaymentAttributes(); + + attributes.amount(10); + attributes.setDescription("Test"); + Schedule schedule = new Schedule(); + MonthlySchedule monthlySchedule = new MonthlySchedule(); + monthlySchedule.setDayOfMonth(16); + monthlySchedule.setTotalNumberOfPayments(5); + monthlySchedule.setInterval(MonthlySchedule.IntervalEnum.MONTHLY); + schedule.setActualInstance(monthlySchedule); + attributes.setSchedule(schedule); + + CreatePaymentRelationshipsWithCounterpartyAccount relationships = new CreatePaymentRelationshipsWithCounterpartyAccount(); + AccountRelationship accountRelationship = new AccountRelationship(); + AccountRelationshipData accountRelationshipData = new AccountRelationshipData(); + accountRelationshipData.setId(account.getId()); + accountRelationshipData.setType(AccountRelationshipData.TypeEnum.ACCOUNT); + accountRelationship.setData(accountRelationshipData); + + CounterpartyAccountRelationship counterpartyRelationship = new CounterpartyAccountRelationship(); + CounterpartyAccountRelationshipData counterpartyAccountRelationshipData = new CounterpartyAccountRelationshipData(); + counterpartyAccountRelationshipData.setId(counterpartyAccount.getId()); + counterpartyAccountRelationshipData.setType(CounterpartyAccountRelationshipData.TypeEnum.ACCOUNT); + counterpartyRelationship.setData(counterpartyAccountRelationshipData); + + relationships.setAccount(accountRelationship); + relationships.setCounterpartyAccount(counterpartyRelationship); + + createRecurringPayment.setAttributes(attributes); + createRecurringPayment.setRelationships(relationships); + createRecurringPayment.setType(CreateRecurringCreditBookPayment.TypeEnum.RECURRING_CREDIT_BOOK_PAYMENT); + CreateRecurringPaymentRequestData data = new CreateRecurringPaymentRequestData(createRecurringPayment); + req.setData(data); + + UnitRecurringPaymentResponse res = unitApi.createRecurringPayment(req); + assert res.getData().getType().equals(RecurringPayment.TypeEnum.RECURRING_CREDIT_BOOK_PAYMENT); + } + + @Test + public void DisableAndEnableRecurringPaymentApiTest() throws ApiException { + RecurringCreditAchPayment recurringCreditAchPayment = CreateRecurringCreditAchPayment(); + UnitRecurringPaymentResponse disableRes = unitApi.disableRecurringPayment(recurringCreditAchPayment.getId(), new Object()); + assert disableRes.getData().getType().equals(RecurringPayment.TypeEnum.RECURRING_CREDIT_ACH_PAYMENT); + + UnitRecurringPaymentResponse enableRes = unitApi.enableRecurringPayment(recurringCreditAchPayment.getId(), new Object()); + assert enableRes.getData().getType().equals(RecurringPayment.TypeEnum.RECURRING_CREDIT_ACH_PAYMENT); + } } diff --git a/src/test/java/unit/java/sdk/RewardTests.java b/src/test/java/unit/java/sdk/RewardTests.java new file mode 100644 index 00000000..8c454934 --- /dev/null +++ b/src/test/java/unit/java/sdk/RewardTests.java @@ -0,0 +1,67 @@ +package unit.java.sdk; + +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; +import static unit.java.sdk.AccountTests.CreateDepositAccount; +import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; + +import org.junit.Test; + +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.CreateRewardRelationships; +import unit.java.sdk.model.CreateRewardRequest; +import unit.java.sdk.model.CreateRewardRequestData; +import unit.java.sdk.model.CreateRewardRequestDataAttributes; +import unit.java.sdk.model.DepositAccount; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.ReceivingAccountRelationship; +import unit.java.sdk.model.ReceivingAccountRelationshipData; +import unit.java.sdk.model.Reward; +import unit.java.sdk.model.UnitRewardResponse; +import unit.java.sdk.model.UnitRewardsListResponse; + +public class RewardTests { + UnitApi unitApi = GenerateUnitApiClient(); + + @Test + public void CreateRewardApiTest() throws ApiException { + CreateRewardRequest req = new CreateRewardRequest(); + CreateRewardRequestData data = new CreateRewardRequestData(); + CreateRewardRequestDataAttributes attributes = new CreateRewardRequestDataAttributes(); + CreateRewardRelationships relationships = new CreateRewardRelationships(); + + attributes.setAmount(10); + attributes.setDescription("Test reward"); + + ReceivingAccountRelationship relationship = new ReceivingAccountRelationship(); + ReceivingAccountRelationshipData relationshipData = new ReceivingAccountRelationshipData(); + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + + relationshipData.setId(account.getId()); + relationshipData.setType(ReceivingAccountRelationshipData.TypeEnum.DEPOSIT_ACCOUNT); + relationship.setData(relationshipData); + relationships.setReceivingAccount(relationship); + + data.setAttributes(attributes); + data.setRelationships(relationships); + + req.data(data); + UnitRewardResponse res = unitApi.createReward(req); + assert res.getData().getType().equals(Reward.TypeEnum.REWARD); + } + + @Test + public void GetRewardsApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitRewardsListResponse res = unitApi.getRewardsList(params, null, null, null); + res.getData().forEach(reward -> { + assert reward.getType().equals(Reward.TypeEnum.REWARD); + try { + UnitRewardResponse getRewardRes = unitApi.getReward(reward.getId()); + assert getRewardRes.getData().getType().equals(Reward.TypeEnum.REWARD); + } catch (ApiException e) { + throw new RuntimeException(e); + } + }); + } +} diff --git a/src/test/java/unit/java/sdk/StatementTests.java b/src/test/java/unit/java/sdk/StatementTests.java new file mode 100644 index 00000000..b5da5811 --- /dev/null +++ b/src/test/java/unit/java/sdk/StatementTests.java @@ -0,0 +1,54 @@ +package unit.java.sdk; + +import static unit.java.sdk.AccountTests.CreateDepositAccount; +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; +import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; + +import java.io.InputStream; + +import org.junit.Test; + +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.DepositAccount; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.Statement; +import unit.java.sdk.model.UnitStatementsResponse; + +public class StatementTests { + UnitApi unitApi = GenerateUnitApiClient(); + + @Test + public void GetStatementsApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitStatementsResponse res = unitApi.getStatementsList(params, null, null); + res.getData().forEach(statement -> { + assert statement.getType().equals(Statement.TypeEnum.ACCOUNT_STATEMENT_DTO); + }); + } + + @Test + public void GetStatementHtmlAndPdfApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(1); + UnitStatementsResponse res = unitApi.getStatementsList(params, null, null); + res.getData().forEach(statement -> { + try { + assert statement.getType().equals(Statement.TypeEnum.ACCOUNT_STATEMENT_DTO); + String html = unitApi.getStatementHtml(statement.getId()); + assert html != null; + InputStream pdfInputStream = unitApi.getStatementPdf(statement.getId()); + assert pdfInputStream != null; + } catch (ApiException e) { + throw new RuntimeException(e); + } + }); + } + + @Test + public void GetBankVerificationPdfApiTest() throws ApiException { + DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + InputStream res = unitApi.getStatementBankPdf(account.getId()); + assert res != null; + } +} diff --git a/src/test/java/unit/java/sdk/TaxFormTests.java b/src/test/java/unit/java/sdk/TaxFormTests.java new file mode 100644 index 00000000..9e9ebc5f --- /dev/null +++ b/src/test/java/unit/java/sdk/TaxFormTests.java @@ -0,0 +1,49 @@ +package unit.java.sdk; + +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import java.io.InputStream; + +import org.junit.Test; + +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.TaxForm; +import unit.java.sdk.model.UnitTaxFormResponse; +import unit.java.sdk.model.UnitTaxFormsListResponse; + +public class TaxFormTests { + UnitApi unitApi = GenerateUnitApiClient(); + + @Test + public void GetTaxFormsApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitTaxFormsListResponse res = unitApi.getTaxFormsList(params, null); + res.getData().forEach(taxForm -> { + assert taxForm.getType().equals(TaxForm.TypeEnum.TAX_FORM); + try { + UnitTaxFormResponse getRes = unitApi.getTaxForm(taxForm.getId()); + assert getRes.getData().getType().equals(TaxForm.TypeEnum.TAX_FORM); + } catch (ApiException e) { + throw new RuntimeException(e); + } + }); + } + + @Test + public void GetTaxFormPdfApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(1); + UnitTaxFormsListResponse res = unitApi.getTaxFormsList(params, null); + res.getData().forEach(taxForm -> { + assert taxForm.getType().equals(TaxForm.TypeEnum.TAX_FORM); + try { + InputStream getRes = unitApi.getTaxFormPdf(taxForm.getId()); + assert getRes != null; + } catch (ApiException e) { + throw new RuntimeException(e); + } + }); + } +} diff --git a/src/test/java/unit/java/sdk/TestHelpers.java b/src/test/java/unit/java/sdk/TestHelpers.java index 03a44e4d..901fa1c4 100644 --- a/src/test/java/unit/java/sdk/TestHelpers.java +++ b/src/test/java/unit/java/sdk/TestHelpers.java @@ -4,6 +4,9 @@ import java.util.ArrayList; import java.util.List; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; + import unit.java.sdk.api.UnitApi; import unit.java.sdk.model.Address; import unit.java.sdk.model.AnnualIncome; @@ -38,6 +41,9 @@ static UnitApi GenerateUnitApiClient() { if(unitApi == null){ String access_token = System.getenv("access_token"); ApiClient cl = new ApiClient(); + ObjectMapper mapper = cl.getObjectMapper(); + mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); + cl.setObjectMapper(mapper); cl.setRequestInterceptor(r -> r.header("Authorization", "Bearer " + access_token)); unitApi = new UnitApi(cl); } @@ -70,7 +76,7 @@ public static CreateApplicationRequest GenerateCreateIndividualApplicationReques p.setNumber("5555555555"); p.setCountryCode("1"); attr.setPhone(p); - attr.setOccupation(Occupation.ARCHITECTORENGINEER); + attr.setOccupation(Occupation.ARCHITECT_OR_ENGINEER); createIndividualApplication.setAttributes(attr); @@ -105,9 +111,9 @@ public static CreateApplicationRequest GenerateCreateSoleProprietorApplicationRe p.setCountryCode("1"); attr.setPhone(p); attr.setSoleProprietorship(true); - attr.setBusinessVertical(BusinessVertical.BUSINESSSUPPORTORBUILDINGSERVICES); - attr.setAnnualRevenue(SoleProprietorshipAnnualRevenue.BETWEEN100KAND200K); - attr.setNumberOfEmployees(SoleProprietorshipNumberOfEmployees.BETWEEN5AND10); + attr.setBusinessVertical(BusinessVertical.BUSINESS_SUPPORT_OR_BUILDING_SERVICES); + attr.setAnnualRevenue(SoleProprietorshipAnnualRevenue.BETWEEN100K_AND200K); + attr.setNumberOfEmployees(SoleProprietorshipNumberOfEmployees.BETWEEN5_AND10); createSoleProprietorApplication.setAttributes(attr); @@ -141,8 +147,8 @@ public static CreateApplicationRequest GenerateCreateBusinessApplicationRequest( attr.setEin("123456789"); attr.setEntityType(EntityType.CORPORATION); attr.setIp("127.0.0.1"); - attr.setAnnualRevenue(BusinessAnnualRevenue.BETWEEN250KAND500K); - attr.setNumberOfEmployees(BusinessNumberOfEmployees.BETWEEN100AND500); + attr.setAnnualRevenue(BusinessAnnualRevenue.BETWEEN250K_AND500K); + attr.setNumberOfEmployees(BusinessNumberOfEmployees.BETWEEN100_AND500); attr.setCashFlow(CashFlow.PREDICTABLE); attr.setYearOfIncorporation("1999"); List countriesOfOperation = new ArrayList(); @@ -165,7 +171,7 @@ public static CreateApplicationRequest GenerateCreateBusinessApplicationRequest( CreateOfficer officer = new CreateOfficer(); - officer.setAnnualIncome(AnnualIncome.BETWEEN50KAND100K); + officer.setAnnualIncome(AnnualIncome.BETWEEN50K_AND100K); officer.setFullName(fn); officer.setAddress(address); officer.setEmail(email); @@ -173,12 +179,12 @@ public static CreateApplicationRequest GenerateCreateBusinessApplicationRequest( LocalDate dateOfBirh = LocalDate.of(1997, 11, 1); officer.setDateOfBirth(dateOfBirh); officer.setTitle(CreateOfficer.TitleEnum.CEO); - officer.setOccupation(Occupation.ARCHITECTORENGINEER); - officer.setSourceOfIncome(SourceOfIncome.BUSINESSOWNERSHIPINTERESTS); - officer.setSsn("721074426"); + officer.setOccupation(Occupation.ARCHITECT_OR_ENGINEER); + officer.setSourceOfIncome(SourceOfIncome.BUSINESS_OWNERSHIP_INTERESTS); + officer.setSsn("123456789"); attr.setOfficer(officer); - attr.setBusinessVertical(BusinessVertical.ARTSENTERTAINMENTANDRECREATION); + attr.setBusinessVertical(BusinessVertical.ARTS_ENTERTAINMENT_AND_RECREATION); List beneficialOwners = new ArrayList(); CreateBeneficialOwner beneficialOwner = new CreateBeneficialOwner(); @@ -188,9 +194,9 @@ public static CreateApplicationRequest GenerateCreateBusinessApplicationRequest( beneficialOwner.setSsn("721074426"); beneficialOwner.setEmail(email); beneficialOwner.setPhone(p); - beneficialOwner.setOccupation(Occupation.ARCHITECTORENGINEER); - beneficialOwner.setAnnualIncome(AnnualIncome.BETWEEN100KAND250K); - beneficialOwner.setSourceOfIncome(SourceOfIncome.BUSINESSOWNERSHIPINTERESTS); + beneficialOwner.setOccupation(Occupation.ARCHITECT_OR_ENGINEER); + beneficialOwner.setAnnualIncome(AnnualIncome.BETWEEN100K_AND250K); + beneficialOwner.setSourceOfIncome(SourceOfIncome.BUSINESS_OWNERSHIP_INTERESTS); beneficialOwners.add(beneficialOwner); attr.setBeneficialOwners(beneficialOwners); diff --git a/src/test/java/unit/java/sdk/TokenTests.java b/src/test/java/unit/java/sdk/TokenTests.java index fcc49532..ee3c974c 100644 --- a/src/test/java/unit/java/sdk/TokenTests.java +++ b/src/test/java/unit/java/sdk/TokenTests.java @@ -1,5 +1,12 @@ package unit.java.sdk; +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; +import static unit.java.sdk.CustomerTests.CreateIndividualCustomer; +// import static unit.java.sdk.AccountTests.CreateDepositAccount; + +// import java.time.Instant; +// import java.time.OffsetDateTime; +// import java.time.ZoneOffset; import java.util.ArrayList; import java.util.List; @@ -7,28 +14,72 @@ import unit.java.sdk.api.UnitApi; import unit.java.sdk.model.ApiToken; +// import unit.java.sdk.model.CreateApiTokenRequest; +// import unit.java.sdk.model.CreateApiTokenRequestData; +// import unit.java.sdk.model.CreateApiTokenRequestDataAttributes; import unit.java.sdk.model.CreateApiTokenRequestDataAttributesResourcesInner; import unit.java.sdk.model.CreateCustomerTokenRequest; import unit.java.sdk.model.CreateCustomerTokenRequestData; import unit.java.sdk.model.CreateCustomerTokenRequestDataAttributes; +import unit.java.sdk.model.CreateCustomerTokenVerificationRequest; +import unit.java.sdk.model.CreateCustomerTokenVerificationRequestData; +import unit.java.sdk.model.CreateCustomerTokenVerificationRequestDataAttributes; +// import unit.java.sdk.model.Customer; import unit.java.sdk.model.CustomerToken; +import unit.java.sdk.model.CustomerTokenVerification; +// import unit.java.sdk.model.DepositAccount; +import unit.java.sdk.model.IndividualCustomer; +// import unit.java.sdk.model.UnitApiTokenResponse; import unit.java.sdk.model.UnitCustomerTokenResponse; +import unit.java.sdk.model.UnitCustomerTokenVerificationResponse; +import unit.java.sdk.model.CreateCustomerTokenVerificationRequestDataAttributes.ChannelEnum; public class TokenTests { - UnitApi unitApi = TestHelpers.GenerateUnitApiClient(); + UnitApi unitApi = GenerateUnitApiClient(); + String testUserId = System.getenv("token_tests_user_id"); + + // Uncomment once createApiToken resource starts accepting different types of RFC3339 + // @Test + // public void CreateOrgApiTokenApiTest() throws ApiException { + // CreateApiTokenRequest req = new CreateApiTokenRequest(); + // CreateApiTokenRequestData data = new CreateApiTokenRequestData(); + // CreateApiTokenRequestDataAttributes attributes = new CreateApiTokenRequestDataAttributes(); + + // Instant instant = Instant.now(); + // attributes.setScope("customers applications"); + // attributes.setDescription("Test token"); + // attributes.setExpiration(instant.atOffset(ZoneOffset.UTC)); + // List resources = new ArrayList(); + // CreateApiTokenRequestDataAttributesResourcesInner resource = new CreateApiTokenRequestDataAttributesResourcesInner(); + // DepositAccount account = CreateDepositAccount(unitApi, CreateIndividualCustomer(unitApi)); + + // resource.setType(CreateApiTokenRequestDataAttributesResourcesInner.TypeEnum.ACCOUNT); + // List ids = new ArrayList(); + // ids.add(account.getId()); + + // resource.setIds(ids); + // resources.add(resource); + // // attributes.setResources(resources); + + // data.setAttributes(attributes); + // data.setType(CreateApiTokenRequestData.TypeEnum.APITOKEN); + // req.setData(data); + + // UnitApiTokenResponse res = unitApi.createApiToken(testUserId, req); + // assert res.getData().getType().equals(ApiToken.TypeEnum.APITOKEN); + // } @Test - public void GetOrgTokensTest() throws ApiException { - // TODO: Is it alright that userId is hardcoded in the test? - List response = unitApi.getApiTokensList("252").getData(); + public void GetOrgTokensApiTest() throws ApiException { + List response = unitApi.getApiTokensList(testUserId).getData(); for (ApiToken t: response) { - assert t.getType().equals(ApiToken.TypeEnum.APITOKEN); + assert t.getType().equals(ApiToken.TypeEnum.API_TOKEN); } } @Test - public void CreateCustomerToken() throws ApiException { + public void CreateCustomerTokenApiTest() throws ApiException { CreateCustomerTokenRequest request = new CreateCustomerTokenRequest(); CreateCustomerTokenRequestData cct = new CreateCustomerTokenRequestData(); CreateCustomerTokenRequestDataAttributes attributes = new CreateCustomerTokenRequestDataAttributes(); @@ -48,6 +99,21 @@ public void CreateCustomerToken() throws ApiException { request.setData(cct); UnitCustomerTokenResponse res = unitApi.createCustomerToken("1527981", request); - assert res.getData().getType().equals(CustomerToken.TypeEnum.CUSTOMERBEARERTOKEN); + assert res.getData().getType().equals(CustomerToken.TypeEnum.CUSTOMER_BEARER_TOKEN); + } + + @Test + public void CreateCustomerTokenVerificationApiTest() throws ApiException { + IndividualCustomer customer = CreateIndividualCustomer(unitApi); + CreateCustomerTokenVerificationRequest req = new CreateCustomerTokenVerificationRequest(); + CreateCustomerTokenVerificationRequestData data = new CreateCustomerTokenVerificationRequestData(); + CreateCustomerTokenVerificationRequestDataAttributes attributes = new CreateCustomerTokenVerificationRequestDataAttributes(); + attributes.setChannel(ChannelEnum.SMS); + data.setAttributes(attributes); + data.setType(CreateCustomerTokenVerificationRequestData.TypeEnum.CUSTOMER_TOKEN_VERIFICATION); + req.setData(data); + + UnitCustomerTokenVerificationResponse res = unitApi.createCustomerTokenVerification(customer.getId(), req); + assert res.getData().getType().equals(CustomerTokenVerification.TypeEnum.CUSTOMER_TOKEN_VERIFICATION); } -} +} diff --git a/src/test/java/unit/java/sdk/TransactionTests.java b/src/test/java/unit/java/sdk/TransactionTests.java new file mode 100644 index 00000000..6384cee9 --- /dev/null +++ b/src/test/java/unit/java/sdk/TransactionTests.java @@ -0,0 +1,23 @@ +package unit.java.sdk; + +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import org.junit.Test; + +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.UnitTransactionsListResponse; + +public class TransactionTests { + UnitApi unitApi = GenerateUnitApiClient(); + + @Test + public void GetTransactionsApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitTransactionsListResponse res = unitApi.getTransactionsList(null, null, null, null); + res.getData().forEach(transaction -> { + assert transaction != null; + }); + } +} diff --git a/src/test/java/unit/java/sdk/WebhookTests.java b/src/test/java/unit/java/sdk/WebhookTests.java new file mode 100644 index 00000000..e1f385c9 --- /dev/null +++ b/src/test/java/unit/java/sdk/WebhookTests.java @@ -0,0 +1,29 @@ +package unit.java.sdk; + +import static unit.java.sdk.TestHelpers.GenerateUnitApiClient; + +import org.junit.Test; +import unit.java.sdk.api.UnitApi; +import unit.java.sdk.model.ListPageParameters; +import unit.java.sdk.model.UnitWebhookResponse; +import unit.java.sdk.model.UnitWebhooksListResponse; +import unit.java.sdk.model.Webhook; + +public class WebhookTests { + UnitApi unitApi = GenerateUnitApiClient(); + + @Test + public void GetWebhooksApiTest() throws ApiException { + ListPageParameters params = new ListPageParameters(); + params.setLimit(20); + UnitWebhooksListResponse res = unitApi.getWebhooksList(params, null, null); + res.getData().forEach(webhook -> { + try { + UnitWebhookResponse webhookRes = unitApi.getWebhook(webhook.getId()); + assert webhookRes.getData().getType().equals(Webhook.TypeEnum.WEBHOOK); + } catch (ApiException e) { + throw new RuntimeException(e); + } + }); + } +} diff --git a/src/test/java/unit/java/sdk/unit_pdf.pdf b/src/test/java/unit/java/sdk/unit_pdf.pdf new file mode 100644 index 00000000..cfdc0bb5 Binary files /dev/null and b/src/test/java/unit/java/sdk/unit_pdf.pdf differ diff --git a/src/test/java/unit/java/sdk/unit_photo.jpeg b/src/test/java/unit/java/sdk/unit_photo.jpeg new file mode 100644 index 00000000..4df4bd96 Binary files /dev/null and b/src/test/java/unit/java/sdk/unit_photo.jpeg differ