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.
AccessibleEntityUnion
Union type representing entities like account, business or portfolio an accessor has access to.
Possible types
Example
AccountTypeExample
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
TextTypeLegacyOrderCustomerType
Union type representing a customer, either an account or a business.
Possible types
Example
AccountTypeLegacyOrderLinePeriodType
Union type representing either a date range or a duration for an order line period.
Possible types
Example
LegacyOrderLineDateRangeTypeExample
LineLinkRedirectResponsePossible types
Example
ElectricityMeterPointTypePaymentPreferenceUnion
One of PreferredInstructionType or UserManagedPaymentType
Possible types
Example
PreferredInstructionPossible types
Example
DecimalTypeSalesRecordType
A union type representing different kinds of sales records.
Example
KrakenDrivenSalesInfoTypePossible types
Example
SmartFlexChargingErrorExample
SpecialCircumstanceRecordTypePossible types
Example
TariffInformationLabelStandardPossible types
Example
LineUnlinkedResponsePossible types
Example
ElectricityFiltersOutput