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"
)

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