amazon_spapi/models/merchant_fulfillment_v0/label_customization.rs
1/*
2 * Selling Partner API for Merchant Fulfillment
3 *
4 * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon's Buy Shipping Services.
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// LabelCustomization : Custom text for shipping labels.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LabelCustomization {
17 /// Custom text to print on the label. Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support `CustomTextForLabel`.
18 #[serde(rename = "CustomTextForLabel", skip_serializing_if = "Option::is_none")]
19 pub custom_text_for_label: Option<String>,
20 #[serde(rename = "StandardIdForLabel", skip_serializing_if = "Option::is_none")]
21 pub standard_id_for_label: Option<models::merchant_fulfillment_v0::StandardIdForLabel>,
22}
23
24impl LabelCustomization {
25 /// Custom text for shipping labels.
26 pub fn new() -> LabelCustomization {
27 LabelCustomization {
28 custom_text_for_label: None,
29 standard_id_for_label: None,
30 }
31 }
32}
33