affixapi 1.1.78 → 1.1.79
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/Gemfile.lock +1 -1
- data/lib/openapi_client/models/payrun_response.rb +5 -9
- data/lib/openapi_client/version.rb +1 -1
- data/spec/models/payrun_response_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73dc9982315de6fdce9fe77523b46fa082a4f1d3005d5529157ece3da880dc4f
|
4
|
+
data.tar.gz: 98a51512451adf8e8c6c8a45ba08200e16a98bc6a923c7e5b81f2dc81a0339b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 031c31679d2231d75d3a77cad35411c7420467f9e56fba4a6cfd82dea9a1e465f3dfdef30622f552bc74cbdbd5c3fe728528add4a11639724e90fd3c20c3b13e
|
7
|
+
data.tar.gz: 2b16d2f2cdf893cf4ce4ef62b1577e15ef353b4700997cdaed6075ad2317305b02b0ad03fe3064972c87482b59693175f5184895d7a6850045aeff6b4b9b32c9
|
data/Gemfile.lock
CHANGED
@@ -90,6 +90,7 @@ module OpenapiClient
|
|
90
90
|
# List of attributes with nullable: true
|
91
91
|
def self.openapi_nullable
|
92
92
|
Set.new([
|
93
|
+
:'run_state',
|
93
94
|
:'run_type',
|
94
95
|
:'start_date',
|
95
96
|
:'end_date',
|
@@ -153,10 +154,6 @@ module OpenapiClient
|
|
153
154
|
invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
|
154
155
|
end
|
155
156
|
|
156
|
-
if @run_state.nil?
|
157
|
-
invalid_properties.push('invalid value for "run_state", run_state cannot be nil.')
|
158
|
-
end
|
159
|
-
|
160
157
|
invalid_properties
|
161
158
|
end
|
162
159
|
|
@@ -165,10 +162,9 @@ module OpenapiClient
|
|
165
162
|
def valid?
|
166
163
|
return false if @id.nil?
|
167
164
|
return false if @remote_id.nil?
|
168
|
-
|
169
|
-
run_state_validator = EnumAttributeValidator.new('String', ["paid", "pending"])
|
165
|
+
run_state_validator = EnumAttributeValidator.new('String', ["paid", "pending", "null"])
|
170
166
|
return false unless run_state_validator.valid?(@run_state)
|
171
|
-
run_type_validator = EnumAttributeValidator.new('String', ["regular", "null"])
|
167
|
+
run_type_validator = EnumAttributeValidator.new('String', ["regular", "one-time", "off-cycle", "correction", "reversal", "null"])
|
172
168
|
return false unless run_type_validator.valid?(@run_type)
|
173
169
|
true
|
174
170
|
end
|
@@ -176,7 +172,7 @@ module OpenapiClient
|
|
176
172
|
# Custom attribute writer method checking allowed values (enum).
|
177
173
|
# @param [Object] run_state Object to be assigned
|
178
174
|
def run_state=(run_state)
|
179
|
-
validator = EnumAttributeValidator.new('String', ["paid", "pending"])
|
175
|
+
validator = EnumAttributeValidator.new('String', ["paid", "pending", "null"])
|
180
176
|
unless validator.valid?(run_state)
|
181
177
|
fail ArgumentError, "invalid value for \"run_state\", must be one of #{validator.allowable_values}."
|
182
178
|
end
|
@@ -186,7 +182,7 @@ module OpenapiClient
|
|
186
182
|
# Custom attribute writer method checking allowed values (enum).
|
187
183
|
# @param [Object] run_type Object to be assigned
|
188
184
|
def run_type=(run_type)
|
189
|
-
validator = EnumAttributeValidator.new('String', ["regular", "null"])
|
185
|
+
validator = EnumAttributeValidator.new('String', ["regular", "one-time", "off-cycle", "correction", "reversal", "null"])
|
190
186
|
unless validator.valid?(run_type)
|
191
187
|
fail ArgumentError, "invalid value for \"run_type\", must be one of #{validator.allowable_values}."
|
192
188
|
end
|
@@ -40,7 +40,7 @@ describe OpenapiClient::PayrunResponse do
|
|
40
40
|
describe 'test attribute "run_state"' do
|
41
41
|
it 'should work' do
|
42
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["paid", "pending"])
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["paid", "pending", "null"])
|
44
44
|
# validator.allowable_values.each do |value|
|
45
45
|
# expect { instance.run_state = value }.not_to raise_error
|
46
46
|
# end
|
@@ -50,7 +50,7 @@ describe OpenapiClient::PayrunResponse do
|
|
50
50
|
describe 'test attribute "run_type"' do
|
51
51
|
it 'should work' do
|
52
52
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["regular", "null"])
|
53
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["regular", "one-time", "off-cycle", "correction", "reversal", "null"])
|
54
54
|
# validator.allowable_values.each do |value|
|
55
55
|
# expect { instance.run_type = value }.not_to raise_error
|
56
56
|
# end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: affixapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.79
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|