PaymentMethod

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

Represents a payment method with comprehensive details for financial transactions. This class encapsulates all necessary information about a payment method including its processing rules, validation requirements, and associated costs. It supports various payment types like credit cards, debit cards, and other payment methods.

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

See also

Constructors

Link copied to clipboard
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)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val agreements: List<Agreements>? = null
Link copied to clipboard
val bins: List<Int>? = null
Link copied to clipboard
val card: CardModel? = null
Link copied to clipboard
val deferredCapture: String? = null
Link copied to clipboard
val id: String? = null
Link copied to clipboard
val issuer: Issuer? = null
Link copied to clipboard
val labels: List<String>? = null
Link copied to clipboard
val marketplace: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val payerCost: List<PayerCost>? = null
Link copied to clipboard
val paymentTypeId: String? = null
Link copied to clipboard
val processingMode: String? = null
Link copied to clipboard
val siteId: String? = null
Link copied to clipboard
val status: String? = null
Link copied to clipboard
val thumbnail: String? = null
Link copied to clipboard