Skip to main content

ronami_core/payloads/
set_business_account_name.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::BusinessConnectionId;
6use crate::types::True;
7
8impl_payload! {
9    /// Changes the first and last name of a managed business account. Requires the _can_change_name_ business bot right. Returns _true_ on success.
10    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
11    pub SetBusinessAccountName (SetBusinessAccountNameSetters) => True {
12        required {
13            /// Unique identifier of the business connection
14            pub business_connection_id: BusinessConnectionId,
15            /// The new value of the first name for the business account; 1-64 characters
16            pub first_name: String [into],
17        }
18        optional {
19            /// The new value of the last name for the business account; 0-64 characters
20            pub last_name: String [into],
21        }
22    }
23}