* | :heavy_minus_sign: | The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation.
Example: `fields=name,email,addresses.city`
In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded. | id,updated_at |
\ No newline at end of file
diff --git a/gradle.properties b/gradle.properties
index 5f05a93d8..cd918d30e 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
groupId=com.apideck
artifactId=unify
-version=0.38.0
+version=0.39.0
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g
diff --git a/src/main/java/com/apideck/unify/SDKConfiguration.java b/src/main/java/com/apideck/unify/SDKConfiguration.java
index 75ba0a8cc..25b90b68f 100644
--- a/src/main/java/com/apideck/unify/SDKConfiguration.java
+++ b/src/main/java/com/apideck/unify/SDKConfiguration.java
@@ -20,8 +20,8 @@
public class SDKConfiguration {
private static final String LANGUAGE = "java";
- public static final String OPENAPI_DOC_VERSION = "10.44.0";
- public static final String SDK_VERSION = "0.38.0";
+ public static final String OPENAPI_DOC_VERSION = "10.45.0";
+ public static final String SDK_VERSION = "0.39.0";
public static final String GEN_VERSION = "2.932.9";
private static final String BASE_PACKAGE = "com.apideck.unify";
public static final String USER_AGENT =
diff --git a/src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java b/src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java
index 8f1550489..34ae1a36e 100644
--- a/src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java
+++ b/src/main/java/com/apideck/unify/models/components/CreditNotesFilter.java
@@ -14,6 +14,14 @@
public class CreditNotesFilter {
+ /**
+ * Comma-separated list of credit note IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ * DualEntry) the credit note ID is the credit note number.
+ */
+ @SpeakeasyMetadata("queryParam:name=ids")
+ private Optional ids;
+
/**
* Return records with a row ID greater than or equal to the given value
*/
@@ -49,18 +57,21 @@ public class CreditNotesFilter {
@JsonCreator
public CreditNotesFilter(
+ Optional ids,
Optional idSince,
Optional updatedSince,
Optional createdSince,
Optional number,
Optional subsidiaryId,
Optional customerId) {
+ Utils.checkNotNull(ids, "ids");
Utils.checkNotNull(idSince, "idSince");
Utils.checkNotNull(updatedSince, "updatedSince");
Utils.checkNotNull(createdSince, "createdSince");
Utils.checkNotNull(number, "number");
Utils.checkNotNull(subsidiaryId, "subsidiaryId");
Utils.checkNotNull(customerId, "customerId");
+ this.ids = ids;
this.idSince = idSince;
this.updatedSince = updatedSince;
this.createdSince = createdSince;
@@ -71,7 +82,18 @@ public CreditNotesFilter(
public CreditNotesFilter() {
this(Optional.empty(), Optional.empty(), Optional.empty(),
- Optional.empty(), Optional.empty(), Optional.empty());
+ Optional.empty(), Optional.empty(), Optional.empty(),
+ Optional.empty());
+ }
+
+ /**
+ * Comma-separated list of credit note IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ * DualEntry) the credit note ID is the credit note number.
+ */
+ @JsonIgnore
+ public Optional ids() {
+ return ids;
}
/**
@@ -122,6 +144,29 @@ public static Builder builder() {
}
+ /**
+ * Comma-separated list of credit note IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ * DualEntry) the credit note ID is the credit note number.
+ */
+ public CreditNotesFilter withIds(String ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = Optional.ofNullable(ids);
+ return this;
+ }
+
+
+ /**
+ * Comma-separated list of credit note IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ *
DualEntry) the credit note ID is the credit note number.
+ */
+ public CreditNotesFilter withIds(Optional ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = ids;
+ return this;
+ }
+
/**
* Return records with a row ID greater than or equal to the given value
*/
@@ -236,6 +281,7 @@ public boolean equals(java.lang.Object o) {
}
CreditNotesFilter other = (CreditNotesFilter) o;
return
+ Utils.enhancedDeepEquals(this.ids, other.ids) &&
Utils.enhancedDeepEquals(this.idSince, other.idSince) &&
Utils.enhancedDeepEquals(this.updatedSince, other.updatedSince) &&
Utils.enhancedDeepEquals(this.createdSince, other.createdSince) &&
@@ -247,13 +293,15 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
return Utils.enhancedHash(
- idSince, updatedSince, createdSince,
- number, subsidiaryId, customerId);
+ ids, idSince, updatedSince,
+ createdSince, number, subsidiaryId,
+ customerId);
}
@Override
public String toString() {
return Utils.toString(CreditNotesFilter.class,
+ "ids", ids,
"idSince", idSince,
"updatedSince", updatedSince,
"createdSince", createdSince,
@@ -265,6 +313,8 @@ public String toString() {
@SuppressWarnings("UnusedReturnValue")
public final static class Builder {
+ private Optional ids = Optional.empty();
+
private Optional idSince = Optional.empty();
private Optional updatedSince = Optional.empty();
@@ -282,6 +332,29 @@ private Builder() {
}
+ /**
+ * Comma-separated list of credit note IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ * DualEntry) the credit note ID is the credit note number.
+ */
+ public Builder ids(String ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = Optional.ofNullable(ids);
+ return this;
+ }
+
+ /**
+ * Comma-separated list of credit note IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ *
DualEntry) the credit note ID is the credit note number.
+ */
+ public Builder ids(Optional ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = ids;
+ return this;
+ }
+
+
/**
* Return records with a row ID greater than or equal to the given value
*/
@@ -388,8 +461,9 @@ public Builder customerId(Optional customerId) {
public CreditNotesFilter build() {
return new CreditNotesFilter(
- idSince, updatedSince, createdSince,
- number, subsidiaryId, customerId);
+ ids, idSince, updatedSince,
+ createdSince, number, subsidiaryId,
+ customerId);
}
}
diff --git a/src/main/java/com/apideck/unify/models/components/CustomersFilter.java b/src/main/java/com/apideck/unify/models/components/CustomersFilter.java
index e3f2ddadc..781157137 100644
--- a/src/main/java/com/apideck/unify/models/components/CustomersFilter.java
+++ b/src/main/java/com/apideck/unify/models/components/CustomersFilter.java
@@ -16,6 +16,12 @@
public class CustomersFilter {
+ /**
+ * Comma-separated list of customer IDs to filter by (e.g. `12345,67890`).
+ */
+ @SpeakeasyMetadata("queryParam:name=ids")
+ private Optional ids;
+
/**
* Company Name of customer to search for
*/
@@ -71,6 +77,7 @@ public class CustomersFilter {
@JsonCreator
public CustomersFilter(
+ Optional ids,
Optional companyName,
Optional displayName,
Optional firstName,
@@ -80,6 +87,7 @@ public CustomersFilter(
Optional updatedSince,
Optional supplierId,
Optional subsidiaryId) {
+ Utils.checkNotNull(ids, "ids");
Utils.checkNotNull(companyName, "companyName");
Utils.checkNotNull(displayName, "displayName");
Utils.checkNotNull(firstName, "firstName");
@@ -89,6 +97,7 @@ public CustomersFilter(
Utils.checkNotNull(updatedSince, "updatedSince");
Utils.checkNotNull(supplierId, "supplierId");
Utils.checkNotNull(subsidiaryId, "subsidiaryId");
+ this.ids = ids;
this.companyName = companyName;
this.displayName = displayName;
this.firstName = firstName;
@@ -102,8 +111,17 @@ public CustomersFilter(
public CustomersFilter() {
this(Optional.empty(), Optional.empty(), Optional.empty(),
- Optional.empty(), Optional.empty(), JsonNullable.undefined(),
- Optional.empty(), Optional.empty(), Optional.empty());
+ Optional.empty(), Optional.empty(), Optional.empty(),
+ JsonNullable.undefined(), Optional.empty(), Optional.empty(),
+ Optional.empty());
+ }
+
+ /**
+ * Comma-separated list of customer IDs to filter by (e.g. `12345,67890`).
+ */
+ @JsonIgnore
+ public Optional ids() {
+ return ids;
}
/**
@@ -182,6 +200,25 @@ public static Builder builder() {
}
+ /**
+ * Comma-separated list of customer IDs to filter by (e.g. `12345,67890`).
+ */
+ public CustomersFilter withIds(String ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = Optional.ofNullable(ids);
+ return this;
+ }
+
+
+ /**
+ * Comma-separated list of customer IDs to filter by (e.g. `12345,67890`).
+ */
+ public CustomersFilter withIds(Optional ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = ids;
+ return this;
+ }
+
/**
* Company Name of customer to search for
*/
@@ -358,6 +395,7 @@ public boolean equals(java.lang.Object o) {
}
CustomersFilter other = (CustomersFilter) o;
return
+ Utils.enhancedDeepEquals(this.ids, other.ids) &&
Utils.enhancedDeepEquals(this.companyName, other.companyName) &&
Utils.enhancedDeepEquals(this.displayName, other.displayName) &&
Utils.enhancedDeepEquals(this.firstName, other.firstName) &&
@@ -372,14 +410,16 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
return Utils.enhancedHash(
- companyName, displayName, firstName,
- lastName, email, status,
- updatedSince, supplierId, subsidiaryId);
+ ids, companyName, displayName,
+ firstName, lastName, email,
+ status, updatedSince, supplierId,
+ subsidiaryId);
}
@Override
public String toString() {
return Utils.toString(CustomersFilter.class,
+ "ids", ids,
"companyName", companyName,
"displayName", displayName,
"firstName", firstName,
@@ -394,6 +434,8 @@ public String toString() {
@SuppressWarnings("UnusedReturnValue")
public final static class Builder {
+ private Optional ids = Optional.empty();
+
private Optional companyName = Optional.empty();
private Optional displayName = Optional.empty();
@@ -417,6 +459,25 @@ private Builder() {
}
+ /**
+ * Comma-separated list of customer IDs to filter by (e.g. `12345,67890`).
+ */
+ public Builder ids(String ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = Optional.ofNullable(ids);
+ return this;
+ }
+
+ /**
+ * Comma-separated list of customer IDs to filter by (e.g. `12345,67890`).
+ */
+ public Builder ids(Optional ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = ids;
+ return this;
+ }
+
+
/**
* Company Name of customer to search for
*/
@@ -586,9 +647,10 @@ public Builder subsidiaryId(Optional subsidiaryId) {
public CustomersFilter build() {
return new CustomersFilter(
- companyName, displayName, firstName,
- lastName, email, status,
- updatedSince, supplierId, subsidiaryId);
+ ids, companyName, displayName,
+ firstName, lastName, email,
+ status, updatedSince, supplierId,
+ subsidiaryId);
}
}
diff --git a/src/main/java/com/apideck/unify/models/components/InvoicesFilter.java b/src/main/java/com/apideck/unify/models/components/InvoicesFilter.java
index 9ff2f4da7..957079e69 100644
--- a/src/main/java/com/apideck/unify/models/components/InvoicesFilter.java
+++ b/src/main/java/com/apideck/unify/models/components/InvoicesFilter.java
@@ -14,6 +14,14 @@
public class InvoicesFilter {
+ /**
+ * Comma-separated list of invoice IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ * DualEntry) the invoice ID is the invoice number.
+ */
+ @SpeakeasyMetadata("queryParam:name=ids")
+ private Optional ids;
+
/**
* Return records with a row ID greater than or equal to the given value
*/
@@ -55,6 +63,7 @@ public class InvoicesFilter {
@JsonCreator
public InvoicesFilter(
+ Optional ids,
Optional idSince,
Optional updatedSince,
Optional createdSince,
@@ -62,6 +71,7 @@ public InvoicesFilter(
Optional supplierId,
Optional subsidiaryId,
Optional customerId) {
+ Utils.checkNotNull(ids, "ids");
Utils.checkNotNull(idSince, "idSince");
Utils.checkNotNull(updatedSince, "updatedSince");
Utils.checkNotNull(createdSince, "createdSince");
@@ -69,6 +79,7 @@ public InvoicesFilter(
Utils.checkNotNull(supplierId, "supplierId");
Utils.checkNotNull(subsidiaryId, "subsidiaryId");
Utils.checkNotNull(customerId, "customerId");
+ this.ids = ids;
this.idSince = idSince;
this.updatedSince = updatedSince;
this.createdSince = createdSince;
@@ -81,7 +92,17 @@ public InvoicesFilter(
public InvoicesFilter() {
this(Optional.empty(), Optional.empty(), Optional.empty(),
Optional.empty(), Optional.empty(), Optional.empty(),
- Optional.empty());
+ Optional.empty(), Optional.empty());
+ }
+
+ /**
+ * Comma-separated list of invoice IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ * DualEntry) the invoice ID is the invoice number.
+ */
+ @JsonIgnore
+ public Optional ids() {
+ return ids;
}
/**
@@ -140,6 +161,29 @@ public static Builder builder() {
}
+ /**
+ * Comma-separated list of invoice IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ * DualEntry) the invoice ID is the invoice number.
+ */
+ public InvoicesFilter withIds(String ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = Optional.ofNullable(ids);
+ return this;
+ }
+
+
+ /**
+ * Comma-separated list of invoice IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ *
DualEntry) the invoice ID is the invoice number.
+ */
+ public InvoicesFilter withIds(Optional ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = ids;
+ return this;
+ }
+
/**
* Return records with a row ID greater than or equal to the given value
*/
@@ -273,6 +317,7 @@ public boolean equals(java.lang.Object o) {
}
InvoicesFilter other = (InvoicesFilter) o;
return
+ Utils.enhancedDeepEquals(this.ids, other.ids) &&
Utils.enhancedDeepEquals(this.idSince, other.idSince) &&
Utils.enhancedDeepEquals(this.updatedSince, other.updatedSince) &&
Utils.enhancedDeepEquals(this.createdSince, other.createdSince) &&
@@ -285,14 +330,15 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
return Utils.enhancedHash(
- idSince, updatedSince, createdSince,
- number, supplierId, subsidiaryId,
- customerId);
+ ids, idSince, updatedSince,
+ createdSince, number, supplierId,
+ subsidiaryId, customerId);
}
@Override
public String toString() {
return Utils.toString(InvoicesFilter.class,
+ "ids", ids,
"idSince", idSince,
"updatedSince", updatedSince,
"createdSince", createdSince,
@@ -305,6 +351,8 @@ public String toString() {
@SuppressWarnings("UnusedReturnValue")
public final static class Builder {
+ private Optional ids = Optional.empty();
+
private Optional idSince = Optional.empty();
private Optional updatedSince = Optional.empty();
@@ -324,6 +372,29 @@ private Builder() {
}
+ /**
+ * Comma-separated list of invoice IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ * DualEntry) the invoice ID is the invoice number.
+ */
+ public Builder ids(String ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = Optional.ofNullable(ids);
+ return this;
+ }
+
+ /**
+ * Comma-separated list of invoice IDs to filter by (e.g. `12345,67890`). On some connectors (e.g.
+ *
+ *
DualEntry) the invoice ID is the invoice number.
+ */
+ public Builder ids(Optional ids) {
+ Utils.checkNotNull(ids, "ids");
+ this.ids = ids;
+ return this;
+ }
+
+
/**
* Return records with a row ID greater than or equal to the given value
*/
@@ -449,9 +520,9 @@ public Builder customerId(Optional customerId) {
public InvoicesFilter build() {
return new InvoicesFilter(
- idSince, updatedSince, createdSince,
- number, supplierId, subsidiaryId,
- customerId);
+ ids, idSince, updatedSince,
+ createdSince, number, supplierId,
+ subsidiaryId, customerId);
}
}