You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use terraform to manage a part of our commercetools configuration. It would be a nice addition to have a piece of terraform script included in this project which has all the custom type configuration defined in it.
Developers who manage their commercetools configuration through terraform would then be able to just copy the type configuration from this project into their own terraform script.
mollie-custom-types.tf
resource"commercetools_type""mollie-integration-payment-type" {
key="ct-mollie-integration-payment-type"name={
en ="Mollie Integration payment type"
}
resource_type_ids=["payment"]
# payment methods request fieldfield {
type {
name="String"
}
name="paymentMethodsRequest"label={
en ="Payment methods request"
}
required=falseinput_hint="MultiLine"
}
# payment methods response fieldfield {
type {
name="String"
}
name="paymentMethodsResponse"label={
en ="Payment methods response"
}
required=falseinput_hint="MultiLine"
}
# create payment fieldfield {
type {
name="String"
}
name="createPayment"label={
en ="Create payment"
}
required=falseinput_hint="MultiLine"
}
}
resource"commercetools_type""mollie-integration-transaction-type" {
key="ct-mollie-integration-transaction-type"name={
en ="Mollie Integration transaction type"
}
resource_type_ids=["transaction"]
# line IDs fieldfield {
type {
name="String"
}
name="lineIds"label={
en ="Line IDs and Custom Line IDs"
}
required=falseinput_hint="MultiLine"
}
# include shipping fieldfield {
type {
name="Boolean"
}
name="includeShipping"label={
en ="Include shipping"
}
required=false
}
# description fieldfield {
type {
name="String"
}
name="description"label={
en ="Description"
}
required=falseinput_hint="SingleLine"
}
# metadata fieldfield {
type {
name="String"
}
name="metadata"label={
en ="Metadata"
}
required=falseinput_hint="MultiLine"
}
}
resource"commercetools_type""mollie-integration-interaction-type" {
key="ct-mollie-integration-interface-interaction-type"name={
en ="Mollie Integration payment interface interaction type"
}
resource_type_ids=["payment-interface-interaction"]
# id fieldfield {
type {
name="String"
}
name="id"label={
en ="ID"
}
required=trueinput_hint="SingleLine"
}
# action type fieldfield {
type {
name="String"
}
name="actionType"label={
en ="Action type"
}
required=trueinput_hint="SingleLine"
}
# created at fieldfield {
type {
name="DateTime"
}
name="createdAt"label={
en ="Created at"
}
required=false
}
# request fieldfield {
type {
name="String"
}
name="request"label={
en ="Request"
}
required=falseinput_hint="MultiLine"
}
# response fieldfield {
type {
name="String"
}
name="response"label={
en ="Response"
}
required=falseinput_hint="MultiLine"
}
}
The text was updated successfully, but these errors were encountered:
Summary
We use terraform to manage a part of our commercetools configuration. It would be a nice addition to have a piece of terraform script included in this project which has all the custom type configuration defined in it.
Developers who manage their commercetools configuration through terraform would then be able to just copy the type configuration from this project into their own terraform script.
mollie-custom-types.tf
The text was updated successfully, but these errors were encountered: