Skip to main content

stripe_pay_core/
lib.rs

1//! stripe-pay-core
2//!
3//! Shared Stripe domain types for the stripe-pay-sdk workspace: money
4//! handling, typed Stripe identifiers, payment intents, charges,
5//! refunds, structured errors, and Stripe's bracketed form encoding.
6
7mod r#protocol;
8
9mod charge;
10mod error;
11mod form;
12mod id;
13mod money;
14mod payment_intent;
15mod payment_method;
16mod refund;
17
18pub use r#protocol::*;
19
20pub use {
21    charge::*, error::*, form::*, id::*, money::*, payment_intent::*, payment_method::*, refund::*,
22};
23
24pub use rust_decimal::{
25    Decimal,
26    prelude::{FromPrimitive, ToPrimitive},
27};
28pub use serde::{Deserialize, Serialize};
29pub use serde_json::{Value, json};
30
31pub use lombok_macros::*;
32
33use std::{
34    fmt::{self, Display, Formatter},
35    str::FromStr,
36};