Skip to content

Commit cc22dc6

Browse files
Merge pull request #811 from Shopify/release/2026-04
Generating schema for 2026-04
2 parents 9b4fa83 + 29dc4fc commit cc22dc6

3 files changed

Lines changed: 134 additions & 4 deletions

File tree

MobileBuy/buy3/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
`maven-publish`
66
}
77

8-
version = "2026.1.0"
8+
version = "2026.4.0"
99

1010
android {
1111
namespace = "com.shopify.buy3"

MobileBuy/buy3/src/main/java/com/shopify/buy3/Storefront.java

Lines changed: 131 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import java.util.*;
2424

2525
public class Storefront {
26-
public static final String API_VERSION = "2026-01";
26+
public static final String API_VERSION = "2026-04";
2727

2828
public static QueryRootQuery query(QueryRootQueryDefinition queryDef) {
2929
return query(Collections.emptyList(), queryDef);
@@ -13239,6 +13239,11 @@ public enum CartErrorCode {
1323913239
*/
1324013240
MAXIMUM_EXCEEDED,
1324113241

13242+
/**
13243+
* An error occurred while processing cart transformations.
13244+
*/
13245+
MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR,
13246+
1324213247
/**
1324313248
* Item cannot be purchased as configured.
1324413249
*/
@@ -13507,6 +13512,10 @@ public static CartErrorCode fromGraphQl(String value) {
1350713512
return MAXIMUM_EXCEEDED;
1350813513
}
1350913514

13515+
case "MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR": {
13516+
return MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR;
13517+
}
13518+
1351013519
case "MERCHANDISE_NOT_APPLICABLE": {
1351113520
return MERCHANDISE_NOT_APPLICABLE;
1351213521
}
@@ -13742,6 +13751,10 @@ public String toString() {
1374213751
return "MAXIMUM_EXCEEDED";
1374313752
}
1374413753

13754+
case MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR: {
13755+
return "MERCHANDISE_LINE_TRANSFORMERS_RUN_ERROR";
13756+
}
13757+
1374513758
case MERCHANDISE_NOT_APPLICABLE: {
1374613759
return "MERCHANDISE_NOT_APPLICABLE";
1374713760
}
@@ -73626,6 +73639,19 @@ public ShopQuery brand(BrandQueryDefinition queryDef) {
7362673639
return this;
7362773640
}
7362873641

73642+
/**
73643+
* The shop's contact information.
73644+
*/
73645+
public ShopQuery contactInformation(ShopPolicyQueryDefinition queryDef) {
73646+
startField("contactInformation");
73647+
73648+
_queryBuilder.append('{');
73649+
queryDef.define(new ShopPolicyQuery(_queryBuilder));
73650+
_queryBuilder.append('}');
73651+
73652+
return this;
73653+
}
73654+
7362973655
/**
7363073656
* Translations for customer accounts.
7363173657
*/
@@ -73657,6 +73683,19 @@ public ShopQuery description() {
7365773683
return this;
7365873684
}
7365973685

73686+
/**
73687+
* The shop's legal notice.
73688+
*/
73689+
public ShopQuery legalNotice(ShopPolicyQueryDefinition queryDef) {
73690+
startField("legalNotice");
73691+
73692+
_queryBuilder.append('{');
73693+
queryDef.define(new ShopPolicyQuery(_queryBuilder));
73694+
_queryBuilder.append('}');
73695+
73696+
return this;
73697+
}
73698+
7366073699
public class MetafieldArguments extends Arguments {
7366173700
MetafieldArguments(StringBuilder _queryBuilder) {
7366273701
super(_queryBuilder, false);
@@ -73868,6 +73907,19 @@ public ShopQuery subscriptionPolicy(ShopPolicyWithDefaultQueryDefinition queryDe
7386873907
return this;
7386973908
}
7387073909

73910+
/**
73911+
* The shop's terms of sale.
73912+
*/
73913+
public ShopQuery termsOfSale(ShopPolicyQueryDefinition queryDef) {
73914+
startField("termsOfSale");
73915+
73916+
_queryBuilder.append('{');
73917+
queryDef.define(new ShopPolicyQuery(_queryBuilder));
73918+
_queryBuilder.append('}');
73919+
73920+
return this;
73921+
}
73922+
7387173923
/**
7387273924
* The shop’s terms of service.
7387373925
*/
@@ -73920,6 +73972,17 @@ public Shop(JsonObject fields) throws SchemaViolationError {
7392073972
break;
7392173973
}
7392273974

73975+
case "contactInformation": {
73976+
ShopPolicy optional1 = null;
73977+
if (!field.getValue().isJsonNull()) {
73978+
optional1 = new ShopPolicy(jsonAsObject(field.getValue(), key));
73979+
}
73980+
73981+
responseData.put(key, optional1);
73982+
73983+
break;
73984+
}
73985+
7392373986
case "customerAccountTranslations": {
7392473987
List<Translation> optional1 = null;
7392573988
if (!field.getValue().isJsonNull()) {
@@ -73964,6 +74027,17 @@ public Shop(JsonObject fields) throws SchemaViolationError {
7396474027
break;
7396574028
}
7396674029

74030+
case "legalNotice": {
74031+
ShopPolicy optional1 = null;
74032+
if (!field.getValue().isJsonNull()) {
74033+
optional1 = new ShopPolicy(jsonAsObject(field.getValue(), key));
74034+
}
74035+
74036+
responseData.put(key, optional1);
74037+
74038+
break;
74039+
}
74040+
7396774041
case "metafield": {
7396874042
Metafield optional1 = null;
7396974043
if (!field.getValue().isJsonNull()) {
@@ -74092,6 +74166,17 @@ public Shop(JsonObject fields) throws SchemaViolationError {
7409274166
break;
7409374167
}
7409474168

74169+
case "termsOfSale": {
74170+
ShopPolicy optional1 = null;
74171+
if (!field.getValue().isJsonNull()) {
74172+
optional1 = new ShopPolicy(jsonAsObject(field.getValue(), key));
74173+
}
74174+
74175+
responseData.put(key, optional1);
74176+
74177+
break;
74178+
}
74179+
7409574180
case "termsOfService": {
7409674181
ShopPolicy optional1 = null;
7409774182
if (!field.getValue().isJsonNull()) {
@@ -74136,6 +74221,19 @@ public Shop setBrand(Brand arg) {
7413674221
return this;
7413774222
}
7413874223

74224+
/**
74225+
* The shop's contact information.
74226+
*/
74227+
74228+
public ShopPolicy getContactInformation() {
74229+
return (ShopPolicy) get("contactInformation");
74230+
}
74231+
74232+
public Shop setContactInformation(ShopPolicy arg) {
74233+
optimisticData.put(getKey("contactInformation"), arg);
74234+
return this;
74235+
}
74236+
7413974237
/**
7414074238
* Translations for customer accounts.
7414174239
*/
@@ -74183,6 +74281,19 @@ public ID getId() {
7418374281
return (ID) get("id");
7418474282
}
7418574283

74284+
/**
74285+
* The shop's legal notice.
74286+
*/
74287+
74288+
public ShopPolicy getLegalNotice() {
74289+
return (ShopPolicy) get("legalNotice");
74290+
}
74291+
74292+
public Shop setLegalNotice(ShopPolicy arg) {
74293+
optimisticData.put(getKey("legalNotice"), arg);
74294+
return this;
74295+
}
74296+
7418674297
/**
7418774298
* A [custom field](https://shopify.dev/docs/apps/build/custom-data), including its `namespace` and
7418874299
* `key`, that's associated with a Shopify resource for the purposes of adding and storing additional
@@ -74355,6 +74466,19 @@ public Shop setSubscriptionPolicy(ShopPolicyWithDefault arg) {
7435574466
return this;
7435674467
}
7435774468

74469+
/**
74470+
* The shop's terms of sale.
74471+
*/
74472+
74473+
public ShopPolicy getTermsOfSale() {
74474+
return (ShopPolicy) get("termsOfSale");
74475+
}
74476+
74477+
public Shop setTermsOfSale(ShopPolicy arg) {
74478+
optimisticData.put(getKey("termsOfSale"), arg);
74479+
return this;
74480+
}
74481+
7435874482
/**
7435974483
* The shop’s terms of service.
7436074484
*/
@@ -74373,8 +74497,12 @@ public boolean unwrapsToObject(String key) {
7437374497
switch (getFieldName(key)) {
7437474498
case "brand": return true;
7437574499

74500+
case "contactInformation": return true;
74501+
7437674502
case "customerAccountTranslations": return true;
7437774503

74504+
case "legalNotice": return true;
74505+
7437874506
case "metafield": return true;
7437974507

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

7439674524
case "subscriptionPolicy": return true;
7439774525

74526+
case "termsOfSale": return true;
74527+
7439874528
case "termsOfService": return true;
7439974529

7440074530
default: return false;

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ As of the `2025.1.0` release, the library is published both to [Maven Central](h
2525
#### Gradle:
2626

2727
```gradle
28-
implementation("com.shopify.mobilebuysdk:buy3:2026.1.0")
28+
implementation("com.shopify.mobilebuysdk:buy3:2026.4.0")
2929
```
3030

3131
#### Maven:
@@ -34,7 +34,7 @@ implementation("com.shopify.mobilebuysdk:buy3:2026.1.0")
3434
<dependency>
3535
<groupId>com.shopify.mobilebuysdk</groupId>
3636
<artifactId>buy3</artifactId>
37-
<version>2026.1.0</version>
37+
<version>2026.4.0</version>
3838
</dependency>
3939
```
4040

0 commit comments

Comments
 (0)