BuyerIdentification

data class BuyerIdentification(val name: String, val number: String? = null, val type: String? = null)

Represents the buyer's identification information for payment processing. This class contains the necessary identification details of the cardholder, including name and optional identification number and type.

Example:

// Create buyer identification for testing approved payment
val buyerId = BuyerIdentification(
name = "APRO",
number = "123456789",
type = "CPF"
)

// Create buyer identification for testing error payment
val realBuyerId = BuyerIdentification(
name = "OTHE",
number = "123456789",
type = "CPF"
)

Parameters

name

The cardholder's name.

number

Optional identification number of the cardholder

type

Optional identification type of the cardholder

See also

Constructors

Link copied to clipboard
constructor(name: String, number: String? = null, type: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val number: String? = null
Link copied to clipboard
val type: String? = null