class Io::Flow::V0::Clients::ChannelViesRegistrations
Public Class Methods
new(client)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 6154 def initialize(client) @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client) end
Public Instance Methods
delete_by_key(channel_id, key)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 6173 def delete_by_key(channel_id, key) HttpClient::Preconditions.assert_class('channel_id', channel_id, String) HttpClient::Preconditions.assert_class('key', key, String) r = @client.request("/channel/#{CGI.escape(channel_id)}/vies/registrations/#{CGI.escape(key)}").delete nil end
post(channel_id, channel_vies_registration_form)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 6158 def post(channel_id, channel_vies_registration_form) HttpClient::Preconditions.assert_class('channel_id', channel_id, String) (x = channel_vies_registration_form; x.is_a?(::Io::Flow::V0::Models::ChannelViesRegistrationForm) ? x : ::Io::Flow::V0::Models::ChannelViesRegistrationForm.new(x)) r = @client.request("/channel/#{CGI.escape(channel_id)}/vies/registrations").with_json(channel_vies_registration_form.to_json).post ::Io::Flow::V0::Models::ChannelViesRegistration.new(r) end
put_by_key(channel_id, key, channel_vies_registration_form)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 6165 def put_by_key(channel_id, key, channel_vies_registration_form) HttpClient::Preconditions.assert_class('channel_id', channel_id, String) HttpClient::Preconditions.assert_class('key', key, String) (x = channel_vies_registration_form; x.is_a?(::Io::Flow::V0::Models::ChannelViesRegistrationForm) ? x : ::Io::Flow::V0::Models::ChannelViesRegistrationForm.new(x)) r = @client.request("/channel/#{CGI.escape(channel_id)}/vies/registrations/#{CGI.escape(key)}").with_json(channel_vies_registration_form.to_json).put ::Io::Flow::V0::Models::ChannelViesRegistration.new(r) end