Skip to main content

autogen_squareup/models/
create_payment_link_response.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CreatePaymentLinkResponse {
16    /// Any errors that occurred during the request.
17    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
18    pub errors: Option<Vec<models::Error>>,
19    #[serde(rename = "payment_link", skip_serializing_if = "Option::is_none")]
20    pub payment_link: Option<Box<models::PaymentLink>>,
21    #[serde(rename = "related_resources", skip_serializing_if = "Option::is_none")]
22    pub related_resources: Option<Box<models::PaymentLinkRelatedResources>>,
23}
24
25impl CreatePaymentLinkResponse {
26    pub fn new() -> CreatePaymentLinkResponse {
27        CreatePaymentLinkResponse {
28            errors: None,
29            payment_link: None,
30            related_resources: None,
31        }
32    }
33}
34