Skip to content

Commit

Permalink
Add generated files and webhook crate
Browse files Browse the repository at this point in the history
  • Loading branch information
mzeitlin11 committed Nov 25, 2023
1 parent 50afbe3 commit 6ff0bac
Show file tree
Hide file tree
Showing 1,575 changed files with 197,011 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[workspace]
members = [
"async-stripe",
"stripe_types"
"stripe_types",
"stripe_webhook"
]
resolver = "2"
# Makes dependency management simpler to allow codegen crate to use whichever dep versions
Expand Down
7 changes: 1 addition & 6 deletions async-stripe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,9 @@
//! Otherwise, we are open to turning this into an open trait so that you can implement your own strategy.
#![allow(clippy::map_clone, clippy::large_enum_variant)]
#![warn(clippy::unwrap_used, clippy::missing_errors_doc, clippy::missing_panics_doc)]
#![warn(clippy::unwrap_used, clippy::missing_errors_doc)]
#![forbid(unsafe_code)]

// Give a clear error when a required runtime error is not present. Would be better for this
// to be a fatal error preventing emission of further compile errors relating to lack of
// a runtime feature, but that does not seem currently possible:
// https://github.com/rust-lang/rust/issues/68838

mod client;
mod error;
mod pagination;
Expand Down
71 changes: 71 additions & 0 deletions generated/stripe_billing/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
[package]
name = "stripe_billing"
version.workspace = true
description.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true

[lib]
path = "src/mod.rs"

[package.metadata.docs.rs]
features = ["runtime-tokio-hyper", "full"]

[dependencies]
serde.workspace = true
http-types.workspace = true
smol_str.workspace = true
serde_json.workspace = true
async-stripe = {path = "../../async-stripe"}

stripe_types = {path = "../../stripe_types"}

[features]
runtime-tokio-hyper = ["async-stripe/runtime-tokio-hyper"]
runtime-tokio-hyper-rustls = ["async-stripe/runtime-tokio-hyper-rustls"]
runtime-tokio-hyper-rustls-webpki = ["async-stripe/runtime-tokio-hyper-rustls-webpki"]
runtime-blocking = ["async-stripe/runtime-blocking"]
runtime-blocking-rustls = ["async-stripe/runtime-blocking-rustls"]
runtime-blocking-rustls-webpki = ["async-stripe/runtime-blocking-rustls-webpki"]
runtime-async-std-surf = ["async-stripe/runtime-async-std-surf"]

credit_note = []
credit_note_line_item = []
invoice = []
invoice_item = []
invoice_line_item = []
plan = []
portal_configuration = []
portal_session = []
quote = []
subscription = []
subscription_item = []
subscription_schedule = []
tax_id = []
test_clock = []
usage_record = []
usage_record_summary = []

full = ["credit_note",
"credit_note_line_item",
"invoice",
"invoice_item",
"invoice_line_item",
"plan",
"portal_configuration",
"portal_session",
"quote",
"subscription",
"subscription_item",
"subscription_schedule",
"tax_id",
"test_clock",
"usage_record",
"usage_record_summary"]

1 change: 1 addition & 0 deletions generated/stripe_billing/src/automatic_tax/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub use stripe_types::automatic_tax::*;
1 change: 1 addition & 0 deletions generated/stripe_billing/src/cancellation_details/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub use stripe_types::cancellation_details::*;
5 changes: 5 additions & 0 deletions generated/stripe_billing/src/credit_note/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pub use stripe_types::credit_note::*;
#[cfg(feature = "credit_note")]
mod requests;
#[cfg(feature = "credit_note")]
pub use requests::*;
Loading

0 comments on commit 6ff0bac

Please sign in to comment.