Skip to content

Commit 4e5652d

Browse files
Merge pull request stripe-ruby-mock#667 from mnin/feature/refactor_payment_methods
Remove empty and duplicated methods from payment methods
2 parents 94fcdf6 + 3d65bb7 commit 4e5652d

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

lib/stripe_mock/request_handlers/payment_methods.rb

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module StripeMock
22
module RequestHandlers
33
module PaymentMethods
4-
54
ALLOWED_PARAMS = [:customer, :type]
65

76
def PaymentMethods.included(klass)
@@ -52,26 +51,6 @@ def get_payment_methods(route, method_url, params, headers)
5251

5352
Data.mock_list_object(clone.values, params)
5453
end
55-
56-
#
57-
# params: {:customer=>"test_cus_3"}
58-
#
59-
def attach_payment_method(route, method_url, params, headers)
60-
route =~ method_url
61-
id = $1
62-
payment_methods[id].merge!(params)
63-
payment_methods[id].clone
64-
end
65-
66-
def detach_payment_method(route, method_url, params, headers)
67-
68-
end
69-
70-
def get_payment_method(route, method_url, params, headers)
71-
route =~ method_url
72-
id = $1
73-
assert_existence(:payment_method, $1, payment_methods[id])
74-
end
7554

7655
# post /v1/payment_methods/:id/attach
7756
def attach_payment_method(route, method_url, params, headers)

0 commit comments

Comments
 (0)