vat-gst-calculator 0.2.0 → 0.4.3

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: ef8d215f45467ecd5763e3b9fe214096f83e4f7d84ffa7009224bf3c77a85c39
4
- data.tar.gz: 63a30ff1ee4e9fddf812684191f57c6315fe7bb2441bb7c8081fbf053720e9b1
3
+ metadata.gz: 3230defd744e213e419863a1a8564482bae33e8ac30d08a5141e7c560b2f7cc0
4
+ data.tar.gz: 5e704cb34a602f8f06516b597c77b8df245f93ed28b99e404482efeb45e913a9
5
5
  SHA512:
6
- metadata.gz: 72020eb1ffe54a6851bbb2d385088925b936a68fc39e04bb5bec87227a2672a03e0a87b072c3cc7a01fea2b5e755d6a133efecbe47dc2be36b4fad7aaf9a42de
7
- data.tar.gz: 2588c15b22de2b5d594b187236f2119e6c68cb13d2d0f6f47c8c70c656a01ea49f5e7716837c67ff0598470c316e52c85395dfb127f8358b3740c10c0538d45c
6
+ metadata.gz: 938fa07f04850dbace60fd6b4f50f797fa0021fecf6ca1dc017f53c8e3041053c16981ab07adbc9bd871ea022f3b83f93dc4e4f1f172123d92ca088001151d86
7
+ data.tar.gz: 335d552e999f78745de186b91fd1d9808e4ffe52c5d0e8ce05d20851657a795ad334554eb17d19a8c95efa155beacc891ad472766bdc7b2ff68dc6ba610d7c8c
@@ -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)
@@ -25,7 +25,7 @@ module Easyship
25
25
  },
26
26
  'GB' => {
27
27
  sales_tax_website_name: 'VAT',
28
- sales_tax: { '_ALL': build_fee_struct(0.2, 0, 0, 0.2) }, # TBC
28
+ sales_tax: { '_ALL': build_fee_struct(0.2, 0, 0.2, 0.2) }, # TBC
29
29
  provincial_sales_taxes: { '_ALL': no_taxes }
30
30
  },
31
31
  'CA' => {
@@ -80,6 +80,116 @@ module Easyship
80
80
  sales_tax_website_name: nil,
81
81
  sales_tax: { '_ALL': no_taxes },
82
82
  provincial_sales_taxes: { '_ALL': no_taxes }
83
+ },
84
+ 'DE' => {
85
+ sales_tax_website_name: 'VAT',
86
+ sales_tax: { '_ALL': build_fee_struct(0.19, 0, 0, 0) },
87
+ provincial_sales_taxes: { '_ALL': no_taxes }
88
+ },
89
+ 'FR' => {
90
+ sales_tax_website_name: 'VAT',
91
+ sales_tax: { '_ALL': build_fee_struct(0.2, 0, 0, 0) },
92
+ provincial_sales_taxes: { '_ALL': no_taxes }
93
+ },
94
+ 'IT' => {
95
+ sales_tax_website_name: 'VAT',
96
+ sales_tax: { '_ALL': build_fee_struct(0.22, 0, 0, 0) },
97
+ provincial_sales_taxes: { '_ALL': no_taxes }
98
+ },
99
+ 'BE' => {
100
+ sales_tax_website_name: 'VAT',
101
+ sales_tax: { '_ALL': build_fee_struct(0.21, 0, 0, 0) },
102
+ provincial_sales_taxes: { '_ALL': no_taxes }
103
+ },
104
+ 'ES' => {
105
+ sales_tax_website_name: 'VAT',
106
+ sales_tax: { '_ALL': build_fee_struct(0.21, 0, 0, 0) },
107
+ provincial_sales_taxes: { '_ALL': no_taxes }
108
+ },
109
+ 'PT' => {
110
+ sales_tax_website_name: 'VAT',
111
+ sales_tax: { '_ALL': build_fee_struct(0.23, 0, 0, 0) },
112
+ provincial_sales_taxes: { '_ALL': no_taxes }
113
+ },
114
+ 'PL' => {
115
+ sales_tax_website_name: 'VAT',
116
+ sales_tax: { '_ALL': build_fee_struct(0.23, 0, 0, 0) },
117
+ provincial_sales_taxes: { '_ALL': no_taxes }
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
+ },
124
+ 'AT' => {
125
+ sales_tax_website_name: 'VAT',
126
+ sales_tax: { '_ALL': build_fee_struct(0.2, 0, 0, 0) },
127
+ provincial_sales_taxes: { '_ALL': no_taxes }
128
+ },
129
+ 'IE' => {
130
+ sales_tax_website_name: 'VAT',
131
+ sales_tax: { '_ALL': build_fee_struct(0.23, 0, 0, 0) },
132
+ provincial_sales_taxes: { '_ALL': no_taxes }
133
+ },
134
+ 'DK' => {
135
+ sales_tax_website_name: 'VAT',
136
+ sales_tax: { '_ALL': build_fee_struct(0.25, 0, 0, 0) },
137
+ provincial_sales_taxes: { '_ALL': no_taxes }
138
+ },
139
+ 'SE' => {
140
+ sales_tax_website_name: 'VAT',
141
+ sales_tax: { '_ALL': build_fee_struct(0.25, 0, 0, 0) },
142
+ provincial_sales_taxes: { '_ALL': no_taxes }
143
+ },
144
+ 'FI' => {
145
+ sales_tax_website_name: 'VAT',
146
+ sales_tax: { '_ALL': build_fee_struct(0.24, 0, 0, 0) },
147
+ provincial_sales_taxes: { '_ALL': no_taxes }
148
+ },
149
+ 'CN' => {
150
+ sales_tax_website_name: 'VAT',
151
+ sales_tax: { '_ALL': build_fee_struct(0.06, 0, 0, 0) },
152
+ provincial_sales_taxes: { '_ALL': no_taxes }
153
+ },
154
+ 'NO' => {
155
+ sales_tax_website_name: 'VAT',
156
+ sales_tax: { '_ALL': build_fee_struct(0.25, 0, 0, 0) },
157
+ provincial_sales_taxes: { '_ALL': no_taxes }
158
+ },
159
+ 'CH' => {
160
+ sales_tax_website_name: 'VAT',
161
+ sales_tax: { '_ALL': build_fee_struct(0.077, 0, 0, 0) },
162
+ provincial_sales_taxes: { '_ALL': no_taxes }
163
+ },
164
+ 'MY' => {
165
+ sales_tax_website_name: 'VAT',
166
+ sales_tax: { '_ALL': build_fee_struct(0.1, 0, 0, 0) },
167
+ provincial_sales_taxes: { '_ALL': no_taxes }
168
+ },
169
+ 'JP' => {
170
+ sales_tax_website_name: 'VAT',
171
+ sales_tax: { '_ALL': build_fee_struct(0.1, 0, 0, 0) },
172
+ provincial_sales_taxes: { '_ALL': no_taxes }
173
+ },
174
+ 'NZ' => {
175
+ sales_tax_website_name: 'VAT',
176
+ sales_tax: { '_ALL': build_fee_struct(0.15, 0, 0, 0) },
177
+ provincial_sales_taxes: { '_ALL': no_taxes }
178
+ },
179
+ 'IN' => {
180
+ sales_tax_website_name: 'VAT',
181
+ sales_tax: { '_ALL': build_fee_struct(0.15, 0, 0, 0) },
182
+ provincial_sales_taxes: { '_ALL': no_taxes }
183
+ },
184
+ 'KR' => {
185
+ sales_tax_website_name: 'VAT',
186
+ sales_tax: { '_ALL': build_fee_struct(0.1, 0, 0, 0) },
187
+ provincial_sales_taxes: { '_ALL': no_taxes }
188
+ },
189
+ 'MX' => {
190
+ sales_tax_website_name: 'VAT',
191
+ sales_tax: { '_ALL': build_fee_struct(0.16, 0, 0, 0) },
192
+ provincial_sales_taxes: { '_ALL': no_taxes }
83
193
  }
84
194
  }.freeze
85
195
  end
@@ -1,7 +1,7 @@
1
1
  module Easyship
2
2
  module SalesTax
3
3
  module Calculator
4
- VERSION = "0.2.0"
4
+ VERSION = "0.4.3"
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.2.0
4
+ version: 0.4.3
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: 2019-11-05 00:00:00.000000000 Z
12
+ date: 2021-01-15 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: []