taxamo-ns 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30e57e2079d49e411b06a1d7cd46e613ad680b32
4
- data.tar.gz: f1e8eb74fa7a3016d0f508e2117c0d25bf31df2c
3
+ metadata.gz: 26a471d270cd6db2480031f7b6aca27783351ffa
4
+ data.tar.gz: dfd84780a2fc9d9e9a14076cb5c5ec83e56882ee
5
5
  SHA512:
6
- metadata.gz: 1c0be861aa1e56740edc23cf9de545fa6818c4eeb2491d0667e73285a48e6e1fe41f209ebafcac8de50427b2e883023b5920d0ccde127bb9bcd4a87d6bfa665c
7
- data.tar.gz: c6b875b019b977ba9896f8ed616ad24626f89145682558bcc11a4c2986971f9b4ee4996be978c4d668b16f3e2b468f6b85fe00fd6565d62039001fba53164261
6
+ metadata.gz: 536773e22bc497635e66adf702bd0da15d55a00e4f0faec5f7864a3f665f072cde1abdea67c1b0d89ac3b4278e7ce05d1009acefdc923cf2d0ed7cce39e98206
7
+ data.tar.gz: 3420ba1582fef0ccf2d3d1427c55fb8dddc61b37e8db0ab82a79905b097164d7213eb3e374f89005704ed54638901c8c8fdd7580e50fac9346b4111478b73b29
data/README.md CHANGED
@@ -4,14 +4,26 @@ This package provides [Taxamo](http://www.taxamo.com) API bindings for Ruby and
4
4
 
5
5
  ## Installation
6
6
 
7
- To install it, just fetch this repository and issue the following command:
7
+ Taxamo Ruby client is available on RubyGems [https://rubygems.org/gems/taxamo-ns](https://rubygems.org/gems/taxamo-ns), either with Gemfile:
8
+
9
+ ```
10
+ gem 'taxamo-ns', '~> 2'
11
+ ```
12
+
13
+ or with `gem install`:
14
+
15
+ ```
16
+ gem install taxamo-ns
17
+ ```
18
+
19
+ The library can also be installed directy - just fetch this repository and issue the following command:
8
20
 
9
21
  ```shell
10
22
  $ gem build taxamo.gemspec
11
- $ gem install taxamo-ns-2.3.1.gem
23
+ $ gem install taxamo-ns-2.3.2.gem
12
24
  ```
13
25
 
14
- Alternatively, add the following line to your project's `Gemfile` file:
26
+ Finally, you can use this github repo and add the following line to your project's `Gemfile` file:
15
27
 
16
28
  ```ruby
17
29
  gem "taxamo-ns", github: "taxamo/taxamo-ruby", '~> 2'
@@ -25,6 +37,9 @@ gem "taxamo", github: "taxamo/taxamo-ruby", '~> 1.1'
25
37
 
26
38
  ## Changes
27
39
 
40
+ 2.3.2 (2017-05-25):
41
+ * bring API client up-to-date with current api endpoints.
42
+
28
43
  2.3.1 (2017-05-19):
29
44
  * use `key?` when parsing the JSON response to differentiate `nil` and `false` and attribute not being present.
30
45
 
@@ -12,7 +12,7 @@
12
12
 
13
13
  module Taxamo
14
14
  class Transaction
15
- attr_accessor :confirm_timestamp, :fully_informative, :deducted_tax_amount, :order_date_type, :buyer_credit_card_prefix, :custom_data, :buyer_name, :invoice_date, :create_timestamp, :currency_code, :sub_account_id, :supply_date, :invoice_image_url, :key, :tax_number_service, :invoice_address, :buyer_tax_number_valid, :verification_token, :note, :tax_supported, :tax_data, :transaction_lines, :buyer_tax_number, :external_key, :status, :custom_fields, :force_country_code, :countries, :invoice_number, :order_date, :customer_id, :kind, :source, :amount, :comments, :buyer_ip, :buyer_email, :original_transaction_key, :billing_country_code, :custom_id, :tax_amount, :additional_currencies, :invoice_place, :total_amount, :tax_entity_name, :evidence, :refunded_tax_amount, :manual, :tax_timezone, :description, :test, :tax_deducted, :tax_country_code, :refunded_total_amount
15
+ attr_accessor :confirm_timestamp, :fully_informative, :deducted_tax_amount, :order_date_type, :buyer_credit_card_prefix, :custom_data, :buyer_name, :invoice_date, :create_timestamp, :currency_code, :sub_account_id, :supply_date, :buyer_tax_number_normalized, :invoice_image_url, :key, :buyer_tax_number_format_valid, :tax_number_service, :invoice_address, :buyer_tax_number_valid, :verification_token, :note, :tax_supported, :tax_data, :transaction_lines, :buyer_tax_number, :external_key, :status, :custom_fields, :force_country_code, :countries, :invoice_number, :order_date, :customer_id, :kind, :source, :amount, :comments, :buyer_ip, :buyer_email, :original_transaction_key, :billing_country_code, :custom_id, :tax_amount, :additional_currencies, :invoice_place, :total_amount, :tax_entity_name, :evidence, :refunded_tax_amount, :manual, :tax_timezone, :description, :test, :tax_deducted, :tax_country_code, :refunded_total_amount
16
16
 
17
17
  # :internal => :external
18
18
  def self.attribute_map
@@ -29,8 +29,10 @@ class Transaction
29
29
  :currency_code => :currency_code,
30
30
  :sub_account_id => :sub_account_id,
31
31
  :supply_date => :supply_date,
32
+ :buyer_tax_number_normalized => :buyer_tax_number_normalized,
32
33
  :invoice_image_url => :invoice_image_url,
33
34
  :key => :key,
35
+ :buyer_tax_number_format_valid => :buyer_tax_number_format_valid,
34
36
  :tax_number_service => :tax_number_service,
35
37
  :invoice_address => :invoice_address,
36
38
  :buyer_tax_number_valid => :buyer_tax_number_valid,
@@ -125,6 +127,10 @@ class Transaction
125
127
  if attributes.key?("supply_date")
126
128
  @supply_date = attributes["supply_date"]
127
129
 
130
+ end
131
+ if attributes.key?("buyer_tax_number_normalized")
132
+ @buyer_tax_number_normalized = attributes["buyer_tax_number_normalized"]
133
+
128
134
  end
129
135
  if attributes.key?("invoice_image_url")
130
136
  @invoice_image_url = attributes["invoice_image_url"]
@@ -133,6 +139,10 @@ class Transaction
133
139
  if attributes.key?("key")
134
140
  @key = attributes["key"]
135
141
 
142
+ end
143
+ if attributes.key?("buyer_tax_number_format_valid")
144
+ @buyer_tax_number_format_valid = attributes["buyer_tax_number_format_valid"]
145
+
136
146
  end
137
147
  if attributes.key?("tax_number_service")
138
148
  @tax_number_service = attributes["tax_number_service"]
@@ -12,7 +12,7 @@
12
12
 
13
13
  module Taxamo
14
14
  class Transactions
15
- attr_accessor :confirm_timestamp, :fully_informative, :deducted_tax_amount, :order_date_type, :buyer_credit_card_prefix, :custom_data, :buyer_name, :invoice_date, :create_timestamp, :currency_code, :sub_account_id, :supply_date, :invoice_image_url, :key, :tax_number_service, :invoice_address, :buyer_tax_number_valid, :verification_token, :note, :tax_supported, :tax_data, :transaction_lines, :buyer_tax_number, :external_key, :status, :custom_fields, :force_country_code, :countries, :invoice_number, :order_date, :customer_id, :kind, :source, :amount, :comments, :buyer_ip, :buyer_email, :original_transaction_key, :billing_country_code, :custom_id, :tax_amount, :additional_currencies, :invoice_place, :total_amount, :tax_entity_name, :evidence, :refunded_tax_amount, :manual, :tax_timezone, :description, :test, :tax_deducted, :tax_country_code, :refunded_total_amount
15
+ attr_accessor :confirm_timestamp, :fully_informative, :deducted_tax_amount, :order_date_type, :buyer_credit_card_prefix, :custom_data, :buyer_name, :invoice_date, :create_timestamp, :currency_code, :sub_account_id, :supply_date, :buyer_tax_number_normalized, :invoice_image_url, :key, :buyer_tax_number_format_valid, :tax_number_service, :invoice_address, :buyer_tax_number_valid, :verification_token, :note, :tax_supported, :tax_data, :transaction_lines, :buyer_tax_number, :external_key, :status, :custom_fields, :force_country_code, :countries, :invoice_number, :order_date, :customer_id, :kind, :source, :amount, :comments, :buyer_ip, :buyer_email, :original_transaction_key, :billing_country_code, :custom_id, :tax_amount, :additional_currencies, :invoice_place, :total_amount, :tax_entity_name, :evidence, :refunded_tax_amount, :manual, :tax_timezone, :description, :test, :tax_deducted, :tax_country_code, :refunded_total_amount
16
16
 
17
17
  # :internal => :external
18
18
  def self.attribute_map
@@ -29,8 +29,10 @@ class Transactions
29
29
  :currency_code => :currency_code,
30
30
  :sub_account_id => :sub_account_id,
31
31
  :supply_date => :supply_date,
32
+ :buyer_tax_number_normalized => :buyer_tax_number_normalized,
32
33
  :invoice_image_url => :invoice_image_url,
33
34
  :key => :key,
35
+ :buyer_tax_number_format_valid => :buyer_tax_number_format_valid,
34
36
  :tax_number_service => :tax_number_service,
35
37
  :invoice_address => :invoice_address,
36
38
  :buyer_tax_number_valid => :buyer_tax_number_valid,
@@ -125,6 +127,10 @@ class Transactions
125
127
  if attributes.key?("supply_date")
126
128
  @supply_date = attributes["supply_date"]
127
129
 
130
+ end
131
+ if attributes.key?("buyer_tax_number_normalized")
132
+ @buyer_tax_number_normalized = attributes["buyer_tax_number_normalized"]
133
+
128
134
  end
129
135
  if attributes.key?("invoice_image_url")
130
136
  @invoice_image_url = attributes["invoice_image_url"]
@@ -133,6 +139,10 @@ class Transactions
133
139
  if attributes.key?("key")
134
140
  @key = attributes["key"]
135
141
 
142
+ end
143
+ if attributes.key?("buyer_tax_number_format_valid")
144
+ @buyer_tax_number_format_valid = attributes["buyer_tax_number_format_valid"]
145
+
136
146
  end
137
147
  if attributes.key?("tax_number_service")
138
148
  @tax_number_service = attributes["tax_number_service"]
@@ -12,14 +12,16 @@
12
12
 
13
13
  module Taxamo
14
14
  class ValidateTaxNumberOut
15
- attr_accessor :tax_deducted, :buyer_tax_number, :buyer_tax_number_valid, :billing_country_code
15
+ attr_accessor :tax_deducted, :buyer_tax_number, :buyer_tax_number_normalized, :buyer_tax_number_valid, :buyer_tax_number_format_valid, :billing_country_code
16
16
 
17
17
  # :internal => :external
18
18
  def self.attribute_map
19
19
  {
20
20
  :tax_deducted => :tax_deducted,
21
21
  :buyer_tax_number => :buyer_tax_number,
22
+ :buyer_tax_number_normalized => :buyer_tax_number_normalized,
22
23
  :buyer_tax_number_valid => :buyer_tax_number_valid,
24
+ :buyer_tax_number_format_valid => :buyer_tax_number_format_valid,
23
25
  :billing_country_code => :billing_country_code
24
26
 
25
27
  }
@@ -35,10 +37,18 @@ class ValidateTaxNumberOut
35
37
  if attributes.key?("buyer_tax_number")
36
38
  @buyer_tax_number = attributes["buyer_tax_number"]
37
39
 
40
+ end
41
+ if attributes.key?("buyer_tax_number_normalized")
42
+ @buyer_tax_number_normalized = attributes["buyer_tax_number_normalized"]
43
+
38
44
  end
39
45
  if attributes.key?("buyer_tax_number_valid")
40
46
  @buyer_tax_number_valid = attributes["buyer_tax_number_valid"]
41
47
 
48
+ end
49
+ if attributes.key?("buyer_tax_number_format_valid")
50
+ @buyer_tax_number_format_valid = attributes["buyer_tax_number_format_valid"]
51
+
42
52
  end
43
53
  if attributes.key?("billing_country_code")
44
54
  @billing_country_code = attributes["billing_country_code"]
@@ -11,7 +11,7 @@
11
11
  # limitations under the License.
12
12
 
13
13
  module Taxamo
14
- VERSION = "2.3.1"
14
+ VERSION = "2.3.2"
15
15
  end
16
16
 
17
17
 
@@ -120,7 +120,7 @@ class TransactionsApiTest < Test::Unit::TestCase
120
120
  resp = Taxamo.list_transactions(nil, #filter_text
121
121
  0, #offset
122
122
  nil, #key_or_custom_id
123
- nil, #currency_code,
123
+ 'EUR', #currency_code,
124
124
  nil, #order_date_to,
125
125
  'true', #sort_reverse
126
126
  100, #limit
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taxamo-ns
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomek Lipski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-19 00:00:00.000000000 Z
11
+ date: 2017-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable