nusii 0.2.2 → 0.2.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
  SHA256:
3
- metadata.gz: 942a09b297296a17979478e44c3d6207479cd70f6dc75e3256cc80f77160561e
4
- data.tar.gz: e3790bc3c756ed78a0ba924736c56b20be59cb94d090d28b083ad37e10606830
3
+ metadata.gz: caa46f462605b1812c7d9823d55ced6bcff859d0b7d035b165b5bb2e4cb56044
4
+ data.tar.gz: 9ff515f61336ef38e5657685e7fd0f1d93ef49f86142142d6df20197c9222360
5
5
  SHA512:
6
- metadata.gz: '0282d8fbc20ce57a6a58bcb5ff7d1b520a45f88c092148598dcea1c4824f2b54d6fa952ac212b49aea918e3a8e81f7ee114ddbbc5388632dd55d22332afe37a7'
7
- data.tar.gz: 9c9723c778179896ecdc162c1a49e018b7f7be60401b449e972d652bec32302b628530f42409c20c17288d8769539a651a47d565ff76f53df6948bfebc8e7dab
6
+ metadata.gz: f1693346aaa73313914ae77b35abf00c1ae492a4cd32dc77ff90ec62a230fb1e6472167d4d979ce22e56c0335a5265dec87bdfb1bed22eafb4f268f7960d26a0
7
+ data.tar.gz: 30836da2f8eb13bc74b8a128ea091b6b083e7d3c8278979588967286b3b293ceb63d39fb2fc1fd694a2eb646b5f7fa8e4bc5ba73334f379c8c6eca6c24d501c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3
4
+
5
+ - Add `maximum_amount`, `maximum_amount_in_cents` and `maximum_amount_formatted` to `LineItem` for the `range` cost type
6
+ - Add `maximum_total_in_cents` and `maximum_total_formatted` to `Section`
7
+
3
8
  ## 0.2.2
4
9
 
5
10
  - Add `PaymentRequiredError` for HTTP 402 responses
@@ -7,7 +7,8 @@ module Nusii
7
7
  attr_accessor :id, :section_id, :name, :position, :cost_type,
8
8
  :recurring_type, :per_type, :quantity, :currency,
9
9
  :amount_in_cents, :amount_formatted, :total_in_cents,
10
- :total_formatted, :updated_at, :created_at, :amount
10
+ :total_formatted, :updated_at, :created_at, :amount,
11
+ :maximum_amount, :maximum_amount_in_cents, :maximum_amount_formatted
11
12
 
12
13
  def self.list_by_section section_id, options={}
13
14
  requester = Nusii::Request.new
@@ -30,7 +31,7 @@ module Nusii
30
31
 
31
32
  def editable_attributes
32
33
  [ :name, :cost_type, :recurring_type, :per_type,
33
- :position, :quantity, :amount ]
34
+ :position, :quantity, :amount, :maximum_amount ]
34
35
  end
35
36
 
36
37
  end
data/lib/nusii/section.rb CHANGED
@@ -11,7 +11,8 @@ module Nusii
11
11
  :template_id, :title, :name, :body, :position,
12
12
  :reusable, :section_type, :created_at, :updated_at,
13
13
  :page_break, :optional, :selected, :include_total,
14
- :total_in_cents, :total_formatted, :line_items
14
+ :total_in_cents, :total_formatted, :line_items,
15
+ :maximum_total_in_cents, :maximum_total_formatted
15
16
 
16
17
  private
17
18
 
data/lib/nusii/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nusii
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nusii
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Víctor Martín