2323import java.util.*;
2424
2525public 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;
0 commit comments