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

/// PaymentPreference : Payment preference type in which transfer is being scheduled 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PaymentPreference {
    #[serde(rename = "paymentPreferencePaymentType")]
    pub payment_preference_payment_type: models::seller_wallet_2024_03_01::PaymentPreferencePaymentType,
    /// A decimal number such as amount or FX rate.
    #[serde(rename = "value")]
    pub value: f64,
}

impl PaymentPreference {
    /// Payment preference type in which transfer is being scheduled 
    pub fn new(payment_preference_payment_type: models::seller_wallet_2024_03_01::PaymentPreferencePaymentType, value: f64) -> PaymentPreference {
        PaymentPreference {
            payment_preference_payment_type,
            value,
        }
    }
}