Class: Google::Apis::ContentV2_1::OrderTrackingSignal
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderTrackingSignal
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Represents a merchant trade from which signals are extracted, e.g. shipping.
Instance Attribute Summary collapse
-
#customer_shipping_fee ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
-
#delivery_postal_code ⇒ String
Required.
-
#delivery_region_code ⇒ String
Required.
-
#line_items ⇒ Array<Google::Apis::ContentV2_1::OrderTrackingSignalLineItemDetails>
Information about line items in the order.
-
#merchant_id ⇒ Fixnum
The Google merchant ID of this order tracking signal.
-
#order_created_time ⇒ Google::Apis::ContentV2_1::DateTime
Represents civil time (or occasionally physical time).
-
#order_id ⇒ String
Required.
-
#order_tracking_signal_id ⇒ Fixnum
Output only.
-
#shipment_line_item_mapping ⇒ Array<Google::Apis::ContentV2_1::OrderTrackingSignalShipmentLineItemMapping>
The mapping of the line items to the shipment information.
-
#shipping_info ⇒ Array<Google::Apis::ContentV2_1::OrderTrackingSignalShippingInfo>
The shipping information for the order.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderTrackingSignal
constructor
A new instance of OrderTrackingSignal.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderTrackingSignal
Returns a new instance of OrderTrackingSignal.
6878 6879 6880 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6878 def initialize(**args) update!(**args) end |
Instance Attribute Details
#customer_shipping_fee ⇒ Google::Apis::ContentV2_1::PriceAmount
The price represented as a number and currency.
Corresponds to the JSON property customerShippingFee
6810 6811 6812 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6810 def customer_shipping_fee @customer_shipping_fee end |
#delivery_postal_code ⇒ String
Required. The delivery postal code, as a continuous string without spaces or
dashes, e.g. "95016". This field will be anonymized in returned
OrderTrackingSignal creation response.
Corresponds to the JSON property deliveryPostalCode
6817 6818 6819 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6817 def delivery_postal_code @delivery_postal_code end |
#delivery_region_code ⇒ String
Required. The CLDR territory code for the shipping destination.
Corresponds to the JSON property deliveryRegionCode
6823 6824 6825 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6823 def delivery_region_code @delivery_region_code end |
#line_items ⇒ Array<Google::Apis::ContentV2_1::OrderTrackingSignalLineItemDetails>
Information about line items in the order.
Corresponds to the JSON property lineItems
6828 6829 6830 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6828 def line_items @line_items end |
#merchant_id ⇒ Fixnum
The Google merchant ID of this order tracking signal. This value is optional.
If left unset, the caller's merchant ID is used. You must request access in
order to provide data on behalf of another merchant. For more information, see
Submitting Order Tracking Signals.
Corresponds to the JSON property merchantId
6837 6838 6839 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6837 def merchant_id @merchant_id end |
#order_created_time ⇒ Google::Apis::ContentV2_1::DateTime
Represents civil time (or occasionally physical time). This type can represent
a civil time in one of a few possible ways: * When utc_offset is set and
time_zone is unset: a civil time on a calendar day with a particular offset
from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
calendar day in a particular time zone. * When neither time_zone nor
utc_offset is set: a civil time on a calendar day in local time. The date is
relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
considered not to have a specific year. month and day must have valid, non-
zero values. This type may also be used to represent a physical time if all
the date and time fields are set and either case of the time_offset oneof is
set. Consider using Timestamp message for physical time instead. If your use
case also would like to store the user's timezone, that can be done in another
field. This type is more flexible than some applications may want. Make sure
to document and validate your application's limitations.
Corresponds to the JSON property orderCreatedTime
6855 6856 6857 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6855 def order_created_time @order_created_time end |
#order_id ⇒ String
Required. The ID of the order on the merchant side. This field will be hashed
in returned OrderTrackingSignal creation response.
Corresponds to the JSON property orderId
6861 6862 6863 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6861 def order_id @order_id end |
#order_tracking_signal_id ⇒ Fixnum
Output only. The ID that uniquely identifies this order tracking signal.
Corresponds to the JSON property orderTrackingSignalId
6866 6867 6868 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6866 def order_tracking_signal_id @order_tracking_signal_id end |
#shipment_line_item_mapping ⇒ Array<Google::Apis::ContentV2_1::OrderTrackingSignalShipmentLineItemMapping>
The mapping of the line items to the shipment information.
Corresponds to the JSON property shipmentLineItemMapping
6871 6872 6873 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6871 def shipment_line_item_mapping @shipment_line_item_mapping end |
#shipping_info ⇒ Array<Google::Apis::ContentV2_1::OrderTrackingSignalShippingInfo>
The shipping information for the order.
Corresponds to the JSON property shippingInfo
6876 6877 6878 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6876 def shipping_info @shipping_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6883 def update!(**args) @customer_shipping_fee = args[:customer_shipping_fee] if args.key?(:customer_shipping_fee) @delivery_postal_code = args[:delivery_postal_code] if args.key?(:delivery_postal_code) @delivery_region_code = args[:delivery_region_code] if args.key?(:delivery_region_code) @line_items = args[:line_items] if args.key?(:line_items) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @order_created_time = args[:order_created_time] if args.key?(:order_created_time) @order_id = args[:order_id] if args.key?(:order_id) @order_tracking_signal_id = args[:order_tracking_signal_id] if args.key?(:order_tracking_signal_id) @shipment_line_item_mapping = args[:shipment_line_item_mapping] if args.key?(:shipment_line_item_mapping) @shipping_info = args[:shipping_info] if args.key?(:shipping_info) end |