Class: ChargeBee::Currency

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/currency.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

#currency_codeObject

Returns the value of attribute currency_code.



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

def currency_code
  @currency_code
end

#enabledObject

Returns the value of attribute enabled.



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

def enabled
  @enabled
end

#forex_typeObject

Returns the value of attribute forex_type.



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

def forex_type
  @forex_type
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#is_base_currencyObject

Returns the value of attribute is_base_currency.



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

def is_base_currency
  @is_base_currency
end

#manual_exchange_rateObject

Returns the value of attribute manual_exchange_rate.



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

def manual_exchange_rate
  @manual_exchange_rate
end

Class Method Details

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



41
42
43
44
45
46
47
48
# File 'lib/chargebee/models/currency.rb', line 41

def self.add_schedule(id, params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("currencies",id.to_s,"add_schedule"), params, env, headers,nil, false, jsonKeys, options)
end

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



23
24
25
26
27
28
29
30
# File 'lib/chargebee/models/currency.rb', line 23

def self.create(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("currencies"), params, env, headers,nil, false, jsonKeys, options)
end

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

OPERATIONS




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

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

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



50
51
52
53
54
55
56
57
# File 'lib/chargebee/models/currency.rb', line 50

def self.remove_schedule(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("currencies",id.to_s,"remove_schedule"), {}, env, headers,nil, false, jsonKeys, options)
end

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



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

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

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



32
33
34
35
36
37
38
39
# File 'lib/chargebee/models/currency.rb', line 32

def self.update(id, params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("currencies",id.to_s), params, env, headers,nil, false, jsonKeys, options)
end