class Google::Apis::ContentV2_1::OrderTrackingSignalShippingInfo

The shipping information for the order.

Attributes

actual_delivery_time[RW]

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` @return [Google::Apis::ContentV2_1::DateTime]

carrier_name[RW]

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` @return [String]

carrier_service_name[RW]

The service type for fulfillment, e.g., GROUND, FIRST_CLASS, etc. Corresponds to the JSON property `carrierServiceName` @return [String]

earliest_delivery_promise_time[RW]

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` @return [Google::Apis::ContentV2_1::DateTime]

latest_delivery_promise_time[RW]

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` @return [Google::Apis::ContentV2_1::DateTime]

origin_postal_code[RW]

The origin 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 `originPostalCode` @return [String]

origin_region_code[RW]

The [CLDR territory code] (www.unicode.org/repos/cldr/tags/latest/ common/main/en.xml) for the shipping origin. Corresponds to the JSON property `originRegionCode` @return [String]

shipment_id[RW]

Required. The shipment ID. This field will be hashed in returned OrderTrackingSignal creation response. Corresponds to the JSON property `shipmentId` @return [String]

shipped_time[RW]

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` @return [Google::Apis::ContentV2_1::DateTime]

shipping_status[RW]

The status of the shipment. Corresponds to the JSON property `shippingStatus` @return [String]

tracking_id[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2_1/classes.rb, line 7011
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 7016
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