Class: Google::Apis::ContentV2::ReturnShipment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReturnShipment

Returns a new instance of ReturnShipment.



10387
10388
10389
# File 'lib/google/apis/content_v2/classes.rb', line 10387

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)


10352
10353
10354
# File 'lib/google/apis/content_v2/classes.rb', line 10352

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)


10357
10358
10359
# File 'lib/google/apis/content_v2/classes.rb', line 10357

def delivery_date
  @delivery_date
end

#return_method_typeString

Type of the return method. Acceptable values are: - "byMail" - " contactCustomerSupport" - "returnless" Corresponds to the JSON property returnMethodType

Returns:

  • (String)


10363
10364
10365
# File 'lib/google/apis/content_v2/classes.rb', line 10363

def return_method_type
  @return_method_type
end

#shipment_idString

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

Returns:

  • (String)


10368
10369
10370
# File 'lib/google/apis/content_v2/classes.rb', line 10368

def shipment_id
  @shipment_id
end

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

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



10374
10375
10376
# File 'lib/google/apis/content_v2/classes.rb', line 10374

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)


10379
10380
10381
# File 'lib/google/apis/content_v2/classes.rb', line 10379

def shipping_date
  @shipping_date
end

#stateString

State of the shipment. Acceptable values are: - "completed" - "new" - " shipped" - "undeliverable" - "pending" Corresponds to the JSON property state

Returns:

  • (String)


10385
10386
10387
# File 'lib/google/apis/content_v2/classes.rb', line 10385

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10392
10393
10394
10395
10396
10397
10398
10399
10400
# File 'lib/google/apis/content_v2/classes.rb', line 10392

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