Class: ChargeBee::PromotionalGrant
- Defined in:
- lib/chargebee/models/promotional_grant.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
-
#unit_id ⇒ Object
Returns the value of attribute unit_id.
Class Method Summary collapse
-
.promotional_grants(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
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/promotional_grant.rb', line 4 def amount @amount end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
4 5 6 |
# File 'lib/chargebee/models/promotional_grant.rb', line 4 def expires_at @expires_at end |
#metadata ⇒ Object
Returns the value of attribute metadata.
4 5 6 |
# File 'lib/chargebee/models/promotional_grant.rb', line 4 def @metadata end |
#subscription_id ⇒ Object
Returns the value of attribute subscription_id.
4 5 6 |
# File 'lib/chargebee/models/promotional_grant.rb', line 4 def subscription_id @subscription_id end |
#unit_id ⇒ Object
Returns the value of attribute unit_id.
4 5 6 |
# File 'lib/chargebee/models/promotional_grant.rb', line 4 def unit_id @unit_id end |
Class Method Details
.promotional_grants(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
9 10 11 12 13 14 15 16 17 |
# File 'lib/chargebee/models/promotional_grant.rb', line 9 def self.promotional_grants(params, env=nil, headers={}) jsonKeys = { :metadata => 0, } = { :isIdempotent => true } Request.send('post', uri_path("promotional_grants"), params, env, headers,nil, true, jsonKeys, ) end |