Sha256: 67f4f1562fb028c60ca607754d8952ed71f345908ea2cb5cffbe5e6689aa1737

Contents?: true

Size: 509 Bytes

Versions: 8

Compression:

Stored size: 509 Bytes

Contents

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

module Razorpay
  # Customer API allows you to create and fetch customers on Razorpay
  class Customer < Entity
    def self.request
      Razorpay::Request.new('customers')
    end

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

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

    def self.edit(id, options = {})
      request.put id, options
    end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
razorpay-2.4.1 lib/razorpay/customer.rb
razorpay-2.4.0 lib/razorpay/customer.rb
razorpay-2.3.0 lib/razorpay/customer.rb
razorpay-2.2.0 lib/razorpay/customer.rb
razorpay-2.1.0 lib/razorpay/customer.rb
razorpay-2.1.0.pre lib/razorpay/customer.rb
razorpay-2.0.1 lib/razorpay/customer.rb
razorpay-2.0.0 lib/razorpay/customer.rb