Class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntry

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

Returns a new instance of OrdersCustomBatchRequestEntry



3816
3817
3818
# File 'generated/google/apis/content_v2/classes.rb', line 3816

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

Instance Attribute Details

#batch_idFixnum

An entry ID, unique within the batch request. Corresponds to the JSON property batchId

Returns:

  • (Fixnum)


3747
3748
3749
# File 'generated/google/apis/content_v2/classes.rb', line 3747

def batch_id
  @batch_id
end

#cancelGoogle::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel

Required for cancel method. Corresponds to the JSON property cancel



3752
3753
3754
# File 'generated/google/apis/content_v2/classes.rb', line 3752

def cancel
  @cancel
end

#cancel_line_itemGoogle::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem

Required for cancelLineItem method. Corresponds to the JSON property cancelLineItem



3757
3758
3759
# File 'generated/google/apis/content_v2/classes.rb', line 3757

def cancel_line_item
  @cancel_line_item
end

#merchant_idFixnum

The ID of the managing account. Corresponds to the JSON property merchantId

Returns:

  • (Fixnum)


3762
3763
3764
# File 'generated/google/apis/content_v2/classes.rb', line 3762

def merchant_id
  @merchant_id
end

#merchant_order_idString

The merchant order id. Required for updateMerchantOrderId and getByMerchantOrderId methods. Corresponds to the JSON property merchantOrderId

Returns:

  • (String)


3768
3769
3770
# File 'generated/google/apis/content_v2/classes.rb', line 3768

def merchant_order_id
  @merchant_order_id
end

#method_propString

The method to apply. Corresponds to the JSON property method

Returns:

  • (String)


3773
3774
3775
# File 'generated/google/apis/content_v2/classes.rb', line 3773

def method_prop
  @method_prop
end

#operation_idString

The ID of the operation. Unique across all operations for a given order. Required for all methods beside get and getByMerchantOrderId. Corresponds to the JSON property operationId

Returns:

  • (String)


3779
3780
3781
# File 'generated/google/apis/content_v2/classes.rb', line 3779

def operation_id
  @operation_id
end

#order_idString

The ID of the order. Required for all methods beside getByMerchantOrderId. Corresponds to the JSON property orderId

Returns:

  • (String)


3784
3785
3786
# File 'generated/google/apis/content_v2/classes.rb', line 3784

def order_id
  @order_id
end

#refundGoogle::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund

Required for refund method. Corresponds to the JSON property refund



3789
3790
3791
# File 'generated/google/apis/content_v2/classes.rb', line 3789

def refund
  @refund
end

#return_line_itemGoogle::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem

Required for returnLineItem method. Corresponds to the JSON property returnLineItem



3794
3795
3796
# File 'generated/google/apis/content_v2/classes.rb', line 3794

def return_line_item
  @return_line_item
end

#set_line_item_metadataGoogle::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata

Required for setLineItemMetadata method. Corresponds to the JSON property setLineItemMetadata



3799
3800
3801
# File 'generated/google/apis/content_v2/classes.rb', line 3799

def 
  @set_line_item_metadata
end

#ship_line_itemsGoogle::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems

Required for shipLineItems method. Corresponds to the JSON property shipLineItems



3804
3805
3806
# File 'generated/google/apis/content_v2/classes.rb', line 3804

def ship_line_items
  @ship_line_items
end

#update_line_item_shipping_detailsGoogle::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails

Required for updateLineItemShippingDate method. Corresponds to the JSON property updateLineItemShippingDetails



3809
3810
3811
# File 'generated/google/apis/content_v2/classes.rb', line 3809

def update_line_item_shipping_details
  @update_line_item_shipping_details
end

#update_shipmentGoogle::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment

Required for updateShipment method. Corresponds to the JSON property updateShipment



3814
3815
3816
# File 'generated/google/apis/content_v2/classes.rb', line 3814

def update_shipment
  @update_shipment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
# File 'generated/google/apis/content_v2/classes.rb', line 3821

def update!(**args)
  @batch_id = args[:batch_id] if args.key?(:batch_id)
  @cancel = args[:cancel] if args.key?(:cancel)
  @cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item)
  @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
  @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @operation_id = args[:operation_id] if args.key?(:operation_id)
  @order_id = args[:order_id] if args.key?(:order_id)
  @refund = args[:refund] if args.key?(:refund)
  @return_line_item = args[:return_line_item] if args.key?(:return_line_item)
  @set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata)
  @ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
  @update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
  @update_shipment = args[:update_shipment] if args.key?(:update_shipment)
end