autogen_squareup/models/update_customer_group_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/// UpdateCustomerGroupRequest : Defines the body parameters that can be included in a request to the [UpdateCustomerGroup](api-endpoint:CustomerGroups-UpdateCustomerGroup) endpoint.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateCustomerGroupRequest {
17 #[serde(rename = "group")]
18 pub group: Box<models::CustomerGroup>,
19}
20
21impl UpdateCustomerGroupRequest {
22 /// Defines the body parameters that can be included in a request to the [UpdateCustomerGroup](api-endpoint:CustomerGroups-UpdateCustomerGroup) endpoint.
23 pub fn new(group: models::CustomerGroup) -> UpdateCustomerGroupRequest {
24 UpdateCustomerGroupRequest {
25 group: Box::new(group),
26 }
27 }
28}
29