Skip to content

Commit 3a51685

Browse files
committed
ready for publish
1 parent 9028968 commit 3a51685

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "paystack-rs"
3-
version = "0.2.1"
3+
version = "0.2.2"
44
description = "A unofficial client library for the Paystack API"
55
authors = ["Oghenemarho Orukele <[email protected]>"]
66
edition = "2021"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The client currently covers the following section of the API, and the sections t
1313

1414
- [x] Transaction
1515
- [x] Transaction Split
16-
- [ ] Terminal
16+
- [x] Terminal
1717
- [ ] Customers
1818
- [ ] Dedicated Virtual Account
1919
- [ ] Apple Pay

src/endpoints/terminal.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use crate::{
99
};
1010
use reqwest::StatusCode;
1111
use serde::Serialize;
12-
use std::fmt::format;
1312

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

188187
match post_request(self.api_key, &url, decommission_body).await {
189188
Ok(response) => match response.status() {
190-
StatusCode::Ok => match response.json::<TerminalResponseWithNoData>().await {
189+
StatusCode::OK => match response.json::<TerminalResponseWithNoData>().await {
191190
Ok(content) => Ok(content),
192191
Err(err) => Err(Error::Terminal(err.to_string())),
193192
},

0 commit comments

Comments
 (0)