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

Update Inventory model strategy #100

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
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'.


Loading