class ShopifyAPI::GiftCardAdjustment
Attributes
amount[R]
api_client_id[R]
created_at[R]
gift_card_id[R]
id[R]
note[R]
number[R]
order_transaction_id[R]
processed_at[R]
remote_transaction_ref[R]
remote_transaction_url[R]
user_id[R]
Public Class Methods
all( gift_card_id: nil, session: ShopifyAPI::Context.active_session, **kwargs )
click to toggle source
# File lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb, line 105 def all( gift_card_id: nil, session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {gift_card_id: gift_card_id}, params: {}.merge(kwargs).compact, ) T.cast(response, T::Array[GiftCardAdjustment]) end
find( id:, gift_card_id: nil, session: ShopifyAPI::Context.active_session )
click to toggle source
# File lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb, line 85 def find( id:, gift_card_id: nil, session: ShopifyAPI::Context.active_session ) result = base_find( session: session, ids: {id: id, gift_card_id: gift_card_id}, params: {}, ) T.cast(result[0], T.nilable(GiftCardAdjustment)) end
json_body_name()
click to toggle source
# File lib/shopify_api/rest/resources/2022_04/gift_card_adjustment.rb, line 74 def json_body_name() "adjustment" 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/gift_card_adjustment.rb, line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @amount = T.let(nil, T.nilable(Float)) @api_client_id = T.let(nil, T.nilable(Integer)) @created_at = T.let(nil, T.nilable(String)) @gift_card_id = T.let(nil, T.nilable(Integer)) @id = T.let(nil, T.nilable(Integer)) @note = T.let(nil, T.nilable(String)) @number = T.let(nil, T.nilable(Integer)) @order_transaction_id = T.let(nil, T.nilable(Integer)) @processed_at = T.let(nil, T.nilable(String)) @remote_transaction_ref = T.let(nil, T.nilable(String)) @remote_transaction_url = T.let(nil, T.nilable(String)) @user_id = T.let(nil, T.nilable(Integer)) super(session: session, from_hash: from_hash) end