About Unions
Unions are abstract types that can be used to return one of a number of different objects. They are useful for defining a common set of fields that objects can implement.
Example
EmailEventTypeActionType
Actions are things to do upon a user interaction, such as tapping a button.
Possible types
Example
DeeplinkActionTypeBackendScreenType
A backend screen is the top-level container for mobile UI.
Example
ComponentListTypeCardItemType
Items are sections making up a card.
Example
TextTypeExample
StringCharacteristicValueTypeContractParty
Union type representing the subject that entered into a contract, either an Account or Business.
Possible types
Example
AccountTypePossible types
Example
ElectricityConsumptionStandardPossible types
Example
ProductTariffInformationLabelStandardPossible types
Example
StandardTariffExample
StandardTariffPossible types
Example
JoinSupplierProcessTypePossible types
Example
InkEmailItemType
Items are sections making up a screen. They can be different types, hence Union.
Example
TextTypeExample
LineLinkRedirectResponsePossible types
Example
ElectricityMeterPointTypePaymentPreferenceUnion
One of PreferredInstructionType or UserManagedPaymentType
Possible types
Example
PreferredInstructionPossible types
Example
DecimalTypePossible types
Example
SmartFlexChargingErrorExample
SpecialCircumstanceRecordTypePossible types
Example
TariffInformationLabelStandardPossible types
Example
LineUnlinkedResponsePossible types
Example
ElectricityFiltersOutput