From 778f65ebc7fc1018c1e36179e665111a638c792b Mon Sep 17 00:00:00 2001 From: Thomas De Meyer Date: Wed, 4 Dec 2024 10:36:20 +0100 Subject: [PATCH] fix: made shipping_method active field default to true --- .changes/unreleased/Fixed-20241204-103555.yaml | 3 +++ commercetools/resource_shipping_method.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .changes/unreleased/Fixed-20241204-103555.yaml diff --git a/.changes/unreleased/Fixed-20241204-103555.yaml b/.changes/unreleased/Fixed-20241204-103555.yaml new file mode 100644 index 00000000..76409e62 --- /dev/null +++ b/.changes/unreleased/Fixed-20241204-103555.yaml @@ -0,0 +1,3 @@ +kind: Fixed +body: Fixed default shipping_method active field +time: 2024-12-04T10:35:55.737560094+01:00 diff --git a/commercetools/resource_shipping_method.go b/commercetools/resource_shipping_method.go index 16baff29..9391c98e 100644 --- a/commercetools/resource_shipping_method.go +++ b/commercetools/resource_shipping_method.go @@ -51,9 +51,10 @@ func resourceShippingMethod() *schema.Resource { Optional: true, }, "active": { - Description: "Activate or deactivate a shippinh method. Default is active.", + Description: "Activate or deactivate a shipping method. Default is active.", Type: schema.TypeBool, Optional: true, + Default: true, }, "is_default": { Description: "One shipping method in a project can be default",