taxamo 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/LICENSE +11 -0
- data/README.md +120 -0
- data/Rakefile +7 -0
- data/lib/monkey.rb +90 -0
- data/lib/swagger.rb +93 -0
- data/lib/swagger/configuration.rb +21 -0
- data/lib/swagger/request.rb +198 -0
- data/lib/swagger/response.rb +87 -0
- data/lib/taxamo.rb +999 -0
- data/lib/taxamo/models/additionalcurrencies.rb +62 -0
- data/lib/taxamo/models/additionalcurrency.rb +82 -0
- data/lib/taxamo/models/bycountry.rb +77 -0
- data/lib/taxamo/models/bystatus.rb +69 -0
- data/lib/taxamo/models/bytaxationtype.rb +82 -0
- data/lib/taxamo/models/c.rb +77 -0
- data/lib/taxamo/models/calculatesimpletaxout.rb +62 -0
- data/lib/taxamo/models/calculatetaxin.rb +62 -0
- data/lib/taxamo/models/calculatetaxlocationout.rb +97 -0
- data/lib/taxamo/models/calculatetaxout.rb +62 -0
- data/lib/taxamo/models/canceltransactionout.rb +62 -0
- data/lib/taxamo/models/capturepaymentout.rb +62 -0
- data/lib/taxamo/models/confirmtransactionin.rb +62 -0
- data/lib/taxamo/models/confirmtransactionout.rb +62 -0
- data/lib/taxamo/models/countries.rb +112 -0
- data/lib/taxamo/models/country.rb +114 -0
- data/lib/taxamo/models/countryschema.rb +114 -0
- data/lib/taxamo/models/createpaymentin.rb +72 -0
- data/lib/taxamo/models/createpaymentout.rb +62 -0
- data/lib/taxamo/models/createrefundin.rb +77 -0
- data/lib/taxamo/models/createrefundout.rb +77 -0
- data/lib/taxamo/models/createsmstokenin.rb +67 -0
- data/lib/taxamo/models/createsmstokenout.rb +62 -0
- data/lib/taxamo/models/createtransactionin.rb +67 -0
- data/lib/taxamo/models/createtransactionout.rb +62 -0
- data/lib/taxamo/models/currencyschema.rb +82 -0
- data/lib/taxamo/models/customfields.rb +67 -0
- data/lib/taxamo/models/emailinvoicein.rb +62 -0
- data/lib/taxamo/models/emailinvoiceout.rb +62 -0
- data/lib/taxamo/models/evidence.rb +112 -0
- data/lib/taxamo/models/evidenceschema.rb +77 -0
- data/lib/taxamo/models/getcountriesdictout.rb +63 -0
- data/lib/taxamo/models/getcurrenciesdictout.rb +63 -0
- data/lib/taxamo/models/getdailysettlementstatsout.rb +63 -0
- data/lib/taxamo/models/getproducttypesdictout.rb +63 -0
- data/lib/taxamo/models/getrefundsout.rb +63 -0
- data/lib/taxamo/models/getsettlementout.rb +83 -0
- data/lib/taxamo/models/getsettlementstatsbycountryout.rb +63 -0
- data/lib/taxamo/models/getsettlementstatsbytaxationtypeout.rb +62 -0
- data/lib/taxamo/models/getsettlementsummaryout.rb +62 -0
- data/lib/taxamo/models/gettransactionout.rb +62 -0
- data/lib/taxamo/models/gettransactionsstatsout.rb +62 -0
- data/lib/taxamo/models/inputtransaction.rb +184 -0
- data/lib/taxamo/models/inputtransactionline.rb +133 -0
- data/lib/taxamo/models/inputtransactionupdate.rb +184 -0
- data/lib/taxamo/models/invoiceaddress.rb +97 -0
- data/lib/taxamo/models/listpaymentsout.rb +63 -0
- data/lib/taxamo/models/listtransactionsout.rb +63 -0
- data/lib/taxamo/models/locategivenipout.rb +72 -0
- data/lib/taxamo/models/locatemyipout.rb +72 -0
- data/lib/taxamo/models/n.rb +77 -0
- data/lib/taxamo/models/payments.rb +72 -0
- data/lib/taxamo/models/producttypeschema.rb +62 -0
- data/lib/taxamo/models/report.rb +92 -0
- data/lib/taxamo/models/settlementdailystatsschema.rb +102 -0
- data/lib/taxamo/models/summary.rb +87 -0
- data/lib/taxamo/models/transaction.rb +279 -0
- data/lib/taxamo/models/transactionlines.rb +163 -0
- data/lib/taxamo/models/transactions.rb +279 -0
- data/lib/taxamo/models/unconfirmtransactionin.rb +62 -0
- data/lib/taxamo/models/unconfirmtransactionout.rb +62 -0
- data/lib/taxamo/models/updatetransactionin.rb +62 -0
- data/lib/taxamo/models/updatetransactionout.rb +62 -0
- data/lib/taxamo/models/validatetaxnumberout.rb +77 -0
- data/lib/taxamo/models/verifysmstokenout.rb +62 -0
- data/lib/taxamo/version.rb +17 -0
- data/taxamo.gemspec +31 -0
- data/test/taxamo/connectivity_test.rb +55 -0
- data/test/taxamo/tax_test.rb +147 -0
- data/test/taxamo/transactions_api_test.rb +308 -0
- metadata +226 -0
@@ -0,0 +1,308 @@
|
|
1
|
+
# Copyright 2014-2015 Taxamo, Ltd.
|
2
|
+
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
6
|
+
#
|
7
|
+
# Unless required by applicable law or agreed to in writing, software
|
8
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
9
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
10
|
+
# See the License for the specific language governing permissions and
|
11
|
+
# limitations under the License.
|
12
|
+
|
13
|
+
require 'test/unit'
|
14
|
+
require 'shoulda'
|
15
|
+
require 'taxamo'
|
16
|
+
|
17
|
+
class TransactionsApiTest < Test::Unit::TestCase
|
18
|
+
|
19
|
+
should 'test_ops' do
|
20
|
+
Swagger.configure do |config|
|
21
|
+
config.api_key = 'SamplePrivateTestKey1'
|
22
|
+
end
|
23
|
+
|
24
|
+
resp = Taxamo.create_transaction(
|
25
|
+
{
|
26
|
+
'transaction' => {
|
27
|
+
'currency_code' => 'USD',
|
28
|
+
'buyer_ip' => '127.0.0.1',
|
29
|
+
'billing_country_code' => 'IE',
|
30
|
+
'force_country_code' => 'FR',
|
31
|
+
'order_date' => '2014-06-01',
|
32
|
+
'buyer_email' => 'test-ruby@taxamo.com',
|
33
|
+
'transaction_lines' => [{'amount' => 200,
|
34
|
+
'custom_id' => 'line1'},
|
35
|
+
{'amount' => 100,
|
36
|
+
'product_type' => 'e-book',
|
37
|
+
'custom_id' => 'line2'}]
|
38
|
+
}})
|
39
|
+
assert_false resp.transaction.key.nil?
|
40
|
+
assert_equal resp.transaction.countries.detected.code, 'IE'
|
41
|
+
assert_equal resp.transaction.amount, 300
|
42
|
+
assert_equal resp.transaction.tax_amount, 45.5
|
43
|
+
assert_equal resp.transaction.total_amount, 345.5
|
44
|
+
assert_equal resp.transaction.status, 'N'
|
45
|
+
|
46
|
+
resp = Taxamo.get_transaction(resp.transaction.key)
|
47
|
+
|
48
|
+
assert_false resp.transaction.key.nil?
|
49
|
+
assert_equal resp.transaction.amount, 300
|
50
|
+
assert_equal resp.transaction.tax_amount, 45.5
|
51
|
+
assert_equal resp.transaction.total_amount, 345.5
|
52
|
+
assert_equal resp.transaction.status, 'N'
|
53
|
+
assert_equal resp.transaction.evidence.by_billing.resolved_country_code, 'IE'
|
54
|
+
assert_equal resp.transaction.evidence.by_ip.resolved_country_code, 'IE'
|
55
|
+
assert_equal resp.transaction.evidence.forced.resolved_country_code, 'FR'
|
56
|
+
assert_equal resp.transaction.buyer_email, 'test-ruby@taxamo.com'
|
57
|
+
|
58
|
+
|
59
|
+
resp = Taxamo.update_transaction(resp.transaction.key,
|
60
|
+
{'transaction' =>
|
61
|
+
{'buyer_name' => 'Ruby tester #2',
|
62
|
+
'currency_code' => 'CHF',
|
63
|
+
'invoice_address' => {'street_name' => 'Test street #4'},
|
64
|
+
'transaction_lines' => [{'amount' => 30,
|
65
|
+
'custom_id' => 'line1'},
|
66
|
+
{'amount' => 40,
|
67
|
+
'product_type' => 'e-book',
|
68
|
+
'custom_id' => 'line2'}]}})
|
69
|
+
|
70
|
+
assert_false resp.transaction.key.nil?
|
71
|
+
|
72
|
+
assert_equal resp.transaction.status, 'N'
|
73
|
+
assert_equal resp.transaction.amount, 70
|
74
|
+
assert_equal resp.transaction.tax_amount, 8.2
|
75
|
+
assert_equal resp.transaction.total_amount, 78.2
|
76
|
+
|
77
|
+
resp = Taxamo.get_transaction(resp.transaction.key)
|
78
|
+
|
79
|
+
assert_false resp.transaction.key.nil?
|
80
|
+
assert_equal resp.transaction.buyer_name, 'Ruby tester #2'
|
81
|
+
assert_equal resp.transaction.invoice_address.street_name, 'Test street #4'
|
82
|
+
|
83
|
+
assert_equal resp.transaction.status, 'N'
|
84
|
+
assert_equal resp.transaction.amount, 70
|
85
|
+
assert_equal resp.transaction.tax_amount, 8.2
|
86
|
+
assert_equal resp.transaction.total_amount, 78.2
|
87
|
+
assert_equal resp.transaction.evidence.by_billing.resolved_country_code, 'IE'
|
88
|
+
assert_equal resp.transaction.evidence.by_ip.resolved_country_code, 'IE'
|
89
|
+
assert_equal resp.transaction.evidence.forced.resolved_country_code, 'FR'
|
90
|
+
|
91
|
+
resp = Taxamo.confirm_transaction(resp.transaction.key,
|
92
|
+
{'transaction' =>
|
93
|
+
{'buyer_name' => 'Ruby tester',
|
94
|
+
'invoice_place' => 'Rubytown',
|
95
|
+
'currency_code' => 'EUR',
|
96
|
+
'transaction_lines' => [{'amount' => 300,
|
97
|
+
'custom_id' => 'line1'},
|
98
|
+
{'amount' => 400,
|
99
|
+
'product_type' => 'e-book',
|
100
|
+
'custom_id' => 'line2'}]}})
|
101
|
+
|
102
|
+
assert_false resp.transaction.key.nil?
|
103
|
+
assert_equal resp.transaction.status, 'C'
|
104
|
+
assert_equal resp.transaction.amount, 700
|
105
|
+
assert_equal resp.transaction.tax_amount, 82
|
106
|
+
assert_equal resp.transaction.total_amount, 782
|
107
|
+
|
108
|
+
resp = Taxamo.get_transaction(resp.transaction.key)
|
109
|
+
|
110
|
+
assert_false resp.transaction.key.nil?
|
111
|
+
assert_equal resp.transaction.status, 'C'
|
112
|
+
assert_equal resp.transaction.amount, 700
|
113
|
+
assert_equal resp.transaction.tax_amount, 82
|
114
|
+
assert_equal resp.transaction.total_amount, 782
|
115
|
+
assert_equal resp.transaction.evidence.by_billing.resolved_country_code, 'IE'
|
116
|
+
assert_equal resp.transaction.evidence.by_ip.resolved_country_code, 'IE'
|
117
|
+
assert_equal resp.transaction.evidence.forced.resolved_country_code, 'FR'
|
118
|
+
|
119
|
+
#statuses,sort_reverse,tax_country_code,order_date_from,offset,filter_text,format,order_date_to,currency_code,limit
|
120
|
+
resp = Taxamo.list_transactions('C', #statuses
|
121
|
+
'true', #sort_reverse
|
122
|
+
nil, #tax_country_code
|
123
|
+
'2014-01-01', #order_date_from
|
124
|
+
nil, #key_or_custom_id
|
125
|
+
nil, #filter_text
|
126
|
+
0, #offset
|
127
|
+
nil, #format,
|
128
|
+
nil,#invoice_number
|
129
|
+
'2099-12-31', #order_date_to,
|
130
|
+
'EUR', #currency_code,
|
131
|
+
100)
|
132
|
+
|
133
|
+
assert_true resp.transactions.length > 0
|
134
|
+
assert_true resp.transactions.length <= 100
|
135
|
+
|
136
|
+
resp.transactions.each do |transaction|
|
137
|
+
assert_equal transaction.status, 'C'
|
138
|
+
assert_equal transaction.currency_code, 'EUR'
|
139
|
+
end
|
140
|
+
resp = Taxamo.list_transactions('N', #statuses
|
141
|
+
'true', #sort_reverse
|
142
|
+
nil, #tax_country_code
|
143
|
+
'2099-12-01', #order_date_from
|
144
|
+
nil, #key_or_custom_id
|
145
|
+
nil, #filter_text
|
146
|
+
0, #offset
|
147
|
+
nil, #format,
|
148
|
+
nil, #invoice_number
|
149
|
+
'2099-12-31', #order_date_to,
|
150
|
+
'EUR', #currency_code,
|
151
|
+
10)
|
152
|
+
assert_true resp.transactions.length == 0
|
153
|
+
|
154
|
+
end
|
155
|
+
|
156
|
+
should "cancel test" do
|
157
|
+
Swagger.configure do |config|
|
158
|
+
config.api_key = 'SamplePrivateTestKey1'
|
159
|
+
end
|
160
|
+
resp = Taxamo.create_transaction(
|
161
|
+
{'transaction' => {
|
162
|
+
'currency_code' => 'USD',
|
163
|
+
'buyer_ip' => '127.0.0.1',
|
164
|
+
'billing_country_code' => 'IE',
|
165
|
+
'force_country_code' => 'FR',
|
166
|
+
'transaction_lines' => [{'amount' => 200,
|
167
|
+
'custom_id' => 'line1'},
|
168
|
+
{'amount' => 100,
|
169
|
+
'product_type' => 'e-book',
|
170
|
+
'custom_id' => 'line2'}]
|
171
|
+
}})
|
172
|
+
assert_false resp.transaction.key.nil?
|
173
|
+
assert_equal resp.transaction.status, 'N'
|
174
|
+
|
175
|
+
resp = Taxamo.cancel_transaction(resp.transaction.key)
|
176
|
+
|
177
|
+
assert_true resp.success
|
178
|
+
end
|
179
|
+
|
180
|
+
should 'evidence fields test' do
|
181
|
+
|
182
|
+
Swagger.configure do |config|
|
183
|
+
config.api_key = 'SamplePrivateTestKey1'
|
184
|
+
end
|
185
|
+
|
186
|
+
resp = Taxamo.create_transaction(
|
187
|
+
{'transaction' => {
|
188
|
+
'currency_code' => 'USD',
|
189
|
+
'evidence' => {
|
190
|
+
'other_commercially_relevant_info' => {'evidence_value' => 'GR'},
|
191
|
+
'self_declaration' => {'evidence_value' => 'GR'}
|
192
|
+
},
|
193
|
+
'billing_country_code' => 'GR',
|
194
|
+
'order_date' => '2014-06-01',
|
195
|
+
'buyer_email' => 'test-Ruby@taxamo.com',
|
196
|
+
'transaction_lines' => [{'amount' => 200,
|
197
|
+
'custom_id' => 'line1'},
|
198
|
+
{'amount' => 100,
|
199
|
+
'product_type' => 'e-book',
|
200
|
+
'custom_id' => 'line2'}]
|
201
|
+
}})
|
202
|
+
assert_false resp.transaction.key.nil?
|
203
|
+
assert_equal resp.transaction.countries.detected.code, 'GR'
|
204
|
+
assert_equal resp.transaction.countries.other_commercially_relevant_info.code, 'GR'
|
205
|
+
assert_equal resp.transaction.countries.self_declaration.code, 'GR'
|
206
|
+
assert_equal resp.transaction.status, 'N'
|
207
|
+
|
208
|
+
resp = Taxamo.get_transaction(resp.transaction.key)
|
209
|
+
|
210
|
+
assert_false resp.transaction.key.nil?
|
211
|
+
assert_equal resp.transaction.status, 'N'
|
212
|
+
assert_equal resp.transaction.evidence.by_billing.resolved_country_code, 'GR'
|
213
|
+
assert_equal resp.transaction.evidence.other_commercially_relevant_info.resolved_country_code, 'GR'
|
214
|
+
assert_equal resp.transaction.evidence.self_declaration.resolved_country_code, 'GR'
|
215
|
+
|
216
|
+
end
|
217
|
+
|
218
|
+
should "test custom fields" do
|
219
|
+
resp = Taxamo.create_transaction(
|
220
|
+
{'transaction' => {
|
221
|
+
'currency_code' => 'USD',
|
222
|
+
'buyer_ip' => '127.0.0.1',
|
223
|
+
'billing_country_code' => 'IE',
|
224
|
+
'force_country_code' => 'FR',
|
225
|
+
'order_date' => '2014-06-01',
|
226
|
+
'custom_fields' => [{'key' => 'test1', 'value' => 'test2'},
|
227
|
+
{'key' => 'test1', 'value' => 'test3'}],
|
228
|
+
'transaction_lines' => [{'amount' => 200,
|
229
|
+
'custom_id' => 'line1',
|
230
|
+
'custom_fields' => [{'key' => 'test11', 'value' => 'test22'},
|
231
|
+
{'key' => 'test41', 'value' => 'test23'}]},
|
232
|
+
{'amount' => 100,
|
233
|
+
'product_type' => 'e-book',
|
234
|
+
'custom_id' => 'line2'}]
|
235
|
+
}})
|
236
|
+
|
237
|
+
assert_false resp.transaction.key.nil?
|
238
|
+
assert_equal resp.transaction.status, 'N'
|
239
|
+
assert_equal resp.transaction.custom_fields[0].key, 'test1'
|
240
|
+
assert_equal resp.transaction.custom_fields[1].value, 'test3'
|
241
|
+
|
242
|
+
resp = Taxamo.get_transaction(resp.transaction.key)
|
243
|
+
|
244
|
+
assert_false resp.transaction.key.nil?
|
245
|
+
assert_equal resp.transaction.status, 'N'
|
246
|
+
assert_equal resp.transaction.custom_fields[0].key, 'test1'
|
247
|
+
assert_equal resp.transaction.custom_fields[1].value, 'test3'
|
248
|
+
assert_equal resp.transaction.transaction_lines[0].custom_fields[1].value, 'test23'
|
249
|
+
|
250
|
+
resp = Taxamo.update_transaction(resp.transaction.key,
|
251
|
+
{'transaction' =>
|
252
|
+
{'buyer_name' => 'Ruby tester #2',
|
253
|
+
'currency_code' => 'CHF',
|
254
|
+
'invoice_address' => {'street_name' => 'Test street #4'},
|
255
|
+
'custom_fields' => [{'key' => 'test51', 'value' => 'test52'},
|
256
|
+
{'key' => 'test51', 'value' => 'test53'},
|
257
|
+
{'key' => 'test61', 'value' => 'test63'}],
|
258
|
+
'transaction_lines' => [{'amount' => 30,
|
259
|
+
'custom_id' => 'line1',
|
260
|
+
'custom_fields' => [{'key' => 'test11', 'value' => 'test22'},
|
261
|
+
{'key' => 'test41', 'value' => 'test43'}]},
|
262
|
+
{'amount' => 40,
|
263
|
+
'product_type' => 'e-book',
|
264
|
+
'custom_id' => 'line2',
|
265
|
+
'custom_fields' => [{'key' => 'test21', 'value' => 'test82'},
|
266
|
+
{'key' => 'test71', 'value' => 'test83'}]}]}})
|
267
|
+
|
268
|
+
assert_false resp.transaction.key.nil?
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
resp = Taxamo.get_transaction(resp.transaction.key)
|
274
|
+
|
275
|
+
assert_false resp.transaction.key.nil?
|
276
|
+
assert_equal resp.transaction.status, 'N'
|
277
|
+
assert_equal resp.transaction.custom_fields[0].key, 'test51'
|
278
|
+
assert_equal resp.transaction.custom_fields[1].value, 'test53'
|
279
|
+
assert_equal resp.transaction.custom_fields[2].value, 'test63'
|
280
|
+
assert_equal resp.transaction.transaction_lines[0].custom_fields[1].value, 'test43'
|
281
|
+
assert_equal resp.transaction.transaction_lines[1].custom_fields[1].value, 'test83'
|
282
|
+
|
283
|
+
assert_raise(ValidationError) { Taxamo.capture_payment(resp.transaction.key)}
|
284
|
+
|
285
|
+
resp = Taxamo.list_transactions('N', #statuses
|
286
|
+
'true', #sort_reverse
|
287
|
+
nil, #tax_country_code
|
288
|
+
'2001-12-01', #order_date_from
|
289
|
+
nil, #key_or_custom_id
|
290
|
+
0, #offset
|
291
|
+
nil, #filter_text
|
292
|
+
nil, #format,
|
293
|
+
nil, #invoice_number
|
294
|
+
'2099-12-31', #order_date_to,
|
295
|
+
'CHF', #currency_code,
|
296
|
+
10)
|
297
|
+
|
298
|
+
assert_false resp.transactions[0].key.nil?
|
299
|
+
assert_equal resp.transactions[0].status, 'N'
|
300
|
+
assert_equal resp.transactions[0].custom_fields[0].key, 'test51'
|
301
|
+
assert_equal resp.transactions[0].custom_fields[1].value, 'test53'
|
302
|
+
assert_equal resp.transactions[0].custom_fields[2].value, 'test63'
|
303
|
+
assert_equal resp.transactions[0].transaction_lines[0].custom_fields[1].value, 'test43'
|
304
|
+
assert_equal resp.transactions[0].transaction_lines[1].custom_fields[1].value, 'test83'
|
305
|
+
|
306
|
+
end
|
307
|
+
|
308
|
+
end
|
metadata
ADDED
@@ -0,0 +1,226 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: taxamo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.5
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tomek Lipski
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: addressable
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: typhoeus
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.6.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.6.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: require_all
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.3.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.3.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mocha
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.13.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.13.2
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: shoulda
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 3.4.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.4.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: test-unit
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Taxamo provides a real-time Software as a Service (SaaS) solution for
|
112
|
+
compliance with the new 2015 EU VAT rules on the sale of e-services. http://www.taxamo.com
|
113
|
+
email:
|
114
|
+
- tom@taxamo.com
|
115
|
+
executables: []
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- Gemfile
|
120
|
+
- LICENSE
|
121
|
+
- README.md
|
122
|
+
- Rakefile
|
123
|
+
- lib/monkey.rb
|
124
|
+
- lib/swagger.rb
|
125
|
+
- lib/swagger/configuration.rb
|
126
|
+
- lib/swagger/request.rb
|
127
|
+
- lib/swagger/response.rb
|
128
|
+
- lib/taxamo.rb
|
129
|
+
- lib/taxamo/models/additionalcurrencies.rb
|
130
|
+
- lib/taxamo/models/additionalcurrency.rb
|
131
|
+
- lib/taxamo/models/bycountry.rb
|
132
|
+
- lib/taxamo/models/bystatus.rb
|
133
|
+
- lib/taxamo/models/bytaxationtype.rb
|
134
|
+
- lib/taxamo/models/c.rb
|
135
|
+
- lib/taxamo/models/calculatesimpletaxout.rb
|
136
|
+
- lib/taxamo/models/calculatetaxin.rb
|
137
|
+
- lib/taxamo/models/calculatetaxlocationout.rb
|
138
|
+
- lib/taxamo/models/calculatetaxout.rb
|
139
|
+
- lib/taxamo/models/canceltransactionout.rb
|
140
|
+
- lib/taxamo/models/capturepaymentout.rb
|
141
|
+
- lib/taxamo/models/confirmtransactionin.rb
|
142
|
+
- lib/taxamo/models/confirmtransactionout.rb
|
143
|
+
- lib/taxamo/models/countries.rb
|
144
|
+
- lib/taxamo/models/country.rb
|
145
|
+
- lib/taxamo/models/countryschema.rb
|
146
|
+
- lib/taxamo/models/createpaymentin.rb
|
147
|
+
- lib/taxamo/models/createpaymentout.rb
|
148
|
+
- lib/taxamo/models/createrefundin.rb
|
149
|
+
- lib/taxamo/models/createrefundout.rb
|
150
|
+
- lib/taxamo/models/createsmstokenin.rb
|
151
|
+
- lib/taxamo/models/createsmstokenout.rb
|
152
|
+
- lib/taxamo/models/createtransactionin.rb
|
153
|
+
- lib/taxamo/models/createtransactionout.rb
|
154
|
+
- lib/taxamo/models/currencyschema.rb
|
155
|
+
- lib/taxamo/models/customfields.rb
|
156
|
+
- lib/taxamo/models/emailinvoicein.rb
|
157
|
+
- lib/taxamo/models/emailinvoiceout.rb
|
158
|
+
- lib/taxamo/models/evidence.rb
|
159
|
+
- lib/taxamo/models/evidenceschema.rb
|
160
|
+
- lib/taxamo/models/getcountriesdictout.rb
|
161
|
+
- lib/taxamo/models/getcurrenciesdictout.rb
|
162
|
+
- lib/taxamo/models/getdailysettlementstatsout.rb
|
163
|
+
- lib/taxamo/models/getproducttypesdictout.rb
|
164
|
+
- lib/taxamo/models/getrefundsout.rb
|
165
|
+
- lib/taxamo/models/getsettlementout.rb
|
166
|
+
- lib/taxamo/models/getsettlementstatsbycountryout.rb
|
167
|
+
- lib/taxamo/models/getsettlementstatsbytaxationtypeout.rb
|
168
|
+
- lib/taxamo/models/getsettlementsummaryout.rb
|
169
|
+
- lib/taxamo/models/gettransactionout.rb
|
170
|
+
- lib/taxamo/models/gettransactionsstatsout.rb
|
171
|
+
- lib/taxamo/models/inputtransaction.rb
|
172
|
+
- lib/taxamo/models/inputtransactionline.rb
|
173
|
+
- lib/taxamo/models/inputtransactionupdate.rb
|
174
|
+
- lib/taxamo/models/invoiceaddress.rb
|
175
|
+
- lib/taxamo/models/listpaymentsout.rb
|
176
|
+
- lib/taxamo/models/listtransactionsout.rb
|
177
|
+
- lib/taxamo/models/locategivenipout.rb
|
178
|
+
- lib/taxamo/models/locatemyipout.rb
|
179
|
+
- lib/taxamo/models/n.rb
|
180
|
+
- lib/taxamo/models/payments.rb
|
181
|
+
- lib/taxamo/models/producttypeschema.rb
|
182
|
+
- lib/taxamo/models/report.rb
|
183
|
+
- lib/taxamo/models/settlementdailystatsschema.rb
|
184
|
+
- lib/taxamo/models/summary.rb
|
185
|
+
- lib/taxamo/models/transaction.rb
|
186
|
+
- lib/taxamo/models/transactionlines.rb
|
187
|
+
- lib/taxamo/models/transactions.rb
|
188
|
+
- lib/taxamo/models/unconfirmtransactionin.rb
|
189
|
+
- lib/taxamo/models/unconfirmtransactionout.rb
|
190
|
+
- lib/taxamo/models/updatetransactionin.rb
|
191
|
+
- lib/taxamo/models/updatetransactionout.rb
|
192
|
+
- lib/taxamo/models/validatetaxnumberout.rb
|
193
|
+
- lib/taxamo/models/verifysmstokenout.rb
|
194
|
+
- lib/taxamo/version.rb
|
195
|
+
- taxamo.gemspec
|
196
|
+
- test/taxamo/connectivity_test.rb
|
197
|
+
- test/taxamo/tax_test.rb
|
198
|
+
- test/taxamo/transactions_api_test.rb
|
199
|
+
homepage: https://www.taxamo.com/apidocs/index.html
|
200
|
+
licenses:
|
201
|
+
- Apache
|
202
|
+
metadata: {}
|
203
|
+
post_install_message:
|
204
|
+
rdoc_options: []
|
205
|
+
require_paths:
|
206
|
+
- lib
|
207
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - ">="
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0'
|
212
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0'
|
217
|
+
requirements: []
|
218
|
+
rubyforge_project:
|
219
|
+
rubygems_version: 2.4.5
|
220
|
+
signing_key:
|
221
|
+
specification_version: 4
|
222
|
+
summary: Ruby bindings for the Taxamo API
|
223
|
+
test_files:
|
224
|
+
- test/taxamo/connectivity_test.rb
|
225
|
+
- test/taxamo/tax_test.rb
|
226
|
+
- test/taxamo/transactions_api_test.rb
|