class Levelup::Requests::CreateCard

Represents a request to add the first credit card to a specified user account. User access token must have the create_first_credit_card permission.

Attributes

encrypted_cvv[RW]
encrypted_expiration_month[RW]
encrypted_expiration_year[RW]
encrypted_number[RW]
postal_code[RW]

Public Instance Methods

body() click to toggle source
# File lib/levelup/requests/create_card.rb, line 11
def body
  { credit_card: to_hash }
end
response_from_hash(hash) click to toggle source
# File lib/levelup/requests/create_card.rb, line 15
def response_from_hash(hash)
  Response::Success.new(hash['credit_card'])
end