Class: ChargeBee::CollectionsPaymentPromise
- Defined in:
- lib/chargebee/models/collections_payment_promise.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#customer_id ⇒ Object
Returns the value of attribute customer_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_id ⇒ Object
Returns the value of attribute invoice_id.
-
#promised_by ⇒ Object
Returns the value of attribute promised_by.
-
#promised_on ⇒ Object
Returns the value of attribute promised_on.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
- .cancel(id, env = nil, headers = {}) ⇒ Object
- .create_collections_payment_promise(params, env = nil, headers = {}) ⇒ Object
- .list_collections_payment_promises(params = {}, env = nil, headers = {}) ⇒ Object
-
.retrieve(id, env = nil, headers = {}) ⇒ Object
OPERATIONS -----------.
- .update_collections_payment_promise(id, params = {}, env = nil, headers = {}) ⇒ Object
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.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def created_at @created_at end |
#customer_id ⇒ Object
Returns the value of attribute customer_id.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def customer_id @customer_id end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def id @id end |
#invoice_id ⇒ Object
Returns the value of attribute invoice_id.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def invoice_id @invoice_id end |
#promised_by ⇒ Object
Returns the value of attribute promised_by.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def promised_by @promised_by end |
#promised_on ⇒ Object
Returns the value of attribute promised_on.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def promised_on @promised_on end |
#reason ⇒ Object
Returns the value of attribute reason.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def reason @reason end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def resource_version @resource_version end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 4 def updated_at @updated_at end |
Class Method Details
.cancel(id, env = nil, headers = {}) ⇒ Object
40 41 42 43 44 45 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 40 def self.cancel(id, env=nil, headers={}) jsonKeys = { } = {} Request.send('post', uri_path("collections_payment_promises",id.to_s,"cancel"), {}, env, headers,nil, false, jsonKeys, , "collectionsPaymentPromise", "cancel") end |
.create_collections_payment_promise(params, env = nil, headers = {}) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 24 def self.create_collections_payment_promise(params, env=nil, headers={}) jsonKeys = { } = {} Request.send('post', uri_path("collections_payment_promises"), params, env, headers,nil, false, jsonKeys, , "collectionsPaymentPromise", "createCollectionsPaymentPromise") end |
.list_collections_payment_promises(params = {}, env = nil, headers = {}) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 17 def self.list_collections_payment_promises(params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("collections_payment_promises"), params, env, headers,nil, false, jsonKeys, , "collectionsPaymentPromise", "listCollectionsPaymentPromises") end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
OPERATIONS
10 11 12 13 14 15 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 10 def self.retrieve(id, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("collections_payment_promises",id.to_s), {}, env, headers,nil, false, jsonKeys, , "collectionsPaymentPromise", "retrieve") end |
.update_collections_payment_promise(id, params = {}, env = nil, headers = {}) ⇒ Object
31 32 33 34 35 36 37 38 |
# File 'lib/chargebee/models/collections_payment_promise.rb', line 31 def self.update_collections_payment_promise(id, params={}, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("collections_payment_promises",id.to_s), params, env, headers,nil, false, jsonKeys, , "collectionsPaymentPromise", "updateCollectionsPaymentPromise") end |