Releases: c12i/mpesa-rust
Releases · c12i/mpesa-rust
v1.1.0
v1.0.0
Changes
- fix: extract an api struct to store error details
- Conditional compiling for tests
- Add black box testing
- Implementation of the Transaction status API
- Make transaction reversal fields public
- Remove unnecessary environment method
- Update docs
- Transaction Reversal Implementation
- Address socket exhaustion by using singleton http client
Special thanks to @itsyaasir, @crispinkoech and @dxphilo for their contributions
v0.4.2
Fixes
- Fix swapped party_a and party_b fallback fields in MpesaExpress request
- Expose
IdentifierTypesandResponseTypeto public API
Improvements
- Use
serde-reprto properly serialize enums asu16integers
v0.4.1
Fixes
- Fix
c2b_register andc2b_simulateapis - they had been returning empty string responses for theircommand_idfield. The field is now anOptionand serde will conditionally serialize it if the value is aSome` variant. - Fix
MpesaSecuritytrait implementation inmpesa_derive
Improvements
- Move
MpesaSecuritytrait implementation tompesa_derivederive macro crate
Breaking changes
- The
constantsmodule now private, therefore types such asCommandId,IdentifierTypes,MpesaResponseCodeandResponseTypeare now private. - All
servicesmodule response type fields now public and snake cased, hence the equivalent getter methods are now depreciated