pub struct LfpSale {
pub name: String,
pub target_account: i64,
pub store_code: String,
pub offer_id: String,
pub region_code: String,
pub content_language: String,
pub gtin: String,
pub price: Option<Price>,
pub quantity: i64,
pub sale_time: Option<Timestamp>,
pub uid: Option<String>,
pub feed_label: Option<String>,
}
Expand description
A sale for the merchant.
Fields§
§name: String
Output only. Identifier. The name of the LfpSale
resource.
Format:
accounts/{account}/lfpSales/{sale}
target_account: i64
Required. The Merchant Center ID of the merchant to submit the sale for.
store_code: String
Required. The identifier of the merchant’s store. Either a storeCode
inserted through the API or the code of the store in the Business Profile.
offer_id: String
Required. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product.
Note: if the merchant sells the same product new and used, they should have different IDs.
region_code: String
Required. The CLDR territory code for the country where the product is sold.
content_language: String
Required. The two-letter ISO 639-1 language code for the item.
gtin: String
Required. The Global Trade Item Number of the sold product.
price: Option<Price>
Required. The unit price of the product.
quantity: i64
Required. The relative change of the available quantity. Negative for items returned.
sale_time: Option<Timestamp>
Required. The timestamp for the sale.
uid: Option<String>
Output only. System generated globally unique ID for the LfpSale
.
feed_label: Option<String>
Optional. The feed
label
for the product. If this is not set, it will default to regionCode
.
Implementations§
Trait Implementations§
source§impl Message for LfpSale
impl Message for LfpSale
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for LfpSale
impl PartialEq for LfpSale
impl StructuralPartialEq for LfpSale
Auto Trait Implementations§
impl Freeze for LfpSale
impl RefUnwindSafe for LfpSale
impl Send for LfpSale
impl Sync for LfpSale
impl Unpin for LfpSale
impl UnwindSafe for LfpSale
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request