Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultDeleteDaysAfterCreation = 15 DefaultDaysAfterLastModification = 90 )
Variables ¶
View Source
var ProjectResourceDataV0 = tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "id": tftypes.String, "key": tftypes.String, "version": tftypes.Number, "name": tftypes.String, "currencies": tftypes.List{ElementType: tftypes.String}, "countries": tftypes.List{ElementType: tftypes.String}, "languages": tftypes.List{ElementType: tftypes.String}, "enable_search_index_products": tftypes.Bool, "enable_search_index_orders": tftypes.Bool, "carts": tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "country_tax_rate_fallback_enabled": tftypes.Bool, "delete_days_after_last_modification": tftypes.Number, }, }, "messages": tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "enabled": tftypes.Bool, "delete_days_after_creation": tftypes.Number, }, }, "external_oauth": tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "url": tftypes.String, "authorization_header": tftypes.String, }, }, "shipping_rate_input_type": tftypes.String, "shipping_rate_cart_classification_value": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "key": tftypes.String, "label": tftypes.Map{ ElementType: tftypes.String, }, }, }, }, }, }
View Source
var ProjectResourceDataV1 = tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "id": tftypes.String, "key": tftypes.String, "version": tftypes.Number, "name": tftypes.String, "currencies": tftypes.List{ElementType: tftypes.String}, "countries": tftypes.List{ElementType: tftypes.String}, "languages": tftypes.List{ElementType: tftypes.String}, "enable_search_index_products": tftypes.Bool, "enable_search_index_product_search": tftypes.Bool, "enable_search_index_orders": tftypes.Bool, "enable_search_index_customers": tftypes.Bool, "enable_search_index_business_units": tftypes.Bool, "carts": tftypes.List{ ElementType: ProjectsCartDataV1, }, "shopping_lists": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "delete_days_after_last_modification": tftypes.Number, }, }, }, "messages": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "enabled": tftypes.Bool, "delete_days_after_creation": tftypes.Number, }, }, }, "external_oauth": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "url": tftypes.String, "authorization_header": tftypes.String, }, }, }, "shipping_rate_input_type": tftypes.String, "shipping_rate_cart_classification_value": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "key": tftypes.String, "label": tftypes.Map{ ElementType: tftypes.String, }, }, }, }, "business_units": tftypes.List{ ElementType: tftypes.Object{ AttributeTypes: map[string]tftypes.Type{ "my_business_unit_status_on_creation": tftypes.String, "my_business_unit_associate_role_key_on_creation": tftypes.String, }, }, }, }, }
Functions ¶
func IsDefaultShoppingListsConfiguration ¶ added in v1.21.0
func IsDefaultShoppingListsConfiguration(c *platform.ShoppingListsConfiguration) bool
func NewResource ¶
NewResource is a helper function to simplify the provider implementation.
Types ¶
type AssociateRoleKeyReference ¶ added in v1.15.0
type BusinessUnits ¶ added in v1.15.0
type Carts ¶
type Carts struct {
CountryTaxRateFallbackEnabled types.Bool `tfsdk:"country_tax_rate_fallback_enabled"`
DeleteDaysAfterLastModification types.Int64 `tfsdk:"delete_days_after_last_modification"`
PriceRoundingMode types.String `tfsdk:"price_rounding_mode"`
TaxRoundingMode types.String `tfsdk:"tax_rounding_mode"`
}
type ExternalOAuth ¶
type Project ¶
type Project struct {
ID types.String `tfsdk:"id"`
Key types.String `tfsdk:"key"`
Version types.Int64 `tfsdk:"version"`
Name types.String `tfsdk:"name"`
Currencies []types.String `tfsdk:"currencies"`
Countries []types.String `tfsdk:"countries"`
Languages []types.String `tfsdk:"languages"`
EnableSearchIndexProducts types.Bool `tfsdk:"enable_search_index_products"`
EnableSearchIndexProductSearch types.Bool `tfsdk:"enable_search_index_product_search"`
EnableSearchIndexOrders types.Bool `tfsdk:"enable_search_index_orders"`
EnableSearchIndexCustomers types.Bool `tfsdk:"enable_search_index_customers"`
EnableSearchIndexBusinessUnits types.Bool `tfsdk:"enable_search_index_business_units"`
// These items all have maximal one item. We don't use SingleNestedBlock
// here since it isn't quite robust currently.
// See https://github.com/hashicorp/terraform-plugin-framework/issues/603
Carts []Carts `tfsdk:"carts"`
ShoppingLists []ShoppingList `tfsdk:"shopping_lists"`
Messages []Messages `tfsdk:"messages"`
ExternalOAuth []ExternalOAuth `tfsdk:"external_oauth"`
ShippingRateInputType types.String `tfsdk:"shipping_rate_input_type"`
ShippingRateCartClassificationValue []models.CustomFieldLocalizedEnumValue `tfsdk:"shipping_rate_cart_classification_value"`
BusinessUnits []BusinessUnits `tfsdk:"business_units"`
}
func NewProjectFromNative ¶
type ShoppingList ¶ added in v1.21.0
Click to show internal directories.
Click to hide internal directories.