Sha256: e08773c882d3897801c44a4d129bcc682f560e10d3ea4259817dd3d86503434c

Contents?: true

Size: 519 Bytes

Versions: 16

Compression:

Stored size: 519 Bytes

Contents

module Stripe
  class FileUpload < APIResource
    extend Stripe::APIOperations::Create
    extend Stripe::APIOperations::List

    def self.url
      "/v1/files"
    end

    def self.request(method, url, params={}, opts={})
      opts = {
        :api_base => Stripe::uploads_base
      }.merge(Util.normalize_opts(opts))
      super
    end

    def self.create(params={}, opts={})
      opts = {
        :content_type => 'multipart/form-data',
      }.merge(Util.normalize_opts(opts))
      super
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
stripe-1.36.1 lib/stripe/file_upload.rb
stripe-1.36.0 lib/stripe/file_upload.rb
stripe-1.35.1 lib/stripe/file_upload.rb
stripe-1.35.0 lib/stripe/file_upload.rb
stripe-1.34.0 lib/stripe/file_upload.rb
stripe-1.33.1 lib/stripe/file_upload.rb
stripe-1.33.0 lib/stripe/file_upload.rb
stripe-1.32.1 lib/stripe/file_upload.rb
stripe-1.32.0 lib/stripe/file_upload.rb
stripe-1.31.0 lib/stripe/file_upload.rb
stripe-1.30.3 lib/stripe/file_upload.rb
stripe-1.30.2 lib/stripe/file_upload.rb
stripe-1.30.1 lib/stripe/file_upload.rb
stripe-1.30.0 lib/stripe/file_upload.rb
stripe-1.29.1 lib/stripe/file_upload.rb
stripe-1.29.0 lib/stripe/file_upload.rb