PaymentMethod

constructor(financialInstitution: List<FinancialInstitutionModel>? = null, payerCost: List<PayerCost>? = null, issuer: Issuer? = null, totalFinancialCost: String? = null, minAccreditationDays: String? = null, maxAccreditationDays: String? = null, merchantAccountId: String? = null, id: String? = null, paymentTypeId: String? = null, accreditationTime: String? = null, card: CardModel? = null, thumbnail: String? = null, bins: List<Int>? = null, marketplace: String? = null, deferredCapture: String? = null, agreements: List<Agreements>? = null, labels: List<String>? = null, siteId: String? = null, processingMode: String? = null, additionalInfoNeeded: List<String>? = null, status: String? = null)

Parameters

financialInstitution

List of financial institutions that can process this payment method

payerCost

List of available payment costs and installment options

issuer

The financial institution that issues this payment method

totalFinancialCost

Total cost including fees and taxes for using this payment method

minAccreditationDays

Minimum days required for payment accreditation

maxAccreditationDays

Maximum days required for payment accreditation

merchantAccountId

Unique identifier for the merchant's account

id

Unique identifier for this payment method (e.g., "visa", "master")

paymentTypeId

Type of payment (e.g., "credit_card", "debit_card")

accreditationTime

Time required for payment accreditation

card

Card-specific details and validation rules

thumbnail

URL to the payment method's logo or icon

bins

List of valid BINs (Bank Identification Numbers) for this payment method

marketplace

Identifier for the marketplace where this payment method is available

deferredCapture

Indicates if payment capture can be deferred

agreements

List of agreements and terms associated with this payment method

labels

Additional labels or tags for the payment method

siteId

Identifier for the site/market where this payment method is used

processingMode

Processing mode (e.g., "aggregator", "gateway")

additionalInfoNeeded

List of additional information required for processing

status

Current status of the payment method

Example:

val paymentMethod = PaymentMethod(
id = "visa",
paymentTypeId = "credit_card",
card = CardModel(
bin = 411111,
length = LengthModel(min = 16, max = 16),
securityCode = SecurityCodeModel(
mode = "mandatory",
length = 3
)
)
)