@@ -14,6 +14,9 @@ Welcome to the Zai Payment Ruby gem documentation. This guide will help you find
1414
1515- [ ** architecture.md** ] ( architecture.md ) - System architecture and design principles
1616- [ ** authentication.md** ] ( authentication.md ) - OAuth2 implementation, token management, two approaches
17+ - [ ** users.md** ] ( users.md ) - User management for payin (buyers) and payout (sellers/merchants)
18+ - [ ** items.md** ] ( items.md ) - Item management for transactions and payments
19+ - [ ** token_auths.md** ] ( token_auths.md ) - Token generation for secure bank and card data collection
1720- [ ** webhooks.md** ] ( webhooks.md ) - Webhook implementation details, best practices, and patterns
1821
1922## 🔐 Security Guides
@@ -23,6 +26,9 @@ Welcome to the Zai Payment Ruby gem documentation. This guide will help you find
2326
2427## 📝 Examples
2528
29+ - [ ** User Examples** ] ( ../examples/users.md ) - User management examples and patterns
30+ - [ ** Item Examples** ] ( ../examples/items.md ) - Transaction and payment workflows
31+ - [ ** Token Auth Examples** ] ( ../examples/token_auths.md ) - Token generation and PromisePay.js integration
2632- [ ** Webhook Examples** ] ( ../examples/webhooks.md ) - Comprehensive webhook usage examples including:
2733 - Basic CRUD operations
2834 - Rails controller implementation
@@ -38,6 +44,21 @@ Welcome to the Zai Payment Ruby gem documentation. This guide will help you find
3844- ** Short Way** : ` ZaiPayment.token ` (one-liner)
3945- ** Long Way** : ` TokenProvider.new(config: config).bearer_token ` (full control)
4046
47+ ### Users
48+ - ** Guide** : [ User Management] ( users.md )
49+ - ** Examples** : [ User Examples] ( ../examples/users.md )
50+ - ** API Reference** : [ Zai Users API] ( https://developer.hellozai.com/reference/getallusers )
51+
52+ ### Items
53+ - ** Guide** : [ Item Management] ( items.md )
54+ - ** Examples** : [ Item Examples] ( ../examples/items.md )
55+ - ** API Reference** : [ Zai Items API] ( https://developer.hellozai.com/reference/listitems )
56+
57+ ### Token Auth
58+ - ** Guide** : [ Token Auth] ( token_auths.md )
59+ - ** Examples** : [ Token Auth Examples] ( ../examples/token_auths.md )
60+ - ** API Reference** : [ Zai Generate Token API] ( https://developer.hellozai.com/reference/generatetoken )
61+
4162### Webhooks
4263- ** Setup** : [ Quick Start Guide] ( webhook_security_quickstart.md )
4364- ** Examples** : [ Complete Examples] ( ../examples/webhooks.md )
@@ -54,28 +75,37 @@ Welcome to the Zai Payment Ruby gem documentation. This guide will help you find
5475```
5576docs/
5677├── readme.md # This file - documentation index
57- ├── authentication.md # OAuth2 authentication guide (NEW!)
78+ ├── authentication.md # OAuth2 authentication guide
79+ ├── users.md # User management guide
80+ ├── items.md # Item management guide
81+ ├── token_auths.md # Token generation guide (NEW!)
5882├── architecture.md # System architecture
5983├── webhooks.md # Webhook technical docs
6084├── webhook_security_quickstart.md # Quick security setup
6185└── webhook_signature.md # Signature implementation
6286
6387examples/
64- └── webhooks.md # Complete webhook examples
88+ ├── users.md # User management examples
89+ ├── items.md # Item examples
90+ ├── token_auths.md # Token auth examples (NEW!)
91+ └── webhooks.md # Webhook examples
6592```
6693
6794## 💡 Tips
6895
6996- ** Getting tokens?** Check [ authentication.md] ( authentication.md ) for both approaches
70- - ** Looking for code examples?** Check [ examples/webhooks.md] ( ../examples/webhooks.md )
97+ - ** Managing users?** See [ users.md] ( users.md ) for payin and payout user guides
98+ - ** Creating transactions?** Review [ items.md] ( items.md ) for item management
99+ - ** Collecting payment data?** See [ token_auths.md] ( token_auths.md ) for secure token generation
100+ - ** Looking for code examples?** Check the [ examples] ( ../examples/ ) directory
71101- ** Need quick setup?** See [ webhook_security_quickstart.md] ( webhook_security_quickstart.md )
72102- ** Want to understand the design?** Read [ architecture.md] ( architecture.md )
73103- ** Security details?** Review [ webhook_signature.md] ( webhook_signature.md )
74104
75105## 🆘 Need Help?
76106
771071 . Check the relevant documentation section above
78- 2 . Review the [ examples] ( ../examples/webhooks.md )
108+ 2 . Review the [ examples] ( ../examples/ )
791093 . Consult the [ Zai API documentation] ( https://developer.hellozai.com/ )
801104 . Open an issue on GitHub
81111
0 commit comments