Sha256: 233b23dbded3266a5060edf2f085adb0549edf18f9c29bb6a1b4b134fa36ab21

Contents?: true

Size: 827 Bytes

Versions: 26

Compression:

Stored size: 827 Bytes

Contents

module Braintree
  class DocumentUpload
    include BaseModule
    include Braintree::Util::IdEquality

    module Kind
      IdentityDocument          = "identity_document"
      EvidenceDocument          = "evidence_document"
      PayoutInvoiceDocument     = "payout_invoice_document"
    end

    attr_reader :content_type
    attr_reader :id
    attr_reader :kind
    attr_reader :name
    attr_reader :size

    def self.create(*args)
      Configuration.gateway.document_upload.create(*args)
    end

    def self.create!(*args)
      Configuration.gateway.document_upload.create!(*args)
    end

    def initialize(attributes) # :nodoc:
      set_instance_variables_from_hash(attributes)
    end

    class << self
      protected :new
      def _new(*args) # :nodoc:
        self.new *args
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
braintree-3.3.0 lib/braintree/document_upload.rb
braintree-3.2.0 lib/braintree/document_upload.rb
braintree-3.1.0 lib/braintree/document_upload.rb
braintree-3.0.1 lib/braintree/document_upload.rb
braintree-2.104.1 lib/braintree/document_upload.rb
braintree-2.104.0 lib/braintree/document_upload.rb
braintree-2.103.0 lib/braintree/document_upload.rb
braintree-2.102.0 lib/braintree/document_upload.rb
braintree-2.101.0 lib/braintree/document_upload.rb
braintree-2.100.0 lib/braintree/document_upload.rb
braintree-2.99.0 lib/braintree/document_upload.rb
braintree-2.98.0 lib/braintree/document_upload.rb
braintree-2.97.0 lib/braintree/document_upload.rb
braintree-2.96.0 lib/braintree/document_upload.rb
braintree-2.95.0 lib/braintree/document_upload.rb
braintree-2.94.0 lib/braintree/document_upload.rb
braintree-2.93.0 lib/braintree/document_upload.rb
braintree-2.92.0 lib/braintree/document_upload.rb
braintree-2.91.0 lib/braintree/document_upload.rb
braintree-2.90.0 lib/braintree/document_upload.rb