Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Update Inventory model strategy (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulpatel596 authored May 10, 2024
1 parent d547c7c commit 41b6aae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commercelayer/resource_inventory_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func resourceInventoryModel() *schema.Resource {
},
"strategy": {
Description: "The inventory model's shipping strategy: one between 'no_split' (default), " +
"'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'.",
"'split_shipments', 'split_by_line_items', 'ship_from_primary' and 'ship_from_first_available_or_primary'.",
Type: schema.TypeString,
Default: "no_split",
Optional: true,
Expand Down
1 change: 1 addition & 0 deletions commercelayer/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func getInventoryModelStrategies() []string {
return []string{
"no_split",
"split_shipments",
"split_by_line_items",
"ship_from_primary",
"ship_from_first_available_or_primary",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/inventory_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ Optional:
- `reference` (String) A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a InventoryModeling tool, a CRM, or whatever.
- `reference_origin` (String) Any identifier of the third party system that defines the reference code
- `stock_locations_cutoff` (Number) The maximum number of stock locations used for inventory computation
- `strategy` (String) The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'.
- `strategy` (String) The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', "split_by_line_items", 'ship_from_primary' and 'ship_from_first_available_or_primary'.


0 comments on commit 41b6aae

Please sign in to comment.