CreateAccountRequest

data class CreateAccountRequest(val type: AccountObjects.AccountType, val externalId: String? = null, val termsOfService: AccountObjects.AccountTermsOfService? = null, val metadata: Map<String, String>? = null, val profile: AccountRequests.CreateAccountProfile, val capabilities: List<String> = emptyList())

Request body for creating a new account.

Constructors

Link copied to clipboard
constructor(type: AccountObjects.AccountType, externalId: String? = null, termsOfService: AccountObjects.AccountTermsOfService? = null, metadata: Map<String, String>? = null, profile: AccountRequests.CreateAccountProfile, capabilities: List<String> = emptyList())

Properties

Link copied to clipboard

List of capability keys to request for this account.

Link copied to clipboard
@SerializedName(value = "external_id")
val externalId: String? = null

Merchant-assigned identifier for this account.

Link copied to clipboard
val metadata: Map<String, String>? = null

Arbitrary key-value pairs to store with the account.

Link copied to clipboard

Business or individual profile data.

Link copied to clipboard
@SerializedName(value = "terms_of_service")
val termsOfService: AccountObjects.AccountTermsOfService? = null

Terms-of-service acceptance record to attach at creation.

Link copied to clipboard

Whether this is an individual or business account.