module Taxjar::API::Order
Public Instance Methods
create_order(options = {})
click to toggle source
# File lib/taxjar/api/order.rb, line 16 def create_order(options = {}) perform_post_with_object("/v2/transactions/orders", 'order', options, Taxjar::Order) end
delete_order(id, options={})
click to toggle source
# File lib/taxjar/api/order.rb, line 25 def delete_order(id, options={}) perform_delete_with_object("/v2/transactions/orders/#{id}", 'order', options, Taxjar::Order) end
list_orders(options = {})
click to toggle source
# File lib/taxjar/api/order.rb, line 8 def list_orders(options = {}) perform_get_with_array("/v2/transactions/orders", 'orders', options) end
show_order(id, options = {})
click to toggle source
# File lib/taxjar/api/order.rb, line 12 def show_order(id, options = {}) perform_get_with_object("/v2/transactions/orders/#{id}", 'order', options, Taxjar::Order) end
update_order(options = {})
click to toggle source
# File lib/taxjar/api/order.rb, line 20 def update_order(options = {}) id = options.fetch(:transaction_id) perform_put_with_object("/v2/transactions/orders/#{id}", 'order', options, Taxjar::Order) end