square_api_client/models/enums/gift_card_status.rs
1//! Model for GiftCardStatus enum
2
3use serde::{Deserialize, Serialize};
4
5/// Indicates the gift card state.
6#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8pub enum GiftCardStatus {
9 /// The gift card is active and can be used as a payment source.
10 Active,
11 /// Any activity that changes the gift card balance is permanently forbidden.
12 Deactivated,
13 /// Any activity that changes the gift card balance is temporarily forbidden.
14 Blocked,
15 /// The gift card is pending activation. This is the initial state when a gift card is created.
16 /// You must activate the gift card before it can be used.
17 Pending,
18}