Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

ProviderName

order := components.CreateOrderProviderName(components.ProviderName{/* values here */})

order := components.CreateOrderStr(string{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch order.Type {
	case components.OrderTypeProviderName:
		// order.ProviderName is populated
	case components.OrderTypeStr:
		// order.Str is populated
}