Skip to main content

hermes_ebay_sell_account/models/
program.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/// Program : The seller program to opt in to when part of an <b>optInToProgram</b> request, or out of when part of an  <b>optOutOfProgram</b> request.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Program {
17    /// The seller program to opt in to when part of an <b>optInToProgram</b> request, or out of when part of an  <b>optOutOfProgram</b> request. When returned in an <b>getOptedInPrograms</b> response, a separate <b>programType</b> field is returned for each seller program that the seller is opted in to. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ProgramTypeEnum'>eBay API documentation</a>
18    #[serde(rename = "programType", skip_serializing_if = "Option::is_none")]
19    pub program_type: Option<String>,
20}
21
22impl Program {
23    /// The seller program to opt in to when part of an <b>optInToProgram</b> request, or out of when part of an  <b>optOutOfProgram</b> request.
24    pub fn new() -> Program {
25        Program {
26            program_type: None,
27        }
28    }
29}
30