business_unit_company

package
v1.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompanyResource

func NewCompanyResource() resource.Resource

Types

type Company

type Company struct {
	ID                        types.String                    `tfsdk:"id"`
	Version                   types.Int64                     `tfsdk:"version"`
	Key                       types.String                    `tfsdk:"key"`
	Status                    types.String                    `tfsdk:"status"`
	Name                      types.String                    `tfsdk:"name"`
	ContactEmail              types.String                    `tfsdk:"contact_email"`
	ShippingAddressKeys       []types.String                  `tfsdk:"shipping_address_keys"`
	DefaultShippingAddressKey types.String                    `tfsdk:"default_shipping_address_key"`
	BillingAddressKeys        []types.String                  `tfsdk:"billing_address_keys"`
	DefaultBillingAddressKey  types.String                    `tfsdk:"default_billing_address_key"`
	Stores                    []sharedtypes.StoreKeyReference `tfsdk:"store"`
	Addresses                 []sharedtypes.Address           `tfsdk:"address"`
	Custom                    *sharedtypes.Custom             `tfsdk:"custom"`
}

Company is a type to model the fields that all types of Companies have in common.

func NewCompanyFromNative

func NewCompanyFromNative(bu *platform.BusinessUnit) (Company, error)

NewCompanyFromNative creates a new Company from a platform.Company.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL