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
17
18
//! Response body struct for Delete Payment Link API

use serde::Deserialize;

use super::errors::Error;

/// This is a model struct for DeleteInvoiceResponse type
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct DeletePaymentLinkResponse {
    /// Information about errors encountered during the request.
    pub errors: Option<Vec<Error>>,
    /// The ID of the link that is deleted.
    pub id: Option<String>,
    /// The ID of the order that is canceled.
    /// When a payment link is deleted, Square updates the the `state` (of the order that the checkout link
    /// created) to CANCELED.
    pub canceled_order_id: Option<String>,
}