Class: ChargeBee::PromotionalGrant

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

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#expires_atObject

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

#metadataObject

Returns the value of attribute metadata.



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

def 
  @metadata
end

#subscription_idObject

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_idObject

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,
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("promotional_grants"), params, env, headers,nil, true, jsonKeys, options)
end