zai_payment 1.3.2 → 2.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ade9b6f62eed95e49deeb4d8b95403125a4725c6da54139c6d3e05a7f2c85000
4
- data.tar.gz: 0d30a4009a97b4a41d49a94058d7337ef61595e9796c8447c5903922684ac214
3
+ metadata.gz: 969c7fa3deee862ffafc7513c766c7977c0ea7d8c150b86ed0b69d6b271fb4f2
4
+ data.tar.gz: ab0be12da8a64a0e0542679bd7120ff344007d63ad1a259e645a267b7e32559c
5
5
  SHA512:
6
- metadata.gz: a76e4c841210f11031ed7306fd42d03a6d8a3030befec711071f8b3cfe3e3688ae0e16db53268ebdbeb5803c3b1c7bf20de07564eec20205c4032248f05ba782
7
- data.tar.gz: ef1e8abb3173c35bcec05c79d4be9d28916f28aa036c03f9de23d5ed3af2e50eab28a71b9f101382f79fcea5497a23ddfab6f6ec0a4eb8105521a10e494d8faf
6
+ metadata.gz: b75eac297840e7290ec04ef31bf0983b658758b72e98a181dfc43e136c72d631a276570509bbd3b8f22c18b7dd09f3753f42dac047985dfa8665a643f29b03ab
7
+ data.tar.gz: 131560ea7a36ebf84948df973c71a688fe86ae2ad9d3adf93598cf75366b615163957a5cdcef27f739962ec3a2b682ad3c1e7b2150cb9d356e133a4cd270bbad
@@ -1,5 +1,32 @@
1
1
  ## [Released]
2
2
 
3
+ ## [2.0.0] - 2025-10-24
4
+ ### Added
5
+ - **Items Management API**: Full CRUD operations for managing Zai items (transactions/payments) 🛒
6
+ - `ZaiPayment.items.list(limit:, offset:)` - List all items with pagination
7
+ - `ZaiPayment.items.show(item_id)` - Get item details by ID
8
+ - `ZaiPayment.items.create(**attributes)` - Create new item/transaction
9
+ - `ZaiPayment.items.update(item_id, **attributes)` - Update item information
10
+ - `ZaiPayment.items.delete(item_id)` - Delete an item
11
+ - `ZaiPayment.items.show_seller(item_id)` - Get seller details for an item
12
+ - `ZaiPayment.items.show_buyer(item_id)` - Get buyer details for an item
13
+ - `ZaiPayment.items.show_fees(item_id)` - Get fees associated with an item
14
+ - `ZaiPayment.items.show_wire_details(item_id)` - Get wire transfer details for an item
15
+ - `ZaiPayment.items.list_transactions(item_id, limit:, offset:)` - List transactions for an item
16
+ - `ZaiPayment.items.list_batch_transactions(item_id, limit:, offset:)` - List batch transactions for an item
17
+ - `ZaiPayment.items.show_status(item_id)` - Get current status of an item
18
+ - Comprehensive validation for item attributes (name, amount, payment_type, buyer_id, seller_id)
19
+ - Support for optional item fields (description, currency, fee_ids, custom_descriptor, deposit_reference, etc.)
20
+ - Full RSpec test suite for Items resource with 100% coverage
21
+ - Comprehensive examples documentation in `examples/items.md`
22
+
23
+ ### Documentation
24
+ - Added detailed Items API examples with complete workflow demonstrations
25
+ - Payment types documentation (1-7: Direct Debit, Credit Card, Bank Transfer, Wallet, BPay, PayPal, Other)
26
+ - Error handling examples for Items operations
27
+
28
+ **Full Changelog**: https://github.com/Sentia/zai-payment/compare/v1.3.2...v2.0.0
29
+
3
30
  ## [1.3.2] - 2025-10-23
4
31
  ### Added
5
32
  - YARD documentation generation support with `.yardopts` configuration
@@ -32,7 +59,7 @@
32
59
  - Comprehensive validation for all user types
33
60
  - Email format validation
34
61
  - Country code validation (ISO 3166-1 alpha-3)
35
- - Date of birth format validation (YYYYMMDD)
62
+ - Date of birth format validation (DD/MM/YYYY)
36
63
  - User type validation (payin/payout)
37
64
  - Progressive profile building support
38
65
 
@@ -44,7 +71,7 @@
44
71
  - **Main Module**: Added `users` accessor for convenient access to User resource
45
72
 
46
73
  ### Documentation
47
- - **NEW**: [User Management Guide](docs/USERS.md) - Comprehensive guide covering:
74
+ - **NEW**: [User Management Guide](docs/users.md) - Comprehensive guide covering:
48
75
  - Overview of payin vs payout users
49
76
  - Required fields for each user type
50
77
  - Complete API reference with examples
@@ -64,10 +91,10 @@
64
91
  - User profile validation helper
65
92
  - RSpec integration tests
66
93
  - Common patterns with retry logic
67
- - **NEW**: [User Quick Reference](docs/USER_QUICK_REFERENCE.md) - Quick lookup for common operations
94
+ - **NEW**: [User Quick Reference](docs/user_quick_reference.md) - Quick lookup for common operations
68
95
  - **NEW**: [User Demo Script](examples/user_demo.rb) - Interactive demo of all user operations
69
- - **NEW**: [Implementation Summary](IMPLEMENTATION.md) - Detailed summary of the implementation
70
- - **Updated**: README.md - Added Users section with quick examples and updated roadmap
96
+ - **NEW**: [Implementation Summary](implementation.md) - Detailed summary of the implementation
97
+ - **Updated**: readme.md - Added Users section with quick examples and updated roadmap
71
98
 
72
99
  ### Testing
73
100
  - 40+ new test cases for User resource
@@ -97,24 +124,24 @@
97
124
  - Support for multiple signatures (key rotation scenarios)
98
125
 
99
126
  ### Documentation
100
- - **NEW**: [Authentication Guide](docs/AUTHENTICATION.md) - Comprehensive guide covering:
127
+ - **NEW**: [Authentication Guide](docs/authentication.md) - Comprehensive guide covering:
101
128
  - Short way: `ZaiPayment.token` (one-liner approach)
102
129
  - Long way: `TokenProvider.new(config:).bearer_token` (advanced control)
103
130
  - Token lifecycle and automatic management
104
131
  - Multiple configurations, testing, error handling
105
132
  - Best practices and troubleshooting
106
- - **NEW**: [Webhook Security Quick Start](docs/WEBHOOK_SECURITY_QUICKSTART.md) - 5-minute setup guide
107
- - **NEW**: [Webhook Signature Implementation](docs/WEBHOOK_SIGNATURE.md) - Technical details
108
- - **NEW**: [Documentation Index](docs/README.md) - Central navigation for all docs
133
+ - **NEW**: [Webhook Security Quick Start](docs/webhook_security_quickstart.md) - 5-minute setup guide
134
+ - **NEW**: [Webhook Signature Implementation](docs/webhook_signature.md) - Technical details
135
+ - **NEW**: [Documentation Index](docs/readme.md) - Central navigation for all docs
109
136
  - **Enhanced**: [Webhook Examples](examples/webhooks.md) - Added 400+ lines of examples:
110
137
  - Complete Rails controller implementation
111
138
  - Sinatra example
112
139
  - Rack middleware example
113
140
  - Background job processing pattern
114
141
  - Idempotency pattern
115
- - **Enhanced**: [Webhook Technical Guide](docs/WEBHOOKS.md) - Added 170+ lines on security
142
+ - **Enhanced**: [Webhook Technical Guide](docs/webhooks.md) - Added 170+ lines on security
116
143
  - **Reorganized**: All documentation moved to `docs/` folder for better organization
117
- - **Updated**: README.md - Now concise with clear links to detailed documentation
144
+ - **Updated**: readme.md - Now concise with clear links to detailed documentation
118
145
 
119
146
  ### Testing
120
147
  - 56 new test cases for webhook signature verification
@@ -23,7 +23,7 @@ First off, thank you for considering contributing to Zai Payment! 🎉 It's peop
23
23
 
24
24
  ## Code of Conduct
25
25
 
26
- This project and everyone participating in it is governed by our [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [contact@sentia.com.au](mailto:contact@sentia.com.au).
26
+ This project and everyone participating in it is governed by our [Code of Conduct](code_of_conduct.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [contact@sentia.com.au](mailto:contact@sentia.com.au).
27
27
 
28
28
  ---
29
29
 
@@ -86,7 +86,7 @@ Please follow these steps to have your contribution considered by the maintainer
86
86
  **Pull Request Guidelines:**
87
87
  - Keep changes focused - one feature/fix per PR
88
88
  - Link any relevant issues in the PR description
89
- - Update CHANGELOG.md if appropriate
89
+ - Update changelog.md if appropriate
90
90
  - Maintain backward compatibility when possible
91
91
  - Include tests for new functionality
92
92
  - Follow the existing code style
@@ -268,9 +268,9 @@ bundle exec rubocop -a
268
268
 
269
269
  - **Public APIs must be documented** using YARD syntax
270
270
  - **Include examples** in documentation when helpful
271
- - **Update README.md** when adding new features
271
+ - **Update readme.md** when adding new features
272
272
  - **Update relevant docs/** files for architectural changes
273
- - **Keep CHANGELOG.md** updated with notable changes
273
+ - **Keep changelog.md** updated with notable changes
274
274
 
275
275
  **YARD Documentation Example:**
276
276
  ```ruby
@@ -641,7 +641,7 @@ Gets or refreshes the bearer token.
641
641
  ## Next Steps
642
642
 
643
643
  - ✅ Authentication configured and working
644
- - 📖 Read [Webhook Guide](WEBHOOKS.md) to start using webhooks
644
+ - 📖 Read [Webhook Guide](webhooks.md) to start using webhooks
645
645
  - 💡 Check [Examples](../examples/webhooks.md) for complete code samples
646
- - 🔒 Set up [Webhook Security](WEBHOOK_SECURITY_QUICKSTART.md)
646
+ - 🔒 Set up [Webhook Security](webhook_security_quickstart.md)
647
647