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



8173
8174
8175
# File 'generated/google/apis/content_v2_1/classes.rb', line 8173

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

Instance Attribute Details

#creation_dateString

Corresponds to the JSON property creationDate

Returns:

  • (String)


8156
8157
8158
# File 'generated/google/apis/content_v2_1/classes.rb', line 8156

def creation_date
  @creation_date
end

#return_method_typeString

Corresponds to the JSON property returnMethodType

Returns:

  • (String)


8161
8162
8163
# File 'generated/google/apis/content_v2_1/classes.rb', line 8161

def return_method_type
  @return_method_type
end

#shipment_idString

Corresponds to the JSON property shipmentId

Returns:

  • (String)


8166
8167
8168
# File 'generated/google/apis/content_v2_1/classes.rb', line 8166

def shipment_id
  @shipment_id
end

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

Corresponds to the JSON property shipmentTrackingInfos



8171
8172
8173
# File 'generated/google/apis/content_v2_1/classes.rb', line 8171

def shipment_tracking_infos
  @shipment_tracking_infos
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8178
8179
8180
8181
8182
8183
# File 'generated/google/apis/content_v2_1/classes.rb', line 8178

def update!(**args)
  @creation_date = args[:creation_date] if args.key?(:creation_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)
end