vat-gst-calculator 0.4.0 → 0.4.5

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
  SHA256:
3
- metadata.gz: 8aba82b8e2c0c9ec5dfc0895f3b677fae3f7b217cbffd2f04916002f99c5164a
4
- data.tar.gz: 93b1e57053506d5cb83262996d3a3bb25ae72ea68c282b36068d4ad36df986b9
3
+ metadata.gz: 295345bce96366a99a0ebabff3c1fe5e65e738ae93b0ca1551f4e5ff38a9e094
4
+ data.tar.gz: 6420103dcf41cecdc98ab4fef392b3209ef8cdfbb6bf32eb28cee1b39a941c66
5
5
  SHA512:
6
- metadata.gz: 88d7062015d54ae55c666ff57d5fadda4c834d142ac2b2b84e942109b89c381c4f051236f480ef79614a1f54f854421e1ca66b39173ba0e580f2810deb34807e
7
- data.tar.gz: 39885d930824e3065441624c495b30e1c2c1d42aa42c50f4562bfc9d2873e93374a77df51efddeaa746800ad96495632f999177af4b3219c15ee6ad6e0882df7
6
+ metadata.gz: 2f932f38cef12a29082fb53f1eb8ef564b4547e796e440af13ba4f6353bf0247c4b57eeb301ce986b04824206235989a57693b16ce322b02a97877a9c13ba3ce
7
+ data.tar.gz: 7d3c45b87ac832623d8f41ec95794280ccea0c94657a3b450b220f087745ca6e2e3df197a141128b3649c24026c7c561e5578d782ea5bd0770252b94f00cf97e
@@ -52,7 +52,7 @@ module Easyship
52
52
  end
53
53
 
54
54
  def self.in_eu?(country_alpha2)
55
- %w(NL LU EE LT HU BE PT GB SK HR CZ IT FI PL MT DE SI RO BG AT SE CY DK FR IE ES GR LV).include?(country_alpha2)
55
+ %w(NL LU EE LT HU BE PT SK HR CZ IT FI PL MT DE SI RO BG AT SE CY DK FR IE ES GR LV).include?(country_alpha2)
56
56
  end
57
57
 
58
58
  def self.domestic?(origin_country_alpha2 = nil, destination_country_alpha2 = nil)
@@ -63,7 +63,7 @@ module Easyship
63
63
  },
64
64
  'SG' => {
65
65
  sales_tax_website_name: 'GST',
66
- sales_tax: { '_ALL': build_fee_struct(0.07, 0, 0, 0) },
66
+ sales_tax: { '_ALL': build_fee_struct(0, 0, 0, 0) },
67
67
  provincial_sales_taxes: { '_ALL': no_taxes }
68
68
  },
69
69
  'HK' => {
@@ -116,11 +116,21 @@ module Easyship
116
116
  sales_tax: { '_ALL': build_fee_struct(0.23, 0, 0, 0) },
117
117
  provincial_sales_taxes: { '_ALL': no_taxes }
118
118
  },
119
+ 'RO' => {
120
+ sales_tax_website_name: 'VAT',
121
+ sales_tax: { '_ALL': build_fee_struct(0.19, 0, 0, 0) },
122
+ provincial_sales_taxes: { '_ALL': no_taxes }
123
+ },
119
124
  'AT' => {
120
125
  sales_tax_website_name: 'VAT',
121
126
  sales_tax: { '_ALL': build_fee_struct(0.2, 0, 0, 0) },
122
127
  provincial_sales_taxes: { '_ALL': no_taxes }
123
128
  },
129
+ 'AE' => {
130
+ sales_tax_website_name: 'VAT',
131
+ sales_tax: { '_ALL': build_fee_struct(0.05, 0, 0, 0) },
132
+ provincial_sales_taxes: { '_ALL': no_taxes }
133
+ },
124
134
  'IE' => {
125
135
  sales_tax_website_name: 'VAT',
126
136
  sales_tax: { '_ALL': build_fee_struct(0.23, 0, 0, 0) },
@@ -141,6 +151,11 @@ module Easyship
141
151
  sales_tax: { '_ALL': build_fee_struct(0.24, 0, 0, 0) },
142
152
  provincial_sales_taxes: { '_ALL': no_taxes }
143
153
  },
154
+ 'CN' => {
155
+ sales_tax_website_name: 'VAT',
156
+ sales_tax: { '_ALL': build_fee_struct(0.06, 0, 0, 0) },
157
+ provincial_sales_taxes: { '_ALL': no_taxes }
158
+ },
144
159
  'NO' => {
145
160
  sales_tax_website_name: 'VAT',
146
161
  sales_tax: { '_ALL': build_fee_struct(0.25, 0, 0, 0) },
@@ -1,7 +1,7 @@
1
1
  module Easyship
2
2
  module SalesTax
3
3
  module Calculator
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vat-gst-calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aloha Chen
8
8
  - Paul LD
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-03-09 00:00:00.000000000 Z
12
+ date: 2021-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -92,7 +92,7 @@ homepage: https://github.com/easyship/vat-gst-calculator
92
92
  licenses:
93
93
  - MIT
94
94
  metadata: {}
95
- post_install_message:
95
+ post_install_message:
96
96
  rdoc_options: []
97
97
  require_paths:
98
98
  - lib
@@ -107,8 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.0.4
111
- signing_key:
110
+ rubygems_version: 3.0.9
111
+ signing_key:
112
112
  specification_version: 4
113
113
  summary: Calculate Sales Tax
114
114
  test_files: []