CapabilityObjects

Namespace for data models representing account capability resources.

Types

Link copied to clipboard
data class Capability(val id: String?, val object: String?, val name: String?, val accountId: String?, val status: String?, val disabledReason: String? = null, val ineligibleReason: String? = null, val errors: List<CapabilityObjects.CapabilityError>? = null, val currentlyDue: List<String>? = null, val created: String?, val updated: String?, val disabled: Boolean? = null)

Represents a single capability associated with a merchant account.

Link copied to clipboard
data class CapabilityError(val id: String?, val object: String? = null, val code: String? = null, val message: String? = null, val requirementId: String? = null)

A server-derived conclusion about why a capability has not been granted.

Link copied to clipboard
data class CapabilityRequirement(val id: String?, val object: String?, val type: String?, val status: String?, val source: String? = null)

Describes a single outstanding requirement that must be satisfied before a capability can be enabled.

Link copied to clipboard

currently_due keys the onboarding flow acts on.

Link copied to clipboard

Mapped from the wire string; an unrecognized value degrades to UNKNOWN.

Properties

Link copied to clipboard

currently_due keys the applicant can still resolve; a disabled capability publishes dead keys.

Link copied to clipboard

This capability's status, degrading an unrecognized value to CapabilityStatus.UNKNOWN.

Link copied to clipboard

Whether work listed against this capability can still move it forward. The server blanks currently_due only for ineligible, so a disabled capability still publishes dead keys.

Link copied to clipboard

Mirrors the server's Capability#blocks_activation?.