Skip to main content

hermes_ebay_sell_account/models/
programs.rs

1/*
2 * Account v1 API
3 *
4 * The <b>Account API</b> gives sellers the ability to configure their eBay seller accounts, including the seller's policies (eBay business policies and seller-defined custom policies), opt in and out of eBay seller programs, configure sales tax tables, and get account information.  <br><br>For details on the availability of the methods in this API, see <a href=\"/api-docs/sell/account/overview.html#requirements\">Account API requirements and restrictions</a>.
5 *
6 * The version of the OpenAPI document: v1.9.2
7 * Contact: your-email@example.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Programs : The base response type of the <b>getOptedInPrograms</b> method.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Programs {
17    /// An array of seller programs that the seller's account is opted in to. An empty array is returned if the seller is not opted in to any of the seller programs.
18    #[serde(rename = "programs", skip_serializing_if = "Option::is_none")]
19    pub programs: Option<Vec<models::Program>>,
20}
21
22impl Programs {
23    /// The base response type of the <b>getOptedInPrograms</b> method.
24    pub fn new() -> Programs {
25        Programs {
26            programs: None,
27        }
28    }
29}
30