Skip to content

Commit

Permalink
Resolves #25 , #150, #149
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-r-west committed Feb 26, 2022
1 parent c762a53 commit c7379f2
Show file tree
Hide file tree
Showing 75 changed files with 2,215 additions and 459 deletions.
22 changes: 2 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
paths-ignore:
- 'README.md'
# For systems with an upstream API that could drift unexpectedly (like most SaaS systems, etc.),
# we recommend testing at a regular interval not necessarily tied to code changes. This will
# we recommend testing at a regular interval not necessarily tied to code changes. This will
# ensure you are alerted to something breaking due to an API change, even if the code did not
# change.
# schedule:
Expand Down Expand Up @@ -46,24 +46,6 @@ jobs:
echo "If this fails you should run \"terraform fmt -recursive\""
terraform fmt -recursive -check
- name: Import GPG key
id: import_gpg
uses: hashicorp/[email protected]
env:
# These secrets will need to be configured for the repository:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --snapshot --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
# GitHub sets this automatically
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: |
go build -v .
Expand Down Expand Up @@ -97,7 +79,7 @@ jobs:
- name: Get dependencies
run: |
go mod download
- name: TF acceptance tests
timeout-minutes: 15
env:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ website/node_modules
*.iml
*.test

docs/
!docs/.gitkeep

internal/provider/docs/build/*
!internal/provider/docs/build/.gitkeep

Expand Down
Empty file removed docs/.gitkeep
Empty file.
27 changes: 27 additions & 0 deletions docs/data-sources/account.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
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 generated by tfplugindocs -->
## 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.

25 changes: 25 additions & 0 deletions docs/data-sources/account_authentication_settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
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 generated by tfplugindocs -->
## Schema

### Optional

- **id** (String) The ID of this resource.

### Read-Only

- **client_id** (String)
- **realm_id** (String)

28 changes: 28 additions & 0 deletions docs/data-sources/authentication_realm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
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 generated by tfplugindocs -->
## 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`.

27 changes: 27 additions & 0 deletions docs/data-sources/catalog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
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 generated by tfplugindocs -->
## Schema

### Required

- **id** (String) The id of the catalog.

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

27 changes: 27 additions & 0 deletions docs/data-sources/catalog_rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
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 generated by tfplugindocs -->
## Schema

### Required

- **id** (String) The unique identifier of the catalog rule.

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

31 changes: 31 additions & 0 deletions docs/data-sources/currency.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
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 generated by tfplugindocs -->
## 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.

25 changes: 25 additions & 0 deletions docs/data-sources/customer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
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 generated by tfplugindocs -->
## 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.

25 changes: 25 additions & 0 deletions docs/data-sources/customer_authentication_settings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
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 generated by tfplugindocs -->
## 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.

27 changes: 27 additions & 0 deletions docs/data-sources/entry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
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 generated by tfplugindocs -->
## 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)

41 changes: 41 additions & 0 deletions docs/data-sources/field.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
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 generated by tfplugindocs -->
## 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".

31 changes: 31 additions & 0 deletions docs/data-sources/file.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
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 generated by tfplugindocs -->
## Schema

### Required

- **id** (String) The unique identifier for the file.

### Optional

- **file_name** (String) The name of the file
- **public** (Boolean) Whether the file is public.

### Read-Only

- **file_link** (String) A link to the file
- **file_size** (Number) The size of the file
- **mime_type** (String) The MIME type of the file

Loading

0 comments on commit c7379f2

Please sign in to comment.