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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/nusii/line_item.rb +3 -2
- data/lib/nusii/section.rb +2 -1
- data/lib/nusii/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: caa46f462605b1812c7d9823d55ced6bcff859d0b7d035b165b5bb2e4cb56044
|
|
4
|
+
data.tar.gz: 9ff515f61336ef38e5657685e7fd0f1d93ef49f86142142d6df20197c9222360
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/nusii/line_item.rb
CHANGED
|
@@ -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