2022-03-25 17:08:24 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-05-04 15:49:04 +02:00
|
|
|
module SubscriptionClient
|
2023-02-23 19:24:11 +01:00
|
|
|
def self.find_subscriptions(resource_name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class SubscriptionClientSupplier
|
|
|
|
attr_reader :product_slugs
|
|
|
|
|
|
|
|
def initialize(product_slugs)
|
|
|
|
@product_slugs = product_slugs
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class SubscriptionClientResource
|
|
|
|
end
|
|
|
|
|
|
|
|
class SubscriptionClientSubscription
|
|
|
|
attr_reader :product_id
|
|
|
|
|
|
|
|
def initialize(product_id)
|
|
|
|
@product_id = product_id
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2023-05-04 15:49:04 +02:00
|
|
|
module SubscriptionClient
|
2023-02-23 19:24:11 +01:00
|
|
|
class Subscriptions
|
|
|
|
class Result
|
|
|
|
attr_accessor :supplier,
|
|
|
|
:resource,
|
|
|
|
:subscriptions
|
|
|
|
|
|
|
|
def any?
|
|
|
|
supplier.present? && resource.present? && subscriptions.present?
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|