square_api_client/models/create_gift_card_activity_request.rs
1//! Request body struct for the Create Gift Card Activity API
2
3use serde::Serialize;
4
5use super::GiftCardActivity;
6
7/// This is a model struct for CreateGiftCardActivityRequest type
8#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
9pub struct CreateGiftCardActivityRequest {
10 /// A unique string that identifies the CreateGiftCardActivity request.
11 ///
12 /// Min Length: 1 Max Length: 128
13 pub idempotency_key: String,
14 /// The activity to create for the gift card. This activity must specify `gift_card_id` or
15 /// `gift_card_gan` for the target gift card, the `location_id` where the activity occurred, and
16 /// the activity `type` along with the corresponding activity details.
17 pub gift_card_activity: GiftCardActivity,
18}