taxamo-ns 2.3.2 → 2.3.3

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: 26a471d270cd6db2480031f7b6aca27783351ffa
4
- data.tar.gz: dfd84780a2fc9d9e9a14076cb5c5ec83e56882ee
3
+ metadata.gz: 3ee9fb69cbc6137fa0db9bc7864687e916160c46
4
+ data.tar.gz: 11f055ff30f784eaad541568bbbabfe70a376e60
5
5
  SHA512:
6
- metadata.gz: 536773e22bc497635e66adf702bd0da15d55a00e4f0faec5f7864a3f665f072cde1abdea67c1b0d89ac3b4278e7ce05d1009acefdc923cf2d0ed7cce39e98206
7
- data.tar.gz: 3420ba1582fef0ccf2d3d1427c55fb8dddc61b37e8db0ab82a79905b097164d7213eb3e374f89005704ed54638901c8c8fdd7580e50fac9346b4111478b73b29
6
+ metadata.gz: 38742d612539788710c4cd8f0500b3a3b4d9d2965f867affac76ce9e803a3c21b4a85445862b61a73af624c5544919ed969509546f27a628300c1fb52ad53461
7
+ data.tar.gz: cd291f5bf42d3ff5b6288e823fd1a85cf1e2819cea8f3f552a7f20368a54ea361f725a519cc556fde936de75d9bc08c3bc54809e12e33ca6ae1df8c2b7ce067d
data/README.md CHANGED
@@ -37,6 +37,9 @@ gem "taxamo", github: "taxamo/taxamo-ruby", '~> 1.1'
37
37
 
38
38
  ## Changes
39
39
 
40
+ 2.3.3 (2017-05-26):
41
+ * remove not needed camel case applied to 1st level attributes in request map
42
+
40
43
  2.3.2 (2017-05-25):
41
44
  * bring API client up-to-date with current api endpoints.
42
45
 
@@ -105,12 +105,12 @@ module Swagger
105
105
  # If body is a hash, camelize all keys then convert to a json string
106
106
  #
107
107
  def body=(value)
108
- if value.is_a?(Hash)
109
- value = value.inject({}) do |memo, (k,v)|
110
- memo[k.to_s.camelize(:lower).to_sym] = v
111
- memo
112
- end
113
- end
108
+ #if value.is_a?(Hash)
109
+ # value = value.inject({}) do |memo, (k,v)|
110
+ # memo[k.to_s.camelize(:lower).to_sym] = v
111
+ # memo
112
+ # end
113
+ #end
114
114
  @body = value
115
115
  end
116
116
 
@@ -11,7 +11,7 @@
11
11
  # limitations under the License.
12
12
 
13
13
  module Taxamo
14
- VERSION = "2.3.2"
14
+ VERSION = "2.3.3"
15
15
  end
16
16
 
17
17
 
@@ -105,6 +105,14 @@ class TransactionsApiTest < Test::Unit::TestCase
105
105
  assert_equal resp.transaction.tax_amount, 82
106
106
  assert_equal resp.transaction.total_amount, 782
107
107
 
108
+ createRefundIn = Taxamo::CreateRefundIn.new;
109
+
110
+ createRefundIn.total_amount = 100
111
+ createRefundIn.custom_id='line1'
112
+
113
+ refundResp = Taxamo.create_refund(resp.transaction.key, {'total_amount' => 100, 'custom_id' => 'line1'})
114
+ refundResp = Taxamo.create_refund(resp.transaction.key, createRefundIn)
115
+
108
116
  resp = Taxamo.get_transaction(resp.transaction.key)
109
117
 
110
118
  assert_false resp.transaction.key.nil?
@@ -294,7 +302,7 @@ class TransactionsApiTest < Test::Unit::TestCase
294
302
 
295
303
  assert_raise(ValidationError) { Taxamo.capture_payment(resp.transaction.key)}
296
304
 
297
- resp = Taxamo.list_transactions( nil, #filter_text
305
+ resp = Taxamo.list_transactions(nil, #filter_text
298
306
  0, #offset
299
307
  nil, #key_or_custom_id
300
308
  nil, #currency_code,
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.2
4
+ version: 2.3.3
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-25 00:00:00.000000000 Z
11
+ date: 2017-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable