Skip to main content

hermes_ebay_sell_fulfillment/models/
program.rs

1/*
2 * Fulfillment API
3 *
4 * Use the Fulfillment API to complete the process of packaging, addressing, handling, and shipping each order on behalf of the seller, in accordance with the payment method and timing specified at checkout.
5 *
6 * The version of the OpenAPI document: v1.20.7
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 : This type is returned for order line items eligible for the Authenticity Guarantee service and/or for order line items fulfilled by the eBay Fulfillment program or eBay shipping.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Program {
17    #[serde(rename = "authenticityVerification", skip_serializing_if = "Option::is_none")]
18    pub authenticity_verification: Option<Box<models::PostSaleAuthenticationProgram>>,
19    #[serde(rename = "ebayShipping", skip_serializing_if = "Option::is_none")]
20    pub ebay_shipping: Option<Box<models::EbayShipping>>,
21    #[serde(rename = "ebayVault", skip_serializing_if = "Option::is_none")]
22    pub ebay_vault: Option<Box<models::EbayVaultProgram>>,
23    #[serde(rename = "ebayInternationalShipping", skip_serializing_if = "Option::is_none")]
24    pub ebay_international_shipping: Option<Box<models::EbayInternationalShipping>>,
25    #[serde(rename = "fulfillmentProgram", skip_serializing_if = "Option::is_none")]
26    pub fulfillment_program: Option<Box<models::EbayFulfillmentProgram>>,
27}
28
29impl Program {
30    /// This type is returned for order line items eligible for the Authenticity Guarantee service and/or for order line items fulfilled by the eBay Fulfillment program or eBay shipping.
31    pub fn new() -> Program {
32        Program {
33            authenticity_verification: None,
34            ebay_shipping: None,
35            ebay_vault: None,
36            ebay_international_shipping: None,
37            fulfillment_program: None,
38        }
39    }
40}
41