Class: ChargeBee::GrantBlock

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

Defined Under Namespace

Classes: OverdraftBlockBalance, ProvisionedBlockBalance

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_type ⇒ Object

Returns the value of attribute account_type.



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

def 
  @account_type
end

#balance ⇒ Object

Returns the value of attribute balance.



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

def balance
  @balance
end

#created_at ⇒ Object

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#effective_from ⇒ Object

Returns the value of attribute effective_from.



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

def effective_from
  @effective_from
end

#expired_amount ⇒ Object

Returns the value of attribute expired_amount.



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

def expired_amount
  @expired_amount
end

#expires_at ⇒ Object

Returns the value of attribute expires_at.



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

def expires_at
  @expires_at
end

#grant_source ⇒ Object

Returns the value of attribute grant_source.



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

def grant_source
  @grant_source
end

#granted_amount ⇒ Object

Returns the value of attribute granted_amount.



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

def granted_amount
  @granted_amount
end

#hold_amount ⇒ Object

Returns the value of attribute hold_amount.



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

def hold_amount
  @hold_amount
end

#id ⇒ Object

Returns the value of attribute id.



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

def id
  @id
end

#metadata ⇒ Object

Returns the value of attribute metadata.



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

def 
  @metadata
end

#modified_at ⇒ Object

Returns the value of attribute modified_at.



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

def modified_at
  @modified_at
end

#origin_grant_block_id ⇒ Object

Returns the value of attribute origin_grant_block_id.



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

def origin_grant_block_id
  @origin_grant_block_id
end

#overdraft_block_balance ⇒ Object

Returns the value of attribute overdraft_block_balance.



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

def overdraft_block_balance
  @overdraft_block_balance
end

#provisioned_block_balance ⇒ Object

Returns the value of attribute provisioned_block_balance.



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

def provisioned_block_balance
  @provisioned_block_balance
end

#resource_version ⇒ Object

Returns the value of attribute resource_version.



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

def resource_version
  @resource_version
end

#rolled_over_amount ⇒ Object

Returns the value of attribute rolled_over_amount.



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

def rolled_over_amount
  @rolled_over_amount
end

#status ⇒ Object

Returns the value of attribute status.



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

def status
  @status
end

#subscription_id ⇒ Object

Returns the value of attribute subscription_id.



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

def subscription_id
  @subscription_id
end

#unit_id ⇒ Object

Returns the value of attribute unit_id.



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

def unit_id
  @unit_id
end

#unit_type ⇒ Object

Returns the value of attribute unit_type.



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

def unit_type
  @unit_type
end

#used_amount ⇒ Object

Returns the value of attribute used_amount.



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

def used_amount
  @used_amount
end

#voided_amount ⇒ Object

Returns the value of attribute voided_amount.



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

def voided_amount
  @voided_amount
end

Class Method Details

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

OPERATIONS



20
21
22
23
24
25
# File 'lib/chargebee/models/grant_block.rb', line 20

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, "grantBlock", "listGrantBlocks")
end