class Io::Flow::V0::Clients::OrderPromotions
Public Class Methods
new(client)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 2646 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end
Public Instance Methods
delete_by_key(organization, key)
click to toggle source
Deletes the order promotion with the specified key
# File lib/flow_commerce/flow_api_v0_client.rb, line 2651 def delete_by_key(organization, key) HttpClient::Preconditions.assert_class('organization', organization, String) HttpClient::Preconditions.assert_class('key', key, String) r = @client.request("/#{CGI.escape(organization)}/order/promotions/#{CGI.escape(key)}").delete nil end