Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
This package provides Taxamo API bindings for Ruby and was generated using Swagger-codegen.
Taxamo Ruby client is available on RubyGems https://rubygems.org/gems/taxamo-ns, either with Gemfile:
gem 'taxamo-ns', '~> 2'
or with gem install
:
gem install taxamo-ns
The library can also be installed directy - just fetch this repository and issue the following command:
$ gem build taxamo.gemspec
$ gem install taxamo-ns-2.3.8.gem
Finally, you can use this github repo and add the following line to your project's Gemfile
file:
gem "taxamo-ns", github: "taxamo/taxamo-ruby", '~> 2'
If your code relies on 1.x version and uses the classes for constructing input, without the namespaces, you can keep on using it:
gem "taxamo", github: "taxamo/taxamo-ruby", '~> 1.1'
2.3.8 (2021-05-19):
2.3.7 (2018-08-09):
2.3.6 (2017-11-09):
2.3.5 (2017-11-01):
2.3.4 (2017-06-09):
connectivity_test.rb
for examples.2.3.3 (2017-05-26):
2.3.2 (2017-05-25):
2.3.1 (2017-05-19):
key?
when parsing the JSON response to differentiate nil
and false
and attribute not being present.2.3.0 (2017-05-18):
false
value is provided in the JSON response to differentiate nil
and false
2.2.0 (2017-05-03):
2.1.0 (2017-05-03):
get_eu_vies_report
, get_settlement
, list_transactions
.2.0.1 (2016-05-23):
2.0.0 (2016-05-20):
1.1.1 (2016-05-17):
list_transactions
1.1.0 (2015-10-13):
list_transactions
, calculate_simple_tax
, get_refunds
, get_settlement
, get_settlement_summary
1.0.6.1 (2015-07-20):
1.0.6 (2015-07-20):
1.0.5 (2015-07-02):
1.0.4 (2015-04-15):
1.0.3 (2015-04-15):
1.0.2 (2015-03-16):
1.0.1:
First of all, you need to set your private test or live token:
require 'taxamo'
Swagger.configure do |config|
config.api_key = 'YOUR_TOKEN_HERE'
end
Next, you can invoke the API as functions in Taxamo module:
resp = Taxamo.get_transaction('SOME_TRANSACTION_ID')
It is possible to use hashes and arrays as input:
resp = Taxamo.calculate_tax(
{'transaction' => {
'currency_code' => 'USD',
'buyer_ip' => '127.0.0.1',
'billing_country_code' => 'IE',
'force_country_code' => 'FR',
'transaction_lines' => [{'amount' => 200,
'custom_id' => 'line1'},
{'amount' => 100,
'product_type' => 'e-book',
'custom_id' => 'line2'}]}})
But also regular classes:
taxIn = Taxamo::CalculateTaxIn.new
taxIn.transaction = Taxamo::InputTransaction.new
taxIn.transaction.currency_code = 'USD'
taxIn.transaction.buyer_ip = '127.0.0.1'
taxIn.transaction.billing_country_code = 'IE'
taxIn.transaction.force_country_code = 'FR'
taxIn.transaction.transaction_lines = [Taxamo::InputTransactionLine.new, Taxamo::InputTransactionLine.new]
taxIn.transaction.transaction_lines[0].amount = 200
taxIn.transaction.transaction_lines[0].custom_id = 'line1'
taxIn.transaction.transaction_lines[1].amount = 100
taxIn.transaction.transaction_lines[1].custom_id = 'line2'
taxIn.transaction.transaction_lines[1].product_type = 'e-book'
resp = Taxamo.calculate_tax(taxIn)
The output is always coerced to appropriate classes:
assert_equal resp.transaction.countries.detected.code, 'IE'
assert_equal resp.transaction.amount, 300
assert_equal resp.transaction.tax_amount, 45.5
assert_equal resp.transaction.total_amount, 345.5
See the regression tests for more examples.
Please see http://www.taxamo.com/documentation/ for the most up-to-date documentation.
Copyright 2014-2017 Taxamo, Ltd.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Unknown package
We found that taxamo-ns demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.