noresponse 7.2.1 → 8.0.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: 2e218c4a213f0c6caefaa32020ab17561491578780a7368cdd409f50c18f553a
4
- data.tar.gz: 9e136c994eeaf5294280f0b7fdc28aa870b3b47f3d4f370ea232654ce704613b
3
+ metadata.gz: c0bc0bcfed8c16d4d80cce235a862a2b6a771a2be0602199351dd1e5596e7583
4
+ data.tar.gz: 1b1d3b5a008b8a5728dbd0545aad1a77f8525627cf2687a76e33e0bb589c5d7a
5
5
  SHA512:
6
- metadata.gz: 5ed806321d4be2d12454f9a1c6956e82dd3cf1bbd29a2ec4726afea93b1f508517d8122d72116faf91f7bc3371307066df31f8e9ee301f510b0cf140d1e9c757
7
- data.tar.gz: 0a0555564e443d387f29a9241eafa2eebfb5c1fb818bc44bc8589f4b85a11cbac1fdbbd6e1b4cccd63cb682e0eeadbd7d9c16db09e8406299b7ab9aa4c9421d9
6
+ metadata.gz: d7b884f8e6d280ce86793cf8dc7825b56397a9c27e623b20f5f815394f74c940fb5a248c3e7f61d4fe72ad38336b2658ff5e79a34f6bdbd84035c68bd3a2da18
7
+ data.tar.gz: 6cfbff78fa2370779f902f41569523d1dc7a90c495117c36c9f8b7f25f6212339096bc8fd7fdb6b25f4b6d8ddd763dd0ef5606a162ab2e3510bbd6d0cba2c1f0
@@ -56,35 +56,21 @@ module NoResponse
56
56
  }
57
57
  }
58
58
  )
59
- # Deprecated and always 0: the policy's weights are not published. It is sent so that SDK versions that require it keep reading reasons. Read direction and impact.
60
- #
61
- # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
62
- field(
63
- :weight,
64
- Crystalline::Nilable.new(::Integer),
65
- {'format_json': {'letter_case': ::NoResponse::Utils.field_name("weight")}}
66
- )
67
59
 
68
60
  sig {
69
61
  params(
70
62
  code: Models::Shared::ReasonCode,
71
63
  direction: Models::Shared::Direction,
72
64
  impact: Models::Shared::Impact,
73
- identifier: T.nilable(Models::Shared::ReasonIdentifier),
74
- weight: T.nilable(::Integer)
65
+ identifier: T.nilable(Models::Shared::ReasonIdentifier)
75
66
  )
76
67
  .void
77
68
  }
78
- def initialize(code:, direction:, impact:, identifier: nil, weight: 0)
69
+ def initialize(code:, direction:, impact:, identifier: nil)
79
70
  @code = code
80
71
  @direction = direction
81
72
  @impact = impact
82
73
  @identifier = identifier
83
- unless weight&.zero?
84
- raise ArgumentError, "Invalid value for weight"
85
- end
86
-
87
- @weight = 0
88
74
  end
89
75
 
90
76
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -94,7 +80,6 @@ module NoResponse
94
80
  return false unless @direction == other.direction
95
81
  return false unless @impact == other.impact
96
82
  return false unless @identifier == other.identifier
97
- return false unless @weight == other.weight
98
83
  true
99
84
  end
100
85
  end
@@ -29,10 +29,4 @@ class NoResponse::Models::Shared::AccountRiskReason
29
29
 
30
30
  def identifier=(str_)
31
31
  end
32
-
33
- def weight
34
- end
35
-
36
- def weight=(str_)
37
- end
38
32
  end
@@ -56,35 +56,21 @@ module NoResponse
56
56
  }
57
57
  }
58
58
  )
59
- # Deprecated and always 0: the policy's weights are not published. It is sent so that SDK versions that require it keep reading reasons. Read direction and impact.
60
- #
61
- # @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
62
- field(
63
- :weight,
64
- Crystalline::Nilable.new(::Integer),
65
- {'format_json': {'letter_case': ::NoResponse::Utils.field_name("weight")}}
66
- )
67
59
 
68
60
  sig {
69
61
  params(
70
62
  code: Models::Shared::ReasonCode,
71
63
  direction: Models::Shared::Direction,
72
64
  impact: Models::Shared::Impact,
73
- identifier: T.nilable(Models::Shared::ReasonIdentifier),
74
- weight: T.nilable(::Integer)
65
+ identifier: T.nilable(Models::Shared::ReasonIdentifier)
75
66
  )
76
67
  .void
77
68
  }
78
- def initialize(code:, direction:, impact:, identifier: nil, weight: 0)
69
+ def initialize(code:, direction:, impact:, identifier: nil)
79
70
  @code = code
80
71
  @direction = direction
81
72
  @impact = impact
82
73
  @identifier = identifier
83
- unless weight&.zero?
84
- raise ArgumentError, "Invalid value for weight"
85
- end
86
-
87
- @weight = 0
88
74
  end
89
75
 
90
76
  sig { params(other: T.untyped).returns(T::Boolean) }
@@ -94,7 +80,6 @@ module NoResponse
94
80
  return false unless @direction == other.direction
95
81
  return false unless @impact == other.impact
96
82
  return false unless @identifier == other.identifier
97
- return false unless @weight == other.weight
98
83
  true
99
84
  end
100
85
  end
@@ -29,10 +29,4 @@ class NoResponse::Models::Shared::RiskReason
29
29
 
30
30
  def identifier=(str_)
31
31
  end
32
-
33
- def weight
34
- end
35
-
36
- def weight=(str_)
37
- end
38
32
  end
@@ -95,9 +95,9 @@ module NoResponse
95
95
 
96
96
  @language = "ruby"
97
97
  @openapi_doc_version = "1"
98
- @sdk_version = "7.2.1"
98
+ @sdk_version = "8.0.0"
99
99
  @gen_version = "internal"
100
- @user_agent = "noresponse-sdk/ruby 7.2.1 internal 1 noresponse"
100
+ @user_agent = "noresponse-sdk/ruby 8.0.0 internal 1 noresponse"
101
101
  end
102
102
 
103
103
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: noresponse
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.1
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - NoResponse