2021-04-20 17:22:53 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# Payments module
|
|
|
|
module Payment; end
|
|
|
|
|
|
|
|
# Generic payment object
|
|
|
|
class Payment::Item
|
|
|
|
attr_reader :klass
|
|
|
|
|
2021-06-02 20:07:53 +02:00
|
|
|
def initialize(klass, id = nil, *args)
|
2021-04-20 17:22:53 +02:00
|
|
|
@klass = klass
|
2021-04-23 12:52:06 +02:00
|
|
|
@id = id
|
2021-06-02 20:07:53 +02:00
|
|
|
@args = args
|
2021-04-20 17:22:53 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def class
|
|
|
|
klass
|
|
|
|
end
|
|
|
|
|
2021-04-23 12:52:06 +02:00
|
|
|
def payment_mean?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2021-06-04 18:26:20 +02:00
|
|
|
def subscription?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
|
|
|
def order?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
|
2021-06-02 20:07:53 +02:00
|
|
|
def retrieve(_id = nil, *_args); end
|
2021-04-20 17:22:53 +02:00
|
|
|
end
|