diff --git a/.gitignore b/.gitignore index 296f819..9210ee5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ + *.dll *.exe .DS_Store @@ -47,4 +48,4 @@ cmd/ *.tf -logs/ \ No newline at end of file +logs/ diff --git a/docs/data-sources/account.md b/docs/data-sources/account.md deleted file mode 100644 index 3744b9a..0000000 --- a/docs/data-sources/account.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "epcc_account Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Account resource https://documentation.elasticpath.com/commerce-cloud/docs/api/account-management/accounts/index.html#the-account-object. ---- - -# Data Source `epcc_account` - -Represents the EPCC API [Account resource](https://documentation.elasticpath.com/commerce-cloud/docs/api/account-management/accounts/index.html#the-account-object). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier for an Account - -### Read-Only - -- **legal_name** (String) The legal name of the account. -- **name** (String) The name of the account. -- **parent_id** (String) Specifies the ID of the parent account. -- **registration_id** (String) The registration ID of the account. - diff --git a/docs/data-sources/account_authentication_settings.md b/docs/data-sources/account_authentication_settings.md deleted file mode 100644 index 030d2ec..0000000 --- a/docs/data-sources/account_authentication_settings.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -page_title: "epcc_account_authentication_settings Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Account Authentication Settings https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/account-authentication-settings/index.html ---- - -# Data Source `epcc_account_authentication_settings` - -Represents the EPCC API [Account Authentication Settings] (https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/account-authentication-settings/index.html) - - - - -## Schema - -### Optional - -- **id** (String) The ID of this resource. - -### Read-Only - -- **client_id** (String) -- **realm_id** (String) - diff --git a/docs/data-sources/authentication_realm.md b/docs/data-sources/authentication_realm.md deleted file mode 100644 index 3c5198d..0000000 --- a/docs/data-sources/authentication_realm.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -page_title: "epcc_authentication_realm Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Authentication Realms https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/authentication-realms/index.html. ---- - -# Data Source `epcc_authentication_realm` - -Represents the EPCC API [Authentication Realms](https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/authentication-realms/index.html). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier for the authentication realm. - -### Read-Only - -- **duplicate_email_policy** (String) The values permitted for this parameter are, `allowed` or `api_only`. When an unfamiliar user signs in for the first time, a value of `allowed` always creates a new user with the name and e-mail address supplied by the identity provider. With the `api_only` value, the system assigns the user to an existing user with a matching e-mail address, if one already exists. The `api_only` setting is recommended only when all configured identity providers treat e-mail address as a unique identifier for the user, otherwise a user might get access to another user’s account and data. Thus the `api_only` value can simplify administration of users. -- **name** (String) The name of the authentication realm. -- **origin_id** (String) The ID of the origin entity. -- **origin_type** (String) The type of the origin entity. -- **redirect_uris** (List of String) An array of Storefront URIs that can start Single Sign On authentication. These URIs must follow the rules for [redirection endpoints in OAuth 2.0](https://tools.ietf.org/html/rfc6749#section-3.1.2). All URIs must start with `https://` except for `http://localhost`. - diff --git a/docs/data-sources/catalog.md b/docs/data-sources/catalog.md deleted file mode 100644 index cbd5e3d..0000000 --- a/docs/data-sources/catalog.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "epcc_catalog Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API PCM Catalog Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/catalogs/index.html#the-catalog-object. ---- - -# Data Source `epcc_catalog` - -Represents the EPCC API [*PCM* Catalog Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/catalogs/index.html#the-catalog-object). - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. - -### Read-Only - -- **description** (String) A description of the catalog, such as the purpose for the catalog. -- **hierarchies** (Set of String) The unique identifiers of the hierarchies to associate with this catalog. -- **name** (String) The name of the catalog. -- **pricebook** (String) The unique identifier of the price book to associate with this catalog. - diff --git a/docs/data-sources/catalog_rule.md b/docs/data-sources/catalog_rule.md deleted file mode 100644 index db5b0c6..0000000 --- a/docs/data-sources/catalog_rule.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "epcc_catalog_rule Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API PCM Catalog Rule Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/catalogs/rules/get-a-catalog-rule.html. ---- - -# Data Source `epcc_catalog_rule` - -Represents the EPCC API [*PCM* Catalog Rule Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/catalogs/rules/get-a-catalog-rule.html). - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. - -### Read-Only - -- **catalog** (String) The unique identifier of the catalog for this rule. If you want to display a catalog that contains V2 Products, Brands, Categories, and Collections, specify `legacy` -- **customers** (Set of String) The list of customers who are eligible to see this catalog. If empty, the rule matches all customers. -- **description** (String) The purpose for this rule. -- **name** (String) The name of the rule without spaces. - diff --git a/docs/data-sources/currency.md b/docs/data-sources/currency.md deleted file mode 100644 index 2350420..0000000 --- a/docs/data-sources/currency.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -page_title: "epcc_currency Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Currency Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/currencies/index.html#the-currency-object. ---- - -# Data Source `epcc_currency` - -Represents the EPCC API [Currency Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/currencies/index.html#the-currency-object). - - - - -## Schema - -### Required - -- **code** (String) The currency code. - -### Read-Only - -- **decimal_places** (Number) The amount of decimal places the currency is formatted to. -- **decimal_point** (String) The decimal point character. -- **default** (Boolean) Whether this is the default currency in the store. -- **enabled** (Boolean) Is this currency available for products? `true` or `false` -- **exchange_rate** (Number) The exchange rate. -- **format** (String) How to structure a currency; e.g., `${price}`. -- **id** (String) The unique identifier for this currency. -- **thousand_separator** (String) The thousand separator character. - diff --git a/docs/data-sources/customer.md b/docs/data-sources/customer.md deleted file mode 100644 index bc16fc2..0000000 --- a/docs/data-sources/customer.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -page_title: "epcc_customer Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Customer Object https://documentation.elasticpath.com/commerce-cloud/docs/api/orders-and-customers/customers/index.html#the-customer-object. ---- - -# Data Source `epcc_customer` - -Represents the EPCC API [Customer Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/orders-and-customers/customers/index.html#the-customer-object). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier for this customer. - -### Read-Only - -- **email** (String) The `email` of the customer. -- **name** (String) The `name` of the customer. - diff --git a/docs/data-sources/customer_authentication_settings.md b/docs/data-sources/customer_authentication_settings.md deleted file mode 100644 index 46e079b..0000000 --- a/docs/data-sources/customer_authentication_settings.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -page_title: "epcc_customer_authentication_settings Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Customer Authentication Settings https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/customer-authentication-settings/index.html ---- - -# Data Source `epcc_customer_authentication_settings` - -Represents the EPCC API [Customer Authentication Settings] (https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/customer-authentication-settings/index.html) - - - - -## Schema - -### Optional - -- **id** (String) The ID of this resource. - -### Read-Only - -- **client_id** (String) The client id to be used in Single Sign On authentication flows for customers. -- **realm_id** (String) The authentication realm id used for authentication for this store. - diff --git a/docs/data-sources/entry.md b/docs/data-sources/entry.md deleted file mode 100644 index dd99332..0000000 --- a/docs/data-sources/entry.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "epcc_entry Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Entry Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/entries/index.html. ---- - -# Data Source `epcc_entry` - -Represents the EPCC API [Entry Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/entries/index.html). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier for this entry. -- **slug** (String) The slug for the Flow you are requesting an Entry for. - -### Read-Only - -- **booleans** (Map of Boolean) -- **numbers** (Map of Number) -- **strings** (Map of String) - diff --git a/docs/data-sources/field.md b/docs/data-sources/field.md deleted file mode 100644 index 5873f63..0000000 --- a/docs/data-sources/field.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -page_title: "epcc_field Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Fields Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/fields/index.html. ---- - -# Data Source `epcc_field` - -Represents the EPCC API [Fields Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/fields/index.html). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier for this field. - -### Read-Only - -- **default** (String) A default value if none is supplied and field is not required. -- **description** (String) Any description for this field. -- **enabled** (Boolean) If this field is enabled on the flow this should be true, otherwise false. -- **field_type** (String) Specifies the type of field, such as string, integer, boolean, float, date, relationship. -- **flow_id** (String) The id of the flow that this field applies to. -- **name** (String) The name of the field. -- **omit_null** (Boolean) Hide this field from responses if the value is null. -- **order** (Number) Denotes the order in which this field is returned relative to the rest of the flow fields. -- **relationship_to_many** (String) -- **relationship_to_one** (String) -- **required** (Boolean) true if required on input, false if not. Always false if the field_type is a relationship. -- **slug** (String) A unique slug identifier for the field. -- **valid_float_enum** (List of Number) A predefined collection of floats that represent the allowed value for this float field. -- **valid_float_range** (List of Map of Number) -- **valid_int_enum** (List of Number) A predefined collection of integer that represent the allowed value for this integer field. -- **valid_int_range** (List of Map of Number) A list of integers specified with from= and to= that represent the range of this value -- **valid_string_enum** (List of String) A predefined collection of strings that represent the allowed value for this string field. -- **valid_string_format** (String) Corresponds to the field validation rules for string, one of "email", "slug", or "uuid". - diff --git a/docs/data-sources/file.md b/docs/data-sources/file.md deleted file mode 100644 index ec1c82d..0000000 --- a/docs/data-sources/file.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -page_title: "epcc_file Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API File Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/files/index.html#the-file-object. ---- - -# Data Source `epcc_file` - -Represents the EPCC API [File Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/files/index.html#the-file-object). - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. - -### Optional - -- **file_name** (String) -- **public** (Boolean) - -### Read-Only - -- **file_link** (String) -- **file_size** (Number) -- **mime_type** (String) - diff --git a/docs/data-sources/flow.md b/docs/data-sources/flow.md deleted file mode 100644 index fcc7deb..0000000 --- a/docs/data-sources/flow.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "epcc_flow Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Flow Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/flows/index.html#the-flow-object. ---- - -# Data Source `epcc_flow` - -Represents the EPCC API [Flow Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/flows/index.html#the-flow-object). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier for this flow. - -### Read-Only - -- **description** (String) Any description for this flow. -- **enabled** (Boolean) true if enabled, false if not. -- **name** (String) The name of the flow. -- **slug** (String) A unique slug identifier for the flow. - diff --git a/docs/data-sources/hierarchy.md b/docs/data-sources/hierarchy.md deleted file mode 100644 index 17b913b..0000000 --- a/docs/data-sources/hierarchy.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -page_title: "epcc_hierarchy Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Hierarchy Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/index.html#the-hierarchy-object. ---- - -# Data Source `epcc_hierarchy` - -Represents the EPCC API [Hierarchy Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/index.html#the-hierarchy-object). - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. - -### Read-Only - -- **description** (String) -- **name** (String) -- **slug** (String) - diff --git a/docs/data-sources/integration.md b/docs/data-sources/integration.md deleted file mode 100644 index ca3567c..0000000 --- a/docs/data-sources/integration.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -page_title: "epcc_integration Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Allows to configure webhooks ---- - -# Data Source `epcc_integration` - -Allows to configure webhooks - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. - -### Read-Only - -- **aws_access_key_id** (String) The required AWS access key ID. Note: The EPCC API only returns the 4 characters of this value -- **aws_secret_access_key** (String, Sensitive) The required AWS secret key ID. Note: The EPCC API only returns the 4 characters of this value -- **description** (String) -- **enabled** (Boolean) Should the event trigger or not. Default: `false` -- **integration_type** (String) Specifies how the event is delivered, either webhook or aws_sqs -- **name** (String) -- **observes** (List of String) [observable event type](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/events/create-an-event.html) -- **region** (String) The required AWS region. -- **secret_key** (String) Value that is passed to webhook as `X-Moltin-Secret-Key` header -- **url** (String) Webhook endpoint - diff --git a/docs/data-sources/merchant_realm_mappings.md b/docs/data-sources/merchant_realm_mappings.md deleted file mode 100644 index ac59307..0000000 --- a/docs/data-sources/merchant_realm_mappings.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "epcc_merchant_realm_mappings Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Merchant Realm Mappings https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/merchant-authentication-settings/get-merchant-realm-mapping.html ---- - -# Data Source `epcc_merchant_realm_mappings` - -Represents the EPCC API [Merchant Realm Mappings] (https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/merchant-authentication-settings/get-merchant-realm-mapping.html) - - - - -## Schema - -### Optional - -- **id** (String) The ID of this resource. - -### Read-Only - -- **merchant_realm_mapping_id** (String) -- **prefix** (String) -- **realm_id** (String) -- **store_id** (String) - diff --git a/docs/data-sources/node.md b/docs/data-sources/node.md deleted file mode 100644 index f63460a..0000000 --- a/docs/data-sources/node.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -page_title: "epcc_node Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Node Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/index.html#the-node-object. ---- - -# Data Source `epcc_node` - -Represents the EPCC API [Node Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/index.html#the-node-object). - - - - -## Schema - -### Required - -- **hierarchy_id** (String) -- **id** (String) The ID of this resource. - -### Optional - -- **parent_id** (String) - -### Read-Only - -- **description** (String) -- **name** (String) -- **slug** (String) - diff --git a/docs/data-sources/node_product.md b/docs/data-sources/node_product.md deleted file mode 100644 index 337ef4e..0000000 --- a/docs/data-sources/node_product.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -page_title: "epcc_node_product Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Node and Product Relationship https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/relationships/create-node-product-relationships.html. ---- - -# Data Source `epcc_node_product` - -Represents the EPCC API [Node and Product Relationship](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/relationships/create-node-product-relationships.html). - - - - -## Schema - -### Required - -- **hierarchy_id** (String) -- **id** (String) The ID of this resource. -- **node_id** (String) -- **product_id** (String) - diff --git a/docs/data-sources/payment_gateway.md b/docs/data-sources/payment_gateway.md deleted file mode 100644 index ae8d26c..0000000 --- a/docs/data-sources/payment_gateway.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -page_title: "epcc_payment_gateway Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Payment gateway connectivity configuration ---- - -# Data Source `epcc_payment_gateway` - -Payment gateway connectivity configuration - - - - -## Schema - -### Required - -- **slug** (String) - -### Optional - -- **id** (String) The ID of this resource. -- **test** (Boolean) Is this a sandbox environment. Default: `false` - -### Read-Only - -- **enabled** (Boolean) Should the gateway process payments. Default: `false` - diff --git a/docs/data-sources/pricebook.md b/docs/data-sources/pricebook.md deleted file mode 100644 index 06f2685..0000000 --- a/docs/data-sources/pricebook.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -page_title: "epcc_pricebook Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API PriceBook Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/pricebooks/index.html#the-pricebook-object. ---- - -# Data Source `epcc_pricebook` - -Represents the EPCC API [PriceBook Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/pricebooks/index.html#the-pricebook-object). - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. - -### Read-Only - -- **description** (String) -- **name** (String) - diff --git a/docs/data-sources/product.md b/docs/data-sources/product.md deleted file mode 100644 index d7fb9bf..0000000 --- a/docs/data-sources/product.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -page_title: "epcc_product Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Allows the caller to look up details of an Elastic Path Commerce Cloud PCM product https://documentation.elasticpath.com/commerce-cloud/docs/concepts/products-pcm.html. ---- - -# Data Source `epcc_product` - -Allows the caller to look up details of an Elastic Path Commerce Cloud PCM [product](https://documentation.elasticpath.com/commerce-cloud/docs/concepts/products-pcm.html). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier of the product. - -### Optional - -- **files** (Set of String) - -### Read-Only - -- **commodity_type** (String) The type of the product; either `physical` or `digital`. -- **description** (String) The product description to display to customers. -- **mpn** (String) The _manufacturer part number_ of the product. -- **name** (String) The product name to display to customers. -- **sku** (String) The unique _stock keeping unit_ of the product. -- **slug** (String) The unique slug of the product. -- **status** (String) The status of the product; either `draft` or `live`. Default is `draft`. -- **upc_ean** (String) The _universal product code_ or _european article number_ of the product. - diff --git a/docs/data-sources/product_price.md b/docs/data-sources/product_price.md deleted file mode 100644 index ae0398a..0000000 --- a/docs/data-sources/product_price.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -page_title: "epcc_product_price Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Price Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/pricebooks/prices/create-product-prices.html. ---- - -# Data Source `epcc_product_price` - -Represents the EPCC API [Price Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/pricebooks/prices/create-product-prices.html). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier of the price. -- **pricebook_id** (String) - -### Read-Only - -- **currency** (Set of Object) (see [below for nested schema](#nestedatt--currency)) -- **sku** (String) - - -### Nested Schema for `currency` - -Read-Only: - -- **amount** (Number) -- **code** (String) -- **includes_tax** (Boolean) - diff --git a/docs/data-sources/profile.md b/docs/data-sources/profile.md deleted file mode 100644 index 1832374..0000000 --- a/docs/data-sources/profile.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -page_title: "epcc_profile Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API OpenID Connect Profiles https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/oidc-profiles/index.html. ---- - -# Data Source `epcc_profile` - -Represents the EPCC API [OpenID Connect Profiles](https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/oidc-profiles/index.html). - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. - -### Read-Only - -- **client_id** (String) -- **client_secret** (String) -- **discovery_url** (String) -- **name** (String) -- **realm_id** (String) - diff --git a/docs/data-sources/promotion.md b/docs/data-sources/promotion.md deleted file mode 100644 index 98a3b7e..0000000 --- a/docs/data-sources/promotion.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -page_title: "epcc_promotion Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Promotion Object https://documentation.elasticpath.com/commerce-cloud/docs/api/carts-and-checkout/promotions/index.html#the-promotion-object. - !> Warning: This resource only supports a single schema at this point ---- - -# Data Source `epcc_promotion` - -Represents the EPCC API [Promotion Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/carts-and-checkout/promotions/index.html#the-promotion-object). -!> **Warning:** This resource only supports a single schema at this point - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. -- **schema** (Block List, Min: 1) (see [below for nested schema](#nestedblock--schema)) - -### Optional - -- **automatic** (Boolean) -- **max_discount_value** (Block List) (see [below for nested schema](#nestedblock--max_discount_value)) -- **min_cart_value** (Block List) (see [below for nested schema](#nestedblock--min_cart_value)) - -### Read-Only - -- **description** (String) -- **enabled** (Boolean) -- **end** (String) -- **name** (String) -- **promotion_type** (String) -- **start** (String) -- **type** (String) - - -### Nested Schema for `schema` - -Optional: - -- **currencies** (Block List) (see [below for nested schema](#nestedblock--schema--currencies)) - - -### Nested Schema for `schema.currencies` - -Optional: - -- **amount** (Number) -- **currency** (String) - - - - -### Nested Schema for `max_discount_value` - -Optional: - -- **amount** (Number) -- **promotion** (String) - - - -### Nested Schema for `min_cart_value` - -Optional: - -- **amount** (Number) -- **promotion** (String) - diff --git a/docs/data-sources/realm.md b/docs/data-sources/realm.md deleted file mode 100644 index 96e0040..0000000 --- a/docs/data-sources/realm.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -page_title: "Data Source epcc_realm - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Authentication Realms https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/authentication-realms/index.html. ---- - -# epcc_realm `Data Source` -~> This resource is deprecated, and it is recommended you migrate to [authentication_realm](authentication_realms) - -Represents the EPCC API [Authentication Realms](https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/authentication-realms/index.html). - - - - -## Schema - -### Required - -- **id** (String) The unique identifier for the authentication realm. - -### Read-Only - -- **duplicate_email_policy** (String) The values permitted for this parameter are, `allowed` or `api_only`. When an unfamiliar user signs in for the first time, a value of `allowed` always creates a new user with the name and e-mail address supplied by the identity provider. With the `api_only` value, the system assigns the user to an existing user with a matching e-mail address, if one already exists. The `api_only` setting is recommended only when all configured identity providers treat e-mail address as a unique identifier for the user, otherwise a user might get access to another user’s account and data. Thus the `api_only` value can simplify administration of users. -- **name** (String) The name of the authentication realm. -- **origin_id** (String) The ID of the origin entity. -- **origin_type** (String) The type of the origin entity. -- **redirect_uris** (List of String) An array of Storefront URIs that can start Single Sign On authentication. These URIs must follow the rules for [redirection endpoints in OAuth 2.0](https://tools.ietf.org/html/rfc6749#section-3.1.2). All URIs must start with `https://` except for `http://localhost`. - diff --git a/docs/data-sources/settings.md b/docs/data-sources/settings.md deleted file mode 100644 index 0f5cebd..0000000 --- a/docs/data-sources/settings.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -page_title: "epcc_settings Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Settings https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/index.html. - Note: The epcc_settings resource behaves different from normal resources, in that Terraform does not create this reosurce, but instead "adopts" it into management. ---- - -# Data Source `epcc_settings` - -Represents the EPCC API [Settings](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/index.html). -Note: The `epcc_settings` resource behaves different from normal resources, in that Terraform does not *create* this reosurce, but instead "adopts" it into management. - - - - -## Schema - -### Optional - -- **id** (String) The ID of this resource. - -### Read-Only - -- **additional_languages** (List of String) -- **calculation_method** (String) -- **list_child_products** (Boolean) -- **page_length** (Number) - diff --git a/docs/data-sources/user_authentication_info.md b/docs/data-sources/user_authentication_info.md deleted file mode 100644 index e13b0ac..0000000 --- a/docs/data-sources/user_authentication_info.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -page_title: "epcc_user_authentication_info Data Source - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API User Authentication Info ---- - -# Data Source `epcc_user_authentication_info` - -Represents the EPCC API User Authentication Info - - - - -## Schema - -### Required - -- **id** (String) The ID of this resource. - -### Read-Only - -- **email** (String) -- **name** (String) - diff --git a/docs/index.md b/docs/index.md deleted file mode 100644 index 2de8643..0000000 --- a/docs/index.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -page_title: "epcc-terraform-provider Provider" -subcategory: "" -description: |- - ---- - -# Elastic Path Commerce Cloud Provider - -The Elastic Path Commerce Cloud (EPCC) provider is used to interact with resources defined in the [Elastic Path Commerce Cloud API](https://documentation.elasticpath.com/commerce-cloud/docs/api/). - - -## Example Usage - -```terraform -provider "epcc" { - // Can set via `EPCC_CLIENT_ID` environment variable. - client_id = "some_client_id" - - // Can set via `EPCC_CLIENT_SECRET` environment variable. - client_secret = "some_client_secret" - - // Can set via `EPCC_API_BASE_URL` environment variable - api_base_url = "https://api.moltin.com/" - - // Can set via `EPCC_BETA_API_FEATURES` environment variable. - beta_features = "account-management" -} -``` - - -## Authentication - -### Static Credentials - -!> **Warning:** Hard-coded credentials are not recommended in any Terraform -configuration and risks secret leakage should this file ever be committed to a -public version control system. - -Static credentials can be provided by using the `client_id` and `client_secret` parameters directly. - -### Environment Variables - -You can provide your credentials via the `EPCC_CLIENT_ID` and `EPCC_CLIENT_SECRET`, environment variables corresponding to the -[`client_credentials` authentication mechanism](https://documentation.elasticpath.com/commerce-cloud/docs/api/basics/authentication/client-credential-token.html). - - -Usage: -```sh -$export EPCC_CLIENT_ID="XXXX" -$export EPCC_CLIENT_SECRET="YYYY" -$terraform plan -``` - - -## Schema - -### Optional - -- **additional_headers** (Map of String) -- **api_base_url** (String) -- **beta_features** (String) -- **client_id** (String) -- **client_secret** (String, Sensitive) -- **enable_authentication** (Boolean) \ No newline at end of file diff --git a/docs/resources/account.md b/docs/resources/account.md deleted file mode 100644 index bbea617..0000000 --- a/docs/resources/account.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -page_title: "epcc_account Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Account resource https://documentation.elasticpath.com/commerce-cloud/docs/api/account-management/accounts/index.html#the-account-object. ---- - -# Resource `epcc_account` - -Represents the EPCC API [Account resource](https://documentation.elasticpath.com/commerce-cloud/docs/api/account-management/accounts/index.html#the-account-object). - - - - -## Schema - -### Required - -- **legal_name** (String) The legal name of the account. -- **name** (String) The name of the account. - -### Optional - -- **parent_id** (String) Specifies the ID of the parent account. -- **registration_id** (String) The registration ID of the account. - -### Read-Only - -- **id** (String) The unique identifier for an Account - diff --git a/docs/resources/authentication_realm.md b/docs/resources/authentication_realm.md deleted file mode 100644 index 28d0553..0000000 --- a/docs/resources/authentication_realm.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -page_title: "epcc_authentication_realm Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Authentication Realms https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/authentication-realms/index.html. ---- - -# Resource `epcc_authentication_realm` - -Represents the EPCC API [Authentication Realms](https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/authentication-realms/index.html). - - - - -## Schema - -### Required - -- **duplicate_email_policy** (String) The values permitted for this parameter are, `allowed` or `api_only`. When an unfamiliar user signs in for the first time, a value of `allowed` always creates a new user with the name and e-mail address supplied by the identity provider. With the `api_only` value, the system assigns the user to an existing user with a matching e-mail address, if one already exists. The `api_only` setting is recommended only when all configured identity providers treat e-mail address as a unique identifier for the user, otherwise a user might get access to another user’s account and data. Thus the `api_only` value can simplify administration of users. -- **name** (String) The name of the authentication realm. -- **origin_id** (String) The ID of the origin entity. -- **origin_type** (String) The type of the origin entity. -- **redirect_uris** (List of String) An array of Storefront URIs that can start Single Sign On authentication. These URIs must follow the rules for [redirection endpoints in OAuth 2.0](https://tools.ietf.org/html/rfc6749#section-3.1.2). All URIs must start with `https://` except for `http://localhost`. - -### Read-Only - -- **id** (String) The unique identifier for the authentication realm. - diff --git a/docs/resources/catalog.md b/docs/resources/catalog.md deleted file mode 100644 index 03c89bc..0000000 --- a/docs/resources/catalog.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -page_title: "epcc_catalog Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API PCM Catalog Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/catalogs/index.html#the-catalog-object. ---- - -# Resource `epcc_catalog` - -Represents the EPCC API [*PCM* Catalog Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/catalogs/index.html#the-catalog-object). - - - - -## Schema - -### Required - -- **name** (String) - -### Optional - -- **description** (String) -- **hierarchies** (Set of String) -- **pricebook** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/catalog_rule.md b/docs/resources/catalog_rule.md deleted file mode 100644 index efbd210..0000000 --- a/docs/resources/catalog_rule.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -page_title: "epcc_catalog_rule Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API PCM Catalog Rule Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/catalogs/rules/get-a-catalog-rule.html. ---- - -# Resource `epcc_catalog_rule` - -Represents the EPCC API [*PCM* Catalog Rule Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/catalogs/rules/get-a-catalog-rule.html). - - - - -## Schema - -### Required - -- **catalog** (String) -- **name** (String) - -### Optional - -- **customers** (Set of String) -- **description** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/currency.md b/docs/resources/currency.md deleted file mode 100644 index be22a30..0000000 --- a/docs/resources/currency.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -page_title: "Resource epcc_currency - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Currency Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/currencies/index.html#the-currency-object. ---- - -# Resource (epcc_currency) - -Represents the EPCC API [Currency Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/currencies/index.html#the-currency-object). - - - -!> **WARNING:** If multiple currencies are defined, please ensure that the `default` tag is set to `true` on only one of them - - -## Schema - -### Required - -- **code** (String) The currency code. -- **decimal_places** (Number) The amount of decimal places the currency is formatted to. -- **decimal_point** (String) The decimal point character. -- **default** (Boolean) Whether this is the default currency in the store. -- **enabled** (Boolean) Is this currency available for products? `true` or `false` -- **exchange_rate** (Number) The exchange rate. -- **format** (String) How to structure a currency; e.g., `${price}`. -- **thousand_separator** (String) The thousand separator character. - -### Read-Only - -- **id** (String) The unique identifier for this currency. - - - diff --git a/docs/resources/customer.md b/docs/resources/customer.md deleted file mode 100644 index 9af7778..0000000 --- a/docs/resources/customer.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -page_title: "epcc_customer Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Customer Object https://documentation.elasticpath.com/commerce-cloud/docs/api/orders-and-customers/customers/index.html#the-customer-object. ---- - -# Resource `epcc_customer` - -Represents the EPCC API [Customer Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/orders-and-customers/customers/index.html#the-customer-object). - - - - -## Schema - -### Required - -- **email** (String) The unique identifier for this customer. -- **name** (String) The unique identifier for this customer. - -### Read-Only - -- **id** (String) The unique identifier for this customer. - diff --git a/docs/resources/entry.md b/docs/resources/entry.md deleted file mode 100644 index 26cbb2d..0000000 --- a/docs/resources/entry.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -page_title: "epcc_entry Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Entry Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/entries/index.html. ---- - -# Resource `epcc_entry` - -Represents the EPCC API [Entry Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/entries/index.html). - - - - -## Schema - -### Required - -- **slug** (String) - -### Optional - -- **booleans** (Map of Boolean) -- **numbers** (Map of Number) -- **strings** (Map of String) -- **target_id** (String) Target core object identifier (can only be used for core flows) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/field.md b/docs/resources/field.md deleted file mode 100644 index cae1129..0000000 --- a/docs/resources/field.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -page_title: "epcc_field Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Fields Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/fields/index.html. ---- - -# Resource `epcc_field` - -Represents the EPCC API [Fields Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/fields/index.html). - - - - -## Schema - -### Required - -- **description** (String) Any description for this field. -- **enabled** (Boolean) If this field is enabled on the flow this should be true, otherwise false. -- **field_type** (String) Specifies the type of field, such as string, integer, boolean, float, date, relationship. -- **flow_id** (String) The id of the flow that this field applies to. -- **name** (String) The name of the field. -- **required** (Boolean) true if required on input, false if not. Always false if the field_type is a relationship. -- **slug** (String) A unique slug identifier for the field. - -### Optional - -- **default** (String) A default value if none is supplied and field is not required. -- **omit_null** (Boolean) Hide this field from responses if the value is null. -- **order** (Number) Denotes the order in which this field is returned relative to the rest of the flow fields. -- **relationship_to_many** (String) -- **relationship_to_one** (String) -- **valid_float_enum** (List of Number) A predefined collection of floats that represent the allowed value for this float field. -- **valid_float_range** (List of Map of Number) -- **valid_int_enum** (List of Number) A predefined collection of integer that represent the allowed value for this integer field. -- **valid_int_range** (List of Map of Number) A list of integers specified with from= and to= that represent the range of this value -- **valid_string_enum** (List of String) A predefined collection of strings that represent the allowed value for this string field. -- **valid_string_format** (String) Corresponds to the field validation rules for string, one of "email", "slug", or "uuid". - -### Read-Only - -- **id** (String) The unique identifier for this field. - diff --git a/docs/resources/file.md b/docs/resources/file.md deleted file mode 100644 index 06906ae..0000000 --- a/docs/resources/file.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -page_title: "epcc_file Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API File Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/files/index.html#the-file-object. ---- - -# Resource `epcc_file` - -Represents the EPCC API [File Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/files/index.html#the-file-object). - - - - -## Schema - -### Optional - -- **file_hash** (String) -- **file_location** (String) -- **file_name** (String) -- **public** (Boolean) TBD. - -### Read-Only - -- **file_link** (String) -- **file_size** (Number) -- **id** (String) The ID of this resource. -- **mime_type** (String) - diff --git a/docs/resources/flow.md b/docs/resources/flow.md deleted file mode 100644 index a86de0a..0000000 --- a/docs/resources/flow.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "epcc_flow Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Flow Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/flows/index.html#the-flow-object. ---- - -# Resource `epcc_flow` - -Represents the EPCC API [Flow Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/custom-data/flows/index.html#the-flow-object). - - - - -## Schema - -### Required - -- **description** (String) Any description for this flow. -- **enabled** (Boolean) true if enabled, false if not. -- **name** (String) The name of the flow. -- **slug** (String) A unique slug identifier for the flow. - -### Read-Only - -- **id** (String) The unique identifier for this flow. - diff --git a/docs/resources/hierarchy.md b/docs/resources/hierarchy.md deleted file mode 100644 index e878ac8..0000000 --- a/docs/resources/hierarchy.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -page_title: "epcc_hierarchy Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Hierarchy Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/index.html#the-hierarchy-object. ---- - -# Resource `epcc_hierarchy` - -Represents the EPCC API [Hierarchy Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/index.html#the-hierarchy-object). - - - - -## Schema - -### Required - -- **name** (String) - -### Optional - -- **description** (String) -- **slug** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/integration.md b/docs/resources/integration.md deleted file mode 100644 index 89eca63..0000000 --- a/docs/resources/integration.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -page_title: "epcc_integration Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Allows to configure webhooks, and corresponds to EPCC API Event (Webhooks) Object https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/events/index.html#event-object ---- - -# Resource `epcc_integration` - -Allows to configure webhooks, and corresponds to EPCC API [Event (Webhooks) Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/events/index.html#event-object) - - - - -## Schema - -### Required - -- **integration_type** (String) Specifies how the event is delivered, either webhook or aws_sqs -- **name** (String) -- **url** (String) Webhook endpoint - -### Optional - -- **aws_access_key_id** (String) The required AWS access key ID. Note: The EPCC API only returns the 4 characters of this value -- **aws_secret_access_key** (String, Sensitive) The required AWS secret key ID. Note: The EPCC API only returns the 4 characters of this value -- **description** (String) -- **enabled** (Boolean) Should the event trigger or not. Default: `false` -- **observes** (List of String) [observable event type](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/events/create-an-event.html) -- **region** (String) The required AWS region. -- **secret_key** (String) Value that is passed to webhook as `X-Moltin-Secret-Key` header - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/merchant_realm_mapping_prefix.md b/docs/resources/merchant_realm_mapping_prefix.md deleted file mode 100644 index 1aeca70..0000000 --- a/docs/resources/merchant_realm_mapping_prefix.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -page_title: "epcc_merchant_realm_mapping_prefix Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API OpenID Connect MerchantRealmMappingPrefixes https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/oidc-merchantRealmMappingPrefixes/index.html. ---- - -# Resource `epcc_merchant_realm_mapping_prefix` - -Represents the EPCC API [OpenID Connect MerchantRealmMappingPrefixes](https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/oidc-merchantRealmMappingPrefixes/index.html). - - - - -## Schema - -### Required - -- **merchant_realm_mapping_id** (String) -- **prefix** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/node.md b/docs/resources/node.md deleted file mode 100644 index c86487a..0000000 --- a/docs/resources/node.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -page_title: "epcc_node Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Node Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/index.html#the-node-object. ---- - -# Resource `epcc_node` - -Represents the EPCC API [Node Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/index.html#the-node-object). - - - - -## Schema - -### Required - -- **hierarchy_id** (String) -- **name** (String) - -### Optional - -- **description** (String) -- **parent_id** (String) -- **slug** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/node_product.md b/docs/resources/node_product.md deleted file mode 100644 index c279d10..0000000 --- a/docs/resources/node_product.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -page_title: "epcc_node_product Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Node and Product Relationship https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/relationships/create-node-product-relationships.html. ---- - -# Resource `epcc_node_product` - -Represents the EPCC API [Node and Product Relationship](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/hierarchies/relationships/create-node-product-relationships.html). - - - - -## Schema - -### Required - -- **hierarchy_id** (String) -- **node_id** (String) -- **product_id** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/payment_gateway.md b/docs/resources/payment_gateway.md deleted file mode 100644 index 162366b..0000000 --- a/docs/resources/payment_gateway.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "epcc_payment_gateway Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Payment gateway connectivity configuration ---- - -# Resource `epcc_payment_gateway` - -Payment gateway connectivity configuration - - - - -## Schema - -### Required - -- **slug** (String) - -### Optional - -- **enabled** (Boolean) Should the gateway process payments. Default: `false` -- **id** (String) The ID of this resource. -- **options** (Map of String) Parameters specific to concrete payment provider -- **test** (Boolean) Is this a sandbox environment. Default: `false` - diff --git a/docs/resources/pricebook.md b/docs/resources/pricebook.md deleted file mode 100644 index 1068756..0000000 --- a/docs/resources/pricebook.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -page_title: "epcc_pricebook Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API PriceBook Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/pricebooks/index.html#the-pricebook-object. ---- - -# Resource `epcc_pricebook` - -Represents the EPCC API [PriceBook Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/pricebooks/index.html#the-pricebook-object). - - - - -## Schema - -### Required - -- **name** (String) - -### Optional - -- **description** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/product.md b/docs/resources/product.md deleted file mode 100644 index b82b1f7..0000000 --- a/docs/resources/product.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -page_title: "epcc_product Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Allows the caller to create, update or delete an Elastic Path Commerce Cloud PCM product https://documentation.elasticpath.com/commerce-cloud/docs/concepts/products-pcm.html. ---- - -# Resource `epcc_product` - -Allows the caller to create, update or delete an Elastic Path Commerce Cloud PCM [product](https://documentation.elasticpath.com/commerce-cloud/docs/concepts/products-pcm.html). - - - - -## Schema - -### Required - -- **commodity_type** (String) Valid values: `physical` or `digital`. -- **name** (String) The product name to display to customers. -- **sku** (String) The unique _stock keeping unit_ of the product. - -### Optional - -- **description** (String) The product description to display to customers. -- **files** (Set of String) -- **mpn** (String) The _manufacturer part number_ of the product. -- **slug** (String) The unique slug of the product. -- **status** (String) Valid values: `draft` or `live`. Default is `draft`. -- **upc_ean** (String) The _universal product code_ or _european article number_ of the product. - -### Read-Only - -- **id** (String) The unique identifier of the product. - diff --git a/docs/resources/product_price.md b/docs/resources/product_price.md deleted file mode 100644 index 109be69..0000000 --- a/docs/resources/product_price.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -page_title: "epcc_product_price Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Price Object https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/pricebooks/prices/create-product-prices.html. ---- - -# Resource `epcc_product_price` - -Represents the EPCC API [Price Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/pcm/pricebooks/prices/create-product-prices.html). - - - - -## Schema - -### Required - -- **currency** (Block Set, Min: 1) (see [below for nested schema](#nestedblock--currency)) -- **pricebook_id** (String) -- **sku** (String) - -### Read-Only - -- **id** (String) The unique identifier of the price. - - -### Nested Schema for `currency` - -Required: - -- **amount** (Number) -- **code** (String) - -Optional: - -- **includes_tax** (Boolean) - diff --git a/docs/resources/profile.md b/docs/resources/profile.md deleted file mode 100644 index 2074163..0000000 --- a/docs/resources/profile.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -page_title: "epcc_profile Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API OpenID Connect Profiles https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/oidc-profiles/index.html. ---- - -# Resource `epcc_profile` - -Represents the EPCC API [OpenID Connect Profiles](https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/oidc-profiles/index.html). - - - - -## Schema - -### Required - -- **client_id** (String) -- **client_secret** (String) -- **discovery_url** (String) -- **name** (String) -- **realm_id** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/promotion.md b/docs/resources/promotion.md deleted file mode 100644 index fc1207b..0000000 --- a/docs/resources/promotion.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -page_title: "epcc_promotion Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Promotion Object https://documentation.elasticpath.com/commerce-cloud/docs/api/carts-and-checkout/promotions/index.html#the-promotion-object. - !> Warning: This resource only supports a single schema at this point ---- - -# Resource `epcc_promotion` - -Represents the EPCC API [Promotion Object](https://documentation.elasticpath.com/commerce-cloud/docs/api/carts-and-checkout/promotions/index.html#the-promotion-object). -!> **Warning:** This resource only supports a single schema at this point - - - - -## Schema - -### Required - -- **description** (String) -- **enabled** (Boolean) -- **end** (String) -- **name** (String) -- **promotion_type** (String) -- **schema** (Block List, Min: 1) (see [below for nested schema](#nestedblock--schema)) -- **start** (String) -- **type** (String) - -### Optional - -- **automatic** (Boolean) -- **max_discount_value** (Block List) (see [below for nested schema](#nestedblock--max_discount_value)) -- **min_cart_value** (Block List) (see [below for nested schema](#nestedblock--min_cart_value)) - -### Read-Only - -- **id** (String) The ID of this resource. - - -### Nested Schema for `schema` - -Optional: - -- **currencies** (Block List) (see [below for nested schema](#nestedblock--schema--currencies)) - - -### Nested Schema for `schema.currencies` - -Optional: - -- **amount** (Number) -- **currency** (String) - - - - -### Nested Schema for `max_discount_value` - -Optional: - -- **amount** (Number) -- **currency** (String) - - - -### Nested Schema for `min_cart_value` - -Optional: - -- **amount** (Number) -- **currency** (String) - diff --git a/docs/resources/realm.md b/docs/resources/realm.md deleted file mode 100644 index 4199a3d..0000000 --- a/docs/resources/realm.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -page_title: "Resource epcc_realm - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Authentication Realms https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/authentication-realms/index.html. ---- - -# epcc_realm `Resource` -~> This data source is deprecated, and it is recommended you migrate to [authentication_realm](authentication_realms) - -Represents the EPCC API [Authentication Realms](https://documentation.elasticpath.com/commerce-cloud/docs/api/single-sign-on/authentication-realms/index.html). - - - - -## Schema - -### Required - -- **duplicate_email_policy** (String) -- **name** (String) -- **origin_id** (String) -- **origin_type** (String) -- **redirect_uris** (List of String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/settings.md b/docs/resources/settings.md deleted file mode 100644 index 55faeec..0000000 --- a/docs/resources/settings.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -page_title: "epcc_settings Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API Settings https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/index.html. - Note: The epcc_settings resource behaves different from normal resources, in that Terraform does not create this reosurce, but instead "adopts" it into management. ---- - -# Resource `epcc_settings` - -Represents the EPCC API [Settings](https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/index.html). -Note: The `epcc_settings` resource behaves different from normal resources, in that Terraform does not *create* this reosurce, but instead "adopts" it into management. - - - - -## Schema - -### Optional - -- **additional_languages** (List of String) -- **calculation_method** (String) -- **list_child_products** (Boolean) -- **page_length** (Number) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/docs/resources/user_authentication_info.md b/docs/resources/user_authentication_info.md deleted file mode 100644 index 5055b10..0000000 --- a/docs/resources/user_authentication_info.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -page_title: "epcc_user_authentication_info Resource - terraform-provider-epcc" -subcategory: "" -description: |- - Represents the EPCC API User Authentication Info ---- - -# Resource `epcc_user_authentication_info` - -Represents the EPCC API User Authentication Info - - - - -## Schema - -### Required - -- **email** (String) -- **name** (String) -- **realm_id** (String) - -### Read-Only - -- **id** (String) The ID of this resource. - diff --git a/internal/provider/resource_epcc_authentication_realm.go b/internal/provider/resource_epcc_authentication_realm.go index e112bb4..950bb41 100644 --- a/internal/provider/resource_epcc_authentication_realm.go +++ b/internal/provider/resource_epcc_authentication_realm.go @@ -19,6 +19,11 @@ func resourceEpccAuthenticationRealm() *schema.Resource { }, Schema: map[string]*schema.Schema{ "id": { + Type: schema.TypeString, + Computed: true, + Description: "The unique identifier for the authentication realm.", + }, + "authentication_realm_id": { Type: schema.TypeString, Required: true, Description: "The unique identifier for the authentication realm.", diff --git a/templates/data-sources/realm.md.tmpl b/templates/data-sources/realm.md.tmpl deleted file mode 100644 index 299e26d..0000000 --- a/templates/data-sources/realm.md.tmpl +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" -subcategory: "" -description: |- -{{ .Description | plainmarkdown | trimspace | prefixlines " " }} ---- - -# {{.Type}} `{{.Name}}` -~> This resource is deprecated, and it is recommended you migrate to [authentication_realm](authentication_realms) - -{{ .Description | trimspace }} - -{{ if .HasExample -}} -## Example Usage - -{{ printf "{{tffile %q}}" .ExampleFile }} -{{- end }} - -{{ .SchemaMarkdown | trimspace }} - -{{ if .HasImport -}} -## Import - -Import is supported using the following syntax: - -{{ printf "{{codefile \"shell\" %q}}" .ImportFile }} -{{- end }} \ No newline at end of file diff --git a/templates/resources/realm.md.tmpl b/templates/resources/realm.md.tmpl deleted file mode 100644 index 1de1f46..0000000 --- a/templates/resources/realm.md.tmpl +++ /dev/null @@ -1,27 +0,0 @@ ---- -page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" -subcategory: "" -description: |- -{{ .Description | plainmarkdown | trimspace | prefixlines " " }} ---- - -# {{.Type}} `{{.Name}}` -~> This data source is deprecated, and it is recommended you migrate to [authentication_realm](authentication_realms) - -{{ .Description | trimspace }} - -{{ if .HasExample -}} -## Example Usage - -{{ printf "{{tffile %q}}" .ExampleFile }} -{{- end }} - -{{ .SchemaMarkdown | trimspace }} - -{{ if .HasImport -}} -## Import - -Import is supported using the following syntax: - -{{ printf "{{codefile \"shell\" %q}}" .ImportFile }} -{{- end }} \ No newline at end of file