Skip to main content

Unions

In this section

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.

  • API Site

  • ActionType

    Actions are things to do upon a user interaction, such as tapping a button.

    Example

    DeeplinkActionType

    BackendScreenType

    A backend screen is the top-level container for mobile UI.

    Example

    ComponentListType

    CardItemType

    Items are sections making up a card.

    Example

    TextType


    Example

    FractionSizeType

    ItemType

    Items are sections making up a screen. They can be different types, hence Union.

    Example

    TextType

    PaymentPreferenceUnion

    One of PreferredInstructionType or UserManagedPaymentType

    Example

    PreferredInstruction

    Example

    CardComponentType