invoke

operator fun invoke(attributeIndex: Int): PayPalCreditButtonColor

Given an attributeIndex this will provide the correct PayPalCreditButtonColor. If an invalid attributeIndex is provided then it will throw an IllegalArgumentException.

Throws

when an invalid index is provided.