Sha256: 7ba9134d0440d05d51b3b6d51cfaaf746415ac0ca51dc930686ebcd7f0caa15e

Contents?: true

Size: 741 Bytes

Versions: 3

Compression:

Stored size: 741 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(attributes)
      Configuration.gateway.document_upload.create(attributes)
    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

3 entries across 3 versions & 1 rubygems

Version Path
braintree-2.83.0 lib/braintree/document_upload.rb
braintree-2.82.0 lib/braintree/document_upload.rb
braintree-2.81.0 lib/braintree/document_upload.rb