conexa 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +68 -26
- data/Gemfile +0 -2
- data/Gemfile.lock +9 -41
- data/README.md +297 -533
- data/README_pt-BR.md +7 -7
- data/REFERENCE.md +1152 -0
- data/docs/postman-collection.json +30785 -0
- data/lib/conexa/authenticator.rb +2 -0
- data/lib/conexa/model.rb +53 -2
- data/lib/conexa/object.rb +17 -0
- data/lib/conexa/resources/address.rb +16 -0
- data/lib/conexa/resources/auth.rb +38 -0
- data/lib/conexa/resources/charge.rb +82 -7
- data/lib/conexa/resources/contract.rb +58 -3
- data/lib/conexa/resources/credit_card.rb +2 -0
- data/lib/conexa/resources/customer.rb +93 -1
- data/lib/conexa/resources/invoicing_method.rb +2 -0
- data/lib/conexa/resources/person.rb +0 -14
- data/lib/conexa/resources/recurring_sale.rb +2 -0
- data/lib/conexa/resources/sale.rb +75 -1
- data/lib/conexa/version.rb +1 -1
- data/lib/conexa.rb +1 -0
- data/scripts/extract_fixtures.rb +35 -0
- metadata +8 -8
- data/.tool-versions +0 -1
- data/lib/conexa/resources/addres.rb +0 -4
data/README_pt-BR.md
CHANGED
|
@@ -148,8 +148,8 @@ Conexa::Customer.all(name: "João", page: 1, size: 10)
|
|
|
148
148
|
Conexa::Customer.all("id[]": [102, 103])
|
|
149
149
|
|
|
150
150
|
# Filtrar por empresa
|
|
151
|
-
Conexa::Customer.all("
|
|
152
|
-
Conexa::Contract.all("
|
|
151
|
+
Conexa::Customer.all("company_id[]": [3])
|
|
152
|
+
Conexa::Contract.all("company_id[]": [540], page: 2, size: 5)
|
|
153
153
|
|
|
154
154
|
# Múltiplos filtros combinados
|
|
155
155
|
Conexa::Company.all(
|
|
@@ -174,13 +174,13 @@ Conexa::Sale.all(page: 2, size: 6)
|
|
|
174
174
|
|
|
175
175
|
| Recurso | Filtros Comuns |
|
|
176
176
|
|---------|---------------|
|
|
177
|
-
| Customer | `name`, `id[]`, `
|
|
177
|
+
| Customer | `name`, `id[]`, `company_id[]` |
|
|
178
178
|
| Company | `id[]`, `tradeName`, `legalName`, `cnpj`, `city`, `active` |
|
|
179
|
-
| Contract | `
|
|
180
|
-
| Bill | `status`, `
|
|
179
|
+
| Contract | `company_id[]`, `active` |
|
|
180
|
+
| Bill | `status`, `company_id[]` |
|
|
181
181
|
| Plan | `id[]` |
|
|
182
182
|
| Sale | `date` |
|
|
183
|
-
| InvoicingMethod | `id[]`, `
|
|
183
|
+
| InvoicingMethod | `id[]`, `company_id[]`, `isActive`, `type` |
|
|
184
184
|
|
|
185
185
|
### Operações Específicas de Recursos (Sub-processos)
|
|
186
186
|
|
|
@@ -227,7 +227,7 @@ Conexa::RecurringSale.end_recurring_sale(recurring_sale_id, end_date: "2024-12-3
|
|
|
227
227
|
|
|
228
228
|
```ruby
|
|
229
229
|
# Listar meios de faturamento com filtros
|
|
230
|
-
Conexa::InvoicingMethod.all("
|
|
230
|
+
Conexa::InvoicingMethod.all("company_id[]": [3], is_active: 1, type: "billet")
|
|
231
231
|
|
|
232
232
|
# Buscar por ID
|
|
233
233
|
Conexa::InvoicingMethod.find(invoicing_method_id)
|