Class: Nova::API::Resource::DirectReceivable
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
Utils::BaseStruct::DATE_REGEX
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
base_url, #endpoint
#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
|
.endpoint ⇒ Object
17
18
19
|
# File 'lib/nova/api/resource/direct_receivable.rb', line 17
def self.endpoint
'/api/receivables/save_direct'
end
|
Instance Method Details
#create ⇒ Object
27
28
29
|
# File 'lib/nova/api/resource/direct_receivable.rb', line 27
def create
do_post(self.class.endpoint, allowed_attributes)
end
|