mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-15 00:00:44 -04:00
16 lines
461 B
Ruby
16 lines
461 B
Ruby
module Stripe
|
|
class Card < APIResource
|
|
include Stripe::APIOperations::Update
|
|
include Stripe::APIOperations::Delete
|
|
include Stripe::APIOperations::List
|
|
|
|
def url
|
|
"#{Customer.url}/#{CGI.escape(customer)}/cards/#{CGI.escape(id)}"
|
|
end
|
|
|
|
def self.retrieve(id, api_key=nil)
|
|
raise NotImplementedError.new("Cards cannot be retrieved without a customer ID. Retrieve a card using customer.cards.retrieve('card_id')")
|
|
end
|
|
end
|
|
end
|