Class: ChargeBee::Ramp

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

Defined Under Namespace

Classes: BillingConfiguration, 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

#billing_configuration ⇒ Object

Returns the value of attribute billing_configuration.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def billing_configuration
  @billing_configuration
end

#contract_term ⇒ Object

Returns the value of attribute contract_term.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def contract_term
  @contract_term
end

#coupons_to_add ⇒ Object

Returns the value of attribute coupons_to_add.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def coupons_to_add
  @coupons_to_add
end

#coupons_to_remove ⇒ Object

Returns the value of attribute coupons_to_remove.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def coupons_to_remove
  @coupons_to_remove
end

#created_at ⇒ Object

Returns the value of attribute created_at.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def created_at
  @created_at
end

#deleted ⇒ Object

Returns the value of attribute deleted.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def deleted
  @deleted
end

#description ⇒ Object

Returns the value of attribute description.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def description
  @description
end

#discounts_to_add ⇒ Object

Returns the value of attribute discounts_to_add.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def discounts_to_add
  @discounts_to_add
end

#discounts_to_remove ⇒ Object

Returns the value of attribute discounts_to_remove.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def discounts_to_remove
  @discounts_to_remove
end

#effective_from ⇒ Object

Returns the value of attribute effective_from.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def effective_from
  @effective_from
end

#id ⇒ Object

Returns the value of attribute id.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def id
  @id
end

#item_tiers ⇒ Object

Returns the value of attribute item_tiers.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def item_tiers
  @item_tiers
end

#items_to_add ⇒ Object

Returns the value of attribute items_to_add.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def items_to_add
  @items_to_add
end

#items_to_remove ⇒ Object

Returns the value of attribute items_to_remove.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def items_to_remove
  @items_to_remove
end

#items_to_update ⇒ Object

Returns the value of attribute items_to_update.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def items_to_update
  @items_to_update
end

#resource_version ⇒ Object

Returns the value of attribute resource_version.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def resource_version
  @resource_version
end

#status ⇒ Object

Returns the value of attribute status.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def status
  @status
end

#status_transition_reason ⇒ Object

Returns the value of attribute status_transition_reason.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def status_transition_reason
  @status_transition_reason
end

#subscription_id ⇒ Object

Returns the value of attribute subscription_id.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def subscription_id
  @subscription_id
end

#updated_at ⇒ Object

Returns the value of attribute updated_at.



36
37
38
# File 'lib/chargebee/models/ramp.rb', line 36

def updated_at
  @updated_at
end

Class Method Details

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

OPERATIONS



44
45
46
47
48
49
50
51
# File 'lib/chargebee/models/ramp.rb', line 44

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, "ramp", "createForSubscription")
end

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



69
70
71
72
73
74
75
76
# File 'lib/chargebee/models/ramp.rb', line 69

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, "ramp", "delete")
end

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



78
79
80
81
82
83
# File 'lib/chargebee/models/ramp.rb', line 78

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

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



62
63
64
65
66
67
# File 'lib/chargebee/models/ramp.rb', line 62

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

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



53
54
55
56
57
58
59
60
# File 'lib/chargebee/models/ramp.rb', line 53

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, "ramp", "update")
end