@@ -54,22 +54,22 @@ def self.authenticate(attributes = {})
54
54
nil
55
55
end
56
56
57
- def self . find_by_email ( email )
58
- requestor . custom ( "email:#{ URI . encode_www_form_component ( email ) } " , { request_method : :get } , { } ) . first
57
+ def self . find_by_email ( email , options = { } )
58
+ requestor . custom ( "email:#{ URI . encode_www_form_component ( email ) } " , { request_method : :get } , options ) . first
59
59
rescue ::FlexCommerceApi ::Error ::NotFound
60
60
nil
61
61
end
62
62
63
- def self . find_by_reference ( reference )
64
- requestor . custom ( "reference:#{ reference } " , { request_method : :get } , { } ) . first
63
+ def self . find_by_reference ( reference , options = { } )
64
+ requestor . custom ( "reference:#{ reference } " , { request_method : :get } , options ) . first
65
65
rescue ::FlexCommerceApi ::Error ::NotFound
66
66
nil
67
67
end
68
68
69
69
# Find customer account by password reset token provided in email's link
70
70
# Used in reset password scenario
71
- def self . find_by_token ( token )
72
- requestor . custom ( "token:#{ token } " , { request_method : :get } , { } ) . first
71
+ def self . find_by_token ( token , options = { } )
72
+ requestor . custom ( "token:#{ token } " , { request_method : :get } , options ) . first
73
73
rescue ::FlexCommerceApi ::Error ::NotFound
74
74
nil
75
75
end
0 commit comments