Class: ChargeBee::Gift
Defined Under Namespace
Classes: GiftReceiver, GiftTimeline, Gifter
Instance Attribute Summary collapse
-
#auto_claim ⇒ Object
Returns the value of attribute auto_claim.
-
#claim_expiry_date ⇒ Object
Returns the value of attribute claim_expiry_date.
-
#gift_receiver ⇒ Object
Returns the value of attribute gift_receiver.
-
#gift_timelines ⇒ Object
Returns the value of attribute gift_timelines.
-
#gifter ⇒ Object
Returns the value of attribute gifter.
-
#id ⇒ Object
Returns the value of attribute id.
-
#no_expiry ⇒ Object
Returns the value of attribute no_expiry.
-
#resource_version ⇒ Object
Returns the value of attribute resource_version.
-
#scheduled_at ⇒ Object
Returns the value of attribute scheduled_at.
-
#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
- .claim(id, env = nil, headers = {}) ⇒ Object
-
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS ———–.
- .create_for_items(params, env = nil, headers = {}) ⇒ Object
- .list(params = {}, env = nil, headers = {}) ⇒ Object
- .retrieve(id, env = nil, headers = {}) ⇒ Object
- .update_gift(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
#auto_claim ⇒ Object
Returns the value of attribute auto_claim.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def auto_claim @auto_claim end |
#claim_expiry_date ⇒ Object
Returns the value of attribute claim_expiry_date.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def claim_expiry_date @claim_expiry_date end |
#gift_receiver ⇒ Object
Returns the value of attribute gift_receiver.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def gift_receiver @gift_receiver end |
#gift_timelines ⇒ Object
Returns the value of attribute gift_timelines.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def gift_timelines @gift_timelines end |
#gifter ⇒ Object
Returns the value of attribute gifter.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def gifter @gifter end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def id @id end |
#no_expiry ⇒ Object
Returns the value of attribute no_expiry.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def no_expiry @no_expiry end |
#resource_version ⇒ Object
Returns the value of attribute resource_version.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def resource_version @resource_version end |
#scheduled_at ⇒ Object
Returns the value of attribute scheduled_at.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def scheduled_at @scheduled_at end |
#status ⇒ Object
Returns the value of attribute status.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
16 17 18 |
# File 'lib/chargebee/models/gift.rb', line 16 def updated_at @updated_at end |
Class Method Details
.cancel(id, env = nil, headers = {}) ⇒ Object
65 66 67 68 69 70 71 72 |
# File 'lib/chargebee/models/gift.rb', line 65 def self.cancel(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("gifts",id.to_s,"cancel"), {}, env, headers,nil, false, jsonKeys, ) end |
.claim(id, env = nil, headers = {}) ⇒ Object
56 57 58 59 60 61 62 63 |
# File 'lib/chargebee/models/gift.rb', line 56 def self.claim(id, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("gifts",id.to_s,"claim"), {}, env, headers,nil, false, jsonKeys, ) end |
.create(params, env = nil, headers = {}) ⇒ Object
OPERATIONS
22 23 24 25 26 27 28 29 30 |
# File 'lib/chargebee/models/gift.rb', line 22 def self.create(params, env=nil, headers={}) jsonKeys = { :additional_information => 1, } = { :isIdempotent => true } Request.send('post', uri_path("gifts"), params, env, headers,nil, false, jsonKeys, ) end |
.create_for_items(params, env = nil, headers = {}) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/chargebee/models/gift.rb', line 32 def self.create_for_items(params, env=nil, headers={}) jsonKeys = { :additional_information => 1, } = { :isIdempotent => true } Request.send('post', uri_path("gifts","create_for_items"), params, env, headers,nil, false, jsonKeys, ) end |
.list(params = {}, env = nil, headers = {}) ⇒ Object
49 50 51 52 53 54 |
# File 'lib/chargebee/models/gift.rb', line 49 def self.list(params={}, env=nil, headers={}) jsonKeys = { } = {} Request.send_list_request('get', uri_path("gifts"), params, env, headers,nil, false, jsonKeys, ) end |
.retrieve(id, env = nil, headers = {}) ⇒ Object
42 43 44 45 46 47 |
# File 'lib/chargebee/models/gift.rb', line 42 def self.retrieve(id, env=nil, headers={}) jsonKeys = { } = {} Request.send('get', uri_path("gifts",id.to_s), {}, env, headers,nil, false, jsonKeys, ) end |
.update_gift(id, params, env = nil, headers = {}) ⇒ Object
74 75 76 77 78 79 80 81 |
# File 'lib/chargebee/models/gift.rb', line 74 def self.update_gift(id, params, env=nil, headers={}) jsonKeys = { } = { :isIdempotent => true } Request.send('post', uri_path("gifts",id.to_s,"update_gift"), params, env, headers,nil, false, jsonKeys, ) end |