Class: Google::Apis::ContentV2sandbox::OrdersShipLineItemsRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

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) ⇒ OrdersShipLineItemsRequest

Returns a new instance of OrdersShipLineItemsRequest



3284
3285
3286
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3284

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

Instance Attribute Details

#carrierString

Deprecated. Please use shipmentInfo instead. The carrier handling the shipment. See shipments[].carrier in the Orders resource representation for a list of acceptable values. Corresponds to the JSON property carrier

Returns:

  • (String)


3250
3251
3252
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3250

def carrier
  @carrier
end

#line_itemsArray<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>

Line items to ship. Corresponds to the JSON property lineItems



3255
3256
3257
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3255

def line_items
  @line_items
end

#operation_idString

The ID of the operation. Unique across all operations for a given order. Corresponds to the JSON property operationId

Returns:

  • (String)


3260
3261
3262
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3260

def operation_id
  @operation_id
end

#shipment_group_idString

ID of the shipment group. Required for orders that use the orderinvoices service. Corresponds to the JSON property shipmentGroupId

Returns:

  • (String)


3266
3267
3268
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3266

def shipment_group_id
  @shipment_group_id
end

#shipment_idString

Deprecated. Please use shipmentInfo instead. The ID of the shipment. Corresponds to the JSON property shipmentId

Returns:

  • (String)


3271
3272
3273
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3271

def shipment_id
  @shipment_id
end

#shipment_infosArray<Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>

Shipment information. This field is repeated because a single line item can be shipped in several packages (and have several tracking IDs). Corresponds to the JSON property shipmentInfos



3277
3278
3279
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3277

def shipment_infos
  @shipment_infos
end

#tracking_idString

Deprecated. Please use shipmentInfo instead. The tracking id for the shipment. Corresponds to the JSON property trackingId

Returns:

  • (String)


3282
3283
3284
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3282

def tracking_id
  @tracking_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3289
3290
3291
3292
3293
3294
3295
3296
3297
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 3289

def update!(**args)
  @carrier = args[:carrier] if args.key?(:carrier)
  @line_items = args[:line_items] if args.key?(:line_items)
  @operation_id = args[:operation_id] if args.key?(:operation_id)
  @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
  @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
  @shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
end