Sha256: ccb39b566009bdf53cf014c1d11c6a4d431207a6814d9b5447811ad3a5197f79

Contents?: true

Size: 707 Bytes

Versions: 139

Compression:

Stored size: 707 Bytes

Contents

module ChargeBee
  class Comment < Model

  attr_accessor :id, :entity_type, :added_by, :notes, :created_at, :type, :entity_id

  # OPERATIONS
  #-----------

  def self.create(params, env=nil, headers={})
    Request.send('post', uri_path("comments"), params, env, headers)
  end

  def self.retrieve(id, env=nil, headers={})
    Request.send('get', uri_path("comments",id.to_s), {}, env, headers)
  end

  def self.list(params={}, env=nil, headers={})
    Request.send_list_request('get', uri_path("comments"), params, env, headers)
  end

  def self.delete(id, env=nil, headers={})
    Request.send('post', uri_path("comments",id.to_s,"delete"), {}, env, headers)
  end

  end # ~Comment
end # ~ChargeBee

Version data entries

139 entries across 139 versions & 1 rubygems

Version Path
chargebee-2.49.0 lib/chargebee/models/comment.rb
chargebee-2.48.0 lib/chargebee/models/comment.rb
chargebee-2.47.1 lib/chargebee/models/comment.rb
chargebee-2.47.0 lib/chargebee/models/comment.rb
chargebee-2.47.0.beta.1 lib/chargebee/models/comment.rb
chargebee-2.46.0 lib/chargebee/models/comment.rb
chargebee-2.45.0 lib/chargebee/models/comment.rb
chargebee-2.44.1 lib/chargebee/models/comment.rb
chargebee-2.44.0 lib/chargebee/models/comment.rb
chargebee-2.43.0 lib/chargebee/models/comment.rb
chargebee-2.42.0 lib/chargebee/models/comment.rb
chargebee-2.41.0 lib/chargebee/models/comment.rb
chargebee-2.40.0 lib/chargebee/models/comment.rb
chargebee-2.38.1 lib/chargebee/models/comment.rb
chargebee-2.38.0 lib/chargebee/models/comment.rb
chargebee-2.37.1 lib/chargebee/models/comment.rb
chargebee-2.37.0 lib/chargebee/models/comment.rb
chargebee-2.36.2 lib/chargebee/models/comment.rb
chargebee-2.36.1 lib/chargebee/models/comment.rb
chargebee-2.36.0 lib/chargebee/models/comment.rb