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
//! Model struct for DestinationDetailsCashRefundDetails type

use crate::models::Money;
use serde::{Deserialize, Serialize};

/// Stores details about a cash refund. Contains only non-confidential information.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct DestinationDetailsCashRefundDetails {
    /// The amount and currency of the money supplied by the seller.
    pub seller_supplied_money: Money,
    /// The amount of change due back to the seller. This read-only field is calculated from the
    /// amount_money and seller_supplied_money fields.
    pub change_back_money: Option<Money>,
}