square_api_client/models/enums/invoice_delivery_method.rs
1//! Model for InvoiceDeliveryMethod enum.
2
3use serde::{Deserialize, Serialize};
4
5/// Indicates how Square delivers the [Invoice] to the customer.
6#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8pub enum InvoiceDeliveryMethod {
9 /// Directs Square to send invoices, reminders, and receipts to the customer using email.
10 Email,
11 /// Directs Square to take no action on the invoice. In this case, the seller or application
12 /// developer follows up with the customer for payment. For example, a seller might collect a
13 /// payment in the Seller Dashboard or Point of Sale (POS) application. The seller might also
14 /// share the URL of the Square-hosted invoice page (`public_url`) with the customer to request
15 /// payment.
16 ShareManually,
17 /// Directs Square to send invoices and receipts to the customer using SMS (text message).
18 ///
19 /// You cannot set `SMS` as a delivery method using the Invoices API, but you can change an
20 /// `SMS` delivery method to `EMAIL` or `SHARE_MANUALLY`.
21 Sms,
22}