affixapi 1.1.78 → 1.1.80
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: 2f9fe7bdcbc6d7de5b5aa99cf436ed97b342560b416ec50107fbbd602df6ac3d
         | 
| 4 | 
            +
              data.tar.gz: a6cf9185c25307c3bfcd8717cf9e2ffc658bcae2d939045f7549c05d070dccc6
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 80ccd7f14756cc41c9dd244af52d8206cf0b7531d0b5e4751d696f17d719e50d64b8a16cc3f5ac7a340e94bd312b7cf17d23f74705f494dca766fbc68949396d
         | 
| 7 | 
            +
              data.tar.gz: 1bd327fc30c6f5e6b6a4e6282515af6e5b2703639fd6f1b6cf1e754a6f9d1f3053243cf5b68f679440de78d0b5b92924ac28cadba57ebb86ff93c1dfd94cea6f
         | 
    
        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
         | 
| @@ -118,7 +118,12 @@ module OpenapiClient | |
| 118 118 | 
             
                # List of attributes with nullable: true
         | 
| 119 119 | 
             
                def self.openapi_nullable
         | 
| 120 120 | 
             
                  Set.new([
         | 
| 121 | 
            +
                    :'gross_pay',
         | 
| 122 | 
            +
                    :'net_pay',
         | 
| 123 | 
            +
                    :'earnings',
         | 
| 121 124 | 
             
                    :'contributions',
         | 
| 125 | 
            +
                    :'deductions',
         | 
| 126 | 
            +
                    :'taxes'
         | 
| 122 127 | 
             
                  ])
         | 
| 123 128 | 
             
                end
         | 
| 124 129 |  | 
| @@ -226,14 +231,6 @@ module OpenapiClient | |
| 226 231 | 
             
                    invalid_properties.push('invalid value for "currency", currency cannot be nil.')
         | 
| 227 232 | 
             
                  end
         | 
| 228 233 |  | 
| 229 | 
            -
                  if @gross_pay.nil?
         | 
| 230 | 
            -
                    invalid_properties.push('invalid value for "gross_pay", gross_pay cannot be nil.')
         | 
| 231 | 
            -
                  end
         | 
| 232 | 
            -
             | 
| 233 | 
            -
                  if @net_pay.nil?
         | 
| 234 | 
            -
                    invalid_properties.push('invalid value for "net_pay", net_pay cannot be nil.')
         | 
| 235 | 
            -
                  end
         | 
| 236 | 
            -
             | 
| 237 234 | 
             
                  if @start_date.nil?
         | 
| 238 235 | 
             
                    invalid_properties.push('invalid value for "start_date", start_date cannot be nil.')
         | 
| 239 236 | 
             
                  end
         | 
| @@ -246,18 +243,6 @@ module OpenapiClient | |
| 246 243 | 
             
                    invalid_properties.push('invalid value for "payment_date", payment_date cannot be nil.')
         | 
| 247 244 | 
             
                  end
         | 
| 248 245 |  | 
| 249 | 
            -
                  if @earnings.nil?
         | 
| 250 | 
            -
                    invalid_properties.push('invalid value for "earnings", earnings cannot be nil.')
         | 
| 251 | 
            -
                  end
         | 
| 252 | 
            -
             | 
| 253 | 
            -
                  if @deductions.nil?
         | 
| 254 | 
            -
                    invalid_properties.push('invalid value for "deductions", deductions cannot be nil.')
         | 
| 255 | 
            -
                  end
         | 
| 256 | 
            -
             | 
| 257 | 
            -
                  if @taxes.nil?
         | 
| 258 | 
            -
                    invalid_properties.push('invalid value for "taxes", taxes cannot be nil.')
         | 
| 259 | 
            -
                  end
         | 
| 260 | 
            -
             | 
| 261 246 | 
             
                  invalid_properties
         | 
| 262 247 | 
             
                end
         | 
| 263 248 |  | 
| @@ -271,14 +256,9 @@ module OpenapiClient | |
| 271 256 | 
             
                  return false if @currency.nil?
         | 
| 272 257 | 
             
                  currency_validator = EnumAttributeValidator.new('String', ["usd", "eur", "gbp"])
         | 
| 273 258 | 
             
                  return false unless currency_validator.valid?(@currency)
         | 
| 274 | 
            -
                  return false if @gross_pay.nil?
         | 
| 275 | 
            -
                  return false if @net_pay.nil?
         | 
| 276 259 | 
             
                  return false if @start_date.nil?
         | 
| 277 260 | 
             
                  return false if @end_date.nil?
         | 
| 278 261 | 
             
                  return false if @payment_date.nil?
         | 
| 279 | 
            -
                  return false if @earnings.nil?
         | 
| 280 | 
            -
                  return false if @deductions.nil?
         | 
| 281 | 
            -
                  return false if @taxes.nil?
         | 
| 282 262 | 
             
                  true
         | 
| 283 263 | 
             
                end
         | 
| 284 264 |  | 
| @@ -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.80
         | 
| 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
         |