use serde::{Deserialize, Serialize};
use serde_json::Value;
use crate::core::models::common::Currency;
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductKind {
OneTime,
Recurring,
Addon,
Bundle,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductStatus {
Active,
Archived,
#[serde(other)]
Unknown,
}
impl ProductStatus {
pub fn as_str(self) -> &'static str {
match self {
ProductStatus::Active => "active",
ProductStatus::Archived => "archived",
ProductStatus::Unknown => "unknown",
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductPriceInterval {
Day,
Week,
Month,
Year,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductPriceTaxBehavior {
Inclusive,
Exclusive,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum BundlePricing {
Fixed,
Sum,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProviderArchiveAction {
Archive,
DeactivatePlans,
Keep,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductAliasKind {
Name,
Alias,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductMappingMode {
MapExisting,
ManualId,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductMatch {
Name,
Alias,
ConnectorProduct,
ConnectorPrice,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum PriceBillingState {
Ready,
Unverified,
OtherEnvironment,
NeedsReference,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductImportClassification {
New,
Changed,
Unchanged,
Unavailable,
Conflicting,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProductImportPriceState {
New,
Known,
Changed,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProviderSyncStatus {
InSync,
ChangedAtProvider,
MissingAtProvider,
Unknown,
NotLinked,
#[serde(other)]
Unrecognized,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProviderSyncField {
Name,
Description,
ImageUrl,
Active,
DefaultPrice,
PriceTerms,
PriceActive,
PriceMissing,
PriceNotAtProvider,
PriceOnlyAtProvider,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProviderPushAction {
UpdateProduct,
CreatePrice,
ReplacePrice,
ActivatePrice,
DeactivatePrice,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProviderArchiveMode {
Archive,
DeactivatePlans,
#[serde(rename = "none")]
NoAction,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProviderArchiveStatus {
Done,
Kept,
Unsupported,
Failed,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProviderUnavailableReason {
NoCredentialsForEnvironment,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
#[serde(rename_all = "snake_case")]
#[non_exhaustive]
pub enum ProviderEnvironment {
Live,
Test,
#[serde(other)]
Unknown,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductPriceResponse {
pub id: String,
pub product_id: String,
#[serde(default)]
pub nickname: Option<String>,
pub amount: i64,
pub currency: Currency,
#[serde(default)]
pub billing_interval: Option<ProductPriceInterval>,
#[serde(default)]
pub billing_interval_count: Option<i32>,
#[serde(default)]
pub trial_period: Option<i32>,
#[serde(default)]
pub trial_period_unit: Option<ProductPriceInterval>,
pub is_default: bool,
#[serde(default)]
pub tax_behavior: Option<ProductPriceTaxBehavior>,
pub status: ProductStatus,
#[serde(default)]
pub metadata: Option<Value>,
pub created_at: String,
pub modified_at: String,
#[serde(default)]
pub archived_at: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductAliasResponse {
pub id: String,
pub alias: String,
pub kind: ProductAliasKind,
pub created_at: String,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductConnectorReferenceResponse {
pub id: String,
pub connector: String,
pub merchant_connector_id: String,
pub connector_product_id: String,
#[serde(default)]
pub connector_price_id: Option<String>,
#[serde(default)]
pub price_id: Option<String>,
#[serde(default)]
pub display_name: Option<String>,
pub mapping_mode: ProductMappingMode,
#[serde(default)]
pub test_mode: Option<bool>,
#[serde(default)]
pub product_kind: Option<ProductKind>,
#[serde(default)]
pub cleanup_status: Option<String>,
#[serde(default)]
pub cleanup_error: Option<String>,
#[serde(default)]
pub cleanup_attempted_at: Option<String>,
pub created_at: String,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct AddonGroupItemResponse {
pub addon_product_id: String,
pub name: String,
pub status: ProductStatus,
#[serde(default)]
pub price: Option<ProductPriceResponse>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct AddonGroupResponse {
pub id: String,
pub name: String,
pub min_choices: i32,
pub max_choices: i32,
#[serde(default)]
pub items: Vec<AddonGroupItemResponse>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct BundleItemResponse {
pub product_id: String,
pub name: String,
pub status: ProductStatus,
pub quantity: i32,
#[serde(default)]
pub price: Option<ProductPriceResponse>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductResponse {
pub id: String,
pub profile_id: String,
pub name: String,
#[serde(default)]
pub description: Option<String>,
#[serde(default)]
pub image_url: Option<String>,
pub kind: ProductKind,
pub status: ProductStatus,
#[serde(default)]
pub prices: Vec<ProductPriceResponse>,
#[serde(default)]
pub aliases: Vec<ProductAliasResponse>,
#[serde(default)]
pub connector_references: Vec<ProductConnectorReferenceResponse>,
#[serde(default)]
pub addon_groups: Vec<AddonGroupResponse>,
#[serde(default)]
pub bundle_pricing: Option<BundlePricing>,
#[serde(default)]
pub bundle_items: Vec<BundleItemResponse>,
#[serde(default)]
pub metadata: Option<Value>,
pub created_at: String,
pub modified_at: String,
#[serde(default)]
pub archived_at: Option<String>,
#[serde(default)]
pub category_id: Option<String>,
#[serde(default)]
pub buyer_chooses_addons: bool,
#[serde(default)]
pub tax_category: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductListResponse {
#[serde(default)]
pub data: Vec<ProductResponse>,
pub total_count: i64,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImageUploadResponse {
pub image_url: String,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductResolveResponse {
pub matched_by: ProductMatch,
#[serde(default)]
pub price_id: Option<String>,
pub product: ProductResponse,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductSalesByCurrency {
pub currency: String,
pub payment_count: i64,
pub sold_quantity: i64,
pub sold_amount: i64,
pub refunded_quantity: i64,
pub refunded_amount: i64,
pub refund_pending_quantity: i64,
pub refund_pending_amount: i64,
pub net_quantity: i64,
pub net_amount: i64,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductSalesResponse {
pub product_id: String,
pub profile_id: String,
pub test_mode: bool,
pub start_time: String,
pub end_time: String,
#[serde(default)]
pub currencies: Vec<ProductSalesByCurrency>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct BillingAccountSummary {
pub merchant_connector_id: String,
pub connector: String,
pub test_mode: bool,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct PriceBillingReadiness {
pub product_id: String,
pub price_id: String,
pub state: PriceBillingState,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct BillingReadinessResponse {
#[serde(default)]
pub billing_account: Option<BillingAccountSummary>,
#[serde(default)]
pub prices: Vec<PriceBillingReadiness>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductCategoryResponse {
pub id: String,
pub profile_id: String,
pub name: String,
pub position: i32,
pub status: ProductStatus,
pub created_at: String,
pub modified_at: String,
#[serde(default)]
pub archived_at: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductCategoryListResponse {
#[serde(default)]
pub data: Vec<ProductCategoryResponse>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImportPricePreview {
pub connector_price_id: String,
pub amount: i64,
pub currency: Currency,
#[serde(default)]
pub interval: Option<ProductPriceInterval>,
#[serde(default)]
pub interval_count: Option<i32>,
pub state: ProductImportPriceState,
#[serde(default)]
pub price_id: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImportItemPreview {
pub key: String,
pub connector_product_id: String,
pub mixed: bool,
pub name: String,
#[serde(default)]
pub description: Option<String>,
pub classification: ProductImportClassification,
pub kind: ProductKind,
#[serde(default)]
pub product_id: Option<String>,
#[serde(default)]
pub prices: Vec<ProductImportPricePreview>,
#[serde(default)]
pub note: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImportCapabilities {
pub connector: String,
pub one_time_products: bool,
pub recurring_products: bool,
pub availability: bool,
pub trial_periods: bool,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImportCounts {
pub new: i32,
pub changed: i32,
pub unchanged: i32,
pub unavailable: i32,
pub conflicting: i32,
pub products_created: i32,
pub prices_added: i32,
pub failed: i32,
#[serde(default)]
pub archived: Option<i32>,
#[serde(default)]
pub listing_truncated: Option<bool>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImportPreviewResponse {
pub confirmation: String,
pub capabilities: ProductImportCapabilities,
pub counts: ProductImportCounts,
#[serde(default)]
pub items: Vec<ProductImportItemPreview>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImportFailure {
pub connector_product_id: String,
#[serde(default)]
pub kind: Option<ProductKind>,
pub name: String,
pub reason: String,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImportRunResponse {
pub id: String,
pub merchant_connector_id: String,
pub connector: String,
pub status: String,
#[serde(default)]
pub confirmation_outdated: Option<bool>,
pub counts: ProductImportCounts,
#[serde(default)]
pub failures: Vec<ProductImportFailure>,
pub created_at: String,
#[serde(default)]
pub finished_at: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductImportRunListResponse {
#[serde(default)]
pub data: Vec<ProductImportRunResponse>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderPriceTerms {
pub amount: i64,
pub currency: String,
#[serde(default)]
pub interval: Option<ProductPriceInterval>,
#[serde(default)]
pub interval_count: Option<i32>,
pub active: bool,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderSyncDifference {
pub key: String,
pub field: ProviderSyncField,
#[serde(default)]
pub price_id: Option<String>,
#[serde(default)]
pub connector_price_id: Option<String>,
#[serde(default)]
pub catalog_value: Option<String>,
#[serde(default)]
pub provider_value: Option<String>,
#[serde(default)]
pub catalog_price: Option<ProviderPriceTerms>,
#[serde(default)]
pub provider_price: Option<ProviderPriceTerms>,
#[serde(default)]
pub push_action: Option<ProviderPushAction>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductProviderLink {
pub merchant_connector_id: String,
pub connector: String,
pub connector_product_id: String,
#[serde(default)]
pub test_mode: Option<bool>,
pub status: ProviderSyncStatus,
#[serde(default)]
pub differences: Vec<ProviderSyncDifference>,
#[serde(default)]
pub reason: Option<String>,
pub can_push: bool,
#[serde(default)]
pub can_create: Option<bool>,
#[serde(default)]
pub compared_fields: Vec<ProviderSyncField>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductProviderSyncResponse {
pub product_id: String,
pub status: ProviderSyncStatus,
#[serde(default)]
pub links: Vec<ProductProviderLink>,
pub checked_at: String,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductProviderSyncBatchResponse {
#[serde(default)]
pub data: Vec<ProductProviderSyncResponse>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderPushStep {
pub action: ProviderPushAction,
#[serde(default)]
pub keys: Vec<String>,
#[serde(default)]
pub price_id: Option<String>,
#[serde(default)]
pub connector_price_id: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductProviderPushResponse {
pub nothing_to_push: bool,
pub confirmation_outdated: bool,
#[serde(default)]
pub applied: Vec<ProviderPushStep>,
#[serde(default)]
pub error: Option<String>,
pub result: ProductProviderSyncResponse,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderCapabilities {
pub read_catalog: bool,
pub one_time_products: bool,
pub recurring_products: bool,
pub push: bool,
pub create: bool,
pub archive: ProviderArchiveMode,
pub split_mixed_imports: bool,
#[serde(default)]
pub unavailable_reason: Option<ProviderUnavailableReason>,
#[serde(default)]
pub unavailable_environment: Option<ProviderEnvironment>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderAccount {
pub merchant_connector_id: String,
pub connector: String,
#[serde(default)]
pub label: Option<String>,
pub test_mode: bool,
pub disabled: bool,
pub billing_processor: bool,
pub serves_subscriptions: bool,
pub capabilities: ProviderCapabilities,
#[serde(default)]
pub last_import_at: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderAccountListResponse {
#[serde(default)]
pub data: Vec<ProviderAccount>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderCreatePrice {
pub price_id: String,
pub terms: ProviderPriceTerms,
pub is_default: bool,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderUnsupportedPrice {
pub price_id: String,
pub reason: String,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderCreatePlan {
pub fingerprint: String,
pub connector: String,
pub merchant_connector_id: String,
pub test_mode: bool,
pub name: String,
#[serde(default)]
pub description: Option<String>,
#[serde(default)]
pub image_url: Option<String>,
#[serde(default)]
pub prices: Vec<ProviderCreatePrice>,
#[serde(default)]
pub unsupported_prices: Vec<ProviderUnsupportedPrice>,
#[serde(default)]
pub skipped_price_ids: Vec<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderCreatedPrice {
pub price_id: String,
#[serde(default)]
pub connector_product_id: Option<String>,
#[serde(default)]
pub connector_price_id: Option<String>,
#[serde(default)]
pub error: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductProviderCreateResponse {
pub created: bool,
pub confirmation_outdated: bool,
pub plan: ProviderCreatePlan,
#[serde(default)]
pub connector_product_id: Option<String>,
#[serde(default)]
pub prices: Vec<ProviderCreatedPrice>,
#[serde(default)]
pub error: Option<String>,
#[serde(default)]
pub result: Option<ProductProviderSyncResponse>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderArchiveOutcome {
pub merchant_connector_id: String,
pub connector: String,
pub connector_product_id: String,
pub action: ProviderArchiveAction,
pub status: ProviderArchiveStatus,
#[serde(default)]
pub deactivated_price_ids: Vec<String>,
#[serde(default)]
pub kept_price_ids: Vec<String>,
#[serde(default)]
pub reason: Option<String>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProductDeleteResponse {
pub product_id: String,
pub deleted: bool,
#[serde(default)]
pub provider: Vec<ProviderArchiveOutcome>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderCleanup {
pub product_id: String,
pub product_name: String,
pub deleted: bool,
pub merchant_connector_id: String,
pub connector: String,
pub connector_product_id: String,
pub action: ProviderArchiveAction,
#[serde(default)]
pub error: Option<String>,
#[serde(default)]
pub attempted_at: Option<String>,
#[serde(default)]
pub test_mode: Option<bool>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct ProviderCleanupListResponse {
#[serde(default)]
pub data: Vec<ProviderCleanup>,
#[serde(flatten)]
pub extra: serde_json::Map<String, Value>,
}