Class: Google::Apis::ContentV2_1::ReturnShipment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/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) ⇒ ReturnShipment

Returns a new instance of ReturnShipment.



8863
8864
8865
# File 'generated/google/apis/content_v2_1/classes.rb', line 8863

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

Instance Attribute Details

#creation_dateString

The date of creation of the shipment, in ISO 8601 format. Corresponds to the JSON property creationDate

Returns:

  • (String)


8830
8831
8832
# File 'generated/google/apis/content_v2_1/classes.rb', line 8830

def creation_date
  @creation_date
end

#delivery_dateString

The date of delivery of the shipment, in ISO 8601 format. Corresponds to the JSON property deliveryDate

Returns:

  • (String)


8835
8836
8837
# File 'generated/google/apis/content_v2_1/classes.rb', line 8835

def delivery_date
  @delivery_date
end

#return_method_typeString

Type of the return method. Corresponds to the JSON property returnMethodType

Returns:

  • (String)


8840
8841
8842
# File 'generated/google/apis/content_v2_1/classes.rb', line 8840

def return_method_type
  @return_method_type
end

#shipment_idString

Shipment ID generated by Google. Corresponds to the JSON property shipmentId

Returns:

  • (String)


8845
8846
8847
# File 'generated/google/apis/content_v2_1/classes.rb', line 8845

def shipment_id
  @shipment_id
end

#shipment_tracking_infosArray<Google::Apis::ContentV2_1::ShipmentTrackingInfo>

Tracking information of the shipment. One return shipment might be handled by several shipping carriers sequentially. Corresponds to the JSON property shipmentTrackingInfos



8851
8852
8853
# File 'generated/google/apis/content_v2_1/classes.rb', line 8851

def shipment_tracking_infos
  @shipment_tracking_infos
end

#shipping_dateString

The date of shipping of the shipment, in ISO 8601 format. Corresponds to the JSON property shippingDate

Returns:

  • (String)


8856
8857
8858
# File 'generated/google/apis/content_v2_1/classes.rb', line 8856

def shipping_date
  @shipping_date
end

#stateString

State of the shipment. Corresponds to the JSON property state

Returns:

  • (String)


8861
8862
8863
# File 'generated/google/apis/content_v2_1/classes.rb', line 8861

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8868
8869
8870
8871
8872
8873
8874
8875
8876
# File 'generated/google/apis/content_v2_1/classes.rb', line 8868

def update!(**args)
  @creation_date = args[:creation_date] if args.key?(:creation_date)
  @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
  @return_method_type = args[:return_method_type] if args.key?(:return_method_type)
  @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
  @shipment_tracking_infos = args[:shipment_tracking_infos] if args.key?(:shipment_tracking_infos)
  @shipping_date = args[:shipping_date] if args.key?(:shipping_date)
  @state = args[:state] if args.key?(:state)
end