Class: ChargeBee::InAppSubscription

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

#app_idObject

Returns the value of attribute app_id.



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

def app_id
  @app_id
end

#customer_idObject

Returns the value of attribute customer_id.



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

def customer_id
  @customer_id
end

#invoice_idObject

Returns the value of attribute invoice_id.



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

def invoice_id
  @invoice_id
end

#plan_idObject

Returns the value of attribute plan_id.



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

def plan_id
  @plan_id
end

#store_statusObject

Returns the value of attribute store_status.



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

def store_status
  @store_status
end

#subscription_idObject

Returns the value of attribute subscription_id.



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

def subscription_id
  @subscription_id
end

Class Method Details

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



13
14
15
# File 'lib/chargebee/models/in_app_subscription.rb', line 13

def self.import_receipt(id, params, env=nil, headers={})
  Request.send('post', uri_path("in_app_subscriptions",id.to_s,"import_receipt"), params, env, headers)
end

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



17
18
19
# File 'lib/chargebee/models/in_app_subscription.rb', line 17

def self.import_subscription(id, params, env=nil, headers={})
  Request.send('post', uri_path("in_app_subscriptions",id.to_s,"import_subscription"), params, env, headers)
end

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

OPERATIONS




9
10
11
# File 'lib/chargebee/models/in_app_subscription.rb', line 9

def self.process_receipt(id, params, env=nil, headers={})
  Request.send('post', uri_path("in_app_subscriptions",id.to_s,"process_purchase_command"), params, env, headers)
end

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



21
22
23
# File 'lib/chargebee/models/in_app_subscription.rb', line 21

def self.retrieve_store_subs(id, params, env=nil, headers={})
  Request.send('post', uri_path("in_app_subscriptions",id.to_s,"retrieve"), params, env, headers)
end