Sha256: 148612e72731626292672a5be8308f5aac3957d30c8e5a0d3c4def8d505ace7d
Contents?: true
Size: 543 Bytes
Versions: 13
Compression:
Stored size: 543 Bytes
Contents
module Payjp class Card < APIResource include Payjp::APIOperations::Create include Payjp::APIOperations::Update include Payjp::APIOperations::Delete include Payjp::APIOperations::List def url if respond_to?(:customer) "#{Customer.url}/#{CGI.escape(customer)}/cards/#{CGI.escape(id)}" end end def self.retrieve(_id, _opts = nil) raise NotImplementedError.new("Cards cannot be retrieved without a customer ID. Retrieve a card using customer.cards.retrieve('card_id')") end end end
Version data entries
13 entries across 13 versions & 1 rubygems