suretax 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8d650dbb8f8868cd0eca55486d6cf378ce90dc0
4
- data.tar.gz: 4b978694d0662e574b519f765efbf543cec66de5
3
+ metadata.gz: 41b16657181106fd6540a1684555dab37ee76e66
4
+ data.tar.gz: e4bc0ca048731ce59d9b2a95641977ad8ce879c2
5
5
  SHA512:
6
- metadata.gz: e6c85da229ce6d45d6389d9362dfceb663c9612ea12c3c0e743ac49bf90f3e87f22d9e1dd9044803f8fd3df7297f6b8bbb6c30229ea8b9ec587906592963a9be
7
- data.tar.gz: 6bda45aafbc0d59f18704172b06fd0ac9025de8c1ce96cf9277c17d029ffbd8ec553a1521d9fc83dc8c1fdd8a1493dbd34185f5003124cb753ca40853537effa
6
+ metadata.gz: 95f27d098398c1a5546b03624d3a8729d284e8d4848da384b2f2c00d1b689b027954ad199fbe92f3132ff759a65a88e880c8840ddb22f410a2f32d4b12c289e9
7
+ data.tar.gz: d2baf5d1cdc06fb77e8afd560fad8240f2a96d88abc94bb866f9d6129407c1a5fadd7882d651e1b146d363712911eaf18b21038f18eeeea0c12d668af70aee83
@@ -5,4 +5,5 @@ module Suretax
5
5
  require "suretax/constants/tax_situs_codes"
6
6
  require "suretax/constants/transaction_type_codes"
7
7
  require "suretax/constants/tax_exemption_codes"
8
+ require "suretax/constants/tax_type_exemption_code_mapping"
8
9
  end
@@ -0,0 +1,28 @@
1
+ module Suretax
2
+ TAX_TYPE_EXEMPTION_CODES = [
3
+ { "exemption_code" => "01", "tax_types" => %w[000] },
4
+ { "exemption_code" => "24", "tax_types" => %w[035] },
5
+ { "exemption_code" => "35", "tax_types" => %w[060] },
6
+ { "exemption_code" => "09", "tax_types" => %w[000 035 060] },
7
+ { "exemption_code" => "11", "tax_types" => %w[106 133 233 333 433 533] },
8
+ { "exemption_code" => "13", "tax_types" => %w[224 324 424] },
9
+ { "exemption_code" => "14", "tax_types" => %w[106 133 233 333 433 533] },
10
+ { "exemption_code" => "20", "tax_types" => %w[108 208 308 408 508] },
11
+ { "exemption_code" => "21", "tax_types" => %w[128 228 328 428 528 132 232 332 432 532] },
12
+ { "exemption_code" => "22", "tax_types" => %w[126 226 326 426 526] },
13
+ { "exemption_code" => "23", "tax_types" => %w[126 226 326 426 526 128 228 328 428 528 132 232 332 432 532] },
14
+ { "exemption_code" => "31", "tax_types" => %w[101] },
15
+ { "exemption_code" => "25", "tax_types" => %w[000 035 101] },
16
+ { "exemption_code" => "26", "tax_types" => %w[127] },
17
+ { "exemption_code" => "30", "tax_types" => %w[127 227 327 427 137 237 337 437] },
18
+ { "exemption_code" => "36", "tax_types" => %w[051 151 251 351 451 551] },
19
+ { "exemption_code" => "37", "tax_types" => %w[042 142 242 342 442 542] },
20
+ { "exemption_code" => "38", "tax_types" => %w[041 141 241 341 441 541] },
21
+ { "exemption_code" => "39", "tax_types" => %w[040 140 240 340 440 540] },
22
+ { "exemption_code" => "41", "tax_types" => %w[016 116 216 316 416 516] },
23
+ { "exemption_code" => "42", "tax_types" => %w[117 127 417 427] },
24
+ { "exemption_code" => "43", "tax_types" => %w[022 122 222 322 422 522] },
25
+ { "exemption_code" => "45", "tax_types" => %w[123] },
26
+ { "exemption_code" => "46", "tax_types" => %w[236 336 436 536] }
27
+ ].freeze
28
+ end
@@ -1,3 +1,3 @@
1
1
  module Suretax
2
- VERSION = "1.0.3".freeze
2
+ VERSION = "1.0.4".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suretax
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damon Davison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-27 00:00:00.000000000 Z
11
+ date: 2018-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -203,6 +203,7 @@ files:
203
203
  - lib/suretax/constants/sales_type_codes.rb
204
204
  - lib/suretax/constants/tax_exemption_codes.rb
205
205
  - lib/suretax/constants/tax_situs_codes.rb
206
+ - lib/suretax/constants/tax_type_exemption_code_mapping.rb
206
207
  - lib/suretax/constants/transaction_type_codes.rb
207
208
  - lib/suretax/response.rb
208
209
  - lib/suretax/version.rb