iron_bank 3.0.3 → 3.1.0

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
  SHA1:
3
- metadata.gz: 337852f79d17b3fab69e1757a69669f6e3626c63
4
- data.tar.gz: c15e8fd557465ec893cb40635194fdf52e7c2a23
3
+ metadata.gz: b0062f0f3ee0260c2c1c6b5b4cb50f408c250e69
4
+ data.tar.gz: 6fd1c74ff83f0ab562235aaa95ab2235ecb21976
5
5
  SHA512:
6
- metadata.gz: 1179f7172e7943723eaef1d5f3f6091689c1a8c915790a0c2cc7ac95cd6c539395290336038ada44d3210846f34d4c2e7b4259d9bc6c331c96a87d5a29710039
7
- data.tar.gz: 32f38533de604bfbb4d9823ff67cbd7ac64284fcece0e18e3c2b111c886d314b4edcd2ac06e1df99af3e995135c16412ebd619501cac87727a10bae4ffaecf00
6
+ metadata.gz: 0e53b5239fe3d04caca4d0c0054290438d0fb501e9e98c158665d5f07b415ba6c5dd6ab2c7cb7707cd8faff0c5711c0a2dc2b3aea8cf474a2e43f003dd55bc82
7
+ data.tar.gz: 31c0b5d1466d58b43b06ae2546ce5fd27da9bfd360bccf028a65e7876124aca34e7c6c3714c17a4c529aa9d2899af9e8e76cfd8803c13ff7fb95dffc9850aa2d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iron_bank (3.0.3)
4
+ iron_bank (3.1.0)
5
5
  faraday (~> 0)
6
6
  faraday_middleware (~> 0)
7
7
  nokogiri (~> 1)
@@ -49,7 +49,7 @@ GEM
49
49
  mini_portile2 (2.4.0)
50
50
  minitest (5.11.3)
51
51
  multipart-post (2.0.0)
52
- nokogiri (1.10.2)
52
+ nokogiri (1.10.3)
53
53
  mini_portile2 (~> 2.4.0)
54
54
  parallel (1.17.0)
55
55
  parser (2.6.2.1)
@@ -26,6 +26,7 @@ module IronBank
26
26
  with_many :invoice_adjustments, alias: :adjustments
27
27
  with_many :invoice_items, alias: :items
28
28
  with_many :invoice_payments
29
+ with_many :taxation_items
29
30
 
30
31
  # We can only retrieve one invoice body at a time, hence Body is excluded
31
32
  # from the query fields, but is populated using the `find` class method
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module IronBank
4
+ module Resources
5
+ # A taxation item represents the tax amount associated with a single invoice
6
+ # item.
7
+ #
8
+ class TaxationItem < Resource
9
+ def self.exclude_fields
10
+ %w[Balance]
11
+ end
12
+ with_schema
13
+
14
+ with_one :invoice
15
+ with_one :invoice_item
16
+ end
17
+ end
18
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IronBank
4
- VERSION = "3.0.3"
4
+ VERSION = "3.1.0"
5
5
  API_VERSION = "v1"
6
6
  end
data/lib/iron_bank.rb CHANGED
@@ -117,6 +117,7 @@ require "iron_bank/resources/rate_plan_charge_tier"
117
117
  require "iron_bank/resources/rate_plan_charge"
118
118
  require "iron_bank/resources/rate_plan"
119
119
  require "iron_bank/resources/subscription"
120
+ require "iron_bank/resources/taxation_item"
120
121
  require "iron_bank/resources/usage"
121
122
 
122
123
  # Aliasing IronBank::Actions::* to IronBank::*
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_bank
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickael Pham
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2019-04-17 00:00:00.000000000 Z
14
+ date: 2019-04-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bump
@@ -325,6 +325,7 @@ files:
325
325
  - lib/iron_bank/resources/rate_plan_charge.rb
326
326
  - lib/iron_bank/resources/rate_plan_charge_tier.rb
327
327
  - lib/iron_bank/resources/subscription.rb
328
+ - lib/iron_bank/resources/taxation_item.rb
328
329
  - lib/iron_bank/resources/usage.rb
329
330
  - lib/iron_bank/schema.rb
330
331
  - lib/iron_bank/utils.rb