square_api_client/models/enums/order_line_item_discount_scope.rs
1//! Model for OrderLineItemDiscountScope enum
2
3use serde::{Deserialize, Serialize};
4
5/// Indicates whether this is a line-item or order-level discount.
6#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8pub enum OrderLineItemDiscountScope {
9 /// Used for reporting only. The original transaction discount scope is currently not supported
10 /// by the API.
11 OtherDiscountScope,
12 /// The discount should be applied to only line items specified by OrderLineItemAppliedDiscount
13 /// reference records.
14 LineItem,
15 /// The discount should be applied to the entire order.
16 Order,
17}