class Veeqo::Order

Public Instance Methods

create(channel_id:, customer_id:, delivery_method_id:, **attributes) click to toggle source
# File lib/veeqo/order.rb, line 5
def create(channel_id:, customer_id:, delivery_method_id:, **attributes)
  required_attributes = {
    channel_id: channel_id,
    customer_id: customer_id,
    delivery_method_id: delivery_method_id,
  }

  create_resource(order: required_attributes.merge(attributes))
end
update(order_id, attributes = {}) click to toggle source
# File lib/veeqo/order.rb, line 15
def update(order_id, attributes = {})
  update_resource(order_id, attributes)
end

Private Instance Methods

end_point() click to toggle source
# File lib/veeqo/order.rb, line 21
def end_point
  "orders"
end