Class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntry
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2::OrdersCustomBatchRequestEntry
 
 
- 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
- 
  
    
      #batch_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
An entry ID, unique within the batch request.
 - 
  
    
      #cancel  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for cancel method.
 - 
  
    
      #cancel_line_item  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for cancelLineItem method.
 - 
  
    
      #in_store_refund_line_item  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for inStoreReturnLineItem method.
 - 
  
    
      #merchant_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The ID of the managing account.
 - 
  
    
      #merchant_order_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The merchant order id.
 - 
  
    
      #method_prop  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The method to apply.
 - 
  
    
      #operation_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The ID of the operation.
 - 
  
    
      #order_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The ID of the order.
 - 
  
    
      #refund  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for refund method.
 - 
  
    
      #reject_return_line_item  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for rejectReturnLineItem method.
 - 
  
    
      #return_line_item  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for returnLineItem method.
 - 
  
    
      #return_refund_line_item  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for returnRefundLineItem method.
 - 
  
    
      #set_line_item_metadata  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for setLineItemMetadata method.
 - 
  
    
      #ship_line_items  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for shipLineItems method.
 - 
  
    
      #update_line_item_shipping_details  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for updateLineItemShippingDate method.
 - 
  
    
      #update_shipment  ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Required for updateShipment method.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ OrdersCustomBatchRequestEntry 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of OrdersCustomBatchRequestEntry.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrdersCustomBatchRequestEntry
Returns a new instance of OrdersCustomBatchRequestEntry
      5810 5811 5812  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5810 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#batch_id ⇒ Fixnum
An entry ID, unique within the batch request.
Corresponds to the JSON property batchId
      5726 5727 5728  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5726 def batch_id @batch_id end  | 
  
#cancel ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel
Required for cancel method.
Corresponds to the JSON property cancel
      5731 5732 5733  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5731 def cancel @cancel end  | 
  
#cancel_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem
Required for cancelLineItem method.
Corresponds to the JSON property cancelLineItem
      5736 5737 5738  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5736 def cancel_line_item @cancel_line_item end  | 
  
#in_store_refund_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem
Required for inStoreReturnLineItem method.
Corresponds to the JSON property inStoreRefundLineItem
      5741 5742 5743  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5741 def in_store_refund_line_item @in_store_refund_line_item end  | 
  
#merchant_id ⇒ Fixnum
The ID of the managing account.
Corresponds to the JSON property merchantId
      5746 5747 5748  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5746 def merchant_id @merchant_id end  | 
  
#merchant_order_id ⇒ String
The merchant order id. Required for updateMerchantOrderId and
getByMerchantOrderId methods.
Corresponds to the JSON property merchantOrderId
      5752 5753 5754  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5752 def merchant_order_id @merchant_order_id end  | 
  
#method_prop ⇒ String
The method to apply.
Corresponds to the JSON property method
      5757 5758 5759  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5757 def method_prop @method_prop end  | 
  
#operation_id ⇒ String
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
      5763 5764 5765  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5763 def operation_id @operation_id end  | 
  
#order_id ⇒ String
The ID of the order. Required for all methods beside getByMerchantOrderId.
Corresponds to the JSON property orderId
      5768 5769 5770  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5768 def order_id @order_id end  | 
  
#refund ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund
Required for refund method.
Corresponds to the JSON property refund
      5773 5774 5775  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5773 def refund @refund end  | 
  
#reject_return_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem
Required for rejectReturnLineItem method.
Corresponds to the JSON property rejectReturnLineItem
      5778 5779 5780  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5778 def reject_return_line_item @reject_return_line_item end  | 
  
#return_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem
Required for returnLineItem method.
Corresponds to the JSON property returnLineItem
      5783 5784 5785  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5783 def return_line_item @return_line_item end  | 
  
#return_refund_line_item ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem
Required for returnRefundLineItem method.
Corresponds to the JSON property returnRefundLineItem
      5788 5789 5790  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5788 def return_refund_line_item @return_refund_line_item end  | 
  
#set_line_item_metadata ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata
Required for setLineItemMetadata method.
Corresponds to the JSON property setLineItemMetadata
      5793 5794 5795  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5793 def @set_line_item_metadata end  | 
  
#ship_line_items ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems
Required for shipLineItems method.
Corresponds to the JSON property shipLineItems
      5798 5799 5800  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5798 def ship_line_items @ship_line_items end  | 
  
#update_line_item_shipping_details ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
Required for updateLineItemShippingDate method.
Corresponds to the JSON property updateLineItemShippingDetails
      5803 5804 5805  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5803 def update_line_item_shipping_details @update_line_item_shipping_details end  | 
  
#update_shipment ⇒ Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment
Required for updateShipment method.
Corresponds to the JSON property updateShipment
      5808 5809 5810  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5808 def update_shipment @update_shipment end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 5815 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) @in_store_refund_line_item = args[:in_store_refund_line_item] if args.key?(:in_store_refund_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) @reject_return_line_item = args[:reject_return_line_item] if args.key?(:reject_return_line_item) @return_line_item = args[:return_line_item] if args.key?(:return_line_item) @return_refund_line_item = args[:return_refund_line_item] if args.key?(:return_refund_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  |