square_api_client/models/enums/invoice_custom_field_placement.rs
1//! Model for InvoiceCustomFieldPlacement enum.
2
3use serde::{Deserialize, Serialize};
4
5/// Indicates where to render a custom field on the Square-hosted invoice page and in emailed or PDF
6/// copies of the invoice.
7#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
8#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
9pub enum InvoiceCustomFieldPlacement {
10 /// Render the custom field above the invoice line items.
11 AboveLineItems,
12 /// Render the custom field below the invoice line items.
13 BelowLineItems,
14}
15
16impl Default for InvoiceCustomFieldPlacement {
17 fn default() -> Self {
18 Self::BelowLineItems
19 }
20}