|
|
|
### Running
|
|
|
|
``` ruby
|
|
|
|
ThreeDeeCart::Customer.update_inventory(options)
|
|
|
|
```
|
|
|
|
|
|
|
|
### Available Options
|
|
|
|
Bold parameters are required:
|
|
|
|
|
|
|
|
|
|
|
|
**storeURL** -
|
|
|
|
3dCart Store URL from which the information will be requested. i.e.: www.3dcart.com
|
|
|
|
|
|
|
|
**productId** -
|
|
|
|
String Search for specific product id.
|
|
|
|
|
|
|
|
**quantity** -
|
|
|
|
Number Stock quantity for the specified product.
|
|
|
|
|
|
|
|
**replaceStock** -
|
|
|
|
Boolean Indicates if the stock should be replaced or incremented by the new quantity.
|
|
|
|
|
|
|
|
### Example
|
|
|
|
``` ruby
|
|
|
|
ThreeDeeCart::Customer.update_inventory({storeURL: "http://www.3dcart.com", productId: "a12345", quantity: 10, replaceStock: false})
|
|
|
|
``` |
|
|
\ No newline at end of file |