Comments (2)
In class ShopifyVariant we need to add missing @xmlelement annotation:
@XmlElement(name = "inventory_quantity")
private Long inventoryQuantity;
@XmlElement(name = "inventory_management")
private String inventoryManagement;
from shopify-sdk.
@laamlatay shopify recently released multi location. The withAvailable used to work in the old way before they introduced this change(and for some stores is still this way). Currently the inventory_quantity on the variant is just a read only aggregate of the quantities at all locations.
https://shopify.dev/docs/admin-api/rest/reference/products/product-variant#create-2021-01
They introduced inventory levels api's which this SDK supports. You can use
updateInventoryLevels(...).
It requires the inventoryItemId(returned for the variant after creation), quantity, and the location Id you want to set the quantity for the update
https://github.com/ChannelApe/shopify-sdk/blob/master/src/main/java/com/shopify/ShopifySdk.java#L846
I'm going to close this out as this is expected behavior.
from shopify-sdk.
Related Issues (20)
- dev branch fulfillmentOrder error HOT 1
- creat fulfillment error HOT 2
- SDK Documentation HOT 2
- I want to obtain the corresponding URL for the product HOT 1
- The jersey-client that comes with springboot is 2.35γThe springboot version number is <spring-boot.version>2.6.13</spring-boot.version> HOT 7
- java.lang.NullPointerException: null HOT 3
- Error Failed to instanciate HOT 1
- I want to change the inventory HOT 3
- now, I want to change the state of the product HOT 1
- Shopify error format is not readable {"errors":{"base":["The variant 'Default Title' already exists."]}}
- ShopifyErrorCodeFactory - Could not parse error message from shopify for response body HOT 2
- Refactoring long method HOT 2
- Refactoring multiple code smells long method
- java.lang.RuntimeException: java.lang.ClassNotFoundException: Provider org.glassfish.jersey.internal.RuntimeDelegateImpl could not be instantiated
- Create product with variants
- Documentation for this SDK HOT 1
- How to get local pickup status ? HOT 2
- Create product with DRAFT status HOT 1
- javax.ws.rs.ProcessingException: Error reading entity from input stream. HOT 3
- I saw a branch related to fulfillmentOrder last week, but I can't find it now. Was it deleted? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shopify-sdk.