Class: ChargeBee::NonSubscription

Inherits:
Model
  • Object
show all
Defined in:
lib/chargebee/models/non_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/non_subscription.rb', line 4

def app_id
  @app_id
end

#charge_idObject

Returns the value of attribute charge_id.



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

def charge_id
  @charge_id
end

#customer_idObject

Returns the value of attribute customer_id.



4
5
6
# File 'lib/chargebee/models/non_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/non_subscription.rb', line 4

def invoice_id
  @invoice_id
end

Class Method Details

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

OPERATIONS




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

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