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

/// GetPaymentMethodsResponse : The response schema for the `getPaymentMethods` operation.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetPaymentMethodsResponse {
    /// The list of payment methods with payment method details.
    #[serde(rename = "paymentMethods", skip_serializing_if = "Option::is_none")]
    pub payment_methods: Option<Vec<models::transfers_2024_06_01::PaymentMethodDetails>>,
}

impl GetPaymentMethodsResponse {
    /// The response schema for the `getPaymentMethods` operation.
    pub fn new() -> GetPaymentMethodsResponse {
        GetPaymentMethodsResponse {
            payment_methods: None,
        }
    }
}