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};

/// InitiatePayoutRequest : The request schema for the `initiatePayout` operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InitiatePayoutRequest {
    /// The identifier of the Amazon marketplace. For the list of all marketplace IDs, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
    #[serde(rename = "marketplaceId")]
    pub marketplace_id: String,
    /// The account type in the selected marketplace for which a payout must be initiated. For supported EU marketplaces, the only account type is `Standard Orders`.
    #[serde(rename = "accountType")]
    pub account_type: String,
}

impl InitiatePayoutRequest {
    /// The request schema for the `initiatePayout` operation.
    pub fn new(marketplace_id: String, account_type: String) -> InitiatePayoutRequest {
        InitiatePayoutRequest {
            marketplace_id,
            account_type,
        }
    }
}