//! The hosted payment link model.
use serde::Deserialize;
use serde_json::Value;
/// A hosted payment link as returned by the API.
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct PaymentLinkResponse {
/// The shopper-facing payment link URL.
pub link: String,
/// Unique payment link ID.
pub payment_link_id: String,
/// Secure variant of the link, when the API issues one.
#[serde(default)]
pub secure_link: Option<String>,
/// Any additional response fields not modeled above.
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}