Class: Google::Apis::ContentV2_1::OrderTrackingSignalShippingInfo
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderTrackingSignalShippingInfo
- 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
The shipping information for the order.
Instance Attribute Summary collapse
-
#actual_delivery_time ⇒ Google::Apis::ContentV2_1::DateTime
Represents civil time (or occasionally physical time).
-
#carrier_name ⇒ String
The name of the shipping carrier for the delivery.
-
#carrier_service_name ⇒ String
The service type for fulfillment, e.g., GROUND, FIRST_CLASS, etc.
-
#earliest_delivery_promise_time ⇒ Google::Apis::ContentV2_1::DateTime
Represents civil time (or occasionally physical time).
-
#latest_delivery_promise_time ⇒ Google::Apis::ContentV2_1::DateTime
Represents civil time (or occasionally physical time).
-
#origin_postal_code ⇒ String
The origin postal code, as a continuous string without spaces or dashes, e.g.
-
#origin_region_code ⇒ String
The CLDR territory code for the shipping origin.
-
#shipment_id ⇒ String
Required.
-
#shipped_time ⇒ Google::Apis::ContentV2_1::DateTime
Represents civil time (or occasionally physical time).
-
#shipping_status ⇒ String
The status of the shipment.
-
#tracking_id ⇒ String
The tracking ID of the shipment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderTrackingSignalShippingInfo
constructor
A new instance of OrderTrackingSignalShippingInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderTrackingSignalShippingInfo
Returns a new instance of OrderTrackingSignalShippingInfo.
6591 6592 6593 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6591 def initialize(**args) update!(**args) end |
Instance Attribute Details
#actual_delivery_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 actualDeliveryTime
6494 6495 6496 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6494 def actual_delivery_time @actual_delivery_time end |
#carrier_name ⇒ String
The name of the shipping carrier for the delivery. This field is required if
one of the following fields is absent: earliest_delivery_promise_time,
latest_delivery_promise_time, and actual_delivery_time.
Corresponds to the JSON property carrierName
6501 6502 6503 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6501 def carrier_name @carrier_name end |
#carrier_service_name ⇒ String
The service type for fulfillment, e.g., GROUND, FIRST_CLASS, etc.
Corresponds to the JSON property carrierServiceName
6506 6507 6508 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6506 def carrier_service_name @carrier_service_name end |
#earliest_delivery_promise_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 earliestDeliveryPromiseTime
6524 6525 6526 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6524 def earliest_delivery_promise_time @earliest_delivery_promise_time end |
#latest_delivery_promise_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 latestDeliveryPromiseTime
6542 6543 6544 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6542 def latest_delivery_promise_time @latest_delivery_promise_time end |
#origin_postal_code ⇒ String
The origin postal code, as a continuous string without spaces or dashes, e.g. "
95016".
Corresponds to the JSON property originPostalCode
6548 6549 6550 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6548 def origin_postal_code @origin_postal_code end |
#origin_region_code ⇒ String
The CLDR territory code for the shipping origin.
Corresponds to the JSON property originRegionCode
6554 6555 6556 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6554 def origin_region_code @origin_region_code end |
#shipment_id ⇒ String
Required. The shipment ID.
Corresponds to the JSON property shipmentId
6559 6560 6561 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6559 def shipment_id @shipment_id end |
#shipped_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 shippedTime
6577 6578 6579 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6577 def shipped_time @shipped_time end |
#shipping_status ⇒ String
The status of the shipment.
Corresponds to the JSON property shippingStatus
6582 6583 6584 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6582 def shipping_status @shipping_status end |
#tracking_id ⇒ String
The tracking ID of the shipment. This field is required if one of the
following fields is absent: earliest_delivery_promise_time,
latest_delivery_promise_time, and actual_delivery_time.
Corresponds to the JSON property trackingId
6589 6590 6591 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6589 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6596 def update!(**args) @actual_delivery_time = args[:actual_delivery_time] if args.key?(:actual_delivery_time) @carrier_name = args[:carrier_name] if args.key?(:carrier_name) @carrier_service_name = args[:carrier_service_name] if args.key?(:carrier_service_name) @earliest_delivery_promise_time = args[:earliest_delivery_promise_time] if args.key?(:earliest_delivery_promise_time) @latest_delivery_promise_time = args[:latest_delivery_promise_time] if args.key?(:latest_delivery_promise_time) @origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code) @origin_region_code = args[:origin_region_code] if args.key?(:origin_region_code) @shipment_id = args[:shipment_id] if args.key?(:shipment_id) @shipped_time = args[:shipped_time] if args.key?(:shipped_time) @shipping_status = args[:shipping_status] if args.key?(:shipping_status) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end |