Sha256: 985bf1492f3ac3cfee5c0ecb873b4b047a8c8684037d46799da021c4cbaeb745

Contents?: true

Size: 437 Bytes

Versions: 5

Compression:

Stored size: 437 Bytes

Contents

require 'razorpay/request'
require 'razorpay/entity'

module Razorpay
  # Invoice API allows you to create and
  # manage invoices with Razorpay
  class Invoice < Entity
    def self.request
      Razorpay::Request.new('invoices')
    end

    def self.create(options)
      request.create options
    end

    def self.fetch(id)
      request.fetch id
    end

    def self.all(options = {})
      request.all options
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
razorpay-2.1.0 lib/razorpay/invoice.rb
razorpay-2.1.0.pre lib/razorpay/invoice.rb
razorpay-2.0.1 lib/razorpay/invoice.rb
razorpay-2.0.0 lib/razorpay/invoice.rb
razorpay-1.2.1 lib/razorpay/invoice.rb