Class: Google::Apis::ContentV2_1::ReturnShipment
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnShipment
- 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
-
#creation_date ⇒ String
The date of creation of the shipment, in ISO 8601 format.
-
#delivery_date ⇒ String
The date of delivery of the shipment, in ISO 8601 format.
-
#return_method_type ⇒ String
Type of the return method.
-
#shipment_id ⇒ String
Shipment ID generated by Google.
-
#shipment_tracking_infos ⇒ Array<Google::Apis::ContentV2_1::ShipmentTrackingInfo>
Tracking information of the shipment.
-
#shipping_date ⇒ String
The date of shipping of the shipment, in ISO 8601 format.
-
#state ⇒ String
State of the shipment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnShipment
constructor
A new instance of ReturnShipment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReturnShipment
Returns a new instance of ReturnShipment.
11806 11807 11808 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11806 def initialize(**args) update!(**args) end |
Instance Attribute Details
#creation_date ⇒ String
The date of creation of the shipment, in ISO 8601 format.
Corresponds to the JSON property creationDate
11771 11772 11773 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11771 def creation_date @creation_date end |
#delivery_date ⇒ String
The date of delivery of the shipment, in ISO 8601 format.
Corresponds to the JSON property deliveryDate
11776 11777 11778 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11776 def delivery_date @delivery_date end |
#return_method_type ⇒ String
Type of the return method. Acceptable values are: - "byMail
" - "
contactCustomerSupport
" - "returnless
" - "inStore
"
Corresponds to the JSON property returnMethodType
11782 11783 11784 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11782 def return_method_type @return_method_type end |
#shipment_id ⇒ String
Shipment ID generated by Google.
Corresponds to the JSON property shipmentId
11787 11788 11789 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11787 def shipment_id @shipment_id end |
#shipment_tracking_infos ⇒ Array<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
11793 11794 11795 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11793 def shipment_tracking_infos @shipment_tracking_infos end |
#shipping_date ⇒ String
The date of shipping of the shipment, in ISO 8601 format.
Corresponds to the JSON property shippingDate
11798 11799 11800 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11798 def shipping_date @shipping_date end |
#state ⇒ String
State of the shipment. Acceptable values are: - "completed
" - "new
" - "
shipped
" - "undeliverable
" - "pending
"
Corresponds to the JSON property state
11804 11805 11806 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11804 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11811 11812 11813 11814 11815 11816 11817 11818 11819 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 11811 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 |