Class: Varejonline::API::Installments
- Defined in:
- lib/varejonline/api/installments.rb
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
Methods inherited from Client
#card_negotiations, #category_levels, #client_classes, #companies, #credit_limits, #default_entries, #entities, #initialize, #installments, #orders, #payables, #payment_conditions, #payments, #product_categories, #products, #provisions, #receivables, #sales_history, #sellers, #third_parties, #units, #user_data
Methods included from ClassMethods
Constructor Details
This class inherits a constructor from Varejonline::Client
Instance Method Details
#configure(id, data) ⇒ Object
8 9 10 |
# File 'lib/varejonline/api/installments.rb', line 8 def configure(id, data) return parse_response(self.class.put("/#{id}", body: build_body(data), headers: header)) end |
#information ⇒ Object
12 13 14 |
# File 'lib/varejonline/api/installments.rb', line 12 def information return parse_response(self.class.get('/', body: build_body, headers: header)) end |