Module: FacturapiRuby::V2::Customers
- Defined in:
- lib/facturapi_ruby/v2/customers.rb
Class Method Summary collapse
Class Method Details
.create(options) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/facturapi_ruby/v2/customers.rb', line 9 def create() HttpClient.post( endpoint: '/v2/customers', api_options: ) end |
.update(customer_id, options) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/facturapi_ruby/v2/customers.rb', line 16 def update(customer_id, ) HttpClient.put( endpoint: "/v2/customers/#{customer_id}", api_options: ) end |
.validate(customer_id) ⇒ Object
23 24 25 26 27 |
# File 'lib/facturapi_ruby/v2/customers.rb', line 23 def validate(customer_id) HttpClient.get( endpoint: '/v2/customers/{customer_id}/tax-info-validation' ) end |