conexa 0.0.6 → 0.0.7
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 +49 -26
- data/Gemfile.lock +7 -7
- data/README.md +297 -533
- data/README_pt-BR.md +7 -7
- data/REFERENCE.md +556 -0
- data/docs/postman-collection.json +30785 -0
- data/lib/conexa/authenticator.rb +2 -0
- data/lib/conexa/model.rb +48 -0
- data/lib/conexa/object.rb +17 -0
- data/lib/conexa/resources/address.rb +16 -0
- data/lib/conexa/resources/auth.rb +40 -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/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 +7 -4
- data/.tool-versions +0 -1
- data/lib/conexa/resources/addres.rb +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f797946a06e5b411bab47be327b805494a3baae97afb9faa629d0f5b45318a6
|
|
4
|
+
data.tar.gz: a4433c392325e634d6ded5996a809dc124a2e1d75c3239af8050fbf8f3402c47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 780a9f5f20b67d1b8a0917b41ff82e06536a79e9f23c29125c7627f2f84efd084e24d6d435d49603b7d3a1df65a5dd3880dea2c3168af653b71ae75800089fda
|
|
7
|
+
data.tar.gz: 86bf266d620205ca7d52416775feec983f4d197ade8c241f4812d443b6776c850a12ac66ca3fb517a768f6caa60957843f5bebdb1653e17e590fc40c6338f482
|
data/CHANGELOG.md
CHANGED
|
@@ -1,26 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## 0.0.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [0.0.7] - 2026-02-12
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- REFERENCE.md - Complete API reference optimized for LLMs/AI agents
|
|
14
|
+
- Comprehensive test suite (330+ specs)
|
|
15
|
+
- `Model.primary_key_attribute` DSL for cleaner resource definitions
|
|
16
|
+
- YARD documentation for all resource attributes (`@!attribute` directives)
|
|
17
|
+
- Documentation for `method_missing` behavior in ConexaObject
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- **Convention**: Use `snake_case` for all Ruby code (gem auto-converts to camelCase for API)
|
|
21
|
+
- README updated with snake_case examples and "Convention" section
|
|
22
|
+
- Resource methods now use snake_case with camelCase aliases for backwards compatibility
|
|
23
|
+
- `customer.customer_id` (primary) / `customer.customerId` (alias)
|
|
24
|
+
- Simplified resources using `method_missing` for attribute access (-280 lines)
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- Resource attribute methods now correctly access snake_case keys in `@attributes`
|
|
28
|
+
- Compound-named models (RecurringSale, CreditCard, InvoicingMethod) now have correct primary keys
|
|
29
|
+
- Array attributes (`phones`, `emails_message`, etc.) return `[]` instead of `nil` when empty
|
|
30
|
+
|
|
31
|
+
## [0.0.6] - 2026-02-11
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
- `Result#empty?` now correctly delegates to data array
|
|
35
|
+
- `Util.camelize_hash` guards against nil values
|
|
36
|
+
|
|
37
|
+
## [0.0.5] - 2026-01-15
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
- Initial release with core resources
|
|
41
|
+
- Customer, Contract, Sale, Charge, Bill resources
|
|
42
|
+
- RecurringSale with end functionality
|
|
43
|
+
- Charge with settle and PIX methods
|
|
44
|
+
- Pagination support
|
|
45
|
+
|
|
46
|
+
[Unreleased]: https://github.com/guilhermegazzinelli/conexa-ruby/compare/v0.0.7...HEAD
|
|
47
|
+
[0.0.7]: https://github.com/guilhermegazzinelli/conexa-ruby/compare/v0.0.6...v0.0.7
|
|
48
|
+
[0.0.6]: https://github.com/guilhermegazzinelli/conexa-ruby/compare/v0.0.5...v0.0.6
|
|
49
|
+
[0.0.5]: https://github.com/guilhermegazzinelli/conexa-ruby/releases/tag/v0.0.5
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
conexa (0.0.
|
|
4
|
+
conexa (0.0.6)
|
|
5
5
|
jwt
|
|
6
6
|
multi_json
|
|
7
7
|
rest-client
|
|
@@ -46,7 +46,7 @@ GEM
|
|
|
46
46
|
i18n (>= 1.8.11, < 2)
|
|
47
47
|
hashdiff (1.1.1)
|
|
48
48
|
http-accept (1.7.0)
|
|
49
|
-
http-cookie (1.0
|
|
49
|
+
http-cookie (1.1.0)
|
|
50
50
|
domain_name (~> 0.5)
|
|
51
51
|
i18n (1.14.6)
|
|
52
52
|
concurrent-ruby (~> 1.0)
|
|
@@ -56,7 +56,7 @@ GEM
|
|
|
56
56
|
reline (>= 0.4.2)
|
|
57
57
|
jaro_winkler (1.6.0)
|
|
58
58
|
json (2.7.2)
|
|
59
|
-
jwt (
|
|
59
|
+
jwt (3.1.2)
|
|
60
60
|
base64
|
|
61
61
|
kramdown (2.4.0)
|
|
62
62
|
rexml
|
|
@@ -65,12 +65,12 @@ GEM
|
|
|
65
65
|
language_server-protocol (3.17.0.3)
|
|
66
66
|
lint_roller (1.1.0)
|
|
67
67
|
logger (1.6.1)
|
|
68
|
-
mime-types (3.
|
|
68
|
+
mime-types (3.7.0)
|
|
69
69
|
logger
|
|
70
|
-
mime-types-data (~> 3.
|
|
71
|
-
mime-types-data (3.
|
|
70
|
+
mime-types-data (~> 3.2025, >= 3.2025.0507)
|
|
71
|
+
mime-types-data (3.2026.0203)
|
|
72
72
|
minitest (5.25.1)
|
|
73
|
-
multi_json (1.
|
|
73
|
+
multi_json (1.19.1)
|
|
74
74
|
netrc (0.11.0)
|
|
75
75
|
nokogiri (1.16.7-x86_64-linux)
|
|
76
76
|
racc (~> 1.4)
|