Class: Google::Apis::ContentV2sandbox::OrderShipment
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2sandbox::OrderShipment
 
- 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
- 
  
    
      #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::ContentV2sandbox::OrderShipmentLineItemShipment> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The line items that are shipped. 
- 
  
    
      #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. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrderShipment
Returns a new instance of OrderShipment
| 1107 1108 1109 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1107 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#carrier ⇒ String
The carrier handling the shipment. Acceptable values are:
- "gsx"
- "ups"
- "usps"
- "fedex"
- "dhl"
- "ecourier"
- "cxt"
- "google"
- "ontrac"
- "emsy"
- "ont"
- "deliv"
- "dynamex"
- "lasership"
- "mpx"
- "uds"
Corresponds to the JSON property carrier
| 1074 1075 1076 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1074 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
| 1079 1080 1081 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1079 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 delievered
Corresponds to the JSON property deliveryDate
| 1085 1086 1087 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1085 def delivery_date @delivery_date end | 
#id ⇒ String
The id of the shipment.
Corresponds to the JSON property id
| 1090 1091 1092 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1090 def id @id end | 
#line_items ⇒ Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>
The line items that are shipped.
Corresponds to the JSON property lineItems
| 1095 1096 1097 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1095 def line_items @line_items end | 
#status ⇒ String
The status of the shipment.
Corresponds to the JSON property status
| 1100 1101 1102 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1100 def status @status end | 
#tracking_id ⇒ String
The tracking id for the shipment.
Corresponds to the JSON property trackingId
| 1105 1106 1107 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1105 def tracking_id @tracking_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1112 1113 1114 1115 1116 1117 1118 1119 1120 | # File 'generated/google/apis/content_v2sandbox/classes.rb', line 1112 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 |