Class: ChargeBee::PaymentScheduleScheme

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

Defined Under Namespace

Classes: PreferredSchedule

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

#created_at ⇒ Object

Returns the value of attribute created_at.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def created_at
  @created_at
end

#description ⇒ Object

Returns the value of attribute description.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def description
  @description
end

#id ⇒ Object

Returns the value of attribute id.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def id
  @id
end

#name ⇒ Object

Returns the value of attribute name.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def name
  @name
end

#number_of_schedules ⇒ Object

Returns the value of attribute number_of_schedules.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def number_of_schedules
  @number_of_schedules
end

#period ⇒ Object

Returns the value of attribute period.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def period
  @period
end

#period_unit ⇒ Object

Returns the value of attribute period_unit.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def period_unit
  @period_unit
end

#preferred_schedules ⇒ Object

Returns the value of attribute preferred_schedules.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def preferred_schedules
  @preferred_schedules
end

#resource_version ⇒ Object

Returns the value of attribute resource_version.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def resource_version
  @resource_version
end

#updated_at ⇒ Object

Returns the value of attribute updated_at.



8
9
10
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 8

def updated_at
  @updated_at
end

Class Method Details

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

OPERATIONS



14
15
16
17
18
19
20
21
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 14

def self.create(params, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_schedule_schemes"), params, env, headers,nil, false, jsonKeys, options, "paymentScheduleScheme", "create")
end

.delete(id, env = nil, headers = {}) ⇒ Object



37
38
39
40
41
42
43
44
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 37

def self.delete(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {
      :isIdempotent => true
    }
  Request.send('post', uri_path("payment_schedule_schemes",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "paymentScheduleScheme", "delete")
end

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



30
31
32
33
34
35
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 30

def self.list(params={}, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send_list_request('get', uri_path("payment_schedule_schemes"), params, env, headers,nil, false, jsonKeys, options, "paymentScheduleScheme", "list")
end

.retrieve(id, env = nil, headers = {}) ⇒ Object



23
24
25
26
27
28
# File 'lib/chargebee/models/payment_schedule_scheme.rb', line 23

def self.retrieve(id, env=nil, headers={})
  jsonKeys = { 
  }
  options = {}
  Request.send('get', uri_path("payment_schedule_schemes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "paymentScheduleScheme", "retrieve")
end