Class: ChargeBee::Dispute

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/dispute.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Model

construct, #init_dependant, #init_dependant_list, #initialize, #inspect, #load, #method_missing, #replace_white_space_with_underscore, #respond_to_missing?, #to_s, uri_path

Constructor Details

This class inherits a constructor from ChargeBee::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ChargeBee::Model

Instance Attribute Details

#amount ⇒ Object

Returns the value of attribute amount.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def amount
  @amount
end

#created_at ⇒ Object

Returns the value of attribute created_at.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def created_at
  @created_at
end

#currency_code ⇒ Object

Returns the value of attribute currency_code.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def currency_code
  @currency_code
end

#customer_id ⇒ Object

Returns the value of attribute customer_id.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def customer_id
  @customer_id
end

#gateway_account_id ⇒ Object

Returns the value of attribute gateway_account_id.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def 
  @gateway_account_id
end

#id ⇒ Object

Returns the value of attribute id.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def id
  @id
end

#id_at_gateway ⇒ Object

Returns the value of attribute id_at_gateway.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def id_at_gateway
  @id_at_gateway
end

#is_partial_dispute ⇒ Object

Returns the value of attribute is_partial_dispute.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def is_partial_dispute
  @is_partial_dispute
end

#reason ⇒ Object

Returns the value of attribute reason.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def reason
  @reason
end

#resource_version ⇒ Object

Returns the value of attribute resource_version.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def resource_version
  @resource_version
end

#status ⇒ Object

Returns the value of attribute status.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def status
  @status
end

#transaction_id ⇒ Object

Returns the value of attribute transaction_id.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def transaction_id
  @transaction_id
end

#type ⇒ Object

Returns the value of attribute type.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def type
  @type
end

#updated_at ⇒ Object

Returns the value of attribute updated_at.



4
5
6
# File 'lib/chargebee/models/dispute.rb', line 4

def updated_at
  @updated_at
end

Class Method Details

.list(params = {}, env = nil, headers = {}) ⇒ Object



17
18
19
20
21
22
# File 'lib/chargebee/models/dispute.rb', line 17

def self.list(params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send_list_request('get', uri_path("disputes"), params, env, headers,nil, false, jsonKeys, options, "dispute", "list")
end

.retrieve(id, env = nil, headers = {}) ⇒ Object

OPERATIONS



10
11
12
13
14
15
# File 'lib/chargebee/models/dispute.rb', line 10

def self.retrieve(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("disputes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "dispute", "retrieve")
end