diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 7e48cd8e..2a6c69e6 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 5bbaa3a9-baa0-471b-ba6a-13fd88e8c119 management: - docChecksum: fbd66438e58c0ea9577e11d5ef14dadc + docChecksum: 6ddd079e69ea367d395f5616ed7f350b docVersion: 1.0.0 speakeasyVersion: 1.797.0 generationVersion: 2.937.18 - releaseVersion: 2.19.7 - configChecksum: eb34c92eac87728605ecef472356c6a0 + releaseVersion: 2.19.8 + configChecksum: 41a25bb72112d1bf416ec8df41271b32 repoURL: https://github.com/gr4vy/gr4vy-java.git installationURL: https://github.com/gr4vy/gr4vy-java published: true persistentEdits: - generation_id: 12ec69a1-655e-4f0e-a746-e7faa39ccf56 - pristine_commit_hash: 5f7b3a999c22e86c9757ef9253a274e0de29c056 - pristine_tree_hash: c7bb67ac1b78795a494d93b4511fe0ae62c3e557 + generation_id: af6b5602-5620-4961-9d7c-886574706a78 + pristine_commit_hash: 61d7af96b0f405da702c00a7db27659df7e17094 + pristine_tree_hash: 0bdaa1c7c4c89c15326485d7d234881b7c127a69 features: java: additionalDependencies: 0.1.0 @@ -307,8 +307,8 @@ trackedFiles: pristine_git_object: 3af440c48c8745ed37c46cf7c9fbb221be98594b docs/models/components/CartItem.md: id: 7488a245df87 - last_write_checksum: sha1:a783c82981f5c18c9e2b35c4726b1473565dc676 - pristine_git_object: f5dc579a5bbbf702a45f68f31c59eaade94804c2 + last_write_checksum: sha1:df5da6bd528d188479899a46da4305699dd6e05c + pristine_git_object: a43059ba5e6ca357dd0087c75ea643ad7f6c9f10 docs/models/components/CertificateAlgorithm.md: id: 318d849b3d83 last_write_checksum: sha1:40436a04ed7382b52cf92f6c923a8ba895f1c8ad @@ -2863,8 +2863,8 @@ trackedFiles: pristine_git_object: 15c4e4642f204ccb312d8814155b69e153b4e19b gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:e523c5c92d47f6e914341a80574fac40d628c522 - pristine_git_object: 900925b6861bb0ee49267605d5b0784c2b0d8a00 + last_write_checksum: sha1:8d1b8ff3d7546a2a99ad45c17808cff2324fa802 + pristine_git_object: 37788b59f1c37d76c4820a2f17de41cba9a222f3 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3207,8 +3207,8 @@ trackedFiles: pristine_git_object: b50475cc7f6041d63c4569256e4ff1850b20d30b src/main/java/com/gr4vy/sdk/SDKConfiguration.java: id: 73a7edeaca45 - last_write_checksum: sha1:40467729aae88600f3a6acff00541aab784856ba - pristine_git_object: 4c6cc6038b9dad61ad38aea8a576b7285f74c53b + last_write_checksum: sha1:55cecd86ebbc47f670393fbfec4fe793503a630b + pristine_git_object: 498f72708d704a56ea8753260d8ed16dc688c25f src/main/java/com/gr4vy/sdk/SecuritySource.java: id: 1b6add6b9b50 last_write_checksum: sha1:2f365cc823c6243188e83f4df618c9737fcee8bd @@ -3499,8 +3499,8 @@ trackedFiles: pristine_git_object: 916fc1ec1156dd14308ed27405f877f8185d7794 src/main/java/com/gr4vy/sdk/models/components/CartItem.java: id: bb251abb2fcb - last_write_checksum: sha1:de745507e45880a398bbc55eb64c2b8b2e9faf3e - pristine_git_object: b2dab7b1769b02c4e1698622ba577d06cf32bd8a + last_write_checksum: sha1:e114fa4f5d2a2b5109ca7b239ddc2b9c6c952e9b + pristine_git_object: 17ff0e35ea8be4c2bcfd91604e484098601fe6c7 src/main/java/com/gr4vy/sdk/models/components/CertificateAlgorithm.java: id: e3229b7647d1 last_write_checksum: sha1:36dd78dbd7d05437f34c6d8e74f3e61051f9f737 @@ -12443,7 +12443,7 @@ examples: application/json: {"type": "error", "code": "gateway_timeout", "status": 504, "message": "Request could not be processed"} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Java SDK Changes:\n* `gr4vy.buyers.paymentMethods.list()`: `response.items[].method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentMethods.list()`: `response.items[].method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentMethods.create()`: \n * `requestBody.union(RedirectPaymentMethodCreate).method.enum(paypaldirectorder)` **Added**\n * `response.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentMethods.get()`: `response.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentMethods.update()`: `response.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.list()`: \n * `request.method` **Changed**\n * `response.items[].paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate` **Changed**\n * `response.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.get()`: `response.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.update()`: \n * `request.transactionUpdate.connectionOptions.paypalPaypaldirectorder` **Added**\n * `response.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.capture()`: `response.union(TransactionCapture).transaction.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.void()`: `response.union(Transaction).paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.cancel()`: `response.transaction.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.sync()`: `response.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.transactions.incrementAuthorization()`: `response.transaction.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentServiceDefinitions.list()`: `response.items[].method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentServiceDefinitions.get()`: `response.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentServices.list()`: \n * `request.method` **Changed**\n * `response.items[].method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentServices.create()`: `response.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentServices.get()`: `response.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentServices.update()`: `response.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.payouts.list()`: `response.items[].paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.payouts.create()`: `response.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.payouts.get()`: `response.paymentMethod.method.enum(paypaldirectorder)` **Added**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.connectionOptions.paypalPaypaldirectorder` **Added**\n" +releaseNotes: "## Java SDK Changes:\n* `gr4vy.transactions.create()`: \n * `request.transactionCreate.cartItems[]` **Changed**\n * `response.cartItems[]` **Changed**\n* `gr4vy.transactions.get()`: `response.cartItems[]` **Changed**\n* `gr4vy.transactions.update()`: `response.cartItems[]` **Changed**\n* `gr4vy.transactions.capture()`: \n * `request.transactionCaptureCreate.cartItems[]` **Changed**\n * `response.union(Transaction).cartItems[]` **Changed**\n* `gr4vy.transactions.void()`: `response.union(Transaction).cartItems[]` **Changed**\n* `gr4vy.transactions.cancel()`: `response.transaction.cartItems[]` **Changed**\n* `gr4vy.transactions.sync()`: `response.cartItems[]` **Changed**\n* `gr4vy.transactions.incrementAuthorization()`: `response.transaction.cartItems[]` **Changed**\n* `gr4vy.transactions.captures.list()`: `response.items[].cartItems[]` **Changed**\n* `gr4vy.transactions.captures.get()`: `response.cartItems[]` **Changed**\n* `gr4vy.paymentOptions.list()`: \n * `request.paymentOptionRequest.cartItems[]` **Changed**\n* `gr4vy.checkoutSessions.create()`: \n * `request.checkoutSessionCreate.cartItems[]` **Changed**\n * `response.cartItems[]` **Changed**\n* `gr4vy.checkoutSessions.update()`: \n * `request.checkoutSessionCreate.cartItems[]` **Changed**\n * `response.cartItems[]` **Changed**\n* `gr4vy.checkoutSessions.get()`: `response.cartItems[]` **Changed**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentLinkCreate.cartItems[]` **Changed**\n * `response.cartItems[]` **Changed**\n* `gr4vy.paymentLinks.list()`: `response.items[].cartItems[]` **Changed**\n* `gr4vy.paymentLinks.get()`: `response.cartItems[]` **Changed**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0bb53054..ccc6eeed 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 2.19.7 + version: 2.19.8 additionalDependencies: - testImplementation:org.junit.jupiter:junit-jupiter:5.10.0 - implementation:com.auth0:java-jwt:4.5.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 72d6340e..aca36d64 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -9,8 +9,8 @@ sources: - 1.0.0 openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:7b4264eab6030277acacbdbb7b455babd7f3395a90480d9dc31fb21cf1abc227 - sourceBlobDigest: sha256:9a7db2424b1eac8525bac8754d716bf0decb48f1e469caba89ec492d55439145 + sourceRevisionDigest: sha256:2068ff15cd7c08172960868860cc7ab74e8a64668cd16641ca532a45aa145b13 + sourceBlobDigest: sha256:978f7ee7c31ced41e64dfb1125c5b34e15c7a5119d4b444982db6fef879c5eb1 tags: - latest - 1.0.0 @@ -25,10 +25,10 @@ targets: java: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:7b4264eab6030277acacbdbb7b455babd7f3395a90480d9dc31fb21cf1abc227 - sourceBlobDigest: sha256:9a7db2424b1eac8525bac8754d716bf0decb48f1e469caba89ec492d55439145 + sourceRevisionDigest: sha256:2068ff15cd7c08172960868860cc7ab74e8a64668cd16641ca532a45aa145b13 + sourceBlobDigest: sha256:978f7ee7c31ced41e64dfb1125c5b34e15c7a5119d4b444982db6fef879c5eb1 codeSamplesNamespace: openapi-java-code-samples - codeSamplesRevisionDigest: sha256:719ae8a9786a86f15b42cb50de72fd832cb9bdd6becd67bc3bb4cb8c4cae5893 + codeSamplesRevisionDigest: sha256:20d6d42ba12c6ce0b0e1fe5e31ed48d789878834530fd088c0ebbd2670f55dac workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 3882f84a..c185825c 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.gr4vy:sdk:2.19.7' +implementation 'com.gr4vy:sdk:2.19.8' ``` Maven: @@ -67,7 +67,7 @@ Maven: com.gr4vy sdk - 2.19.7 + 2.19.8 ``` diff --git a/RELEASES.md b/RELEASES.md index d511f3b3..574e493e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2238,4 +2238,14 @@ Based on: ### Generated - [java v2.19.7] . ### Releases -- [Maven Central v2.19.7] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.7 - . \ No newline at end of file +- [Maven Central v2.19.7] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.7 - . + +## 2026-09-15 08:10:07 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.797.0 (2.937.18) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v2.19.8] . +### Releases +- [Maven Central v2.19.8] https://central.sonatype.com/artifact/com.gr4vy/sdk/2.19.8 - . \ No newline at end of file diff --git a/docs/models/components/CartItem.md b/docs/models/components/CartItem.md index f5dc579a..a43059ba 100644 --- a/docs/models/components/CartItem.md +++ b/docs/models/components/CartItem.md @@ -16,6 +16,8 @@ | `productUrl` | *JsonNullable\* | :heavy_minus_sign: | The product URL for the item. | https://example.com/catalog/go-pro-hd | | `imageUrl` | *JsonNullable\* | :heavy_minus_sign: | The URL for the image of the item. | https://example.com/images/go-pro-hd.jpg | | `categories` | List\<*String*> | :heavy_minus_sign: | A list of strings containing product categories for the item. | [
"camera",
"travel",
"gear"
] | +| `subcategories` | List\<*String*> | :heavy_minus_sign: | A list of strings containing product subcategories for the item. | [
"action-cameras"
] | +| `brand` | *JsonNullable\* | :heavy_minus_sign: | The brand of the item. | GoPro | | `productType` | [JsonNullable\](../../models/components/ProductType.md) | :heavy_minus_sign: | The product type of the cart item. | physical | | `sellerCountry` | *JsonNullable\* | :heavy_minus_sign: | The seller country of the cart item. | **Example 1:** US
**Example 2:** GB | | `taxExempt` | *JsonNullable\* | :heavy_minus_sign: | Whether the item is exempt of tax. | false | diff --git a/gradle.properties b/gradle.properties index 900925b6..37788b59 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.gr4vy artifactId=sdk -version=2.19.7 +version=2.19.8 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java index 4c6cc603..498f7270 100644 --- a/src/main/java/com/gr4vy/sdk/SDKConfiguration.java +++ b/src/main/java/com/gr4vy/sdk/SDKConfiguration.java @@ -22,7 +22,7 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "1.0.0"; - public static final String SDK_VERSION = "2.19.7"; + public static final String SDK_VERSION = "2.19.8"; public static final String GEN_VERSION = "2.937.18"; private static final String BASE_PACKAGE = "com.gr4vy.sdk"; public static final String USER_AGENT = diff --git a/src/main/java/com/gr4vy/sdk/models/components/CartItem.java b/src/main/java/com/gr4vy/sdk/models/components/CartItem.java index b2dab7b1..17ff0e35 100644 --- a/src/main/java/com/gr4vy/sdk/models/components/CartItem.java +++ b/src/main/java/com/gr4vy/sdk/models/components/CartItem.java @@ -100,6 +100,20 @@ public class CartItem { @JsonProperty("categories") private JsonNullable> categories; + /** + * A list of strings containing product subcategories for the item. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subcategories") + private JsonNullable> subcategories; + + /** + * The brand of the item. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("brand") + private JsonNullable brand; + /** * The product type of the cart item. */ @@ -171,6 +185,8 @@ public CartItem( @JsonProperty("product_url") JsonNullable productUrl, @JsonProperty("image_url") JsonNullable imageUrl, @JsonProperty("categories") JsonNullable> categories, + @JsonProperty("subcategories") JsonNullable> subcategories, + @JsonProperty("brand") JsonNullable brand, @JsonProperty("product_type") JsonNullable productType, @JsonProperty("seller_country") JsonNullable sellerCountry, @JsonProperty("tax_exempt") JsonNullable taxExempt, @@ -190,6 +206,8 @@ public CartItem( Utils.checkNotNull(productUrl, "productUrl"); Utils.checkNotNull(imageUrl, "imageUrl"); Utils.checkNotNull(categories, "categories"); + Utils.checkNotNull(subcategories, "subcategories"); + Utils.checkNotNull(brand, "brand"); Utils.checkNotNull(productType, "productType"); Utils.checkNotNull(sellerCountry, "sellerCountry"); Utils.checkNotNull(taxExempt, "taxExempt"); @@ -209,6 +227,8 @@ public CartItem( this.productUrl = productUrl; this.imageUrl = imageUrl; this.categories = categories; + this.subcategories = subcategories; + this.brand = brand; this.productType = productType; this.sellerCountry = sellerCountry; this.taxExempt = taxExempt; @@ -229,7 +249,7 @@ public CartItem( JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), - JsonNullable.undefined()); + JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined()); } /** @@ -328,6 +348,23 @@ public JsonNullable> categories() { return (JsonNullable>) categories; } + /** + * A list of strings containing product subcategories for the item. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> subcategories() { + return (JsonNullable>) subcategories; + } + + /** + * The brand of the item. + */ + @JsonIgnore + public JsonNullable brand() { + return brand; + } + /** * The product type of the cart item. */ @@ -581,6 +618,42 @@ public CartItem withCategories(JsonNullable> categories) return this; } + /** + * A list of strings containing product subcategories for the item. + */ + public CartItem withSubcategories(List subcategories) { + Utils.checkNotNull(subcategories, "subcategories"); + this.subcategories = JsonNullable.of(subcategories); + return this; + } + + /** + * A list of strings containing product subcategories for the item. + */ + public CartItem withSubcategories(JsonNullable> subcategories) { + Utils.checkNotNull(subcategories, "subcategories"); + this.subcategories = subcategories; + return this; + } + + /** + * The brand of the item. + */ + public CartItem withBrand(String brand) { + Utils.checkNotNull(brand, "brand"); + this.brand = JsonNullable.of(brand); + return this; + } + + /** + * The brand of the item. + */ + public CartItem withBrand(JsonNullable brand) { + Utils.checkNotNull(brand, "brand"); + this.brand = brand; + return this; + } + /** * The product type of the cart item. */ @@ -750,6 +823,8 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.productUrl, other.productUrl) && Utils.enhancedDeepEquals(this.imageUrl, other.imageUrl) && Utils.enhancedDeepEquals(this.categories, other.categories) && + Utils.enhancedDeepEquals(this.subcategories, other.subcategories) && + Utils.enhancedDeepEquals(this.brand, other.brand) && Utils.enhancedDeepEquals(this.productType, other.productType) && Utils.enhancedDeepEquals(this.sellerCountry, other.sellerCountry) && Utils.enhancedDeepEquals(this.taxExempt, other.taxExempt) && @@ -766,10 +841,10 @@ public int hashCode() { name, quantity, unitAmount, discountAmount, taxAmount, externalIdentifier, sku, upc, productUrl, - imageUrl, categories, productType, - sellerCountry, taxExempt, unitOfMeasure, - commodityCode, description, dutyAmount, - shippingAmount); + imageUrl, categories, subcategories, + brand, productType, sellerCountry, + taxExempt, unitOfMeasure, commodityCode, + description, dutyAmount, shippingAmount); } @Override @@ -786,6 +861,8 @@ public String toString() { "productUrl", productUrl, "imageUrl", imageUrl, "categories", categories, + "subcategories", subcategories, + "brand", brand, "productType", productType, "sellerCountry", sellerCountry, "taxExempt", taxExempt, @@ -821,6 +898,10 @@ public final static class Builder { private JsonNullable> categories = JsonNullable.undefined(); + private JsonNullable> subcategories = JsonNullable.undefined(); + + private JsonNullable brand = JsonNullable.undefined(); + private JsonNullable productType = JsonNullable.undefined(); private JsonNullable sellerCountry = JsonNullable.undefined(); @@ -1034,6 +1115,44 @@ public Builder categories(JsonNullable> categories) { } + /** + * A list of strings containing product subcategories for the item. + */ + public Builder subcategories(List subcategories) { + Utils.checkNotNull(subcategories, "subcategories"); + this.subcategories = JsonNullable.of(subcategories); + return this; + } + + /** + * A list of strings containing product subcategories for the item. + */ + public Builder subcategories(JsonNullable> subcategories) { + Utils.checkNotNull(subcategories, "subcategories"); + this.subcategories = subcategories; + return this; + } + + + /** + * The brand of the item. + */ + public Builder brand(String brand) { + Utils.checkNotNull(brand, "brand"); + this.brand = JsonNullable.of(brand); + return this; + } + + /** + * The brand of the item. + */ + public Builder brand(JsonNullable brand) { + Utils.checkNotNull(brand, "brand"); + this.brand = brand; + return this; + } + + /** * The product type of the cart item. */ @@ -1195,10 +1314,10 @@ public CartItem build() { name, quantity, unitAmount, discountAmount, taxAmount, externalIdentifier, sku, upc, productUrl, - imageUrl, categories, productType, - sellerCountry, taxExempt, unitOfMeasure, - commodityCode, description, dutyAmount, - shippingAmount); + imageUrl, categories, subcategories, + brand, productType, sellerCountry, + taxExempt, unitOfMeasure, commodityCode, + description, dutyAmount, shippingAmount); } }