Skip to content

Model update #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025
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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
[![Java Version](https://img.shields.io/badge/Java-8%2B-blue)](https://www.java.com)
[![Maven Central](https://img.shields.io/maven-central/v/pl.wtx.woocommerce/woocommerce-api-client?label=Maven%20Central&logo=apache-maven&color=blue)](https://mvnrepository.com/artifact/pl.wtx.woocommerce/woocommerce-api-client)


A lightweight Java client library for WooCommerce REST API integration. Built for Java developers who need to integrate their applications with WooCommerce e-commerce platform. 🚀

This API client provides a type-safe Java interface for WooCommerce REST API v3, enabling seamless management of:
Expand Down Expand Up @@ -88,7 +87,7 @@ You can add the library to your project by including the dependency from Maven C
<dependency>
<groupId>pl.wtx.woocommerce</groupId>
<artifactId>woocommerce-api-client</artifactId>
<version>0.9.5</version>
<version>0.9.6</version>
</dependency>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public class Product {
public static final String SERIALIZED_NAME_TOTAL_SALES = "total_sales";
@SerializedName(SERIALIZED_NAME_TOTAL_SALES)
@javax.annotation.Nullable
private Integer totalSales;
private Long totalSales;

public static final String SERIALIZED_NAME_VIRTUAL = "virtual";
@SerializedName(SERIALIZED_NAME_VIRTUAL)
Expand Down Expand Up @@ -863,7 +863,7 @@ public void setPurchasable(@javax.annotation.Nullable Boolean purchasable) {
}


public Product totalSales(@javax.annotation.Nullable Integer totalSales) {
public Product totalSales(@javax.annotation.Nullable Long totalSales) {
this.totalSales = totalSales;
return this;
}
Expand All @@ -873,11 +873,11 @@ public Product totalSales(@javax.annotation.Nullable Integer totalSales) {
* @return totalSales
*/
@javax.annotation.Nullable
public Integer getTotalSales() {
public Long getTotalSales() {
return totalSales;
}

public void setTotalSales(@javax.annotation.Nullable Integer totalSales) {
public void setTotalSales(@javax.annotation.Nullable Long totalSales) {
this.totalSales = totalSales;
}

Expand Down
Loading