Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"client-class-name": "Vital",
"enable-forward-compatible-enums": false
},
"sdkVersion": "1.2.600"
"sdkVersion": "1.2.601"
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ java {

group = 'io.tryvital'

version = '1.2.600'
version = '1.2.601'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -78,7 +78,7 @@ publishing {
maven(MavenPublication) {
groupId = 'io.tryvital'
artifactId = 'vital-java'
version = '1.2.600'
version = '1.2.601'
from components.java
pom {
name = 'vital'
Expand Down
11 changes: 10 additions & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -12024,6 +12024,7 @@ client.labTests().getOrders(
.userId("user_id")
.patientName("patient_name")
.shippingRecipientName("shipping_recipient_name")
.orderTransactionId("order_transaction_id")
.page(1)
.size(1)
.build()
Expand Down Expand Up @@ -12170,6 +12171,14 @@ client.labTests().getOrders(
<dl>
<dd>

**orderTransactionId:** `Optional<String>` — Filter by order transaction ID

</dd>
</dl>

<dl>
<dd>

**page:** `Optional<Integer>`

</dd>
Expand Down Expand Up @@ -13213,7 +13222,7 @@ client.labTests().getPscAppointmentAvailability(
<dl>
<dd>

**allowStale:** `Optional<Boolean>` — [Closed Beta] Serve last known good information when the PSC system is temporarily unavailable.
**allowStale:** `Optional<Boolean>` — If true, allows cached availability data to be returned.

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/vital/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ private ClientOptions(
this.headers.putAll(headers);
this.headers.putAll(new HashMap<String, String>() {
{
put("User-Agent", "io.tryvital:vital-java/1.2.600");
put("User-Agent", "io.tryvital:vital-java/1.2.601");
put("X-Fern-Language", "JAVA");
put("X-Fern-SDK-Name", "com.vital.fern:api-sdk");
put("X-Fern-SDK-Version", "1.2.600");
put("X-Fern-SDK-Version", "1.2.601");
}
});
this.headerSuppliers = headerSuppliers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,13 @@ public CompletableFuture<VitalHttpResponse<GetOrdersResponse>> getOrders(
request.getShippingRecipientName().get(),
false);
}
if (request.getOrderTransactionId().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl,
"order_transaction_id",
request.getOrderTransactionId().get(),
false);
}
if (request.getPage().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "page", request.getPage().get(), false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@ public VitalHttpResponse<GetOrdersResponse> getOrders(
request.getShippingRecipientName().get(),
false);
}
if (request.getOrderTransactionId().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl,
"order_transaction_id",
request.getOrderTransactionId().get(),
false);
}
if (request.getPage().isPresent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "page", request.getPage().get(), false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public final class LabTestsGetOrdersRequest {

private final Optional<String> shippingRecipientName;

private final Optional<String> orderTransactionId;

private final Optional<Integer> page;

private final Optional<Integer> size;
Expand All @@ -84,6 +86,7 @@ private LabTestsGetOrdersRequest(
Optional<String> userId,
Optional<String> patientName,
Optional<String> shippingRecipientName,
Optional<String> orderTransactionId,
Optional<Integer> page,
Optional<Integer> size,
Map<String, Object> additionalProperties) {
Expand All @@ -103,6 +106,7 @@ private LabTestsGetOrdersRequest(
this.userId = userId;
this.patientName = patientName;
this.shippingRecipientName = shippingRecipientName;
this.orderTransactionId = orderTransactionId;
this.page = page;
this.size = size;
this.additionalProperties = additionalProperties;
Expand Down Expand Up @@ -236,6 +240,14 @@ public Optional<String> getShippingRecipientName() {
return shippingRecipientName;
}

/**
* @return Filter by order transaction ID
*/
@JsonProperty("order_transaction_id")
public Optional<String> getOrderTransactionId() {
return orderTransactionId;
}

@JsonProperty("page")
public Optional<Integer> getPage() {
return page;
Expand Down Expand Up @@ -274,6 +286,7 @@ private boolean equalTo(LabTestsGetOrdersRequest other) {
&& userId.equals(other.userId)
&& patientName.equals(other.patientName)
&& shippingRecipientName.equals(other.shippingRecipientName)
&& orderTransactionId.equals(other.orderTransactionId)
&& page.equals(other.page)
&& size.equals(other.size);
}
Expand All @@ -297,6 +310,7 @@ public int hashCode() {
this.userId,
this.patientName,
this.shippingRecipientName,
this.orderTransactionId,
this.page,
this.size);
}
Expand Down Expand Up @@ -344,6 +358,8 @@ public static final class Builder {

private Optional<String> shippingRecipientName = Optional.empty();

private Optional<String> orderTransactionId = Optional.empty();

private Optional<Integer> page = Optional.empty();

private Optional<Integer> size = Optional.empty();
Expand All @@ -370,6 +386,7 @@ public Builder from(LabTestsGetOrdersRequest other) {
userId(other.getUserId());
patientName(other.getPatientName());
shippingRecipientName(other.getShippingRecipientName());
orderTransactionId(other.getOrderTransactionId());
page(other.getPage());
size(other.getSize());
return this;
Expand Down Expand Up @@ -619,6 +636,20 @@ public Builder shippingRecipientName(String shippingRecipientName) {
return this;
}

/**
* <p>Filter by order transaction ID</p>
*/
@JsonSetter(value = "order_transaction_id", nulls = Nulls.SKIP)
public Builder orderTransactionId(Optional<String> orderTransactionId) {
this.orderTransactionId = orderTransactionId;
return this;
}

public Builder orderTransactionId(String orderTransactionId) {
this.orderTransactionId = Optional.ofNullable(orderTransactionId);
return this;
}

@JsonSetter(value = "page", nulls = Nulls.SKIP)
public Builder page(Optional<Integer> page) {
this.page = page;
Expand Down Expand Up @@ -659,6 +690,7 @@ public LabTestsGetOrdersRequest build() {
userId,
patientName,
shippingRecipientName,
orderTransactionId,
page,
size,
additionalProperties);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public Optional<AllowedRadius> getRadius() {
}

/**
* @return [Closed Beta] Serve last known good information when the PSC system is temporarily unavailable.
* @return If true, allows cached availability data to be returned.
*/
@JsonProperty("allow_stale")
public Optional<Boolean> getAllowStale() {
Expand Down Expand Up @@ -181,7 +181,7 @@ public interface _FinalStage {
_FinalStage radius(AllowedRadius radius);

/**
* <p>[Closed Beta] Serve last known good information when the PSC system is temporarily unavailable.</p>
* <p>If true, allows cached availability data to be returned.</p>
*/
_FinalStage allowStale(Optional<Boolean> allowStale);

Expand Down Expand Up @@ -231,7 +231,7 @@ public _FinalStage lab(@NotNull String lab) {
}

/**
* <p>[Closed Beta] Serve last known good information when the PSC system is temporarily unavailable.</p>
* <p>If true, allows cached availability data to be returned.</p>
* @return Reference to {@code this} so that method calls can be chained together.
*/
@java.lang.Override
Expand All @@ -241,7 +241,7 @@ public _FinalStage allowStale(Boolean allowStale) {
}

/**
* <p>[Closed Beta] Serve last known good information when the PSC system is temporarily unavailable.</p>
* <p>If true, allows cached availability data to be returned.</p>
*/
@java.lang.Override
@JsonSetter(value = "allow_stale", nulls = Nulls.SKIP)
Expand Down
Loading