/*
* The Selling Partner API for Amazon Seller Wallet Open Banking API
*
* The Selling Partner API for Seller Wallet (Seller Wallet API) provides financial information that is relevant to a seller's Seller Wallet account. You can obtain financial events, balances, and transfer schedules for Seller Wallet accounts. You can also schedule and initiate transactions.
*
* The version of the OpenAPI document: 2024-03-01
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ScheduleExpression : Parameters containing information of the expression that defines when the schedule runs. The following formats are supported.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ScheduleExpression {
#[serde(rename = "scheduleExpressionType")]
pub schedule_expression_type: models::seller_wallet_2024_03_01::ScheduleExpressionType,
#[serde(rename = "recurringFrequency", skip_serializing_if = "Option::is_none")]
pub recurring_frequency: Option<models::seller_wallet_2024_03_01::RecurringFrequency>,
}
impl ScheduleExpression {
/// Parameters containing information of the expression that defines when the schedule runs. The following formats are supported.
pub fn new(schedule_expression_type: models::seller_wallet_2024_03_01::ScheduleExpressionType) -> ScheduleExpression {
ScheduleExpression {
schedule_expression_type,
recurring_frequency: None,
}
}
}