Skip to content

Releases: c12i/mpesa-rust

v1.1.0

14 Nov 15:49
3971464
Compare
Choose a tag to compare

New Changes

  • cache auth tokens
  • add dynamic QR code API support

Bug Fixes

  • Fix deserialization error on ApiError struct on errored api requests

thanks to @Borwe @itsyaasir for their contributions to this release

v1.0.0

28 Aug 09:18
41f5c47
Compare
Choose a tag to compare

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

22 Jun 10:35
Compare
Choose a tag to compare

Fixes

  • Fix swapped party_a and party_b fallback fields in MpesaExpress request
  • Expose IdentifierTypes and ResponseType to public API

Improvements

  • Use serde-repr to properly serialize enums as u16 integers

v0.4.1

13 Jun 13:56
Compare
Choose a tag to compare

Fixes

  • Fix c2b_register and c2b_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 MpesaSecurity trait implementation in mpesa_derive

Improvements

  • Move MpesaSecurity trait implementation to mpesa_derive derive macro crate

Breaking changes

  • The constants module now private, therefore types such as CommandId, IdentifierTypes, MpesaResponseCode and ResponseType are now private.
  • All services module response type fields now public and snake cased, hence the equivalent getter methods are now depreciated

v0.3.7

11 Jun 08:34
b744706
Compare
Choose a tag to compare

Derive conditional compilation features flags:

[dependencies]
mpesa = { version = "0.3.7", default_features = false, features = ["b2b"] }

v0.3.5

16 May 10:06
464ed13
Compare
Choose a tag to compare

Update client auth method access

v0.3.4

13 Apr 09:01
Compare
Choose a tag to compare
  • Minor updates to service getters