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.
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
ActionType
Actions are things to do upon a user interaction, such as tapping a button.
Possible types
Example
DeeplinkActionType
BackendScreenType
A backend screen is the top-level container for mobile UI.
Possible types
Example
ComponentListType
Possible types
Example
StringCharacteristicValueType
ContractParty
Union type representing the subject that entered into a contract, either an Account or Business.
Possible types
Example
Account
CreateBankTransferPaymentMethodResponse
Returned when a customer creates a bank transfer payment method from their MyPage.
Possible types
Example
BankTransferPaymentMethodCreated
CreateKonbiniPaymentMethodResponse
Returned when a customer creates a Konbini Payment method from their MyPage.
Possible types
Example
KonbiniPaymentMethodCreated
CreateKonbiniPaymentResponse
Returned when a customer creates a Konbini Payment from their MyPage.
Possible types
Example
KonbiniPaymentCreated
CreatePaymentScheduleResponse
Returned when a customer creates a fixed payment schedule from their MyPage.
Possible types
Example
PaymentScheduleCreated
Example
DemandResponseCampaignParticipantCommsPreferencesUpdated
Possible types
Example
JoinSupplierProcessType
Possible types
Example
SerializerErrorType
InitiateAmperageChangeResponse
Returned when a customer initiates an Amperage Change from their MyPage.
Possible types
Example
AmperageChangeInitiated
InitiateMoveOutAndMoveInResponse
Returned when a customer initiates a Move Out and MoveIn from their MyPage.
Possible types
Example
MoveOutAndMoveInInitiated
InitiateMoveOutResponse
Returned when a customer initiates a Move Out from their MyPage.
Possible types
Example
MoveOutInitiated
Possible types
Example
InkEmail
ItemType
Items are sections making up a screen. They can be different types, hence Union.
Possible types
Example
TextType
Possible types
Example
LineTextMessage
Possible types
Example
LineLinkRedirectResponse
OrderCustomerType
Union type representing a customer, either an account or a business.
Possible types
Example
Account
OrderLinePeriodType
Union type representing either a date range or a duration for an order line period.
Possible types
Example
OrderLineDateRangeType
PaymentPreferenceUnion
One of PreferredInstructionType or UserManagedPaymentType
Possible types
Example
PreferredInstruction
Possible types
Example
{
"code": "order-police-report-just-stock",
"fullName": "information-be-such-help-recognize",
"displayName": "ball-safe-develop-away-night",
"description": "control-third-two-billion-despite",
"availableFrom": "2017-01-08T08:44:14.395435+00:00",
"availableTo": "1999-10-23T01:13:50.997947+00:00",
"isHidden": true,
"term": 68,
"endsAt": "1988-07-17T11:43:21.851353+00:00",
"marketName": "draw-American-theory-life-suffer",
"availabilityStatus": "PUBLIC",
"termsContractType": "experience-leave-question-court-fish",
"params": {"key": "value"},
"hasMinimumTerm": true,
"minimumTerm": 98,
"noticePeriod": 93,
"priceGuaranteeInMonths": 72,
"priceGuaranteeType": "NONE",
"isTimeOfUse": true,
"contractBindingStart": "WITH_CONTRACT_CONFIRMATION"
}
Possible types
Example
DecimalType
QuotedSupplyPoint
DEPRECATED - A single quoted supply point for a customers quote request.
Possible types
Example
QuotedElectricitySupplyPoint
RegisterDemandResponseCampaignParticipantResponse
Returned when a customer registers for a Demand Response campaign.
Possible types
Example
RegisterDemandResponseCampaignParticipantRegistered
SalesRecordType
A union type representing different kinds of sales records.
Example
KrakenDrivenSalesInfoType
Possible types
Example
SmartFlexChargingError
Example
SpecialCircumstanceRecordType
StoreRefundBankAccountResponse
Returned when a customer stores a refund bank account from their MyPage.
Possible types
Example
RefundBankAccountStored
SuggestFixedPaymentAmountResponse
Returned when a customer creates a fixed payment schedule from their MyPage.
Possible types
Example
FixedPaymentAmountSuggested
SwitchInCorrectionResponse
Returned when a customer self-services a correction of switch-in data.
Possible types
Example
SwitchInCorrectionPerformed
SwitchToProductWithFixedFuelCostAdjustmentResponse
Returned when a customer switches to the fixed FCA product on the consumer site.
Possible types
Example
ProductWithFixedFuelCostAdjustmentSwitched
Possible types
Example
LineUnlinkedResponse
Possible types
Example
DemandResponseCampaignParticipantTipUpdated
Possible types
Example
ElectricityFiltersOutput