# Capabilities

data class Capabilities(val allCapabilities: Set<String>)

Actions that can be performed on a payment, e.g. modifying the tip amount up or down.

- Use `canCapabilityName` methods for convenient `true`/`false` check for capability, e.g. canEditTipUp.

- Use allCapabilities property to get all capabilities of a Payment.

## Constructors

Capabilities
Link copied to clipboard
constructor(allCapabilities: Set<String>)

## Types

Companion
Link copied to clipboard
object Companion

Constants for capability names.

## Properties

allCapabilities
Link copied to clipboard
val allCapabilities: Set<String>

## Functions

canEditTipDown
Link copied to clipboard
fun canEditTipDown(): Boolean

The tip amount can be edited down.

canEditTipUp
Link copied to clipboard
fun canEditTipUp(): Boolean

The tip amount can be edited up.