1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! A typed client for the [Authorize.Net](https://developer.authorize.net/api/reference/)
//! XML API.
//!
//! Every request and response type is generated from Authorize.Net's XSD (see
//! [`schema`]), and every operation is a method on a resource of the client:
//! `client.transactions().create(&request)`.
//!
//! # Clients and transports
//!
//! [`Client`] is async and [`blocking::Client`] blocks. Both send requests through a
//! transport, which you can replace to use any HTTP client (see [`transport`]). The
//! features provide the default transports:
//!
//! - `reqwest` (default): `transport::ReqwestTransport` for [`Client`], on tokio.
//! - `ureq`: `blocking::UreqTransport` for [`blocking::Client`], with no async runtime.
//! - `rustls` (default) or `native-tls`: their TLS implementation.
//!
//! [`protocol`] also encodes requests and decodes responses on their own.
//!
//! # Webhooks
//!
//! With the `webhooks` feature, `webhook::verify_then_parse` checks that a webhook
//! notification came from Authorize.Net and reads it as typed values.
//!
//! # Logging
//!
//! The clients emit [`tracing`](https://docs.rs/tracing) events: each request runs in
//! an `authorizenet` span with its `operation`, at `DEBUG` level, and request and
//! response bodies are logged at `TRACE` level with card numbers, keys and other
//! secrets redacted.
// docs.rs builds with `--cfg docsrs` and labels items that need a feature.
// Lets derived code refer to `::authorizenet::...` inside this crate too.
extern crate self as authorizenet;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use Decimal;
pub use SecretString;
/// Compiles the README's examples as doc tests.
;