square_api_client/models/invoice_accepted_payment_methods.rs
1//! Model struct for InvoiceAcceptedPaymentMethods type.
2
3use serde::{Deserialize, Serialize};
4
5/// The payment methods that customers can use to pay an invoice on the Square-hosted invoice page.
6#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
7pub struct InvoiceAcceptedPaymentMethods {
8 /// Indicates whether bank transfer payments are accepted. The default value is `false`.
9 ///
10 /// This option is allowed only for invoices that have a single payment request of type
11 /// `BALANCE`.
12 pub bank_account: Option<bool>,
13 /// Indicates whether credit card or debit card payments are accepted. The default value is
14 /// `false`.
15 pub card: Option<bool>,
16 /// Indicates whether Square gift card payments are accepted. The default value is `false`.
17 pub square_gift_card: Option<bool>,
18}