Class: ChargeBee::GrantBlock

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

#account_typeObject

Returns the value of attribute account_type.



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

def 
  @account_type
end

#balanceObject

Returns the value of attribute balance.



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

def balance
  @balance
end

#created_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#effective_fromObject

Returns the value of attribute effective_from.



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

def effective_from
  @effective_from
end

#expired_amountObject

Returns the value of attribute expired_amount.



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

def expired_amount
  @expired_amount
end

#expires_atObject

Returns the value of attribute expires_at.



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

def expires_at
  @expires_at
end

#grant_sourceObject

Returns the value of attribute grant_source.



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

def grant_source
  @grant_source
end

#granted_amountObject

Returns the value of attribute granted_amount.



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

def granted_amount
  @granted_amount
end

#hold_amountObject

Returns the value of attribute hold_amount.



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

def hold_amount
  @hold_amount
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#metadataObject

Returns the value of attribute metadata.



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

def 
  @metadata
end

#origin_grant_block_idObject

Returns the value of attribute origin_grant_block_id.



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

def origin_grant_block_id
  @origin_grant_block_id
end

#rolled_over_amountObject

Returns the value of attribute rolled_over_amount.



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

def rolled_over_amount
  @rolled_over_amount
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#unit_idObject

Returns the value of attribute unit_id.



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

def unit_id
  @unit_id
end

#unit_typeObject

Returns the value of attribute unit_type.



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

def unit_type
  @unit_type
end

#used_amountObject

Returns the value of attribute used_amount.



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

def used_amount
  @used_amount
end

#voided_amountObject

Returns the value of attribute voided_amount.



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

def voided_amount
  @voided_amount
end

Class Method Details

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

OPERATIONS




11
12
13
14
15
16
# File 'lib/chargebee/models/grant_block.rb', line 11

def self.list_grant_blocks(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("grant_blocks"), params, env, headers,nil, false, jsonKeys, options)
end