6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
|
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 6781
def get(organization, incoming={})
HttpClient::Preconditions.assert_class('organization', organization, String)
opts = HttpClient::Helper.symbolize_keys(incoming)
query = {
:interval_seconds => HttpClient::Preconditions.assert_class('interval_seconds', (x = opts.delete(:interval_seconds); x.nil? ? 60 : x), Integer),
:sync_check => (x = (x = opts.delete(:sync_check); x.nil? ? "localized_variants" : x); x.is_a?(::Io::Flow::V0::Models::ShopifySyncCheck) ? x : ::Io::Flow::V0::Models::ShopifySyncCheck.apply(x)).value
}.delete_if { |k, v| v.nil? }
r = @client.request("/#{CGI.escape(organization)}/shopify/sync/status").with_query(query).get
::Io::Flow::V0::Models::ShopifySyncStatus.new(r)
end
|