class ShopifyAPI::Webhook
Attributes
Public Class Methods
Source
# File lib/shopify_api/rest/resources/2022_04/webhook.rb, line 122 def all( address: nil, created_at_max: nil, created_at_min: nil, fields: nil, limit: nil, since_id: nil, topic: nil, updated_at_min: nil, updated_at_max: nil, session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {}, params: {address: address, created_at_max: created_at_max, created_at_min: created_at_min, fields: fields, limit: limit, since_id: since_id, topic: topic, updated_at_min: updated_at_min, updated_at_max: updated_at_max}.merge(kwargs).compact, ) T.cast(response, T::Array[Webhook]) end
Source
# File lib/shopify_api/rest/resources/2022_04/webhook.rb, line 152 def count( address: nil, topic: nil, session: ShopifyAPI::Context.active_session, **kwargs ) request( http_method: :get, operation: :count, session: session, ids: {}, params: {address: address, topic: topic}.merge(kwargs).compact, body: {}, entity: nil, ) end
Source
# File lib/shopify_api/rest/resources/2022_04/webhook.rb, line 94 def delete( id:, session: ShopifyAPI::Context.active_session ) request( http_method: :delete, operation: :delete, session: session, ids: {id: id}, params: {}, ) end
Source
# File lib/shopify_api/rest/resources/2022_04/webhook.rb, line 75 def find( id:, fields: nil, session: ShopifyAPI::Context.active_session ) result = base_find( session: session, ids: {id: id}, params: {fields: fields}, ) T.cast(result[0], T.nilable(Webhook)) end
Source
# File lib/shopify_api/rest/resources/2022_04/webhook.rb, line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @address = T.let(nil, T.nilable(String)) @topic = T.let(nil, T.nilable(String)) @api_version = T.let(nil, T.nilable(String)) @created_at = T.let(nil, T.nilable(String)) @fields = T.let(nil, T.nilable(T::Array[T.untyped])) @format = T.let(nil, T.nilable(String)) @id = T.let(nil, T.nilable(Integer)) @metafield_namespaces = T.let(nil, T.nilable(T::Array[T.untyped])) @private_metafield_namespaces = T.let(nil, T.nilable(T::Array[T.untyped])) @updated_at = T.let(nil, T.nilable(String)) super(session: session, from_hash: from_hash) end
Calls superclass method
ShopifyAPI::Rest::Base::new