Class: ChargeBee::Ramp

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

Defined Under Namespace

Classes: ContractTerm, CouponsToAdd, DiscountsToAdd, ItemTier, ItemsToAdd, ItemsToUpdate, StatusTransitionReason

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

#contract_termObject

Returns the value of attribute contract_term.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def contract_term
  @contract_term
end

#coupons_to_addObject

Returns the value of attribute coupons_to_add.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def coupons_to_add
  @coupons_to_add
end

#coupons_to_removeObject

Returns the value of attribute coupons_to_remove.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def coupons_to_remove
  @coupons_to_remove
end

#created_atObject

Returns the value of attribute created_at.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def created_at
  @created_at
end

#deletedObject

Returns the value of attribute deleted.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def deleted
  @deleted
end

#descriptionObject

Returns the value of attribute description.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def description
  @description
end

#discounts_to_addObject

Returns the value of attribute discounts_to_add.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def discounts_to_add
  @discounts_to_add
end

#discounts_to_removeObject

Returns the value of attribute discounts_to_remove.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def discounts_to_remove
  @discounts_to_remove
end

#effective_fromObject

Returns the value of attribute effective_from.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def effective_from
  @effective_from
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def id
  @id
end

#item_tiersObject

Returns the value of attribute item_tiers.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def item_tiers
  @item_tiers
end

#items_to_addObject

Returns the value of attribute items_to_add.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def items_to_add
  @items_to_add
end

#items_to_removeObject

Returns the value of attribute items_to_remove.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def items_to_remove
  @items_to_remove
end

#items_to_updateObject

Returns the value of attribute items_to_update.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def items_to_update
  @items_to_update
end

#resource_versionObject

Returns the value of attribute resource_version.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def resource_version
  @resource_version
end

#statusObject

Returns the value of attribute status.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def status
  @status
end

#status_transition_reasonObject

Returns the value of attribute status_transition_reason.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def status_transition_reason
  @status_transition_reason
end

#subscription_idObject

Returns the value of attribute subscription_id.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def subscription_id
  @subscription_id
end

#updated_atObject

Returns the value of attribute updated_at.



32
33
34
# File 'lib/chargebee/models/ramp.rb', line 32

def updated_at
  @updated_at
end

Class Method Details

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

OPERATIONS




39
40
41
42
43
44
45
46
# File 'lib/chargebee/models/ramp.rb', line 39

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

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



64
65
66
67
68
69
70
71
# File 'lib/chargebee/models/ramp.rb', line 64

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

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



73
74
75
76
77
78
# File 'lib/chargebee/models/ramp.rb', line 73

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

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



57
58
59
60
61
62
# File 'lib/chargebee/models/ramp.rb', line 57

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

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



48
49
50
51
52
53
54
55
# File 'lib/chargebee/models/ramp.rb', line 48

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