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
IdentifierTypes
andResponseType
to public API
Improvements
- Use
serde-repr
to properly serialize enums asu16
integers
v0.4.1
Fixes
- Fix
c2b_register and
c2b_simulateapis - they had been returning empty string responses for their
command_idfield. The field is now an
Optionand serde will conditionally serialize it if the value is a
Some` variant. - Fix
MpesaSecurity
trait implementation inmpesa_derive
Improvements
- Move
MpesaSecurity
trait implementation tompesa_derive
derive macro crate
Breaking changes
- The
constants
module now private, therefore types such asCommandId
,IdentifierTypes
,MpesaResponseCode
andResponseType
are now private. - All
services
module response type fields now public and snake cased, hence the equivalent getter methods are now depreciated