Skip to content

Commit

Permalink
ready for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
morukele committed Nov 11, 2023
1 parent 9028968 commit 3a51685
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "paystack-rs"
version = "0.2.1"
version = "0.2.2"
description = "A unofficial client library for the Paystack API"
authors = ["Oghenemarho Orukele <[email protected]>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The client currently covers the following section of the API, and the sections t

- [x] Transaction
- [x] Transaction Split
- [ ] Terminal
- [x] Terminal
- [ ] Customers
- [ ] Dedicated Virtual Account
- [ ] Apple Pay
Expand Down
3 changes: 1 addition & 2 deletions src/endpoints/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use crate::{
};
use reqwest::StatusCode;
use serde::Serialize;
use std::fmt::format;

/// A Struct to hold all the functions of the terminal API route
#[derive(Debug, Clone)]
Expand Down Expand Up @@ -187,7 +186,7 @@ impl<'a> TerminalEndpoints<'a> {

match post_request(self.api_key, &url, decommission_body).await {
Ok(response) => match response.status() {
StatusCode::Ok => match response.json::<TerminalResponseWithNoData>().await {
StatusCode::OK => match response.json::<TerminalResponseWithNoData>().await {
Ok(content) => Ok(content),
Err(err) => Err(Error::Terminal(err.to_string())),
},
Expand Down

0 comments on commit 3a51685

Please sign in to comment.