Class: ChargeBee::RecordedPurchase

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

Defined Under Namespace

Classes: ErrorDetail, LinkedOmnichannelOneTimeOrder, LinkedOmnichannelSubscription

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

#app_idObject

Returns the value of attribute app_id.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def app_id
  @app_id
end

#created_atObject

Returns the value of attribute created_at.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def created_at
  @created_at
end

#customer_idObject

Returns the value of attribute customer_id.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def customer_id
  @customer_id
end

#error_detailObject

Returns the value of attribute error_detail.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def error_detail
  @error_detail
end

#idObject

Returns the value of attribute id.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def id
  @id
end

#linked_omnichannel_one_time_ordersObject

Returns the value of attribute linked_omnichannel_one_time_orders.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def linked_omnichannel_one_time_orders
  @linked_omnichannel_one_time_orders
end

#linked_omnichannel_subscriptionsObject

Returns the value of attribute linked_omnichannel_subscriptions.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def linked_omnichannel_subscriptions
  @linked_omnichannel_subscriptions
end

#omnichannel_transaction_idObject

Returns the value of attribute omnichannel_transaction_id.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def omnichannel_transaction_id
  @omnichannel_transaction_id
end

#resource_versionObject

Returns the value of attribute resource_version.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def resource_version
  @resource_version
end

#sourceObject

Returns the value of attribute source.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def source
  @source
end

#statusObject

Returns the value of attribute status.



16
17
18
# File 'lib/chargebee/models/recorded_purchase.rb', line 16

def status
  @status
end

Class Method Details

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

OPERATIONS




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

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

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



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

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