diff --git a/README.md b/README.md
index d34699d..8ae9c95 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ Add this dependency to your project's POM:
ch.postfinance
postfinancecheckout-java-sdk
- 5.0.0
+ 5.1.0
compile
```
@@ -33,7 +33,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
-compile "ch.postfinance:postfinancecheckout-java-sdk:5.0.0"
+compile "ch.postfinance:postfinancecheckout-java-sdk:5.1.0"
```
### Others
@@ -46,7 +46,7 @@ mvn clean package
Then manually install the following JARs:
-* `target/postfinancecheckout-java-sdk-5.0.0.jar`
+* `target/postfinancecheckout-java-sdk-5.1.0.jar`
* `target/lib/*.jar`
## Usage
diff --git a/build.gradle b/build.gradle
index a736d2f..97a896e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'
group = 'ch.postfinance'
-version = '5.0.0'
+version = '5.1.0'
buildscript {
repositories {
@@ -97,19 +97,19 @@ ext {
swagger_annotations_version = "1.5.17"
jackson_version = "2.14.1"
google_api_client_version = "1.23.0"
- jersey_common_version = "2.34"
jodatime_version = "2.9.9"
junit_version = "4.13.2"
+ httpclient_version = "4.5.14"
}
dependencies {
compile "io.swagger:swagger-annotations:$swagger_annotations_version"
compile "com.google.api-client:google-api-client:${google_api_client_version}"
- compile "org.glassfish.jersey.core:jersey-common:${jersey_common_version}"
compile "com.fasterxml.jackson.core:jackson-core:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
compile "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
compile "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$jackson_version"
+ compile "org.apache.httpcomponents:httpclient:$httpclient_version"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
testCompile "junit:junit:$junit_version"
}
diff --git a/build.sbt b/build.sbt
index 3118529..b213d08 100644
--- a/build.sbt
+++ b/build.sbt
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "ch.postfinance",
name := "postfinancecheckout-java-sdk",
- version := "5.0.0",
+ version := "5.1.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
@@ -15,6 +15,7 @@ lazy val root = (project in file(".")).
"com.fasterxml.jackson.core" % "jackson-core" % "2.14.1" % "compile",
"com.fasterxml.jackson.core" % "jackson-annotations" % "2.14.1" % "compile",
"com.fasterxml.jackson.core" % "jackson-databind" % "2.14.1" % "compile",
+ "org.apache.httpcomponents" % "httpclient" % "4.5.14" % "compile",
"com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.14.1" % "compile",
"junit" % "junit" % "4.13.2" % "test",
"com.novocode" % "junit-interface" % "0.10" % "test"
diff --git a/pom.xml b/pom.xml
index da428f2..6011970 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
postfinancecheckout-java-sdk
jar
postfinancecheckout-java-sdk
- 5.0.0
+ 5.1.0
https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html
The SDK for simplifying the integration with PostFinance Checkout API.
@@ -269,11 +269,11 @@
google-api-client
${google-api-client-version}
-
+
- org.glassfish.jersey.core
- jersey-common
- ${jersey-common-version}
+ org.apache.httpcomponents
+ httpclient
+ ${apache-httpclient-version}
@@ -309,8 +309,8 @@
UTF-8
1.5.17
1.23.0
- 2.34
2.14.1
+ 4.5.14
1.0.0
4.13.2
diff --git a/src/main/java/ch/postfinance/sdk/DefaultHeaders.java b/src/main/java/ch/postfinance/sdk/DefaultHeaders.java
index 66501c6..5e4f020 100644
--- a/src/main/java/ch/postfinance/sdk/DefaultHeaders.java
+++ b/src/main/java/ch/postfinance/sdk/DefaultHeaders.java
@@ -34,7 +34,7 @@ public void intercept(HttpRequest request) throws IOException {
private HttpHeaders getDefaultHeaders() {
HttpHeaders headers = new HttpHeaders();
- headers.put("x-meta-sdk-version", "5.0.0");
+ headers.put("x-meta-sdk-version", "5.1.0");
headers.put("x-meta-sdk-language", "java");
headers.put("x-meta-sdk-provider", "PostFinance Checkout");
headers.put("x-meta-sdk-language-version", System.getProperty("java.version"));
diff --git a/src/main/java/ch/postfinance/sdk/PostFinanceCheckoutSdkException.java b/src/main/java/ch/postfinance/sdk/PostFinanceCheckoutSdkException.java
index 3374eff..7389f49 100644
--- a/src/main/java/ch/postfinance/sdk/PostFinanceCheckoutSdkException.java
+++ b/src/main/java/ch/postfinance/sdk/PostFinanceCheckoutSdkException.java
@@ -26,16 +26,36 @@ public class PostFinanceCheckoutSdkException extends RuntimeException {
private static final long serialVersionUID = 1675383192982547616L;
+ private final ErrorCode code;
+
+ private final String message;
+
/**
* Constructor.
*
- * @param errorCode
+ * @param code
* the PostFinanceCheckout SDK error code
* @param message
* the exception message details
*/
- public PostFinanceCheckoutSdkException(ErrorCode errorCode, String message) {
- super(String.format("Error code: %d. %s", errorCode.getCode(), message));
+ public PostFinanceCheckoutSdkException(ErrorCode code, String message) {
+ super();
+ this.code = code;
+ this.message = String.format("Error code: %d. %s", code.getCode(), message);
}
+ /**
+ * @return the PostFinanceCheckout SDK error code
+ */
+ public ErrorCode getCode() {
+ return this.code;
+ }
+
+ /**
+ * @return the PostFinanceCheckout SDK error message
+ */
+ public String getMessage() {
+ return this.message;
+ }
+
}
\ No newline at end of file
diff --git a/src/main/java/ch/postfinance/sdk/URIBuilderUtil.java b/src/main/java/ch/postfinance/sdk/URIBuilderUtil.java
new file mode 100644
index 0000000..198afc2
--- /dev/null
+++ b/src/main/java/ch/postfinance/sdk/URIBuilderUtil.java
@@ -0,0 +1,106 @@
+/**
+* PostFinance Checkout SDK
+*
+* This library allows to interact with the PostFinance Checkout payment service.
+*
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+
+package ch.postfinance.sdk;
+
+import com.google.api.client.http.UriTemplate;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.util.Collection;
+import java.util.Map;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+import java.util.stream.Collectors;
+import org.apache.http.client.utils.URIBuilder;
+
+/**
+ * Helper class for creating and modifying URIBuilder {@link URIBuilder}
+ */
+public final class URIBuilderUtil {
+ /**
+ * Create a new URIBuilder instance from url
+ *
+ * @throws IllegalArgumentException if url is not a valid URI template or is null.
+ * @param url to be used as URI
+ * @return a new {@link URIBuilder}
+ */
+ public static URIBuilder create(String url) {
+ try {
+ return new URIBuilder(url);
+ } catch (URISyntaxException e) {
+ throw new IllegalArgumentException("Invalid URI: " + e.getLocalizedMessage());
+ }
+ }
+
+ /**
+ * Create a new {@link URIBuilder} instance from url with parameters
+ *
+ * @throws IllegalArgumentException if url is not a valid URI template or is null.
+ * @param url to be used as URI template
+ * @param pathParameters path parameters to be resolved in url
+ * @return a new {@link URIBuilder}
+ */
+ public static URIBuilder create(String url, Map pathParameters) {
+ try {
+ return new URIBuilder(UriTemplate.expand(url, pathParameters, false));
+ } catch (URISyntaxException e) {
+ throw new IllegalArgumentException("Invalid URI: " + e.getLocalizedMessage());
+ }
+ }
+
+ /**
+ * Build {@link URIBuilder} to {@link URI}
+ *
+ * @throws IllegalArgumentException if url is not a valid URI template or is null.
+ * @param uriBuilder {@link URIBuilder} to build
+ * @return a new {@link URI}
+ */
+ public static URI build(URIBuilder uriBuilder) {
+ try {
+ return uriBuilder.build();
+ } catch (URISyntaxException e) {
+ throw new IllegalArgumentException("Invalid URI: " + e.getLocalizedMessage());
+ }
+ }
+
+ /**
+ * Apply query parameter
+ * @param uriBuilder uri builder instance query parameters will applied to
+ * @param paramName query parameter name
+ * @param paramValue query parameter value
+ * @return uri builder with applied parameters
+ */
+ public static URIBuilder applyQueryParam(URIBuilder uriBuilder, String paramName, Object paramValue) {
+ if (paramValue instanceof Collection) {
+ uriBuilder = applyCollection(uriBuilder, paramName, ((Collection) paramValue).toArray());
+ } else if (paramValue instanceof Object[]) {
+ uriBuilder = applyCollection(uriBuilder, paramName, (Object[]) paramValue);
+ } else {
+ uriBuilder = uriBuilder.addParameter(paramName, paramValue.toString());
+ }
+ return uriBuilder;
+ }
+
+ private static URIBuilder applyCollection(URIBuilder uriBuilder, String paramName, Object[] paramValues) {
+ for (Object paramValue: paramValues) {
+ uriBuilder.addParameter(paramName, paramValue.toString());
+ }
+ return uriBuilder;
+ }
+}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractAccountUpdate.java b/src/main/java/ch/postfinance/sdk/model/AbstractAccountUpdate.java
index 3bab4d4..ce71864 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractAccountUpdate.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractAccountUpdate.java
@@ -55,10 +55,10 @@ public AbstractAccountUpdate lastModifiedDate(OffsetDateTime lastModifiedDate) {
}
/**
- *
+ * The date and time when the object was last modified.
* @return lastModifiedDate
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The date and time when the object was last modified.")
public OffsetDateTime getLastModifiedDate() {
return lastModifiedDate;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractApplicationUserUpdate.java b/src/main/java/ch/postfinance/sdk/model/AbstractApplicationUserUpdate.java
index 03081ad..cfb0fe3 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractApplicationUserUpdate.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractApplicationUserUpdate.java
@@ -93,10 +93,10 @@ public AbstractApplicationUserUpdate state(CreationEntityState state) {
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractCustomerActive.java b/src/main/java/ch/postfinance/sdk/model/AbstractCustomerActive.java
index ac66bf3..d3e78af 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractCustomerActive.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractCustomerActive.java
@@ -149,10 +149,10 @@ public AbstractCustomerActive language(String language) {
}
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractHumanUserUpdate.java b/src/main/java/ch/postfinance/sdk/model/AbstractHumanUserUpdate.java
index 8b58534..d4d1aa4 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractHumanUserUpdate.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractHumanUserUpdate.java
@@ -170,10 +170,10 @@ public AbstractHumanUserUpdate state(CreationEntityState state) {
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractSpaceUpdate.java b/src/main/java/ch/postfinance/sdk/model/AbstractSpaceUpdate.java
index 63b3c40..304c42a 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractSpaceUpdate.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractSpaceUpdate.java
@@ -79,10 +79,10 @@ public AbstractSpaceUpdate lastModifiedDate(OffsetDateTime lastModifiedDate) {
}
/**
- *
+ * The date and time when the object was last modified.
* @return lastModifiedDate
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The date and time when the object was last modified.")
public OffsetDateTime getLastModifiedDate() {
return lastModifiedDate;
}
@@ -174,10 +174,10 @@ public AbstractSpaceUpdate state(CreationEntityState state) {
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractTokenUpdate.java b/src/main/java/ch/postfinance/sdk/model/AbstractTokenUpdate.java
index 6f22f1e..b824470 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractTokenUpdate.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractTokenUpdate.java
@@ -123,10 +123,10 @@ public AbstractTokenUpdate language(String language) {
}
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractTransactionPending.java b/src/main/java/ch/postfinance/sdk/model/AbstractTransactionPending.java
index b377cda..c987732 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractTransactionPending.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractTransactionPending.java
@@ -313,10 +313,10 @@ public AbstractTransactionPending language(String language) {
}
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractWebhookListenerUpdate.java b/src/main/java/ch/postfinance/sdk/model/AbstractWebhookListenerUpdate.java
index 41f2995..c7cbe3a 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractWebhookListenerUpdate.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractWebhookListenerUpdate.java
@@ -126,10 +126,10 @@ public AbstractWebhookListenerUpdate state(CreationEntityState state) {
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AbstractWebhookUrlUpdate.java b/src/main/java/ch/postfinance/sdk/model/AbstractWebhookUrlUpdate.java
index 2010fcb..8476106 100644
--- a/src/main/java/ch/postfinance/sdk/model/AbstractWebhookUrlUpdate.java
+++ b/src/main/java/ch/postfinance/sdk/model/AbstractWebhookUrlUpdate.java
@@ -74,10 +74,10 @@ public AbstractWebhookUrlUpdate state(CreationEntityState state) {
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Account.java b/src/main/java/ch/postfinance/sdk/model/Account.java
index 749d688..7986aea 100644
--- a/src/main/java/ch/postfinance/sdk/model/Account.java
+++ b/src/main/java/ch/postfinance/sdk/model/Account.java
@@ -170,20 +170,20 @@ public OffsetDateTime getDeletedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The date and time when the object was last modified.
* @return lastModifiedDate
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The date and time when the object was last modified.")
public OffsetDateTime getLastModifiedDate() {
return lastModifiedDate;
}
@@ -210,10 +210,10 @@ public Account getParentAccount() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -240,10 +240,10 @@ public Long getScope() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public AccountState getState() {
return state;
}
@@ -270,10 +270,10 @@ public AccountType getType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/AnalyticsQueryExecution.java b/src/main/java/ch/postfinance/sdk/model/AnalyticsQueryExecution.java
index 89d5693..2046e1b 100644
--- a/src/main/java/ch/postfinance/sdk/model/AnalyticsQueryExecution.java
+++ b/src/main/java/ch/postfinance/sdk/model/AnalyticsQueryExecution.java
@@ -118,10 +118,10 @@ public FailureReason getFailureReason() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/BankAccount.java b/src/main/java/ch/postfinance/sdk/model/BankAccount.java
index 4ecc8ca..70889ef 100644
--- a/src/main/java/ch/postfinance/sdk/model/BankAccount.java
+++ b/src/main/java/ch/postfinance/sdk/model/BankAccount.java
@@ -82,10 +82,10 @@ public String getDescription() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -102,30 +102,30 @@ public String getIdentifier() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public BankAccountState getState() {
return state;
}
@@ -142,10 +142,10 @@ public Long getType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/BankAccountType.java b/src/main/java/ch/postfinance/sdk/model/BankAccountType.java
index d9be35a..c867588 100644
--- a/src/main/java/ch/postfinance/sdk/model/BankAccountType.java
+++ b/src/main/java/ch/postfinance/sdk/model/BankAccountType.java
@@ -57,20 +57,20 @@ public class BankAccountType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -87,10 +87,10 @@ public Map getIdentifierName() {
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/BankTransaction.java b/src/main/java/ch/postfinance/sdk/model/BankTransaction.java
index 99600d3..384f09b 100644
--- a/src/main/java/ch/postfinance/sdk/model/BankTransaction.java
+++ b/src/main/java/ch/postfinance/sdk/model/BankTransaction.java
@@ -138,10 +138,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -178,30 +178,30 @@ public BankTransactionFlowDirection getFlowDirection() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -238,10 +238,10 @@ public Long getSource() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public BankTransactionState getState() {
return state;
}
@@ -288,10 +288,10 @@ public OffsetDateTime getValueDate() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/BankTransactionSource.java b/src/main/java/ch/postfinance/sdk/model/BankTransactionSource.java
index 0d70bff..d9c3587 100644
--- a/src/main/java/ch/postfinance/sdk/model/BankTransactionSource.java
+++ b/src/main/java/ch/postfinance/sdk/model/BankTransactionSource.java
@@ -53,30 +53,30 @@ public class BankTransactionSource {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/BankTransactionType.java b/src/main/java/ch/postfinance/sdk/model/BankTransactionType.java
index 5729799..a4c2508 100644
--- a/src/main/java/ch/postfinance/sdk/model/BankTransactionType.java
+++ b/src/main/java/ch/postfinance/sdk/model/BankTransactionType.java
@@ -53,30 +53,30 @@ public class BankTransactionType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Charge.java b/src/main/java/ch/postfinance/sdk/model/Charge.java
index ffbf97e..4b4b537 100644
--- a/src/main/java/ch/postfinance/sdk/model/Charge.java
+++ b/src/main/java/ch/postfinance/sdk/model/Charge.java
@@ -112,20 +112,20 @@ public FailureReason getFailureReason() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -142,10 +142,10 @@ public Long getSpaceViewId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ChargeState getState() {
return state;
}
@@ -202,10 +202,10 @@ public String getUserFailureMessage() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ChargeAttempt.java b/src/main/java/ch/postfinance/sdk/model/ChargeAttempt.java
index 4ca7dbb..59a2d74 100644
--- a/src/main/java/ch/postfinance/sdk/model/ChargeAttempt.java
+++ b/src/main/java/ch/postfinance/sdk/model/ChargeAttempt.java
@@ -188,10 +188,10 @@ public PaymentConnectorConfiguration getConnectorConfiguration() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -268,10 +268,10 @@ public List getLabels() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -288,10 +288,10 @@ public OffsetDateTime getNextUpdateOn() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -328,10 +328,10 @@ public Long getSpaceViewId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ChargeAttemptState getState() {
return state;
}
@@ -398,10 +398,10 @@ public String getUserFailureMessage() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ChargeBankTransaction.java b/src/main/java/ch/postfinance/sdk/model/ChargeBankTransaction.java
index a373f7d..491a891 100644
--- a/src/main/java/ch/postfinance/sdk/model/ChargeBankTransaction.java
+++ b/src/main/java/ch/postfinance/sdk/model/ChargeBankTransaction.java
@@ -94,10 +94,10 @@ public Long getCompletion() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -144,10 +144,10 @@ public BigDecimal getTransactionCurrencyValueAmount() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ChargeFlow.java b/src/main/java/ch/postfinance/sdk/model/ChargeFlow.java
index 8607728..840fbd8 100644
--- a/src/main/java/ch/postfinance/sdk/model/ChargeFlow.java
+++ b/src/main/java/ch/postfinance/sdk/model/ChargeFlow.java
@@ -84,20 +84,20 @@ public List getConditions() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -114,10 +114,10 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -134,20 +134,20 @@ public Integer getPriority() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevel.java b/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevel.java
index 9097faf..bd4e890 100644
--- a/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevel.java
+++ b/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevel.java
@@ -103,30 +103,30 @@ public ChargeFlowLevelConfiguration getConfiguration() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ChargeFlowLevelState getState() {
return state;
}
@@ -173,10 +173,10 @@ public Transaction getTransaction() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevelConfiguration.java b/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevelConfiguration.java
index 351ec56..ac2d1f2 100644
--- a/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevelConfiguration.java
+++ b/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevelConfiguration.java
@@ -91,20 +91,20 @@ public ChargeFlow getFlow() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -131,10 +131,10 @@ public String getPeriod() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -151,10 +151,10 @@ public Integer getPriority() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -171,10 +171,10 @@ public Long getType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevelConfigurationType.java b/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevelConfigurationType.java
index 02c1366..8bfe95f 100644
--- a/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevelConfigurationType.java
+++ b/src/main/java/ch/postfinance/sdk/model/ChargeFlowLevelConfigurationType.java
@@ -57,20 +57,20 @@ public class ChargeFlowLevelConfigurationType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -87,10 +87,10 @@ public Map getLabel() {
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Condition.java b/src/main/java/ch/postfinance/sdk/model/Condition.java
index 109c87a..c6f6ec7 100644
--- a/src/main/java/ch/postfinance/sdk/model/Condition.java
+++ b/src/main/java/ch/postfinance/sdk/model/Condition.java
@@ -78,20 +78,20 @@ public Long getConditionType() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -108,30 +108,30 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ConditionType.java b/src/main/java/ch/postfinance/sdk/model/ConditionType.java
index 8504421..7ed675f 100644
--- a/src/main/java/ch/postfinance/sdk/model/ConditionType.java
+++ b/src/main/java/ch/postfinance/sdk/model/ConditionType.java
@@ -53,30 +53,30 @@ public class ConditionType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ConnectorInvocation.java b/src/main/java/ch/postfinance/sdk/model/ConnectorInvocation.java
index 17180ab..2efa792 100644
--- a/src/main/java/ch/postfinance/sdk/model/ConnectorInvocation.java
+++ b/src/main/java/ch/postfinance/sdk/model/ConnectorInvocation.java
@@ -65,20 +65,20 @@ public class ConnectorInvocation extends TransactionAwareEntity {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -115,10 +115,10 @@ public Long getTransaction() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/CurrencyBankAccount.java b/src/main/java/ch/postfinance/sdk/model/CurrencyBankAccount.java
index a1d887c..edd02f7 100644
--- a/src/main/java/ch/postfinance/sdk/model/CurrencyBankAccount.java
+++ b/src/main/java/ch/postfinance/sdk/model/CurrencyBankAccount.java
@@ -94,30 +94,30 @@ public BankAccountEnvironment getEnvironment() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Customer.java b/src/main/java/ch/postfinance/sdk/model/Customer.java
index 19ef123..7f5eec0 100644
--- a/src/main/java/ch/postfinance/sdk/model/Customer.java
+++ b/src/main/java/ch/postfinance/sdk/model/Customer.java
@@ -86,10 +86,10 @@ public class Customer {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -136,30 +136,30 @@ public String getGivenName() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -186,10 +186,10 @@ public String getPreferredCurrency() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/CustomerAddress.java b/src/main/java/ch/postfinance/sdk/model/CustomerAddress.java
index 8198fbd..f80a71f 100644
--- a/src/main/java/ch/postfinance/sdk/model/CustomerAddress.java
+++ b/src/main/java/ch/postfinance/sdk/model/CustomerAddress.java
@@ -94,10 +94,10 @@ public CustomerAddressType getAddressType() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -124,30 +124,30 @@ public Boolean isDefaultAddress() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/CustomerComment.java b/src/main/java/ch/postfinance/sdk/model/CustomerComment.java
index 8b10109..662a600 100644
--- a/src/main/java/ch/postfinance/sdk/model/CustomerComment.java
+++ b/src/main/java/ch/postfinance/sdk/model/CustomerComment.java
@@ -99,10 +99,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -139,20 +139,20 @@ public OffsetDateTime getEditedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -169,10 +169,10 @@ public Boolean isPinned() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/DeliveryIndication.java b/src/main/java/ch/postfinance/sdk/model/DeliveryIndication.java
index d27b90d..e4d6943 100644
--- a/src/main/java/ch/postfinance/sdk/model/DeliveryIndication.java
+++ b/src/main/java/ch/postfinance/sdk/model/DeliveryIndication.java
@@ -117,10 +117,10 @@ public Long getCompletion() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -157,20 +157,20 @@ public OffsetDateTime getManuallyDecidedOn() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public DeliveryIndicationState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/DeliveryIndicationDecisionReason.java b/src/main/java/ch/postfinance/sdk/model/DeliveryIndicationDecisionReason.java
index 2acd64e..3a4296c 100644
--- a/src/main/java/ch/postfinance/sdk/model/DeliveryIndicationDecisionReason.java
+++ b/src/main/java/ch/postfinance/sdk/model/DeliveryIndicationDecisionReason.java
@@ -53,30 +53,30 @@ public class DeliveryIndicationDecisionReason {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/DocumentTemplate.java b/src/main/java/ch/postfinance/sdk/model/DocumentTemplate.java
index 9489488..735deca 100644
--- a/src/main/java/ch/postfinance/sdk/model/DocumentTemplate.java
+++ b/src/main/java/ch/postfinance/sdk/model/DocumentTemplate.java
@@ -105,20 +105,20 @@ public Boolean isDeliveryEnabled() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -135,10 +135,10 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -155,10 +155,10 @@ public Long getSpaceId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -185,10 +185,10 @@ public Long getType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/DocumentTemplateType.java b/src/main/java/ch/postfinance/sdk/model/DocumentTemplateType.java
index 7129912..f64a28d 100644
--- a/src/main/java/ch/postfinance/sdk/model/DocumentTemplateType.java
+++ b/src/main/java/ch/postfinance/sdk/model/DocumentTemplateType.java
@@ -92,10 +92,10 @@ public DocumentTemplateTypeGroup getGroup() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/DocumentTemplateTypeGroup.java b/src/main/java/ch/postfinance/sdk/model/DocumentTemplateTypeGroup.java
index 15891c8..87e3ef5 100644
--- a/src/main/java/ch/postfinance/sdk/model/DocumentTemplateTypeGroup.java
+++ b/src/main/java/ch/postfinance/sdk/model/DocumentTemplateTypeGroup.java
@@ -49,10 +49,10 @@ public class DocumentTemplateTypeGroup {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ExternalTransferBankTransaction.java b/src/main/java/ch/postfinance/sdk/model/ExternalTransferBankTransaction.java
index 82cece2..ae92b3c 100644
--- a/src/main/java/ch/postfinance/sdk/model/ExternalTransferBankTransaction.java
+++ b/src/main/java/ch/postfinance/sdk/model/ExternalTransferBankTransaction.java
@@ -107,30 +107,30 @@ public String getExternalBankName() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/FailureReason.java b/src/main/java/ch/postfinance/sdk/model/FailureReason.java
index 50b6cd2..c2781cf 100644
--- a/src/main/java/ch/postfinance/sdk/model/FailureReason.java
+++ b/src/main/java/ch/postfinance/sdk/model/FailureReason.java
@@ -73,10 +73,10 @@ public FailureCategory getCategory() {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -93,20 +93,20 @@ public List getFeatures() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Feature.java b/src/main/java/ch/postfinance/sdk/model/Feature.java
index b683a92..4807ed4 100644
--- a/src/main/java/ch/postfinance/sdk/model/Feature.java
+++ b/src/main/java/ch/postfinance/sdk/model/Feature.java
@@ -99,20 +99,20 @@ public FeatureCategory getCategory() {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -129,10 +129,10 @@ public String getLogoPath() {
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/FeatureCategory.java b/src/main/java/ch/postfinance/sdk/model/FeatureCategory.java
index 7eb38e5..bebd284 100644
--- a/src/main/java/ch/postfinance/sdk/model/FeatureCategory.java
+++ b/src/main/java/ch/postfinance/sdk/model/FeatureCategory.java
@@ -57,30 +57,30 @@ public class FeatureCategory {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/InternalTransferBankTransaction.java b/src/main/java/ch/postfinance/sdk/model/InternalTransferBankTransaction.java
index 5675734..7d2355a 100644
--- a/src/main/java/ch/postfinance/sdk/model/InternalTransferBankTransaction.java
+++ b/src/main/java/ch/postfinance/sdk/model/InternalTransferBankTransaction.java
@@ -59,20 +59,20 @@ public class InternalTransferBankTransaction {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -99,10 +99,10 @@ public BankTransaction getTargetBankTransaction() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecord.java b/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecord.java
index c1c0155..e8ab687 100644
--- a/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecord.java
+++ b/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecord.java
@@ -206,10 +206,10 @@ public String getCountry() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -336,10 +336,10 @@ public String getPaymentReason() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -406,10 +406,10 @@ public String getSenderBankAccount() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public InvoiceReconciliationRecordState getState() {
return state;
}
@@ -456,10 +456,10 @@ public OffsetDateTime getValueDate() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecordInvoiceLink.java b/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecordInvoiceLink.java
index 18b666d..44329ed 100644
--- a/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecordInvoiceLink.java
+++ b/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecordInvoiceLink.java
@@ -76,20 +76,20 @@ public BigDecimal getAmount() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -106,10 +106,10 @@ public TransactionInvoice getInvoice() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecordType.java b/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecordType.java
index 9420664..7e51e01 100644
--- a/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecordType.java
+++ b/src/main/java/ch/postfinance/sdk/model/InvoiceReconciliationRecordType.java
@@ -53,30 +53,30 @@ public class InvoiceReconciliationRecordType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/InvoiceReimbursement.java b/src/main/java/ch/postfinance/sdk/model/InvoiceReimbursement.java
index 8c9e151..5f05e65 100644
--- a/src/main/java/ch/postfinance/sdk/model/InvoiceReimbursement.java
+++ b/src/main/java/ch/postfinance/sdk/model/InvoiceReimbursement.java
@@ -137,10 +137,10 @@ public BigDecimal getAmount() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -177,20 +177,20 @@ public OffsetDateTime getDiscardedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -317,20 +317,20 @@ public String getSenderIban() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public InvoiceReimbursementState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Label.java b/src/main/java/ch/postfinance/sdk/model/Label.java
index 2eb55ff..474c8ee 100644
--- a/src/main/java/ch/postfinance/sdk/model/Label.java
+++ b/src/main/java/ch/postfinance/sdk/model/Label.java
@@ -89,20 +89,20 @@ public LabelDescriptor getDescriptor() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/LabelDescriptor.java b/src/main/java/ch/postfinance/sdk/model/LabelDescriptor.java
index f8766d2..a3fa7df 100644
--- a/src/main/java/ch/postfinance/sdk/model/LabelDescriptor.java
+++ b/src/main/java/ch/postfinance/sdk/model/LabelDescriptor.java
@@ -85,10 +85,10 @@ public LabelDescriptorCategory getCategory() {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -115,20 +115,20 @@ public Long getGroup() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/LabelDescriptorGroup.java b/src/main/java/ch/postfinance/sdk/model/LabelDescriptorGroup.java
index 5708a91..8a90489 100644
--- a/src/main/java/ch/postfinance/sdk/model/LabelDescriptorGroup.java
+++ b/src/main/java/ch/postfinance/sdk/model/LabelDescriptorGroup.java
@@ -57,30 +57,30 @@ public class LabelDescriptorGroup {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/LabelDescriptorType.java b/src/main/java/ch/postfinance/sdk/model/LabelDescriptorType.java
index 4f170d3..47719aa 100644
--- a/src/main/java/ch/postfinance/sdk/model/LabelDescriptorType.java
+++ b/src/main/java/ch/postfinance/sdk/model/LabelDescriptorType.java
@@ -53,30 +53,30 @@ public class LabelDescriptorType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/LegalOrganizationForm.java b/src/main/java/ch/postfinance/sdk/model/LegalOrganizationForm.java
index 02d2b96..c005bfc 100644
--- a/src/main/java/ch/postfinance/sdk/model/LegalOrganizationForm.java
+++ b/src/main/java/ch/postfinance/sdk/model/LegalOrganizationForm.java
@@ -91,10 +91,10 @@ public String getEnglishDescription() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ManualTask.java b/src/main/java/ch/postfinance/sdk/model/ManualTask.java
index 5985d08..8fc7886 100644
--- a/src/main/java/ch/postfinance/sdk/model/ManualTask.java
+++ b/src/main/java/ch/postfinance/sdk/model/ManualTask.java
@@ -102,10 +102,10 @@ public Long getContextEntityId() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -122,30 +122,30 @@ public OffsetDateTime getExpiresOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -162,10 +162,10 @@ public Long getSpaceId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ManualTaskState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ManualTaskAction.java b/src/main/java/ch/postfinance/sdk/model/ManualTaskAction.java
index 6126a8e..5e7430c 100644
--- a/src/main/java/ch/postfinance/sdk/model/ManualTaskAction.java
+++ b/src/main/java/ch/postfinance/sdk/model/ManualTaskAction.java
@@ -58,10 +58,10 @@ public class ManualTaskAction {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ManualTaskType.java b/src/main/java/ch/postfinance/sdk/model/ManualTaskType.java
index abda5c0..2827415 100644
--- a/src/main/java/ch/postfinance/sdk/model/ManualTaskType.java
+++ b/src/main/java/ch/postfinance/sdk/model/ManualTaskType.java
@@ -58,10 +58,10 @@ public class ManualTaskType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -78,20 +78,20 @@ public List getFeatures() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentAdjustmentType.java b/src/main/java/ch/postfinance/sdk/model/PaymentAdjustmentType.java
index a3d0a45..79037b3 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentAdjustmentType.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentAdjustmentType.java
@@ -53,30 +53,30 @@ public class PaymentAdjustmentType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentConnector.java b/src/main/java/ch/postfinance/sdk/model/PaymentConnector.java
index d43fb56..3a078d3 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentConnector.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentConnector.java
@@ -129,10 +129,10 @@ public Map getDeprecationReason() {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -149,20 +149,20 @@ public Feature getFeature() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentConnectorConfiguration.java b/src/main/java/ch/postfinance/sdk/model/PaymentConnectorConfiguration.java
index cdce248..e07bb74 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentConnectorConfiguration.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentConnectorConfiguration.java
@@ -151,20 +151,20 @@ public List getEnabledSpaceViews() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -191,10 +191,10 @@ public PaymentMethodConfiguration getPaymentMethodConfiguration() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -221,20 +221,20 @@ public PaymentProcessorConfiguration getProcessorConfiguration() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentConnectorFeature.java b/src/main/java/ch/postfinance/sdk/model/PaymentConnectorFeature.java
index 39ea82d..61662f1 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentConnectorFeature.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentConnectorFeature.java
@@ -71,10 +71,10 @@ public Feature getFeature() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentContract.java b/src/main/java/ch/postfinance/sdk/model/PaymentContract.java
index dd4f3d7..6f296ae 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentContract.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentContract.java
@@ -154,10 +154,10 @@ public User getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -174,10 +174,10 @@ public String getExternalId() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -214,10 +214,10 @@ public OffsetDateTime getStartTerminatingOn() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public PaymentContractState getState() {
return state;
}
@@ -244,10 +244,10 @@ public OffsetDateTime getTerminatedOn() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentContractType.java b/src/main/java/ch/postfinance/sdk/model/PaymentContractType.java
index 964b39c..e450123 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentContractType.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentContractType.java
@@ -58,10 +58,10 @@ public class PaymentContractType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -78,20 +78,20 @@ public Feature getFeature() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentInformationHash.java b/src/main/java/ch/postfinance/sdk/model/PaymentInformationHash.java
index ed4e2ba..5946b90 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentInformationHash.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentInformationHash.java
@@ -51,10 +51,10 @@ public class PaymentInformationHash {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentInformationHashType.java b/src/main/java/ch/postfinance/sdk/model/PaymentInformationHashType.java
index ea966d6..fbf0a6b 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentInformationHashType.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentInformationHashType.java
@@ -49,10 +49,10 @@ public class PaymentInformationHashType {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentInitiationAdviceFile.java b/src/main/java/ch/postfinance/sdk/model/PaymentInitiationAdviceFile.java
index ec6a2e1..1344978 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentInitiationAdviceFile.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentInitiationAdviceFile.java
@@ -121,20 +121,20 @@ public OffsetDateTime getForwardedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -171,10 +171,10 @@ public PaymentProcessor getProcessor() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public PaymentInitiationAdviceFileState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentLink.java b/src/main/java/ch/postfinance/sdk/model/PaymentLink.java
index 20ffde6..a2d2687 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentLink.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentLink.java
@@ -192,10 +192,10 @@ public String getExternalId() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -222,10 +222,10 @@ public List getLineItems() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -252,10 +252,10 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -282,10 +282,10 @@ public PaymentLinkAddressHandlingMode getShippingAddressHandlingMode() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -302,10 +302,10 @@ public String getUrl() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentLinkActive.java b/src/main/java/ch/postfinance/sdk/model/PaymentLinkActive.java
index 04f84eb..87cddf9 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentLinkActive.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentLinkActive.java
@@ -50,10 +50,10 @@ public PaymentLinkActive state(CreationEntityState state) {
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentLinkCreate.java b/src/main/java/ch/postfinance/sdk/model/PaymentLinkCreate.java
index 517e0bf..fff5f57 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentLinkCreate.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentLinkCreate.java
@@ -59,10 +59,10 @@ public PaymentLinkCreate state(CreationEntityState state) {
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentMethod.java b/src/main/java/ch/postfinance/sdk/model/PaymentMethod.java
index 9069aa3..433aceb 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentMethod.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentMethod.java
@@ -81,20 +81,20 @@ public List getDataCollectionTypes() {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -121,10 +121,10 @@ public Map getMerchantDescription() {
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentMethodBrand.java b/src/main/java/ch/postfinance/sdk/model/PaymentMethodBrand.java
index 89783ec..3462e7b 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentMethodBrand.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentMethodBrand.java
@@ -65,10 +65,10 @@ public class PaymentMethodBrand {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -85,10 +85,10 @@ public String getGrayImagePath() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -105,10 +105,10 @@ public String getImagePath() {
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentMethodConfiguration.java b/src/main/java/ch/postfinance/sdk/model/PaymentMethodConfiguration.java
index 14a5aee..132b497 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentMethodConfiguration.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentMethodConfiguration.java
@@ -135,10 +135,10 @@ public DatabaseTranslatedString getDescription() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -155,10 +155,10 @@ public ResourcePath getImageResourcePath() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -195,10 +195,10 @@ public Long getPaymentMethod() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -255,10 +255,10 @@ public Long getSpaceId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -275,10 +275,10 @@ public DatabaseTranslatedString getTitle() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentProcessor.java b/src/main/java/ch/postfinance/sdk/model/PaymentProcessor.java
index 6286816..1a026d7 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentProcessor.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentProcessor.java
@@ -83,10 +83,10 @@ public Map getCompanyName() {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -113,10 +113,10 @@ public Map getHeadquartersLocation() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -133,10 +133,10 @@ public String getLogoPath() {
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentProcessorConfiguration.java b/src/main/java/ch/postfinance/sdk/model/PaymentProcessorConfiguration.java
index a7dd232..b3effe6 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentProcessorConfiguration.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentProcessorConfiguration.java
@@ -96,20 +96,20 @@ public Long getContractId() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -126,10 +126,10 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -146,20 +146,20 @@ public Long getProcessor() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminal.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminal.java
index a8e0b85..8cffbae 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminal.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminal.java
@@ -121,10 +121,10 @@ public String getExternalId() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -141,10 +141,10 @@ public String getIdentifier() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -171,20 +171,20 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public PaymentTerminalState getState() {
return state;
}
@@ -201,10 +201,10 @@ public PaymentTerminalType getType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalConfiguration.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalConfiguration.java
index 5ca6cf7..2df0556 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalConfiguration.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalConfiguration.java
@@ -69,20 +69,20 @@ public class PaymentTerminalConfiguration {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -99,20 +99,20 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public PaymentTerminalConfigurationState getState() {
return state;
}
@@ -129,10 +129,10 @@ public PaymentTerminalType getType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalConfigurationVersion.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalConfigurationVersion.java
index 7c688a8..d297af9 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalConfigurationVersion.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalConfigurationVersion.java
@@ -129,10 +129,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -149,20 +149,20 @@ public String getDefaultCurrency() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -189,20 +189,20 @@ public String getMaintenanceWindowStart() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public PaymentTerminalConfigurationVersionState getState() {
return state;
}
@@ -219,10 +219,10 @@ public String getTimeZone() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalDccTransactionSum.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalDccTransactionSum.java
index 29b3b0e..c35fd19 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalDccTransactionSum.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalDccTransactionSum.java
@@ -101,10 +101,10 @@ public String getDccCurrency() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -141,10 +141,10 @@ public String getTransactionCurrency() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalLocation.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalLocation.java
index 15d3a5f..833a8a9 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalLocation.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalLocation.java
@@ -78,20 +78,20 @@ public String getExternalId() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -108,30 +108,30 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public PaymentTerminalLocationState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalLocationVersion.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalLocationVersion.java
index 8b6379c..78a1a89 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalLocationVersion.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalLocationVersion.java
@@ -116,30 +116,30 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -156,30 +156,30 @@ public PaymentTerminalLocation getLocation() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public PaymentTerminalLocationVersionState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalReceiptType.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalReceiptType.java
index e67976c..10e9116 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalReceiptType.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalReceiptType.java
@@ -53,30 +53,30 @@ public class PaymentTerminalReceiptType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalTransactionSum.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalTransactionSum.java
index 83ac9a0..18879da 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalTransactionSum.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalTransactionSum.java
@@ -123,10 +123,10 @@ public Integer getDccTransactionCount() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -183,10 +183,10 @@ public BigDecimal getTransactionTipAmount() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalTransactionSummary.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalTransactionSummary.java
index 19fb030..293cf80 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalTransactionSummary.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalTransactionSummary.java
@@ -103,20 +103,20 @@ public OffsetDateTime getEndedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -173,10 +173,10 @@ public List getTransactionSums() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalType.java b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalType.java
index 863eb89..b27c082 100644
--- a/src/main/java/ch/postfinance/sdk/model/PaymentTerminalType.java
+++ b/src/main/java/ch/postfinance/sdk/model/PaymentTerminalType.java
@@ -53,30 +53,30 @@ public class PaymentTerminalType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Permission.java b/src/main/java/ch/postfinance/sdk/model/Permission.java
index 66f7d20..c68b910 100644
--- a/src/main/java/ch/postfinance/sdk/model/Permission.java
+++ b/src/main/java/ch/postfinance/sdk/model/Permission.java
@@ -86,10 +86,10 @@ public class Permission {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -116,10 +116,10 @@ public Boolean isGroup() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -136,10 +136,10 @@ public Boolean isLeaf() {
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Refund.java b/src/main/java/ch/postfinance/sdk/model/Refund.java
index 913abbc..069869b 100644
--- a/src/main/java/ch/postfinance/sdk/model/Refund.java
+++ b/src/main/java/ch/postfinance/sdk/model/Refund.java
@@ -219,10 +219,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -269,10 +269,10 @@ public FailureReason getFailureReason() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -289,10 +289,10 @@ public List getLabels() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -309,10 +309,10 @@ public List getLineItems() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -339,10 +339,10 @@ public OffsetDateTime getNextUpdateOn() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -389,10 +389,10 @@ public List getReductions() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public RefundState getState() {
return state;
}
@@ -489,10 +489,10 @@ public Long getUpdatedInvoice() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/RefundBankTransaction.java b/src/main/java/ch/postfinance/sdk/model/RefundBankTransaction.java
index e853485..2b62a32 100644
--- a/src/main/java/ch/postfinance/sdk/model/RefundBankTransaction.java
+++ b/src/main/java/ch/postfinance/sdk/model/RefundBankTransaction.java
@@ -80,10 +80,10 @@ public BankTransaction getBankTransaction() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -130,10 +130,10 @@ public Long getSpaceViewId() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/RefundComment.java b/src/main/java/ch/postfinance/sdk/model/RefundComment.java
index 8baffe3..899bf77 100644
--- a/src/main/java/ch/postfinance/sdk/model/RefundComment.java
+++ b/src/main/java/ch/postfinance/sdk/model/RefundComment.java
@@ -99,10 +99,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -129,20 +129,20 @@ public OffsetDateTime getEditedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -169,10 +169,10 @@ public Long getRefund() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/RefundRecoveryBankTransaction.java b/src/main/java/ch/postfinance/sdk/model/RefundRecoveryBankTransaction.java
index 2720d67..3e5ca0a 100644
--- a/src/main/java/ch/postfinance/sdk/model/RefundRecoveryBankTransaction.java
+++ b/src/main/java/ch/postfinance/sdk/model/RefundRecoveryBankTransaction.java
@@ -87,10 +87,10 @@ public BankTransaction getBankTransaction() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -147,10 +147,10 @@ public Long getSpaceViewId() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ResourcePath.java b/src/main/java/ch/postfinance/sdk/model/ResourcePath.java
index 74690de..32faa4f 100644
--- a/src/main/java/ch/postfinance/sdk/model/ResourcePath.java
+++ b/src/main/java/ch/postfinance/sdk/model/ResourcePath.java
@@ -68,20 +68,20 @@ public class ResourcePath {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -98,10 +98,10 @@ public String getPath() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -118,20 +118,20 @@ public Long getSpaceId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ResourceState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Role.java b/src/main/java/ch/postfinance/sdk/model/Role.java
index 7c59a92..dd0d6da 100644
--- a/src/main/java/ch/postfinance/sdk/model/Role.java
+++ b/src/main/java/ch/postfinance/sdk/model/Role.java
@@ -87,10 +87,10 @@ public Account getAccount() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -117,20 +117,20 @@ public List getPermissions() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public RoleState getState() {
return state;
}
@@ -147,10 +147,10 @@ public Boolean isTwoFactorRequired() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/SalesChannel.java b/src/main/java/ch/postfinance/sdk/model/SalesChannel.java
index 318e9a0..4610758 100644
--- a/src/main/java/ch/postfinance/sdk/model/SalesChannel.java
+++ b/src/main/java/ch/postfinance/sdk/model/SalesChannel.java
@@ -66,10 +66,10 @@ public class SalesChannel {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -86,20 +86,20 @@ public String getIcon() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Scope.java b/src/main/java/ch/postfinance/sdk/model/Scope.java
index 67d408e..8db12c1 100644
--- a/src/main/java/ch/postfinance/sdk/model/Scope.java
+++ b/src/main/java/ch/postfinance/sdk/model/Scope.java
@@ -111,10 +111,10 @@ public List getFeatures() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -141,10 +141,10 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -171,10 +171,10 @@ public Boolean isSslActive() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -201,10 +201,10 @@ public String getUrl() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifyIntegration.java b/src/main/java/ch/postfinance/sdk/model/ShopifyIntegration.java
index 9ba898e..6843bd0 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifyIntegration.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifyIntegration.java
@@ -182,10 +182,10 @@ public String getCurrency() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -262,10 +262,10 @@ public String getPaymentProxyPath() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -332,10 +332,10 @@ public Long getSpaceViewId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -372,10 +372,10 @@ public String getSubscriptionProxyPath() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifyRecurringOrder.java b/src/main/java/ch/postfinance/sdk/model/ShopifyRecurringOrder.java
index c48bcd6..c65283e 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifyRecurringOrder.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifyRecurringOrder.java
@@ -170,10 +170,10 @@ public OffsetDateTime getPlannedExecutionDate() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -210,10 +210,10 @@ public OffsetDateTime getStartedProcessingOn() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ShopifyRecurringOrderState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifySubscriber.java b/src/main/java/ch/postfinance/sdk/model/ShopifySubscriber.java
index d20e0e2..bf3d59b 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifySubscriber.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifySubscriber.java
@@ -110,20 +110,20 @@ public String getExternalId() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -140,10 +140,10 @@ public String getPhoneNumber() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -160,20 +160,20 @@ public Long getShop() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ShopifySubscriberState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifySubscription.java b/src/main/java/ch/postfinance/sdk/model/ShopifySubscription.java
index abd6454..6fe0fd8 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifySubscription.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifySubscription.java
@@ -139,10 +139,10 @@ public String getExternalId() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -179,20 +179,20 @@ public Long getInitialShopifyTransaction() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -219,10 +219,10 @@ public Long getShop() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ShopifySubscriptionState getState() {
return state;
}
@@ -269,10 +269,10 @@ public OffsetDateTime getTerminationRequestDate() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionProduct.java b/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionProduct.java
index b59b7a7..0074f88 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionProduct.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionProduct.java
@@ -220,20 +220,20 @@ public BigDecimal getFixedPrice() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -270,10 +270,10 @@ public Integer getMinimalBillingCycles() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -380,10 +380,10 @@ public Long getShop() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ShopifySubscriptionProductState getState() {
return state;
}
@@ -440,10 +440,10 @@ public OffsetDateTime getUpdatedAt() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionSuspension.java b/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionSuspension.java
index a3bbddf..519d979 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionSuspension.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionSuspension.java
@@ -135,10 +135,10 @@ public OffsetDateTime getEndedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -155,10 +155,10 @@ public ShopifySubscriptionSuspensionInitiator getInitiator() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -185,10 +185,10 @@ public Long getShop() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ShopifySubscriptionSuspensionState getState() {
return state;
}
@@ -215,10 +215,10 @@ public ShopifySubscriptionSuspensionType getType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionVersion.java b/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionVersion.java
index 316024a..e84920a 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionVersion.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifySubscriptionVersion.java
@@ -269,10 +269,10 @@ public OffsetDateTime getDischargedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -289,10 +289,10 @@ public List getItems() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -369,10 +369,10 @@ public Long getShop() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public ShopifySubscriptionVersionState getState() {
return state;
}
@@ -429,10 +429,10 @@ public Long getToken() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifyTaxLine.java b/src/main/java/ch/postfinance/sdk/model/ShopifyTaxLine.java
index d9f417a..35d1326 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifyTaxLine.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifyTaxLine.java
@@ -69,10 +69,10 @@ public BigDecimal getFractionRate() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -99,10 +99,10 @@ public String getTitle() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/ShopifyTransaction.java b/src/main/java/ch/postfinance/sdk/model/ShopifyTransaction.java
index 9c09444..db198bb 100644
--- a/src/main/java/ch/postfinance/sdk/model/ShopifyTransaction.java
+++ b/src/main/java/ch/postfinance/sdk/model/ShopifyTransaction.java
@@ -89,10 +89,10 @@ public String getCheckoutId() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -129,10 +129,10 @@ public String getOrderName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -159,10 +159,10 @@ public Transaction getTransaction() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Space.java b/src/main/java/ch/postfinance/sdk/model/Space.java
index 72cf4a7..2ed766f 100644
--- a/src/main/java/ch/postfinance/sdk/model/Space.java
+++ b/src/main/java/ch/postfinance/sdk/model/Space.java
@@ -205,20 +205,20 @@ public OffsetDateTime getDeletedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The date and time when the object was last modified.
* @return lastModifiedDate
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The date and time when the object was last modified.")
public OffsetDateTime getLastModifiedDate() {
return lastModifiedDate;
}
@@ -235,10 +235,10 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -285,10 +285,10 @@ public Boolean isRestrictedActive() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -315,10 +315,10 @@ public String getTimeZone() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/SpaceView.java b/src/main/java/ch/postfinance/sdk/model/SpaceView.java
index 8d65627..8352aec 100644
--- a/src/main/java/ch/postfinance/sdk/model/SpaceView.java
+++ b/src/main/java/ch/postfinance/sdk/model/SpaceView.java
@@ -69,20 +69,20 @@ public class SpaceView {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -99,10 +99,10 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -119,20 +119,20 @@ public Space getSpace() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/StaticValue.java b/src/main/java/ch/postfinance/sdk/model/StaticValue.java
index b40671d..f319981 100644
--- a/src/main/java/ch/postfinance/sdk/model/StaticValue.java
+++ b/src/main/java/ch/postfinance/sdk/model/StaticValue.java
@@ -58,10 +58,10 @@ public class StaticValue {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -78,20 +78,20 @@ public List getFeatures() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TenantDatabase.java b/src/main/java/ch/postfinance/sdk/model/TenantDatabase.java
index b17568f..4b45e2d 100644
--- a/src/main/java/ch/postfinance/sdk/model/TenantDatabase.java
+++ b/src/main/java/ch/postfinance/sdk/model/TenantDatabase.java
@@ -50,10 +50,10 @@ public class TenantDatabase {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -70,10 +70,10 @@ public String getName() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Token.java b/src/main/java/ch/postfinance/sdk/model/Token.java
index d0ae4ff..565a3b4 100644
--- a/src/main/java/ch/postfinance/sdk/model/Token.java
+++ b/src/main/java/ch/postfinance/sdk/model/Token.java
@@ -92,10 +92,10 @@ public class Token {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -142,50 +142,50 @@ public String getExternalId() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -212,10 +212,10 @@ public String getTokenReference() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TokenCreate.java b/src/main/java/ch/postfinance/sdk/model/TokenCreate.java
index 54fd737..0693777 100644
--- a/src/main/java/ch/postfinance/sdk/model/TokenCreate.java
+++ b/src/main/java/ch/postfinance/sdk/model/TokenCreate.java
@@ -72,10 +72,10 @@ public TokenCreate state(CreationEntityState state) {
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TokenVersion.java b/src/main/java/ch/postfinance/sdk/model/TokenVersion.java
index d21a740..a1fe2dc 100644
--- a/src/main/java/ch/postfinance/sdk/model/TokenVersion.java
+++ b/src/main/java/ch/postfinance/sdk/model/TokenVersion.java
@@ -161,10 +161,10 @@ public Address getBillingAddress() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -201,10 +201,10 @@ public String getIconUrl() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -221,20 +221,20 @@ public List getLabels() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -301,10 +301,10 @@ public Long getPaymentMethodBrand() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -331,10 +331,10 @@ public Address getShippingAddress() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public TokenVersionState getState() {
return state;
}
@@ -361,10 +361,10 @@ public TokenVersionType getType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TokenVersionType.java b/src/main/java/ch/postfinance/sdk/model/TokenVersionType.java
index 1614f85..7a9a26d 100644
--- a/src/main/java/ch/postfinance/sdk/model/TokenVersionType.java
+++ b/src/main/java/ch/postfinance/sdk/model/TokenVersionType.java
@@ -58,10 +58,10 @@ public class TokenVersionType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -78,20 +78,20 @@ public Feature getFeature() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/Transaction.java b/src/main/java/ch/postfinance/sdk/model/Transaction.java
index e6d1b70..fed36bc 100644
--- a/src/main/java/ch/postfinance/sdk/model/Transaction.java
+++ b/src/main/java/ch/postfinance/sdk/model/Transaction.java
@@ -529,10 +529,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -679,10 +679,10 @@ public TransactionGroup getGroup() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -729,10 +729,10 @@ public Boolean isJavaEnabled() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -749,10 +749,10 @@ public List getLineItems() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -799,10 +799,10 @@ public PaymentConnectorConfiguration getPaymentConnectorConfiguration() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -889,10 +889,10 @@ public Long getSpaceViewId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public TransactionState getState() {
return state;
}
@@ -999,10 +999,10 @@ public TransactionUserInterfaceType getUserInterfaceType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TransactionAwareEntity.java b/src/main/java/ch/postfinance/sdk/model/TransactionAwareEntity.java
index 211c38e..ce59d9d 100644
--- a/src/main/java/ch/postfinance/sdk/model/TransactionAwareEntity.java
+++ b/src/main/java/ch/postfinance/sdk/model/TransactionAwareEntity.java
@@ -50,20 +50,20 @@ public class TransactionAwareEntity {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TransactionComment.java b/src/main/java/ch/postfinance/sdk/model/TransactionComment.java
index 5e57406..6314c8f 100644
--- a/src/main/java/ch/postfinance/sdk/model/TransactionComment.java
+++ b/src/main/java/ch/postfinance/sdk/model/TransactionComment.java
@@ -99,10 +99,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -129,20 +129,20 @@ public OffsetDateTime getEditedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -169,10 +169,10 @@ public Long getTransaction() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TransactionCompletion.java b/src/main/java/ch/postfinance/sdk/model/TransactionCompletion.java
index ca9d5db..378af9d 100644
--- a/src/main/java/ch/postfinance/sdk/model/TransactionCompletion.java
+++ b/src/main/java/ch/postfinance/sdk/model/TransactionCompletion.java
@@ -191,10 +191,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -251,10 +251,10 @@ public List getLabels() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -321,10 +321,10 @@ public String getPaymentInformation() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -371,10 +371,10 @@ public Long getSpaceViewId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public TransactionCompletionState getState() {
return state;
}
@@ -431,10 +431,10 @@ public OffsetDateTime getTimeoutOn() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TransactionGroup.java b/src/main/java/ch/postfinance/sdk/model/TransactionGroup.java
index ac89251..a9ab7a4 100644
--- a/src/main/java/ch/postfinance/sdk/model/TransactionGroup.java
+++ b/src/main/java/ch/postfinance/sdk/model/TransactionGroup.java
@@ -102,50 +102,50 @@ public OffsetDateTime getEndDate() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public TransactionGroupState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TransactionInvoice.java b/src/main/java/ch/postfinance/sdk/model/TransactionInvoice.java
index 0c2714d..da42871 100644
--- a/src/main/java/ch/postfinance/sdk/model/TransactionInvoice.java
+++ b/src/main/java/ch/postfinance/sdk/model/TransactionInvoice.java
@@ -218,10 +218,10 @@ public String getExternalId() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -268,10 +268,10 @@ public OffsetDateTime getPaidOn() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -288,10 +288,10 @@ public Long getSpaceViewId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public TransactionInvoiceState getState() {
return state;
}
@@ -318,10 +318,10 @@ public String getTimeZone() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TransactionInvoiceComment.java b/src/main/java/ch/postfinance/sdk/model/TransactionInvoiceComment.java
index 30f510b..50f675c 100644
--- a/src/main/java/ch/postfinance/sdk/model/TransactionInvoiceComment.java
+++ b/src/main/java/ch/postfinance/sdk/model/TransactionInvoiceComment.java
@@ -99,10 +99,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -129,20 +129,20 @@ public OffsetDateTime getEditedOn() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -169,10 +169,10 @@ public Long getTransactionInvoice() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TransactionLineItemVersion.java b/src/main/java/ch/postfinance/sdk/model/TransactionLineItemVersion.java
index d4fa905..a0e3c37 100644
--- a/src/main/java/ch/postfinance/sdk/model/TransactionLineItemVersion.java
+++ b/src/main/java/ch/postfinance/sdk/model/TransactionLineItemVersion.java
@@ -144,10 +144,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -194,10 +194,10 @@ public List getLabels() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -224,10 +224,10 @@ public OffsetDateTime getNextUpdateOn() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -254,10 +254,10 @@ public Long getSpaceViewId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public TransactionLineItemVersionState getState() {
return state;
}
@@ -304,10 +304,10 @@ public Transaction getTransaction() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TransactionVoid.java b/src/main/java/ch/postfinance/sdk/model/TransactionVoid.java
index 9f4af1a..a34563e 100644
--- a/src/main/java/ch/postfinance/sdk/model/TransactionVoid.java
+++ b/src/main/java/ch/postfinance/sdk/model/TransactionVoid.java
@@ -121,10 +121,10 @@ public Long getCreatedBy() {
/**
- * The created on date indicates the date on which the entity was stored into the database.
+ * The date and time when the object was created.
* @return createdOn
**/
- @ApiModelProperty(value = "The created on date indicates the date on which the entity was stored into the database.")
+ @ApiModelProperty(value = "The date and time when the object was created.")
public OffsetDateTime getCreatedOn() {
return createdOn;
}
@@ -161,10 +161,10 @@ public List getLabels() {
/**
- *
+ * The language that is linked to the object.
* @return language
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The language that is linked to the object.")
public String getLanguage() {
return language;
}
@@ -191,10 +191,10 @@ public OffsetDateTime getNextUpdateOn() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -221,10 +221,10 @@ public Long getSpaceViewId() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public TransactionVoidState getState() {
return state;
}
@@ -261,10 +261,10 @@ public Transaction getTransaction() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/TwoFactorAuthenticationType.java b/src/main/java/ch/postfinance/sdk/model/TwoFactorAuthenticationType.java
index 5281781..1b830d5 100644
--- a/src/main/java/ch/postfinance/sdk/model/TwoFactorAuthenticationType.java
+++ b/src/main/java/ch/postfinance/sdk/model/TwoFactorAuthenticationType.java
@@ -61,10 +61,10 @@ public class TwoFactorAuthenticationType {
/**
- *
+ * The description of the object translated into different languages.
* @return description
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The description of the object translated into different languages.")
public Map getDescription() {
return description;
}
@@ -91,20 +91,20 @@ public String getIcon() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- *
+ * The name of the object translated into different languages.
* @return name
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The name of the object translated into different languages.")
public Map getName() {
return name;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/User.java b/src/main/java/ch/postfinance/sdk/model/User.java
index 286a44a..00ffa51 100644
--- a/src/main/java/ch/postfinance/sdk/model/User.java
+++ b/src/main/java/ch/postfinance/sdk/model/User.java
@@ -66,20 +66,20 @@ public class User {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
@@ -96,10 +96,10 @@ public Scope getScope() {
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -116,10 +116,10 @@ public UserType getUserType() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/UserAccountRole.java b/src/main/java/ch/postfinance/sdk/model/UserAccountRole.java
index 2a37f95..74887d6 100644
--- a/src/main/java/ch/postfinance/sdk/model/UserAccountRole.java
+++ b/src/main/java/ch/postfinance/sdk/model/UserAccountRole.java
@@ -82,10 +82,10 @@ public Boolean isAppliesOnSubAccount() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -112,10 +112,10 @@ public Long getUser() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/UserSpaceRole.java b/src/main/java/ch/postfinance/sdk/model/UserSpaceRole.java
index 441060e..0f25cfb 100644
--- a/src/main/java/ch/postfinance/sdk/model/UserSpaceRole.java
+++ b/src/main/java/ch/postfinance/sdk/model/UserSpaceRole.java
@@ -58,10 +58,10 @@ public class UserSpaceRole {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -98,10 +98,10 @@ public Long getUser() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/WebhookIdentity.java b/src/main/java/ch/postfinance/sdk/model/WebhookIdentity.java
index 555a63c..e529d94 100644
--- a/src/main/java/ch/postfinance/sdk/model/WebhookIdentity.java
+++ b/src/main/java/ch/postfinance/sdk/model/WebhookIdentity.java
@@ -64,20 +64,20 @@ public class WebhookIdentity {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -94,30 +94,30 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/WebhookListener.java b/src/main/java/ch/postfinance/sdk/model/WebhookListener.java
index 38f0f22..e277b2d 100644
--- a/src/main/java/ch/postfinance/sdk/model/WebhookListener.java
+++ b/src/main/java/ch/postfinance/sdk/model/WebhookListener.java
@@ -108,10 +108,10 @@ public List getEntityStates() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
@@ -128,10 +128,10 @@ public WebhookIdentity getIdentity() {
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -158,20 +158,20 @@ public Boolean isNotifyEveryChange() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -188,10 +188,10 @@ public WebhookUrl getUrl() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/WebhookListenerEntity.java b/src/main/java/ch/postfinance/sdk/model/WebhookListenerEntity.java
index 9d5bbf7..e79a1b8 100644
--- a/src/main/java/ch/postfinance/sdk/model/WebhookListenerEntity.java
+++ b/src/main/java/ch/postfinance/sdk/model/WebhookListenerEntity.java
@@ -53,10 +53,10 @@ public class WebhookListenerEntity {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
diff --git a/src/main/java/ch/postfinance/sdk/model/WebhookUrl.java b/src/main/java/ch/postfinance/sdk/model/WebhookUrl.java
index ca109ed..784cce0 100644
--- a/src/main/java/ch/postfinance/sdk/model/WebhookUrl.java
+++ b/src/main/java/ch/postfinance/sdk/model/WebhookUrl.java
@@ -82,20 +82,20 @@ public Boolean isApplicationManaged() {
/**
- * The ID is the primary key of the entity. The ID identifies the entity uniquely.
+ * A unique identifier for the object.
* @return id
**/
- @ApiModelProperty(value = "The ID is the primary key of the entity. The ID identifies the entity uniquely.")
+ @ApiModelProperty(value = "A unique identifier for the object.")
public Long getId() {
return id;
}
/**
- * The linked space id holds the ID of the space to which the entity belongs to.
+ * The ID of the space this object belongs to.
* @return linkedSpaceId
**/
- @ApiModelProperty(value = "The linked space id holds the ID of the space to which the entity belongs to.")
+ @ApiModelProperty(value = "The ID of the space this object belongs to.")
public Long getLinkedSpaceId() {
return linkedSpaceId;
}
@@ -112,20 +112,20 @@ public String getName() {
/**
- * The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.
+ * The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
* @return plannedPurgeDate
**/
- @ApiModelProperty(value = "The planned purge date indicates when the entity is permanently removed. When the date is null the entity is not planned to be removed.")
+ @ApiModelProperty(value = "The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.")
public OffsetDateTime getPlannedPurgeDate() {
return plannedPurgeDate;
}
/**
- *
+ * The object's current state.
* @return state
**/
- @ApiModelProperty(value = "")
+ @ApiModelProperty(value = "The object's current state.")
public CreationEntityState getState() {
return state;
}
@@ -142,10 +142,10 @@ public String getUrl() {
/**
- * The version number indicates the version of the entity. The version is incremented whenever the entity is changed.
+ * The version is used for optimistic locking and incremented whenever the object is updated.
* @return version
**/
- @ApiModelProperty(value = "The version number indicates the version of the entity. The version is incremented whenever the entity is changed.")
+ @ApiModelProperty(value = "The version is used for optimistic locking and incremented whenever the object is updated.")
public Integer getVersion() {
return version;
}
diff --git a/src/main/java/ch/postfinance/sdk/service/AccountService.java b/src/main/java/ch/postfinance/sdk/service/AccountService.java
index 078387a..90faf8c 100644
--- a/src/main/java/ch/postfinance/sdk/service/AccountService.java
+++ b/src/main/java/ch/postfinance/sdk/service/AccountService.java
@@ -3,6 +3,7 @@
import ch.postfinance.sdk.ApiClient;
import ch.postfinance.sdk.ErrorCode;
import ch.postfinance.sdk.PostFinanceCheckoutSdkException;
+import ch.postfinance.sdk.URIBuilderUtil;
import ch.postfinance.sdk.model.Account;
import ch.postfinance.sdk.model.AccountCreate;
@@ -17,7 +18,8 @@
import com.google.api.client.http.*;
import com.google.api.client.json.Json;
-import javax.ws.rs.core.UriBuilder;
+import org.apache.http.client.utils.URIBuilder;
+
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
@@ -96,11 +98,9 @@ public Long count(EntityQueryFilter filter, Map params) throws I
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter) throws IOException {
-
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/count");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -111,26 +111,23 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter) throws IOExce
return httpRequest.execute();
}
- public HttpResponse countForHttpResponse(java.io.InputStream filter, String mediaType) throws IOException {
-
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/count");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = filter == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse countForHttpResponse(java.io.InputStream filter, String mediaType) throws IOException {
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/count");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = filter == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter, Map params) throws IOException {
-
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/count");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -138,20 +135,12 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -222,10 +211,9 @@ public HttpResponse createForHttpResponse(AccountCreate entity) throws IOExcepti
if (entity == null) {
throw new IllegalArgumentException("Missing the required parameter 'entity' when calling create");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/create");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/create");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(entity);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -236,24 +224,23 @@ public HttpResponse createForHttpResponse(AccountCreate entity) throws IOExcepti
return httpRequest.execute();
}
- public HttpResponse createForHttpResponse(java.io.InputStream entity, String mediaType) throws IOException {
- // verify the required parameter 'entity' is set
- if (entity == null) {
- throw new IllegalArgumentException("Missing the required parameter 'entity' when calling create");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/create");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = entity == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, entity);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse createForHttpResponse(java.io.InputStream entity, String mediaType) throws IOException {
+ // verify the required parameter 'entity' is set
+ if (entity == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'entity' when calling create");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/create");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = entity == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, entity);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse createForHttpResponse(AccountCreate entity, Map params) throws IOException {
@@ -261,7 +248,7 @@ public HttpResponse createForHttpResponse(AccountCreate entity, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -269,20 +256,12 @@ public HttpResponse createForHttpResponse(AccountCreate entity, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(entity);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -333,10 +312,9 @@ public HttpResponse deleteForHttpResponse(Long id) throws IOException {
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling delete");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/delete");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/delete");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(id);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -347,24 +325,23 @@ public HttpResponse deleteForHttpResponse(Long id) throws IOException {
return httpRequest.execute();
}
- public HttpResponse deleteForHttpResponse(java.io.InputStream id, String mediaType) throws IOException {
- // verify the required parameter 'id' is set
- if (id == null) {
- throw new IllegalArgumentException("Missing the required parameter 'id' when calling delete");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/delete");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = id == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, id);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse deleteForHttpResponse(java.io.InputStream id, String mediaType) throws IOException {
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'id' when calling delete");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/delete");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = id == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, id);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse deleteForHttpResponse(Long id, Map params) throws IOException {
@@ -372,7 +349,7 @@ public HttpResponse deleteForHttpResponse(Long id, Map params) t
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling delete");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/delete");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/delete");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -380,20 +357,12 @@ public HttpResponse deleteForHttpResponse(Long id, Map params) t
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(id);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -464,21 +433,14 @@ public HttpResponse readForHttpResponse(Long id) throws IOException {
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/read");
if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -494,7 +456,7 @@ public HttpResponse readForHttpResponse(Long id, Map params) thr
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/read");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -504,20 +466,12 @@ public HttpResponse readForHttpResponse(Long id, Map params) thr
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -588,10 +542,9 @@ public HttpResponse searchForHttpResponse(EntityQuery query) throws IOException
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/search");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -602,24 +555,23 @@ public HttpResponse searchForHttpResponse(EntityQuery query) throws IOException
return httpRequest.execute();
}
- public HttpResponse searchForHttpResponse(java.io.InputStream query, String mediaType) throws IOException {
- // verify the required parameter 'query' is set
- if (query == null) {
- throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/search");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = query == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse searchForHttpResponse(java.io.InputStream query, String mediaType) throws IOException {
+ // verify the required parameter 'query' is set
+ if (query == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/search");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = query == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse searchForHttpResponse(EntityQuery query, Map params) throws IOException {
@@ -627,7 +579,7 @@ public HttpResponse searchForHttpResponse(EntityQuery query, Map
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/search");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -635,20 +587,12 @@ public HttpResponse searchForHttpResponse(EntityQuery query, Map
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -721,10 +665,9 @@ public HttpResponse updateForHttpResponse(AccountUpdate entity) throws IOExcepti
if (entity == null) {
throw new IllegalArgumentException("Missing the required parameter 'entity' when calling update");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/update");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/update");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(entity);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -735,24 +678,23 @@ public HttpResponse updateForHttpResponse(AccountUpdate entity) throws IOExcepti
return httpRequest.execute();
}
- public HttpResponse updateForHttpResponse(java.io.InputStream entity, String mediaType) throws IOException {
- // verify the required parameter 'entity' is set
- if (entity == null) {
- throw new IllegalArgumentException("Missing the required parameter 'entity' when calling update");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/account/update");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = entity == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, entity);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse updateForHttpResponse(java.io.InputStream entity, String mediaType) throws IOException {
+ // verify the required parameter 'entity' is set
+ if (entity == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'entity' when calling update");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/account/update");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = entity == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, entity);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse updateForHttpResponse(AccountUpdate entity, Map params) throws IOException {
@@ -760,7 +702,7 @@ public HttpResponse updateForHttpResponse(AccountUpdate entity, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -768,20 +710,12 @@ public HttpResponse updateForHttpResponse(AccountUpdate entity, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(entity);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
diff --git a/src/main/java/ch/postfinance/sdk/service/AnalyticsQueryService.java b/src/main/java/ch/postfinance/sdk/service/AnalyticsQueryService.java
index fc81853..d32faf3 100644
--- a/src/main/java/ch/postfinance/sdk/service/AnalyticsQueryService.java
+++ b/src/main/java/ch/postfinance/sdk/service/AnalyticsQueryService.java
@@ -3,6 +3,7 @@
import ch.postfinance.sdk.ApiClient;
import ch.postfinance.sdk.ErrorCode;
import ch.postfinance.sdk.PostFinanceCheckoutSdkException;
+import ch.postfinance.sdk.URIBuilderUtil;
import ch.postfinance.sdk.model.AnalyticsQuery;
import ch.postfinance.sdk.model.AnalyticsQueryExecution;
@@ -16,7 +17,8 @@
import com.google.api.client.http.*;
import com.google.api.client.json.Json;
-import javax.ws.rs.core.UriBuilder;
+import org.apache.http.client.utils.URIBuilder;
+
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
@@ -78,21 +80,14 @@ public HttpResponse cancelExecutionForHttpResponse(Long id) throws IOException {
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling cancelExecution");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/cancel-execution");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/cancel-execution");
if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -108,7 +103,7 @@ public HttpResponse cancelExecutionForHttpResponse(Long id, Map
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling cancelExecution");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/cancel-execution");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/cancel-execution");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -118,20 +113,12 @@ public HttpResponse cancelExecutionForHttpResponse(Long id, Map
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(null);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -205,51 +192,29 @@ public HttpResponse fetchResultForHttpResponse(Long id, Integer timeout, Integer
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling fetchResult");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/fetch-result");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/fetch-result");
if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (timeout != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (timeout != null) {
String key = "timeout";
Object value = timeout;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (maxRows != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (maxRows != null) {
String key = "maxRows";
Object value = maxRows;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (nextToken != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (nextToken != null) {
String key = "nextToken";
Object value = nextToken;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -265,7 +230,7 @@ public HttpResponse fetchResultForHttpResponse(Long id, Map para
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling fetchResult");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/fetch-result");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/fetch-result");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -275,20 +240,12 @@ public HttpResponse fetchResultForHttpResponse(Long id, Map para
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -360,31 +317,19 @@ public HttpResponse generateDownloadUrlForHttpResponse(Long id, Integer timeout)
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling generateDownloadUrl");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/generate-download-url");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/generate-download-url");
if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (timeout != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (timeout != null) {
String key = "timeout";
Object value = timeout;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -400,7 +345,7 @@ public HttpResponse generateDownloadUrlForHttpResponse(Long id, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -410,20 +355,12 @@ public HttpResponse generateDownloadUrlForHttpResponse(Long id, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -488,11 +425,9 @@ public List schema(Map params) throws IOEx
}
public HttpResponse schemaForHttpResponse() throws IOException {
-
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/schema");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/schema");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -504,8 +439,7 @@ public HttpResponse schemaForHttpResponse() throws IOException {
}
public HttpResponse schemaForHttpResponse(Map params) throws IOException {
-
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/schema");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/schema");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -513,20 +447,12 @@ public HttpResponse schemaForHttpResponse(Map params) throws IOE
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -597,21 +523,14 @@ public HttpResponse statusForHttpResponse(Long id) throws IOException {
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling status");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/status");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/status");
if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -627,7 +546,7 @@ public HttpResponse statusForHttpResponse(Long id, Map params) t
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling status");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/status");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/status");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -637,20 +556,12 @@ public HttpResponse statusForHttpResponse(Long id, Map params) t
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -721,10 +632,9 @@ public HttpResponse submitQueryForHttpResponse(AnalyticsQuery query) throws IOEx
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling submitQuery");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/submit-query");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/submit-query");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -735,24 +645,23 @@ public HttpResponse submitQueryForHttpResponse(AnalyticsQuery query) throws IOEx
return httpRequest.execute();
}
- public HttpResponse submitQueryForHttpResponse(java.io.InputStream query, String mediaType) throws IOException {
- // verify the required parameter 'query' is set
- if (query == null) {
- throw new IllegalArgumentException("Missing the required parameter 'query' when calling submitQuery");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/analytics-query/submit-query");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = query == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse submitQueryForHttpResponse(java.io.InputStream query, String mediaType) throws IOException {
+ // verify the required parameter 'query' is set
+ if (query == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'query' when calling submitQuery");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/analytics-query/submit-query");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = query == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse submitQueryForHttpResponse(AnalyticsQuery query, Map params) throws IOException {
@@ -760,7 +669,7 @@ public HttpResponse submitQueryForHttpResponse(AnalyticsQuery query, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -768,20 +677,12 @@ public HttpResponse submitQueryForHttpResponse(AnalyticsQuery query, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
diff --git a/src/main/java/ch/postfinance/sdk/service/ApplicationUserService.java b/src/main/java/ch/postfinance/sdk/service/ApplicationUserService.java
index 3ce65d8..6faecdf 100644
--- a/src/main/java/ch/postfinance/sdk/service/ApplicationUserService.java
+++ b/src/main/java/ch/postfinance/sdk/service/ApplicationUserService.java
@@ -3,6 +3,7 @@
import ch.postfinance.sdk.ApiClient;
import ch.postfinance.sdk.ErrorCode;
import ch.postfinance.sdk.PostFinanceCheckoutSdkException;
+import ch.postfinance.sdk.URIBuilderUtil;
import ch.postfinance.sdk.model.ApplicationUser;
import ch.postfinance.sdk.model.ApplicationUserCreate;
@@ -18,7 +19,8 @@
import com.google.api.client.http.*;
import com.google.api.client.json.Json;
-import javax.ws.rs.core.UriBuilder;
+import org.apache.http.client.utils.URIBuilder;
+
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
@@ -97,11 +99,9 @@ public Long count(EntityQueryFilter filter, Map params) throws I
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter) throws IOException {
-
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/count");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -112,26 +112,23 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter) throws IOExce
return httpRequest.execute();
}
- public HttpResponse countForHttpResponse(java.io.InputStream filter, String mediaType) throws IOException {
-
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/count");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = filter == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse countForHttpResponse(java.io.InputStream filter, String mediaType) throws IOException {
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/count");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = filter == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter, Map params) throws IOException {
-
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/count");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -139,20 +136,12 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -223,10 +212,9 @@ public HttpResponse createForHttpResponse(ApplicationUserCreate entity) throws I
if (entity == null) {
throw new IllegalArgumentException("Missing the required parameter 'entity' when calling create");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/create");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/create");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(entity);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -237,24 +225,23 @@ public HttpResponse createForHttpResponse(ApplicationUserCreate entity) throws I
return httpRequest.execute();
}
- public HttpResponse createForHttpResponse(java.io.InputStream entity, String mediaType) throws IOException {
- // verify the required parameter 'entity' is set
- if (entity == null) {
- throw new IllegalArgumentException("Missing the required parameter 'entity' when calling create");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/create");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = entity == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, entity);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse createForHttpResponse(java.io.InputStream entity, String mediaType) throws IOException {
+ // verify the required parameter 'entity' is set
+ if (entity == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'entity' when calling create");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/create");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = entity == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, entity);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse createForHttpResponse(ApplicationUserCreate entity, Map params) throws IOException {
@@ -262,7 +249,7 @@ public HttpResponse createForHttpResponse(ApplicationUserCreate entity, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -270,20 +257,12 @@ public HttpResponse createForHttpResponse(ApplicationUserCreate entity, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(entity);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -334,10 +313,9 @@ public HttpResponse deleteForHttpResponse(Long id) throws IOException {
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling delete");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/delete");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/delete");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(id);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -348,24 +326,23 @@ public HttpResponse deleteForHttpResponse(Long id) throws IOException {
return httpRequest.execute();
}
- public HttpResponse deleteForHttpResponse(java.io.InputStream id, String mediaType) throws IOException {
- // verify the required parameter 'id' is set
- if (id == null) {
- throw new IllegalArgumentException("Missing the required parameter 'id' when calling delete");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/delete");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = id == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, id);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse deleteForHttpResponse(java.io.InputStream id, String mediaType) throws IOException {
+ // verify the required parameter 'id' is set
+ if (id == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'id' when calling delete");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/delete");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = id == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, id);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse deleteForHttpResponse(Long id, Map params) throws IOException {
@@ -373,7 +350,7 @@ public HttpResponse deleteForHttpResponse(Long id, Map params) t
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling delete");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/delete");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/delete");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -381,20 +358,12 @@ public HttpResponse deleteForHttpResponse(Long id, Map params) t
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(id);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -465,21 +434,14 @@ public HttpResponse readForHttpResponse(Long id) throws IOException {
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/read");
if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -495,7 +457,7 @@ public HttpResponse readForHttpResponse(Long id, Map params) thr
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/read");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -505,20 +467,12 @@ public HttpResponse readForHttpResponse(Long id, Map params) thr
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -589,10 +543,9 @@ public HttpResponse searchForHttpResponse(EntityQuery query) throws IOException
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/search");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -603,24 +556,23 @@ public HttpResponse searchForHttpResponse(EntityQuery query) throws IOException
return httpRequest.execute();
}
- public HttpResponse searchForHttpResponse(java.io.InputStream query, String mediaType) throws IOException {
- // verify the required parameter 'query' is set
- if (query == null) {
- throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/search");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = query == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse searchForHttpResponse(java.io.InputStream query, String mediaType) throws IOException {
+ // verify the required parameter 'query' is set
+ if (query == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/search");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = query == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse searchForHttpResponse(EntityQuery query, Map params) throws IOException {
@@ -628,7 +580,7 @@ public HttpResponse searchForHttpResponse(EntityQuery query, Map
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/search");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -636,20 +588,12 @@ public HttpResponse searchForHttpResponse(EntityQuery query, Map
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -722,10 +666,9 @@ public HttpResponse updateForHttpResponse(ApplicationUserUpdate entity) throws I
if (entity == null) {
throw new IllegalArgumentException("Missing the required parameter 'entity' when calling update");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/update");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/update");
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(entity);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -736,24 +679,23 @@ public HttpResponse updateForHttpResponse(ApplicationUserUpdate entity) throws I
return httpRequest.execute();
}
- public HttpResponse updateForHttpResponse(java.io.InputStream entity, String mediaType) throws IOException {
- // verify the required parameter 'entity' is set
- if (entity == null) {
- throw new IllegalArgumentException("Missing the required parameter 'entity' when calling update");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/application-user/update");
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = entity == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, entity);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse updateForHttpResponse(java.io.InputStream entity, String mediaType) throws IOException {
+ // verify the required parameter 'entity' is set
+ if (entity == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'entity' when calling update");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/application-user/update");
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = entity == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, entity);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse updateForHttpResponse(ApplicationUserUpdate entity, Map params) throws IOException {
@@ -761,7 +703,7 @@ public HttpResponse updateForHttpResponse(ApplicationUserUpdate entity, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -769,20 +711,12 @@ public HttpResponse updateForHttpResponse(ApplicationUserUpdate entity, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(entity);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
diff --git a/src/main/java/ch/postfinance/sdk/service/BankAccountService.java b/src/main/java/ch/postfinance/sdk/service/BankAccountService.java
index 5f9f5af..ff5a141 100644
--- a/src/main/java/ch/postfinance/sdk/service/BankAccountService.java
+++ b/src/main/java/ch/postfinance/sdk/service/BankAccountService.java
@@ -3,6 +3,7 @@
import ch.postfinance.sdk.ApiClient;
import ch.postfinance.sdk.ErrorCode;
import ch.postfinance.sdk.PostFinanceCheckoutSdkException;
+import ch.postfinance.sdk.URIBuilderUtil;
import ch.postfinance.sdk.model.BankAccount;
import ch.postfinance.sdk.model.ClientError;
@@ -15,7 +16,8 @@
import com.google.api.client.http.*;
import com.google.api.client.json.Json;
-import javax.ws.rs.core.UriBuilder;
+import org.apache.http.client.utils.URIBuilder;
+
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
@@ -100,21 +102,14 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-account/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-account/count");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -125,35 +120,28 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
return httpRequest.execute();
}
- public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-account/count");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = filter == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-account/count");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = filter == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId, Map params) throws IOException {
@@ -161,7 +149,7 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-account/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-account/count");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -171,20 +159,12 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -256,35 +236,24 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id) throws IOExceptio
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling read");
- }// verify the required parameter 'id' is set
+ }
+ // verify the required parameter 'id' is set
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-account/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-account/read");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (id != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -299,11 +268,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -315,20 +285,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -400,25 +362,19 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throw
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
+ }
+ // verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-account/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-account/search");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -429,49 +385,44 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throw
return httpRequest.execute();
}
- public HttpResponse searchForHttpResponse(Long spaceId, java.io.InputStream query, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
- if (query == null) {
- throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-account/search");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = query == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse searchForHttpResponse(Long spaceId, java.io.InputStream query, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
+ }
+ // verify the required parameter 'query' is set
+ if (query == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-account/search");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = query == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map params) throws IOException {
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
+ }
+ // verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-account/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-account/search");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -481,20 +432,12 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
diff --git a/src/main/java/ch/postfinance/sdk/service/BankTransactionService.java b/src/main/java/ch/postfinance/sdk/service/BankTransactionService.java
index 9068b6d..d718ecc 100644
--- a/src/main/java/ch/postfinance/sdk/service/BankTransactionService.java
+++ b/src/main/java/ch/postfinance/sdk/service/BankTransactionService.java
@@ -3,6 +3,7 @@
import ch.postfinance.sdk.ApiClient;
import ch.postfinance.sdk.ErrorCode;
import ch.postfinance.sdk.PostFinanceCheckoutSdkException;
+import ch.postfinance.sdk.URIBuilderUtil;
import ch.postfinance.sdk.model.BankTransaction;
import ch.postfinance.sdk.model.ClientError;
@@ -15,7 +16,8 @@
import com.google.api.client.http.*;
import com.google.api.client.json.Json;
-import javax.ws.rs.core.UriBuilder;
+import org.apache.http.client.utils.URIBuilder;
+
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
@@ -100,21 +102,14 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-transaction/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-transaction/count");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -125,35 +120,28 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
return httpRequest.execute();
}
- public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-transaction/count");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = filter == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-transaction/count");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = filter == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId, Map params) throws IOException {
@@ -161,7 +149,7 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-transaction/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-transaction/count");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -171,20 +159,12 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -256,35 +236,24 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id) throws IOExceptio
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling read");
- }// verify the required parameter 'id' is set
+ }
+ // verify the required parameter 'id' is set
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-transaction/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-transaction/read");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (id != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -299,11 +268,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -315,20 +285,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -400,25 +362,19 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throw
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
+ }
+ // verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-transaction/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-transaction/search");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -429,49 +385,44 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throw
return httpRequest.execute();
}
- public HttpResponse searchForHttpResponse(Long spaceId, java.io.InputStream query, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
- if (query == null) {
- throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-transaction/search");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = query == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse searchForHttpResponse(Long spaceId, java.io.InputStream query, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
+ }
+ // verify the required parameter 'query' is set
+ if (query == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-transaction/search");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = query == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map params) throws IOException {
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
+ }
+ // verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/bank-transaction/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/bank-transaction/search");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -481,20 +432,12 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
diff --git a/src/main/java/ch/postfinance/sdk/service/ChargeAttemptService.java b/src/main/java/ch/postfinance/sdk/service/ChargeAttemptService.java
index cbf4800..a700ce6 100644
--- a/src/main/java/ch/postfinance/sdk/service/ChargeAttemptService.java
+++ b/src/main/java/ch/postfinance/sdk/service/ChargeAttemptService.java
@@ -3,6 +3,7 @@
import ch.postfinance.sdk.ApiClient;
import ch.postfinance.sdk.ErrorCode;
import ch.postfinance.sdk.PostFinanceCheckoutSdkException;
+import ch.postfinance.sdk.URIBuilderUtil;
import ch.postfinance.sdk.model.ChargeAttempt;
import ch.postfinance.sdk.model.ClientError;
@@ -15,7 +16,8 @@
import com.google.api.client.http.*;
import com.google.api.client.json.Json;
-import javax.ws.rs.core.UriBuilder;
+import org.apache.http.client.utils.URIBuilder;
+
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
@@ -100,21 +102,14 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-attempt/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-attempt/count");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -125,35 +120,28 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
return httpRequest.execute();
}
- public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-attempt/count");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = filter == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-attempt/count");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = filter == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId, Map params) throws IOException {
@@ -161,7 +149,7 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-attempt/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-attempt/count");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -171,20 +159,12 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -256,35 +236,24 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id) throws IOExceptio
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling read");
- }// verify the required parameter 'id' is set
+ }
+ // verify the required parameter 'id' is set
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-attempt/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-attempt/read");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (id != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -299,11 +268,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -315,20 +285,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -400,25 +362,19 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throw
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
+ }
+ // verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-attempt/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-attempt/search");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -429,49 +385,44 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throw
return httpRequest.execute();
}
- public HttpResponse searchForHttpResponse(Long spaceId, java.io.InputStream query, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
- if (query == null) {
- throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-attempt/search");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = query == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse searchForHttpResponse(Long spaceId, java.io.InputStream query, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
+ }
+ // verify the required parameter 'query' is set
+ if (query == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-attempt/search");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = query == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map params) throws IOException {
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
+ }
+ // verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-attempt/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-attempt/search");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -481,20 +432,12 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
diff --git a/src/main/java/ch/postfinance/sdk/service/ChargeBankTransactionService.java b/src/main/java/ch/postfinance/sdk/service/ChargeBankTransactionService.java
index bc241af..d73ad33 100644
--- a/src/main/java/ch/postfinance/sdk/service/ChargeBankTransactionService.java
+++ b/src/main/java/ch/postfinance/sdk/service/ChargeBankTransactionService.java
@@ -3,6 +3,7 @@
import ch.postfinance.sdk.ApiClient;
import ch.postfinance.sdk.ErrorCode;
import ch.postfinance.sdk.PostFinanceCheckoutSdkException;
+import ch.postfinance.sdk.URIBuilderUtil;
import ch.postfinance.sdk.model.ChargeBankTransaction;
import ch.postfinance.sdk.model.ClientError;
@@ -15,7 +16,8 @@
import com.google.api.client.http.*;
import com.google.api.client.json.Json;
-import javax.ws.rs.core.UriBuilder;
+import org.apache.http.client.utils.URIBuilder;
+
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
@@ -100,21 +102,14 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-bank-transaction/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-bank-transaction/count");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -125,35 +120,28 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
return httpRequest.execute();
}
- public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-bank-transaction/count");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = filter == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-bank-transaction/count");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = filter == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId, Map params) throws IOException {
@@ -161,7 +149,7 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-bank-transaction/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-bank-transaction/count");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -171,20 +159,12 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -256,35 +236,24 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id) throws IOExceptio
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling read");
- }// verify the required parameter 'id' is set
+ }
+ // verify the required parameter 'id' is set
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-bank-transaction/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-bank-transaction/read");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (id != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -299,11 +268,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -315,20 +285,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -400,25 +362,19 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throw
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
+ }
+ // verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-bank-transaction/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-bank-transaction/search");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -429,49 +385,44 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throw
return httpRequest.execute();
}
- public HttpResponse searchForHttpResponse(Long spaceId, java.io.InputStream query, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
- if (query == null) {
- throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-bank-transaction/search");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = query == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse searchForHttpResponse(Long spaceId, java.io.InputStream query, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
+ }
+ // verify the required parameter 'query' is set
+ if (query == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-bank-transaction/search");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = query == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, query);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map params) throws IOException {
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling search");
- }// verify the required parameter 'query' is set
+ }
+ // verify the required parameter 'query' is set
if (query == null) {
throw new IllegalArgumentException("Missing the required parameter 'query' when calling search");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-bank-transaction/search");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-bank-transaction/search");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -481,20 +432,12 @@ public HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(query);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
diff --git a/src/main/java/ch/postfinance/sdk/service/ChargeFlowLevelPaymentLinkService.java b/src/main/java/ch/postfinance/sdk/service/ChargeFlowLevelPaymentLinkService.java
index 2e79218..8abb58a 100644
--- a/src/main/java/ch/postfinance/sdk/service/ChargeFlowLevelPaymentLinkService.java
+++ b/src/main/java/ch/postfinance/sdk/service/ChargeFlowLevelPaymentLinkService.java
@@ -3,6 +3,7 @@
import ch.postfinance.sdk.ApiClient;
import ch.postfinance.sdk.ErrorCode;
import ch.postfinance.sdk.PostFinanceCheckoutSdkException;
+import ch.postfinance.sdk.URIBuilderUtil;
import ch.postfinance.sdk.model.ChargeFlowLevelPaymentLink;
import ch.postfinance.sdk.model.ClientError;
@@ -15,7 +16,8 @@
import com.google.api.client.http.*;
import com.google.api.client.json.Json;
-import javax.ws.rs.core.UriBuilder;
+import org.apache.http.client.utils.URIBuilder;
+
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
@@ -100,21 +102,14 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-flow-level-payment-link/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-flow-level-payment-link/count");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -125,35 +120,28 @@ public HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter)
return httpRequest.execute();
}
- public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
- // verify the required parameter 'spaceId' is set
- if (spaceId == null) {
- throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
- }
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-flow-level-payment-link/count");
- if (spaceId != null) {
- String key = "spaceId";
- Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- }
-
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
-
- HttpContent content = filter == null ?
- apiClient.new JacksonJsonHttpContent(null) :
- new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
- HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
-
- int readTimeOut = apiClient.getReadTimeOut() * 1000;
- httpRequest.setReadTimeout(readTimeOut);
- return httpRequest.execute();
+ public HttpResponse countForHttpResponse(Long spaceId, java.io.InputStream filter, String mediaType) throws IOException {
+ // verify the required parameter 'spaceId' is set
+ if (spaceId == null) {
+ throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
+ }
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-flow-level-payment-link/count");
+ if (spaceId != null) {
+ String key = "spaceId";
+ Object value = spaceId;
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
+
+ HttpContent content = filter == null ?
+ apiClient.new JacksonJsonHttpContent(null) :
+ new InputStreamContent(mediaType == null ? Json.MEDIA_TYPE : mediaType, filter);
+ HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
+
+ int readTimeOut = apiClient.getReadTimeOut() * 1000;
+ httpRequest.setReadTimeout(readTimeOut);
+ return httpRequest.execute();
}
public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId, Map params) throws IOException {
@@ -161,7 +149,7 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling count");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-flow-level-payment-link/count");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-flow-level-payment-link/count");
// Copy the params argument if present, to allow passing in immutable maps
Map allParams = params == null ? new HashMap() : new HashMap(params);
@@ -171,20 +159,12 @@ public HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId,
for (Map.Entry entryMap: allParams.entrySet()) {
String key = entryMap.getKey();
Object value = entryMap.getValue();
-
if (key != null && value != null) {
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = apiClient.new JacksonJsonHttpContent(filter);
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.POST, genericUrl, content);
@@ -256,35 +236,24 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id) throws IOExceptio
// verify the required parameter 'spaceId' is set
if (spaceId == null) {
throw new IllegalArgumentException("Missing the required parameter 'spaceId' when calling read");
- }// verify the required parameter 'id' is set
+ }
+ // verify the required parameter 'id' is set
if (id == null) {
throw new IllegalArgumentException("Missing the required parameter 'id' when calling read");
}
- UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/charge-flow-level-payment-link/read");
+ URIBuilder uriBuilder = URIBuilderUtil.create(apiClient.getBasePath() + "/charge-flow-level-payment-link/read");
if (spaceId != null) {
String key = "spaceId";
Object value = spaceId;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
- } if (id != null) {
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
+ }
+ if (id != null) {
String key = "id";
Object value = id;
- if (value instanceof Collection) {
- uriBuilder = uriBuilder.queryParam(key, ((Collection) value).toArray());
- } else if (value instanceof Object[]) {
- uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
- } else {
- uriBuilder = uriBuilder.queryParam(key, value);
- }
+ uriBuilder = URIBuilderUtil.applyQueryParam(uriBuilder, key, value);
}
- String url = uriBuilder.build().toString();
- GenericUrl genericUrl = new GenericUrl(url);
+ GenericUrl genericUrl = new GenericUrl(URIBuilderUtil.build(uriBuilder));
HttpContent content = null;
HttpRequest httpRequest = apiClient.getHttpRequestFactory().buildRequest(HttpMethods.GET, genericUrl, content);
@@ -299,11 +268,12 @@ public HttpResponse readForHttpResponse(Long spaceId, Long id, Map allParams = params == null ? new HashMap() : new HashMap