class ShopifyAPI::PaymentGateway
Attributes
Public Class Methods
Source
# File lib/shopify_api/rest/resources/2022_04/payment_gateway.rb, line 131 def all( session: ShopifyAPI::Context.active_session, **kwargs ) response = base_find( session: session, ids: {}, params: {}.merge(kwargs).compact, ) T.cast(response, T::Array[PaymentGateway]) end
Source
# File lib/shopify_api/rest/resources/2022_04/payment_gateway.rb, line 112 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/payment_gateway.rb, line 94 def find( id:, session: ShopifyAPI::Context.active_session ) result = base_find( session: session, ids: {id: id}, params: {}, ) T.cast(result[0], T.nilable(PaymentGateway)) end
Source
# File lib/shopify_api/rest/resources/2022_04/payment_gateway.rb, line 19 def initialize(session: ShopifyAPI::Context.active_session, from_hash: nil) @attachment = T.let(nil, T.nilable(String)) @created_at = T.let(nil, T.nilable(String)) @credential1 = T.let(nil, T.nilable(String)) @credential2 = T.let(nil, T.nilable(String)) @credential3 = T.let(nil, T.nilable(String)) @credential4 = T.let(nil, T.nilable(String)) @disabled = T.let(nil, T.nilable(T::Boolean)) @enabled_card_brands = T.let(nil, T.nilable(T::Array[T.untyped])) @id = T.let(nil, T.nilable(Integer)) @name = T.let(nil, T.nilable(String)) @processing_method = T.let(nil, T.nilable(String)) @provider_id = T.let(nil, T.nilable(Integer)) @sandbox = T.let(nil, T.nilable(T::Boolean)) @service_name = T.let(nil, T.nilable(String)) @supports_network_tokenization = T.let(nil, T.nilable(T::Boolean)) @type = T.let(nil, T.nilable(String)) @updated_at = T.let(nil, T.nilable(String)) super(session: session, from_hash: from_hash) end
Calls superclass method
ShopifyAPI::Rest::Base::new