class ShopifyAPI::CarrierService

Attributes

active[R]
admin_graphql_api_id[R]
callback_url[R]
carrier_service_type[R]
format[R]
id[R]
name[R]
service_discovery[R]

Public Class Methods

all( session: ShopifyAPI::Context.active_session, **kwargs ) click to toggle source
# File lib/shopify_api/rest/resources/2022_04/carrier_service.rb, line 104
def all(
  session: ShopifyAPI::Context.active_session,
  **kwargs
)
  response = base_find(
    session: session,
    ids: {},
    params: {}.merge(kwargs).compact,
  )

  T.cast(response, T::Array[CarrierService])
end
delete( id:, session: ShopifyAPI::Context.active_session ) click to toggle source
# File lib/shopify_api/rest/resources/2022_04/carrier_service.rb, line 85
def delete(
  id:,
  session: ShopifyAPI::Context.active_session
)
  request(
    http_method: :delete,
    operation: :delete,
    session: session,
    ids: {id: id},
    params: {},
  )
end
find( id:, session: ShopifyAPI::Context.active_session ) click to toggle source
# File lib/shopify_api/rest/resources/2022_04/carrier_service.rb, line 67
def find(
  id:,
  session: ShopifyAPI::Context.active_session
)
  result = base_find(
    session: session,
    ids: {id: id},
    params: {},
  )
  T.cast(result[0], T.nilable(CarrierService))
end
new(session: ShopifyAPI::Context.active_session, from_hash: nil) click to toggle source
Calls superclass method ShopifyAPI::Rest::Base::new
# File lib/shopify_api/rest/resources/2022_04/carrier_service.rb, line 19
def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil)

  @active = T.let(nil, T.nilable(T::Boolean))
  @admin_graphql_api_id = T.let(nil, T.nilable(String))
  @callback_url = T.let(nil, T.nilable(String))
  @carrier_service_type = T.let(nil, T.nilable(String))
  @format = T.let(nil, T.nilable(String))
  @id = T.let(nil, T.nilable(Integer))
  @name = T.let(nil, T.nilable(String))
  @service_discovery = T.let(nil, T.nilable(T::Boolean))

  super(session: session, from_hash: from_hash)
end