use crate;
use Engine;
/// Create a Stripe service configuration.
///
/// Injects `Authorization: Basic` header (API key as username) for upstream authentication.
///
/// # Example
///
/// ```
/// use mpp::proxy::service::{Endpoint, ServiceBuilder};
/// use mpp::proxy::services::stripe;
///
/// let svc = stripe::service("sk_test_123", |r| {
/// r.route("POST /v1/charges", Endpoint::Paid(mpp::proxy::service::PaidEndpoint {
/// intent: "charge".into(),
/// amount: "100".into(),
/// decimals: Some(2),
/// currency: None,
/// unit_type: None,
/// description: None,
/// }))
/// .route("GET /v1/customers/:id", Endpoint::Free)
/// });
///
/// assert_eq!(svc.id, "stripe");
/// ```