Class: Google::Apis::ContentV2sandbox::OrderShipment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2sandbox/classes.rb,
generated/google/apis/content_v2sandbox/representations.rb,
generated/google/apis/content_v2sandbox/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderShipment

Returns a new instance of OrderShipment



1048
1049
1050
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1048

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#carrierString

The carrier handling the shipment. Acceptable values are:

  • "gsx"
  • "ups"
  • "united parcel service"
  • "usps"
  • "united states postal service"
  • "fedex"
  • "dhl"
  • "ecourier"
  • "cxt"
  • "google"
  • "on trac"
  • "ontrac"
  • "on-trac"
  • "on_trac"
  • "delvic"
  • "dynamex"
  • "lasership"
  • "smartpost"
  • "fedex smartpost"
  • "mpx"
  • "uds"
  • "united delivery service" Corresponds to the JSON property carrier

Returns:

  • (String)


1015
1016
1017
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1015

def carrier
  @carrier
end

#creation_dateString

Date on which the shipment has been created, in ISO 8601 format. Corresponds to the JSON property creationDate

Returns:

  • (String)


1020
1021
1022
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1020

def creation_date
  @creation_date
end

#delivery_dateString

Date on which the shipment has been delivered, in ISO 8601 format. Present only if status is delievered Corresponds to the JSON property deliveryDate

Returns:

  • (String)


1026
1027
1028
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1026

def delivery_date
  @delivery_date
end

#idString

The id of the shipment. Corresponds to the JSON property id

Returns:

  • (String)


1031
1032
1033
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1031

def id
  @id
end

#line_itemsArray<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>

The line items that are shipped. Corresponds to the JSON property lineItems



1036
1037
1038
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1036

def line_items
  @line_items
end

#statusString

The status of the shipment. Corresponds to the JSON property status

Returns:

  • (String)


1041
1042
1043
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1041

def status
  @status
end

#tracking_idString

The tracking id for the shipment. Corresponds to the JSON property trackingId

Returns:

  • (String)


1046
1047
1048
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1046

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1053
1054
1055
1056
1057
1058
1059
1060
1061
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1053

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)
  @status = args[:status] if args.key?(:status)
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end