Class: ChargeBee::RecordedPurchase

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

Defined Under Namespace

Classes: ErrorDetail, 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, #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.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def app_id
  @app_id
end

#created_atObject

Returns the value of attribute created_at.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def created_at
  @created_at
end

#customer_idObject

Returns the value of attribute customer_id.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def customer_id
  @customer_id
end

#error_detailObject

Returns the value of attribute error_detail.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def error_detail
  @error_detail
end

#idObject

Returns the value of attribute id.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def id
  @id
end

#linked_omnichannel_subscriptionsObject

Returns the value of attribute linked_omnichannel_subscriptions.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def linked_omnichannel_subscriptions
  @linked_omnichannel_subscriptions
end

#omnichannel_transaction_idObject

Returns the value of attribute omnichannel_transaction_id.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def omnichannel_transaction_id
  @omnichannel_transaction_id
end

#resource_versionObject

Returns the value of attribute resource_version.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def resource_version
  @resource_version
end

#sourceObject

Returns the value of attribute source.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def source
  @source
end

#statusObject

Returns the value of attribute status.



12
13
14
# File 'lib/chargebee/models/recorded_purchase.rb', line 12

def status
  @status
end

Class Method Details

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

OPERATIONS




18
19
20
# File 'lib/chargebee/models/recorded_purchase.rb', line 18

def self.create(params, env=nil, headers={})
  Request.send('post', uri_path("recorded_purchases"), params, env, headers)
end

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



22
23
24
# File 'lib/chargebee/models/recorded_purchase.rb', line 22

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