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
AccountCreateBankTransferPaymentMethodResponse
Returned when a customer creates a bank transfer payment method from their MyPage.
Possible types
Example
BankTransferPaymentMethodCreatedCreateKonbiniPaymentMethodResponse
Returned when a customer creates a Konbini Payment method from their MyPage.
Possible types
Example
KonbiniPaymentMethodCreatedCreateKonbiniPaymentResponse
Returned when a customer creates a Konbini Payment from their MyPage.
Possible types
Example
KonbiniPaymentCreatedCreatePaymentScheduleResponse
Returned when a customer creates a fixed payment schedule from their MyPage.
Possible types
Example
PaymentScheduleCreatedExample
DemandResponseCampaignParticipantCommsPreferencesUpdatedPossible types
Example
JoinSupplierProcessTypeInitiateAmperageChangeResponse
Returned when a customer initiates an Amperage Change from their MyPage.
Possible types
Example
AmperageChangeInitiatedInitiateMoveOutAndMoveInResponse
Returned when a customer initiates a Move Out and MoveIn from their MyPage.
Example
MoveOutAndMoveInInitiatedInitiateMoveOutResponse
Returned when a customer initiates a Move Out from their MyPage.
Possible types
Example
MoveOutInitiatedPossible 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
AccountLegacyOrderLinePeriodType
Union type representing either a date range or a duration for an order line period.
Possible types
Example
LegacyOrderLineDateRangeTypeExample
LineLinkRedirectResponsePaymentPreferenceUnion
One of PreferredInstructionType or UserManagedPaymentType
Possible types
Example
PreferredInstructionPossible types
Example
ElectricitySingleStepProductPossible types
Example
DecimalTypeQuotedSupplyPoint
DEPRECATED - A single quoted supply point for a customers quote request.
Example
QuotedElectricitySupplyPointRegisterDemandResponseCampaignParticipantResponse
Returned when a customer registers for a Demand Response campaign.
Example
RegisterDemandResponseCampaignParticipantRegisteredSalesRecordType
A union type representing different kinds of sales records.
Example
KrakenDrivenSalesInfoTypePossible types
Example
SmartFlexChargingErrorExample
SpecialCircumstanceRecordTypeStoreRefundBankAccountResponse
Returned when a customer stores a refund bank account from their MyPage.
Possible types
Example
RefundBankAccountStoredSuggestFixedPaymentAmountResponse
Returned when a customer creates a fixed payment schedule from their MyPage.
Possible types
Example
FixedPaymentAmountSuggestedSwitchInCorrectionResponse
Returned when a customer self-services a correction of switch-in data.
Possible types
Example
SwitchInCorrectionPerformedSwitchToProductWithFixedFuelCostAdjustmentResponse
Returned when a customer switches to the fixed FCA product on the consumer site.
Possible types
Example
ProductWithFixedFuelCostAdjustmentSwitchedPossible types
Example
LineUnlinkedResponsePossible types
Example
DemandResponseCampaignParticipantTipUpdatedPossible types
Example
ElectricityFiltersOutput