Class: Nova::API::Resource::DirectReceivable

Inherits:
DirectBill show all
Defined in:
lib/nova/api/resource/direct_receivable.rb

Defined Under Namespace

Classes: Installment

Constant Summary collapse

ALLOWED_ATTRIBUTES =
Nova::API::Resource::DirectBill::ALLOWED_ATTRIBUTES.dup << :gross_value

Constants inherited from Base

Base::PRODUCTION_HOST, Base::SCHEME, Base::STAGING_HOST

Constants inherited from Utils::BaseStruct

Utils::BaseStruct::DATE_REGEX

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

base_url, #endpoint

Methods inherited from Utils::BaseStruct

#allowed_attributes

Class Method Details

.create(parameters) ⇒ Object



21
22
23
24
25
# File 'lib/nova/api/resource/direct_receivable.rb', line 21

def self.create(parameters)
  model = new parameters

  model.create
end

.endpointObject



17
18
19
# File 'lib/nova/api/resource/direct_receivable.rb', line 17

def self.endpoint
  '/api/receivables/save_direct'
end

Instance Method Details

#createObject



27
28
29
# File 'lib/nova/api/resource/direct_receivable.rb', line 27

def create
  do_post(self.class.endpoint, allowed_attributes)
end