processout 2.26.0 → 2.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/.gitignore +2 -1
- data/lib/processout/invoice_risk.rb +11 -0
- data/lib/processout/networking/request.rb +1 -1
- data/lib/processout/transaction.rb +11 -0
- data/lib/processout/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a8d6293b4ba76e18f045de6e77d9f820df2426064f8c55a3afea7aed2e81ea
|
4
|
+
data.tar.gz: fe8158df60bee882141948561c2991b2ef25c5aa6c7d57b42764dd00395dffa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8429f6847bb9c21ad7f59ded19cb9fad53dee58459bc83101c850c3bbd5a9b23d15c64329fabca9e017b986cbd648326a08bb185334b0d804c7dd4e6e955b380
|
7
|
+
data.tar.gz: 4a16c8279bc62bf3e59a9cd12d304553a6d75d955b2227a259aa7dadd55caf555a363e82164f34fb52d5598239527f1afe1d06953908a0e649825bd5e7599400
|
data/.DS_Store
ADDED
Binary file
|
data/.gitignore
CHANGED
@@ -10,6 +10,7 @@ module ProcessOut
|
|
10
10
|
|
11
11
|
attr_reader :score
|
12
12
|
attr_reader :is_legit
|
13
|
+
attr_reader :skip_gateway_rules
|
13
14
|
|
14
15
|
|
15
16
|
def score=(val)
|
@@ -20,6 +21,10 @@ module ProcessOut
|
|
20
21
|
@is_legit = val
|
21
22
|
end
|
22
23
|
|
24
|
+
def skip_gateway_rules=(val)
|
25
|
+
@skip_gateway_rules = val
|
26
|
+
end
|
27
|
+
|
23
28
|
|
24
29
|
# Initializes the InvoiceRisk object
|
25
30
|
# Params:
|
@@ -30,6 +35,7 @@ module ProcessOut
|
|
30
35
|
|
31
36
|
self.score = data.fetch(:score, nil)
|
32
37
|
self.is_legit = data.fetch(:is_legit, nil)
|
38
|
+
self.skip_gateway_rules = data.fetch(:skip_gateway_rules, nil)
|
33
39
|
|
34
40
|
end
|
35
41
|
|
@@ -43,6 +49,7 @@ module ProcessOut
|
|
43
49
|
{
|
44
50
|
"score": self.score,
|
45
51
|
"is_legit": self.is_legit,
|
52
|
+
"skip_gateway_rules": self.skip_gateway_rules,
|
46
53
|
}.to_json
|
47
54
|
end
|
48
55
|
|
@@ -59,6 +66,9 @@ module ProcessOut
|
|
59
66
|
if data.include? "is_legit"
|
60
67
|
self.is_legit = data["is_legit"]
|
61
68
|
end
|
69
|
+
if data.include? "skip_gateway_rules"
|
70
|
+
self.skip_gateway_rules = data["skip_gateway_rules"]
|
71
|
+
end
|
62
72
|
|
63
73
|
self
|
64
74
|
end
|
@@ -72,6 +82,7 @@ module ProcessOut
|
|
72
82
|
end
|
73
83
|
self.score = data.fetch(:score, self.score)
|
74
84
|
self.is_legit = data.fetch(:is_legit, self.is_legit)
|
85
|
+
self.skip_gateway_rules = data.fetch(:skip_gateway_rules, self.skip_gateway_rules)
|
75
86
|
|
76
87
|
self
|
77
88
|
end
|
@@ -13,7 +13,7 @@ module ProcessOut
|
|
13
13
|
req.basic_auth @client.project_id, @client.project_secret
|
14
14
|
req.content_type = "application/json"
|
15
15
|
req["API-Version"] = "1.4.0.0"
|
16
|
-
req["User-Agent"] = "ProcessOut Ruby-Bindings/2.
|
16
|
+
req["User-Agent"] = "ProcessOut Ruby-Bindings/2.27.1"
|
17
17
|
|
18
18
|
unless options.nil?
|
19
19
|
req["Idempotency-Key"] = options.fetch(:idempotency_key, "")
|
@@ -69,6 +69,7 @@ module ProcessOut
|
|
69
69
|
attr_reader :initial_scheme_transaction_id
|
70
70
|
attr_reader :scheme_id
|
71
71
|
attr_reader :payment_type
|
72
|
+
attr_reader :eci
|
72
73
|
attr_reader :native_apm
|
73
74
|
attr_reader :external_details
|
74
75
|
|
@@ -457,6 +458,10 @@ module ProcessOut
|
|
457
458
|
@payment_type = val
|
458
459
|
end
|
459
460
|
|
461
|
+
def eci=(val)
|
462
|
+
@eci = val
|
463
|
+
end
|
464
|
+
|
460
465
|
def native_apm=(val)
|
461
466
|
if val.nil?
|
462
467
|
@native_apm = val
|
@@ -547,6 +552,7 @@ module ProcessOut
|
|
547
552
|
self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, nil)
|
548
553
|
self.scheme_id = data.fetch(:scheme_id, nil)
|
549
554
|
self.payment_type = data.fetch(:payment_type, nil)
|
555
|
+
self.eci = data.fetch(:eci, nil)
|
550
556
|
self.native_apm = data.fetch(:native_apm, nil)
|
551
557
|
self.external_details = data.fetch(:external_details, nil)
|
552
558
|
|
@@ -621,6 +627,7 @@ module ProcessOut
|
|
621
627
|
"initial_scheme_transaction_id": self.initial_scheme_transaction_id,
|
622
628
|
"scheme_id": self.scheme_id,
|
623
629
|
"payment_type": self.payment_type,
|
630
|
+
"eci": self.eci,
|
624
631
|
"native_apm": self.native_apm,
|
625
632
|
"external_details": self.external_details,
|
626
633
|
}.to_json
|
@@ -816,6 +823,9 @@ module ProcessOut
|
|
816
823
|
if data.include? "payment_type"
|
817
824
|
self.payment_type = data["payment_type"]
|
818
825
|
end
|
826
|
+
if data.include? "eci"
|
827
|
+
self.eci = data["eci"]
|
828
|
+
end
|
819
829
|
if data.include? "native_apm"
|
820
830
|
self.native_apm = data["native_apm"]
|
821
831
|
end
|
@@ -894,6 +904,7 @@ module ProcessOut
|
|
894
904
|
self.initial_scheme_transaction_id = data.fetch(:initial_scheme_transaction_id, self.initial_scheme_transaction_id)
|
895
905
|
self.scheme_id = data.fetch(:scheme_id, self.scheme_id)
|
896
906
|
self.payment_type = data.fetch(:payment_type, self.payment_type)
|
907
|
+
self.eci = data.fetch(:eci, self.eci)
|
897
908
|
self.native_apm = data.fetch(:native_apm, self.native_apm)
|
898
909
|
self.external_details = data.fetch(:external_details, self.external_details)
|
899
910
|
|
data/lib/processout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: processout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.27.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel HUEZ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,6 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".DS_Store"
|
62
63
|
- ".github/CODEOWNERS"
|
63
64
|
- ".github/stale.yml"
|
64
65
|
- ".github/workflows/ci.yaml"
|