class ShopifyAPI::ApplicationCharge

Attributes

confirmation_url[R]
created_at[R]
currency[R]
id[R]
name[R]
price[R]
return_url[R]
status[R]
test[R]
updated_at[R]

Public Class Methods

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

  T.cast(response, T::Array[ApplicationCharge])
end
find( id:, fields: nil, session: ShopifyAPI::Context.active_session ) click to toggle source
# File lib/shopify_api/rest/resources/2022_04/application_charge.rb, line 74
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(ApplicationCharge))
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/application_charge.rb, line 19
def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil)

  @confirmation_url = T.let(nil, T.nilable(String))
  @created_at = T.let(nil, T.nilable(String))
  @currency = T.let(nil, T.nilable(Currency))
  @id = T.let(nil, T.nilable(Integer))
  @name = T.let(nil, T.nilable(String))
  @price = T.let(nil, T.nilable(T.any(String, Float)))
  @return_url = T.let(nil, T.nilable(String))
  @status = T.let(nil, T.nilable(String))
  @test = T.let(nil, T.nilable(T::Boolean))
  @updated_at = T.let(nil, T.nilable(String))

  super(session: session, from_hash: from_hash)
end