pub struct TransactionAttribute {
pub transaction_date_time: String,
pub transaction_amount_micros: f64,
pub currency_code: String,
pub conversion_action: String,
pub order_id: String,
pub store_attribute: Option<StoreAttribute>,
pub custom_value: String,
pub item_attribute: Option<ItemAttribute>,
}
Expand description
Attribute of the store sales transaction.
Fields§
§transaction_date_time: String
Timestamp when transaction occurred. Required. The format is “YYYY-MM-DD HH:MM:SS[+/-HH:MM]”, where [+/-HH:MM] is an optional timezone offset from UTC. If the offset is absent, the API will use the account’s timezone as default. Examples: “2018-03-05 09:15:00” or “2018-02-01 14:34:30+03:00”
transaction_amount_micros: f64
Transaction amount in micros. Required. Transaction amount in micros needs to be greater than 1000. If item Attributes are provided, it represents the total value of the items, after multiplying the unit price per item by the quantity provided in the ItemAttributes.
currency_code: String
Transaction currency code. ISO 4217 three-letter code is used. Required.
conversion_action: String
The resource name of conversion action to report conversions to. Required.
order_id: String
Transaction order id. Accessible only to customers on the allow-list.
store_attribute: Option<StoreAttribute>
Store attributes of the transaction. Accessible only to customers on the allow-list.
custom_value: String
Value of the custom variable for each transaction. Accessible only to customers on the allow-list.
item_attribute: Option<ItemAttribute>
Item attributes of the transaction.
Trait Implementations§
Source§impl Clone for TransactionAttribute
impl Clone for TransactionAttribute
Source§fn clone(&self) -> TransactionAttribute
fn clone(&self) -> TransactionAttribute
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransactionAttribute
impl Debug for TransactionAttribute
Source§impl Default for TransactionAttribute
impl Default for TransactionAttribute
Source§impl Message for TransactionAttribute
impl Message for TransactionAttribute
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for TransactionAttribute
impl PartialEq for TransactionAttribute
impl StructuralPartialEq for TransactionAttribute
Auto Trait Implementations§
impl Freeze for TransactionAttribute
impl RefUnwindSafe for TransactionAttribute
impl Send for TransactionAttribute
impl Sync for TransactionAttribute
impl Unpin for TransactionAttribute
impl UnwindSafe for TransactionAttribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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