mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
fd39eaf2f1
TODO: - remove old endpoints - bug in UI (start date invalid) - fix tests - payzen
23 lines
576 B
Ruby
23 lines
576 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Payments module
|
|
module Payment; end
|
|
|
|
# Abstract class that must be implemented by each payment gateway.
|
|
# Provides methods to create remote objects on the payment gateway
|
|
class Payment::Service
|
|
def create_subscription(_payment_schedule, *args); end
|
|
|
|
def create_user(_user_id); end
|
|
|
|
def create_coupon(_coupon_id); end
|
|
|
|
def delete_coupon(_coupon_id); end
|
|
|
|
def create_or_update_product(_klass, _id); end
|
|
|
|
def process_payment_schedule_item(_payment_schedule_item); end
|
|
|
|
def pay_payment_schedule_item(_payment_schedule_item); end
|
|
end
|