pipedrive_rs/models/cancel_recurring_subscription_request.rs
1/*
2 * Pipedrive API v1
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CancelRecurringSubscriptionRequest {
16 /// The subscription termination date. All payments after the specified date will be deleted. The end_date of the subscription will be set to the due date of the payment to follow the specified date. Default value is the current date.
17 #[serde(rename = "end_date", skip_serializing_if = "Option::is_none")]
18 pub end_date: Option<String>,
19}
20
21impl CancelRecurringSubscriptionRequest {
22 pub fn new() -> CancelRecurringSubscriptionRequest {
23 CancelRecurringSubscriptionRequest {
24 end_date: None,
25 }
26 }
27}
28
29