squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Response struct for the Create Payment Link API

use serde::Deserialize;

use super::{PaymentLink, PaymentLinkRelatedResources, errors::Error};

/// This is a model struct for CreatePaymentLinkResponse type.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct CreatePaymentLinkResponse {
    /// Information about errors encountered during the request.
    pub errors: Option<Vec<Error>>,
    /// The newly created payment link.
    pub payment_link: Option<PaymentLink>,
    /// The list of related objects.
    pub related_resources: Option<PaymentLinkRelatedResources>,
}