Class: ChargeBee::Ramp
Defined Under Namespace
Classes: ContractTerm, CouponsToAdd, DiscountsToAdd, ItemTier, ItemsToAdd, ItemsToUpdate, StatusTransitionReason
Instance Attribute Summary collapse
-
#contract_term ⇒ Object
Returns the value of attribute contract_term.
-
#coupons_to_add ⇒ Object
Returns the value of attribute coupons_to_add.
-
#coupons_to_remove ⇒ Object
Returns the value of attribute coupons_to_remove.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#deleted ⇒ Object
Returns the value of attribute deleted.
-
#description ⇒ Object
Returns the value of attribute description.
-
#discounts_to_add ⇒ Object
Returns the value of attribute discounts_to_add.
-
#discounts_to_remove ⇒ Object
Returns the value of attribute discounts_to_remove.
-
#effective_from ⇒ Object
Returns the value of attribute effective_from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#item_tiers ⇒ Object
Returns the value of attribute item_tiers.
-
#items_to_add ⇒ Object
Returns the value of attribute items_to_add.
-
#items_to_remove ⇒ Object
Returns the value of attribute items_to_remove.
-
#items_to_update ⇒ Object
Returns the value of attribute items_to_update.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_transition_reason ⇒ Object
Returns the value of attribute status_transition_reason.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.create_for_subscription(id, params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .delete(id, env = nil, headers = {}) ⇒ Object
- .list(params, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update(id, params, env = nil, headers = {}) ⇒ Object
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_term ⇒ Object
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_add ⇒ Object
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_remove ⇒ Object
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_at ⇒ Object
Returns the value of attribute created_at.
32 33 34 |
# File 'lib/chargebee/models/ramp.rb', line 32 def created_at @created_at end |
#deleted ⇒ Object
Returns the value of attribute deleted.
32 33 34 |
# File 'lib/chargebee/models/ramp.rb', line 32 def deleted @deleted end |
#description ⇒ Object
Returns the value of attribute description.
32 33 34 |
# File 'lib/chargebee/models/ramp.rb', line 32 def description @description end |
#discounts_to_add ⇒ Object
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_remove ⇒ Object
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_from ⇒ Object
Returns the value of attribute effective_from.
32 33 34 |
# File 'lib/chargebee/models/ramp.rb', line 32 def effective_from @effective_from end |
#id ⇒ Object
Returns the value of attribute id.
32 33 34 |
# File 'lib/chargebee/models/ramp.rb', line 32 def id @id end |
#item_tiers ⇒ Object
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_add ⇒ Object
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_remove ⇒ Object
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_update ⇒ Object
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_version ⇒ Object
Returns the value of attribute resource_version.
32 33 34 |
# File 'lib/chargebee/models/ramp.rb', line 32 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
32 33 34 |
# File 'lib/chargebee/models/ramp.rb', line 32 def status @status end |
#status_transition_reason ⇒ Object
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_id ⇒ Object
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_at ⇒ Object
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 = { } = { :isIdempotent => true } Request.send('post', uri_path("subscriptions",id.to_s,"create_ramp"), params, env, headers,nil, false, jsonKeys, ) 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 = { } = { :isIdempotent => true } Request.send('post', uri_path("ramps",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, ) 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 = { } = {} Request.send_list_request('get', uri_path("ramps"), params, env, headers,nil, false, jsonKeys, ) 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 = { } = {} Request.send('get', uri_path("ramps",id.to_s), {}, env, headers,nil, false, jsonKeys, ) 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 = { } = { :isIdempotent => true } Request.send('post', uri_path("ramps",id.to_s,"update"), params, env, headers,nil, false, jsonKeys, ) end |