vrchatapi 1.20.8-nightly.15

VRChat API Client for Rust
Documentation
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProductPurchaseHistory {
    #[serde(rename = "endDate")]
    pub end_date: String,
    #[serde(rename = "startDate")]
    pub start_date: String,
    #[serde(rename = "transactions")]
    pub transactions: Vec<models::ProductPurchaseRecord>,
}

impl ProductPurchaseHistory {
    pub fn new(
        end_date: String,
        start_date: String,
        transactions: Vec<models::ProductPurchaseRecord>,
    ) -> ProductPurchaseHistory {
        ProductPurchaseHistory {
            end_date,
            start_date,
            transactions,
        }
    }
}