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
//! Model for PaymentDelayAction enum

use serde::{Deserialize, Serialize};

/// Actions that can be applied to [Payment]s when the `delay_duration` has elapsed.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum PaymentDelayAction {
    /// Cancel the payment.
    Cancel,
    /// Complete the payment.
    Complete,
}