noresponse 8.0.3 → 8.1.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e159d3682d0bd240f573774f2183c678e822cf7dca00cc70ede248bc8c8a0fd5
|
|
4
|
+
data.tar.gz: 71e5fd162d48e54d082cd19870c0a8ad3c1ddcac14d6ede0c9e50105397e340e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cdc1627fa9932f492978e09fbc0c4bd3bc305bfb853a6d6ea4d6f6d2a38a052683adce8d67a2412c83bb8f7c14d044c5eced1b20f391542955df651d300bd9cd
|
|
7
|
+
data.tar.gz: 425841a87b3ad092d96d5f54e87656cfff47dd1a5588066b8d5637370c30d4f88cfb03bfcfaa16891d12a1e20e7d80d49bedf57009fc4ad9f779c37fa2aae0e2
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module NoResponse
|
|
5
5
|
module Models
|
|
6
6
|
module Shared
|
|
7
|
-
# The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow. On the account's first decision
|
|
7
|
+
# The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow, and previous_risk_version is the risk_version they were announced at. On the account's first event no decision was announced before: previous_risk_version is absent and previous_decisions_by_flow is allow for every flow, the decisions an account has before its first event. Events of one account are not ordered: account.risk_version orders them, so keep the account with the highest risk_version and ignore an event whose account is older than the one held.
|
|
8
8
|
class AccountRiskChanged
|
|
9
9
|
extend T::Sig
|
|
10
10
|
include Crystalline::MetadataFields
|
|
@@ -21,14 +21,25 @@ module NoResponse
|
|
|
21
21
|
Models::Shared::AccountDecisionsByFlow,
|
|
22
22
|
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("previous_decisions_by_flow"), required: true}}
|
|
23
23
|
)
|
|
24
|
+
# The account's risk_version when previous_decisions_by_flow were announced, always lower than account.risk_version. Absent on the account's first event, when no decision was announced before, and on the first event after the account was deleted.
|
|
25
|
+
field(
|
|
26
|
+
:previous_risk_version,
|
|
27
|
+
Crystalline::Nilable.new(::Integer),
|
|
28
|
+
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("previous_risk_version")}}
|
|
29
|
+
)
|
|
24
30
|
|
|
25
31
|
sig {
|
|
26
|
-
params(
|
|
32
|
+
params(
|
|
33
|
+
account: Models::Shared::Account,
|
|
34
|
+
previous_decisions_by_flow: Models::Shared::AccountDecisionsByFlow,
|
|
35
|
+
previous_risk_version: T.nilable(::Integer)
|
|
36
|
+
)
|
|
27
37
|
.void
|
|
28
38
|
}
|
|
29
|
-
def initialize(account:, previous_decisions_by_flow:)
|
|
39
|
+
def initialize(account:, previous_decisions_by_flow:, previous_risk_version: nil)
|
|
30
40
|
@account = account
|
|
31
41
|
@previous_decisions_by_flow = previous_decisions_by_flow
|
|
42
|
+
@previous_risk_version = previous_risk_version
|
|
32
43
|
end
|
|
33
44
|
|
|
34
45
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -36,6 +47,7 @@ module NoResponse
|
|
|
36
47
|
return false unless other.is_a?(self.class)
|
|
37
48
|
return false unless @account == other.account
|
|
38
49
|
return false unless @previous_decisions_by_flow == other.previous_decisions_by_flow
|
|
50
|
+
return false unless @previous_risk_version == other.previous_risk_version
|
|
39
51
|
true
|
|
40
52
|
end
|
|
41
53
|
end
|
|
@@ -17,7 +17,7 @@ module NoResponse
|
|
|
17
17
|
::String,
|
|
18
18
|
{'format_json': {'letter_case': ::NoResponse::Utils.field_name("created_at"), required: true}}
|
|
19
19
|
)
|
|
20
|
-
# The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow. On the account's first decision
|
|
20
|
+
# The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow, and previous_risk_version is the risk_version they were announced at. On the account's first event no decision was announced before: previous_risk_version is absent and previous_decisions_by_flow is allow for every flow, the decisions an account has before its first event. Events of one account are not ordered: account.risk_version orders them, so keep the account with the highest risk_version and ignore an event whose account is older than the one held.
|
|
21
21
|
field(
|
|
22
22
|
:data,
|
|
23
23
|
Models::Shared::AccountRiskChanged,
|
|
@@ -95,9 +95,9 @@ module NoResponse
|
|
|
95
95
|
|
|
96
96
|
@language = "ruby"
|
|
97
97
|
@openapi_doc_version = "1"
|
|
98
|
-
@sdk_version = "8.0
|
|
98
|
+
@sdk_version = "8.1.0"
|
|
99
99
|
@gen_version = "internal"
|
|
100
|
-
@user_agent = "noresponse-sdk/ruby 8.0
|
|
100
|
+
@user_agent = "noresponse-sdk/ruby 8.1.0 internal 1 noresponse"
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
sig { returns([String, T::Hash[Symbol, String]]) }
|