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
@@ -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 <orukele.dev@gmail.com>"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion README.md
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
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.