Sha256: 20a46990ddd365d18eb02013fae68a35d6be8ccf26686ad564ea8c613a7c6242
Contents?: true
Size: 1020 Bytes
Versions: 28
Compression:
Stored size: 1020 Bytes
Contents
# File generated from our OpenAPI spec # 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
28 entries across 28 versions & 1 rubygems