Class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntry

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

Returns a new instance of OrdersCustomBatchRequestEntry



2034
2035
2036
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2034

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)


1950
1951
1952
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1950

def batch_id
  @batch_id
end

#cancelGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancel

Required for cancel method. Corresponds to the JSON property cancel



1955
1956
1957
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1955

def cancel
  @cancel
end

#cancel_line_itemGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem

Required for cancelLineItem method. Corresponds to the JSON property cancelLineItem



1960
1961
1962
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1960

def cancel_line_item
  @cancel_line_item
end

#in_store_refund_line_itemGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryInStoreRefundLineItem

Required for inStoreReturnLineItem method. Corresponds to the JSON property inStoreRefundLineItem



1965
1966
1967
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1965

def in_store_refund_line_item
  @in_store_refund_line_item
end

#merchant_idFixnum

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

Returns:

  • (Fixnum)


1970
1971
1972
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1970

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)


1976
1977
1978
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1976

def merchant_order_id
  @merchant_order_id
end

#method_propString

The method to apply. Corresponds to the JSON property method

Returns:

  • (String)


1981
1982
1983
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1981

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)


1987
1988
1989
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1987

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)


1992
1993
1994
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1992

def order_id
  @order_id
end

#refundGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund

Required for refund method. Corresponds to the JSON property refund



1997
1998
1999
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 1997

def refund
  @refund
end

#reject_return_line_itemGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRejectReturnLineItem

Required for rejectReturnLineItem method. Corresponds to the JSON property rejectReturnLineItem



2002
2003
2004
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2002

def reject_return_line_item
  @reject_return_line_item
end

#return_line_itemGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem

Required for returnLineItem method. Corresponds to the JSON property returnLineItem



2007
2008
2009
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2007

def return_line_item
  @return_line_item
end

#return_refund_line_itemGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnRefundLineItem

Required for returnRefundLineItem method. Corresponds to the JSON property returnRefundLineItem



2012
2013
2014
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2012

def return_refund_line_item
  @return_refund_line_item
end

#set_line_item_metadataGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata

Required for setLineItemMetadata method. Corresponds to the JSON property setLineItemMetadata



2017
2018
2019
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2017

def 
  @set_line_item_metadata
end

#ship_line_itemsGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems

Required for shipLineItems method. Corresponds to the JSON property shipLineItems



2022
2023
2024
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2022

def ship_line_items
  @ship_line_items
end

#update_line_item_shipping_detailsGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails

Required for updateLineItemShippingDate method. Corresponds to the JSON property updateLineItemShippingDetails



2027
2028
2029
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2027

def update_line_item_shipping_details
  @update_line_item_shipping_details
end

#update_shipmentGoogle::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment

Required for updateShipment method. Corresponds to the JSON property updateShipment



2032
2033
2034
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2032

def update_shipment
  @update_shipment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
# File 'generated/google/apis/content_v2sandbox/classes.rb', line 2039

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