amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Transfers.
 *
 * The Selling Partner API for Transfers enables selling partners to retrieve payment methods and initiate payouts for their seller accounts. This API supports the following marketplaces: DE, FR, IT, ES, SE, NL, PL, and BE.
 *
 * The version of the OpenAPI document: 2024-06-01
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// InitiatePayoutResponse : The response schema for the `initiatePayout` operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InitiatePayoutResponse {
    /// The financial event group ID for a successfully initiated payout. You can use this ID to track payout information.
    #[serde(rename = "payoutReferenceId")]
    pub payout_reference_id: String,
}

impl InitiatePayoutResponse {
    /// The response schema for the `initiatePayout` operation.
    pub fn new(payout_reference_id: String) -> InitiatePayoutResponse {
        InitiatePayoutResponse {
            payout_reference_id,
        }
    }
}