Skip to content
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 MobileBuy/buy3/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
`maven-publish`
}

version = "2026.1.0"
version = "2026.4.0"

android {
namespace = "com.shopify.buy3"
Expand Down
132 changes: 131 additions & 1 deletion MobileBuy/buy3/src/main/java/com/shopify/buy3/Storefront.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.*;

public class Storefront {
public static final String API_VERSION = "2026-01";
public static final String API_VERSION = "2026-04";

public static QueryRootQuery query(QueryRootQueryDefinition queryDef) {
return query(Collections.emptyList(), queryDef);
Expand Down Expand Up @@ -13239,6 +13239,11 @@ public enum CartErrorCode {
*/
MAXIMUM_EXCEEDED,

/**
* An error occurred while processing cart transformations.
*/
MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR,

/**
* Item cannot be purchased as configured.
*/
Expand Down Expand Up @@ -13507,6 +13512,10 @@ public static CartErrorCode fromGraphQl(String value) {
return MAXIMUM_EXCEEDED;
}

case "MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR": {
return MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR;
}

case "MERCHANDISE_NOT_APPLICABLE": {
return MERCHANDISE_NOT_APPLICABLE;
}
Expand Down Expand Up @@ -13742,6 +13751,10 @@ public String toString() {
return "MAXIMUM_EXCEEDED";
}

case MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR: {
return "MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR";
}

case MERCHANDISE_NOT_APPLICABLE: {
return "MERCHANDISE_NOT_APPLICABLE";
}
Expand Down Expand Up @@ -73626,6 +73639,19 @@ public ShopQuery brand(BrandQueryDefinition queryDef) {
return this;
}

/**
* The shop's contact information.
*/
public ShopQuery contactInformation(ShopPolicyQueryDefinition queryDef) {
startField("contactInformation");

_queryBuilder.append('{');
queryDef.define(new ShopPolicyQuery(_queryBuilder));
_queryBuilder.append('}');

return this;
}

/**
* Translations for customer accounts.
*/
Expand Down Expand Up @@ -73657,6 +73683,19 @@ public ShopQuery description() {
return this;
}

/**
* The shop's legal notice.
*/
public ShopQuery legalNotice(ShopPolicyQueryDefinition queryDef) {
startField("legalNotice");

_queryBuilder.append('{');
queryDef.define(new ShopPolicyQuery(_queryBuilder));
_queryBuilder.append('}');

return this;
}

public class MetafieldArguments extends Arguments {
MetafieldArguments(StringBuilder _queryBuilder) {
super(_queryBuilder, false);
Expand Down Expand Up @@ -73868,6 +73907,19 @@ public ShopQuery subscriptionPolicy(ShopPolicyWithDefaultQueryDefinition queryDe
return this;
}

/**
* The shop's terms of sale.
*/
public ShopQuery termsOfSale(ShopPolicyQueryDefinition queryDef) {
startField("termsOfSale");

_queryBuilder.append('{');
queryDef.define(new ShopPolicyQuery(_queryBuilder));
_queryBuilder.append('}');

return this;
}

/**
* The shop’s terms of service.
*/
Expand Down Expand Up @@ -73920,6 +73972,17 @@ public Shop(JsonObject fields) throws SchemaViolationError {
break;
}

case "contactInformation": {
ShopPolicy optional1 = null;
if (!field.getValue().isJsonNull()) {
optional1 = new ShopPolicy(jsonAsObject(field.getValue(), key));
}

responseData.put(key, optional1);

break;
}

case "customerAccountTranslations": {
List<Translation> optional1 = null;
if (!field.getValue().isJsonNull()) {
Expand Down Expand Up @@ -73964,6 +74027,17 @@ public Shop(JsonObject fields) throws SchemaViolationError {
break;
}

case "legalNotice": {
ShopPolicy optional1 = null;
if (!field.getValue().isJsonNull()) {
optional1 = new ShopPolicy(jsonAsObject(field.getValue(), key));
}

responseData.put(key, optional1);

break;
}

case "metafield": {
Metafield optional1 = null;
if (!field.getValue().isJsonNull()) {
Expand Down Expand Up @@ -74092,6 +74166,17 @@ public Shop(JsonObject fields) throws SchemaViolationError {
break;
}

case "termsOfSale": {
ShopPolicy optional1 = null;
if (!field.getValue().isJsonNull()) {
optional1 = new ShopPolicy(jsonAsObject(field.getValue(), key));
}

responseData.put(key, optional1);

break;
}

case "termsOfService": {
ShopPolicy optional1 = null;
if (!field.getValue().isJsonNull()) {
Expand Down Expand Up @@ -74136,6 +74221,19 @@ public Shop setBrand(Brand arg) {
return this;
}

/**
* The shop's contact information.
*/

public ShopPolicy getContactInformation() {
return (ShopPolicy) get("contactInformation");
}

public Shop setContactInformation(ShopPolicy arg) {
optimisticData.put(getKey("contactInformation"), arg);
return this;
}

/**
* Translations for customer accounts.
*/
Expand Down Expand Up @@ -74183,6 +74281,19 @@ public ID getId() {
return (ID) get("id");
}

/**
* The shop's legal notice.
*/

public ShopPolicy getLegalNotice() {
return (ShopPolicy) get("legalNotice");
}

public Shop setLegalNotice(ShopPolicy arg) {
optimisticData.put(getKey("legalNotice"), arg);
return this;
}

/**
* A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and
* `key`, that's associated with a Shopify resource for the purposes of adding and storing additional
Expand Down Expand Up @@ -74355,6 +74466,19 @@ public Shop setSubscriptionPolicy(ShopPolicyWithDefault arg) {
return this;
}

/**
* The shop's terms of sale.
*/

public ShopPolicy getTermsOfSale() {
return (ShopPolicy) get("termsOfSale");
}

public Shop setTermsOfSale(ShopPolicy arg) {
optimisticData.put(getKey("termsOfSale"), arg);
return this;
}

/**
* The shop’s terms of service.
*/
Expand All @@ -74373,8 +74497,12 @@ public boolean unwrapsToObject(String key) {
switch (getFieldName(key)) {
case "brand": return true;

case "contactInformation": return true;

case "customerAccountTranslations": return true;

case "legalNotice": return true;

case "metafield": return true;

case "metafields": return true;
Expand All @@ -74395,6 +74523,8 @@ public boolean unwrapsToObject(String key) {

case "subscriptionPolicy": return true;

case "termsOfSale": return true;

case "termsOfService": return true;

default: return false;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ As of the `2025.1.0` release, the library is published both to [Maven Central](h
#### Gradle:

```gradle
implementation("com.shopify.mobilebuysdk:buy3:2026.1.0")
implementation("com.shopify.mobilebuysdk:buy3:2026.4.0")
```

#### Maven:
Expand All @@ -34,7 +34,7 @@ implementation("com.shopify.mobilebuysdk:buy3:2026.1.0")
<dependency>
<groupId>com.shopify.mobilebuysdk</groupId>
<artifactId>buy3</artifactId>
<version>2026.1.0</version>
<version>2026.4.0</version>
</dependency>
```

Expand Down
Loading