Class: Google::Apis::ContentV2_1::OrderShipment
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderShipment
- 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
Instance Attribute Summary collapse
-
#carrier ⇒ String
The carrier handling the shipment.
-
#creation_date ⇒ String
Date on which the shipment has been created, in ISO 8601 format.
-
#delivery_date ⇒ String
Date on which the shipment has been delivered, in ISO 8601 format.
-
#id ⇒ String
The ID of the shipment.
-
#line_items ⇒ Array<Google::Apis::ContentV2_1::OrderShipmentLineItemShipment>
The line items that are shipped.
-
#scheduled_delivery_details ⇒ Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails
Delivery details of the shipment if scheduling is needed.
-
#shipment_group_id ⇒ String
The shipment group ID of the shipment.
-
#status ⇒ String
The status of the shipment.
-
#tracking_id ⇒ String
The tracking ID for the shipment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderShipment
constructor
A new instance of OrderShipment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderShipment
Returns a new instance of OrderShipment.
6228 6229 6230 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6228 def initialize(**args) update!(**args) end |
Instance Attribute Details
#carrier ⇒ String
The carrier handling the shipment. For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. Supported carriers for US are:
- "
ups" (United Parcel Service) automatic status updates - "usps" ( United States Postal Service) automatic status updates - "fedex" (FedEx) * automatic status updates * - "dhl" (DHL eCommerce) automatic status updates (US only) - "ontrac" (OnTrac) automatic status updates * - "dhl express" (DHL Express) - "deliv" (Deliv) - "dynamex" (TForce) - "lasership" ( LaserShip) - "mpx" (Military Parcel Xpress) - "uds" (United Delivery Service) - "efw" (Estes Forwarding Worldwide) - "jd logistics" (JD Logistics) - "yunexpress" (YunExpress) - "china post" (China Post) - "china ems" (China Post Express Mail Service) - "singapore post" (Singapore Post) - "pos malaysia" (Pos Malaysia) - "postnl" (PostNL) - "ptt" (PTT Turkish Post) - "eub" (ePacket) - "chukou1" (Chukou1 Logistics) - "bestex" (Best Express) - "canada post" (Canada Post) - "purolator" (Purolator) - "canpar" (Canpar) - "india post" (India Post) - "blue dart" (Blue Dart) - "delhivery" (Delhivery) - "dtdc" (DTDC) - "tpc india" (TPC India) Supported carriers for FR are: - "la poste" (La Poste) *automatic status updates * - "colissimo" (Colissimo by La Poste) *automatic status updates - "ups" (United Parcel Service) *automatic status updates * - "chronopost" ( Chronopost by La Poste) - "gls" (General Logistics Systems France) - "dpd" (DPD Group by GeoPost) - "bpost" (Belgian Post Group) - "colis prive" ( Colis Privé) - "boxtal" (Boxtal) - "geodis" (GEODIS) - "tnt" (TNT) - "db schenker" (DB Schenker) - "aramex" (Aramex) Corresponds to the JSON propertycarrier
6184 6185 6186 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6184 def carrier @carrier end |
#creation_date ⇒ String
Date on which the shipment has been created, in ISO 8601 format.
Corresponds to the JSON property creationDate
6189 6190 6191 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6189 def creation_date @creation_date end |
#delivery_date ⇒ String
Date on which the shipment has been delivered, in ISO 8601 format. Present
only if status is delivered
Corresponds to the JSON property deliveryDate
6195 6196 6197 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6195 def delivery_date @delivery_date end |
#id ⇒ String
The ID of the shipment.
Corresponds to the JSON property id
6200 6201 6202 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6200 def id @id end |
#line_items ⇒ Array<Google::Apis::ContentV2_1::OrderShipmentLineItemShipment>
The line items that are shipped.
Corresponds to the JSON property lineItems
6205 6206 6207 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6205 def line_items @line_items end |
#scheduled_delivery_details ⇒ Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails
Delivery details of the shipment if scheduling is needed.
Corresponds to the JSON property scheduledDeliveryDetails
6210 6211 6212 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6210 def scheduled_delivery_details @scheduled_delivery_details end |
#shipment_group_id ⇒ String
The shipment group ID of the shipment. This is set in shiplineitems request.
Corresponds to the JSON property shipmentGroupId
6215 6216 6217 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6215 def shipment_group_id @shipment_group_id end |
#status ⇒ String
The status of the shipment. Acceptable values are: - "delivered" - "
readyForPickup" - "shipped" - "undeliverable"
Corresponds to the JSON property status
6221 6222 6223 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6221 def status @status end |
#tracking_id ⇒ String
The tracking ID for the shipment.
Corresponds to the JSON property trackingId
6226 6227 6228 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6226 def tracking_id @tracking_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6233 def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) @creation_date = args[:creation_date] if args.key?(:creation_date) @delivery_date = args[:delivery_date] if args.key?(:delivery_date) @id = args[:id] if args.key?(:id) @line_items = args[:line_items] if args.key?(:line_items) @scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details) @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id) @status = args[:status] if args.key?(:status) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end |