1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! Model for InvoiceCustomFieldPlacement enum.

use serde::{Deserialize, Serialize};

/// Indicates where to render a custom field on the Square-hosted invoice page and in emailed or PDF
/// copies of the invoice.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum InvoiceCustomFieldPlacement {
    /// Render the custom field above the invoice line items.
    AboveLineItems,
    /// Render the custom field below the invoice line items.
    BelowLineItems,
}

impl Default for InvoiceCustomFieldPlacement {
    fn default() -> Self {
        Self::BelowLineItems
    }
}