Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.64 KB

File metadata and controls

24 lines (18 loc) · 1.64 KB

UltracartClient::AutoOrderItemCancelRequest

Properties

Name Type Description Notes
append_items Array<AutoOrderItem> Specifying these items allows for an easier immutable item contact. Validation will occur before any operations take place. After the end/remove operation is successful, append these additional item(s) to the auto order. The changes will be available in the response if the expansion includes items. [optional]
auto_order_item_oid Integer Optional tiebreaker when more than one item on the auto order shares the same original_item_id. When present, the item with this oid is targeted and its original_item_id must match the URL path parameter (safety check). Leave unset for the common case of a unique original_item_id. For reference the order_item.item_reference_oid is the same value as auto_order_item.auto_order_item_oid UNLESS the a manual edit took place AFTER the original order was placed. [optional]
mode String Cancellation mode. 'end' soft-cancels the item by setting no_order_after_dts to the current time, preserving the row for reporting. 'remove' hard-deletes the item from the auto order. Defaults to 'end' (the less destructive option) when omitted. [optional]
no_orders_after_dts String Date/time that will be used in an END mode (optional) [optional]

Example

require 'ultracart_api'

instance = UltracartClient::AutoOrderItemCancelRequest.new(
  append_items: null,
  auto_order_item_oid: null,
  mode: null,
  no_orders_after_dts: null
)