diff --git a/commercelayer/resource_inventory_model.go b/commercelayer/resource_inventory_model.go index 4bf7603..6b104ea 100644 --- a/commercelayer/resource_inventory_model.go +++ b/commercelayer/resource_inventory_model.go @@ -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, diff --git a/commercelayer/validation.go b/commercelayer/validation.go index e03a5d0..c744571 100644 --- a/commercelayer/validation.go +++ b/commercelayer/validation.go @@ -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", } diff --git a/docs/resources/inventory_model.md b/docs/resources/inventory_model.md index f0222b1..c9050d9 100644 --- a/docs/resources/inventory_model.md +++ b/docs/resources/inventory_model.md @@ -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'.