setPaymentMethodNickname

abstract suspend fun setPaymentMethodNickname(savedCardId: Int, nickname: String)

Renames a saved card so the member can tell two cards apart.

The server rejects a nickname that is not 3-30 characters of letters, digits, spaces, underscores or periods, that starts or ends with a symbol or space, or that contains two symbols or spaces in a row. Completes when the new name is saved.

Parameters

nickname

The new card name.

Throws

if the request fails - an AFException carrying the server's message when the nickname is rejected.