module FakeMollie
Constants
- VERSION
Public Class Methods
create_customer(id: SecureRandom.hex(10))
click to toggle source
# File lib/fake_mollie.rb, line 19 def self.create_customer(id: SecureRandom.hex(10)) @@customers[id] = Fakes::Customer.new(id: id) end
create_mandate(customer_id:)
click to toggle source
# File lib/fake_mollie.rb, line 9 def self.create_mandate(customer_id:) mandate = SecureRandom.hex(5) @@customers[customer_id].mandates << mandate mandate end
create_subscription(customer_id:)
click to toggle source
# File lib/fake_mollie.rb, line 15 def self.create_subscription(customer_id:) # @@customers[customer_id].subscriptions << FakeSubscription.new(customer_id: customer_id) end
customers()
click to toggle source
# File lib/fake_mollie.rb, line 23 def self.customers @@customers end
reset!()
click to toggle source
# File lib/fake_mollie.rb, line 27 def self.reset! @@customers = {} end