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

/// ExpiryDate : The expiration date of the card used for payment. If the payment method is not `card`, the expiration date is `null`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ExpiryDate {
    /// The month the card expires expressed as a number from `1` to `12`.
    #[serde(rename = "month", skip_serializing_if = "Option::is_none")]
    pub month: Option<String>,
    /// Year
    #[serde(rename = "year", skip_serializing_if = "Option::is_none")]
    pub year: Option<String>,
}

impl ExpiryDate {
    /// The expiration date of the card used for payment. If the payment method is not `card`, the expiration date is `null`.
    pub fn new() -> ExpiryDate {
        ExpiryDate {
            month: None,
            year: None,
        }
    }
}