reevit 0.1.0

Official Rust SDK for the Reevit payments API
Documentation
mod checkout_sessions;
mod connections;
mod customers;
mod fraud;
mod invoices;
mod payment_links;
mod payments;
mod routing_rules;
mod subscriptions;
mod webhooks;

pub use checkout_sessions::CheckoutSessions;
pub use connections::Connections;
pub use customers::Customers;
pub use fraud::Fraud;
pub use invoices::Invoices;
pub use payment_links::PaymentLinks;
pub use payments::Payments;
pub use routing_rules::RoutingRules;
pub use subscriptions::Subscriptions;
pub use webhooks::Webhooks;

const PATH_SEGMENT_ENCODE_SET: &percent_encoding::AsciiSet = &percent_encoding::CONTROLS
    .add(b'/')
    .add(b'?')
    .add(b'#')
    .add(b'%');

pub(crate) fn path_segment(value: &str) -> String {
    percent_encoding::utf8_percent_encode(value, PATH_SEGMENT_ENCODE_SET).to_string()
}