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. For testing purposes, specific status codes can be included in the name to simulate different payment scenarios.
Parameters
name
The cardholder's name. For testing, include status codes like: - APRO: Approved payment - OTHE: Other payment status - CONT: Contingent payment
number
Optional identification number of the cardholder
type
Optional identification type of the cardholder
Example:
// Create buyer identification for testing
val buyerId = BuyerIdentification(
name = "APRO John Doe",
number = "123456789",
type = "CPF"
)
// Create buyer identification for production
val realBuyerId = BuyerIdentification(
name = "John Doe",
number = "123456789",
type = "CPF"
)
Content copied to clipboard