Skip to main content

autogen_squareup/models/
bulk_retrieve_channels_request.rs

1/*
2 * Square
3 *
4 * Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.
5 *
6 * The version of the OpenAPI document: 2.0
7 * Contact: developers@squareup.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// BulkRetrieveChannelsRequest : Defines the fields that are included in the request body for the [BulkRetrieveChannels](api-endpoint:Channels-BulkRetrieveChannels) endpoint.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct BulkRetrieveChannelsRequest {
17    #[serde(rename = "channel_ids")]
18    pub channel_ids: Vec<String>,
19}
20
21impl BulkRetrieveChannelsRequest {
22    /// Defines the fields that are included in the request body for the [BulkRetrieveChannels](api-endpoint:Channels-BulkRetrieveChannels) endpoint.
23    pub fn new(channel_ids: Vec<String>) -> BulkRetrieveChannelsRequest {
24        BulkRetrieveChannelsRequest {
25            channel_ids,
26        }
27    }
28}
29