19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/operation/get.rb', line 19
def verifyClassValidationGet(url='', id)
begin
if @url.include? 'token'
HelperValidation.validate_string_start(id, "tkn")
end
if @url.include? 'charge'
HelperValidation.validate_string_start(id, "chr")
end
if @url.include? 'card'
HelperValidation.validate_string_start(id, "crd")
end
if @url.include? 'customer'
HelperValidation.validate_string_start(id, "cus")
end
if @url.include? 'refund'
HelperValidation.validate_string_start(id, "ref")
end
if @url.include? 'plan'
HelperValidation.validate_string_start(id, "pln")
end
if @url.include? 'subscription'
HelperValidation.validate_string_start(id, "sxn")
end
if @url.include? 'order'
HelperValidation.validate_string_start(id, "ord")
end
rescue CustomException => e
return e.message
end
end
|