Sha256: 8b29122dcc9fb4b2650ecd0f4166a3e08bfc42726c3ef192576b5cc3032a1aba
Contents?: true
Size: 981 Bytes
Versions: 46
Compression:
Stored size: 981 Bytes
Contents
# frozen_string_literal: true module Stripe class Person < APIResource extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "person" def resource_url if !respond_to?(:account) || account.nil? raise NotImplementedError, "Persons cannot be accessed without an account ID." end "#{Account.resource_url}/#{CGI.escape(account)}/persons/#{CGI.escape(id)}" end def self.retrieve(_id, _opts = {}) raise NotImplementedError, "Persons cannot be retrieved without an account ID. Retrieve a " \ "person using `Account.retrieve_person('account_id', 'person_id')`" end def self.update(_id, _params = nil, _opts = nil) raise NotImplementedError, "Persons cannot be updated without an account ID. Update a " \ "person using `Account.update_person('account_id', 'person_id', " \ "update_params)`" end end end
Version data entries
46 entries across 46 versions & 1 rubygems