amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Amazon Seller Wallet Open Banking API
 *
 * The Selling Partner API for Seller Wallet (Seller Wallet API) provides financial information that is relevant to a seller's Seller Wallet account. You can obtain financial events, balances, and transfer schedules for Seller Wallet accounts. You can also schedule and initiate transactions.
 *
 * The version of the OpenAPI document: 2024-03-01
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// DeleteTransferSchedule : Response returned when the schedule transfer's delete request is successful.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeleteTransferSchedule {
    /// A success code that specifies the delete operation was successful. eg:HTTP 200.
    #[serde(rename = "code")]
    pub code: String,
    /// A message that describes the success condition of the delete schedule transaction.
    #[serde(rename = "message")]
    pub message: String,
    /// Additional details that can help the caller understand the operation execution.
    #[serde(rename = "details", skip_serializing_if = "Option::is_none")]
    pub details: Option<String>,
}

impl DeleteTransferSchedule {
    /// Response returned when the schedule transfer's delete request is successful.
    pub fn new(code: String, message: String) -> DeleteTransferSchedule {
        DeleteTransferSchedule {
            code,
            message,
            details: None,
        }
    }
}