Skip to content

Commit

Permalink
fix(commercetools_shipping_zone_rate): added documentation hint on im…
Browse files Browse the repository at this point in the history
…port structure
  • Loading branch information
demeyerthom committed Apr 19, 2024
1 parent 34d5670 commit 702450e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changes/unreleased/Fixed-20240419-104853.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Fixed
body: Added documentation hint on importing commercetools_shipping_zone_rate
time: 2024-04-19T10:48:53.285187413+02:00
9 changes: 8 additions & 1 deletion docs/resources/shipping_zone_rate.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "commercetools_shipping_zone_rate Resource - terraform-provider-commercetools"
subcategory: ""
description: |-
Expand Down Expand Up @@ -154,3 +153,11 @@ Required:

- `currency_code` (String)
- `function` (String)

## Import

Import is supported using the following syntax:

```shell
terraform import commercetools_shipping_zone_rate.my-shipping-zone-rate {shipping-method-id}@{shipping-zone-id}@{currency}
```
24 changes: 24 additions & 0 deletions templates/resources/shipping_zone_rate.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

{{ tffile (printf "examples/resources/%s/resource.tf" .Name)}}

{{ .SchemaMarkdown | trimspace }}

## Import

Import is supported using the following syntax:

```shell
terraform import commercetools_shipping_zone_rate.my-shipping-zone-rate {my-shipping-method-id}@{my-shipping-zone-id}@{currency}
```

0 comments on commit 702450e

Please sign in to comment.