cashbox 0.0.1 → 0.0.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 +4 -4
- data/.gitignore +1 -1
- data/Dockerfile +12 -0
- data/Gemfile.lock +87 -0
- data/README.md +4 -0
- data/codeship-services.yml +4 -0
- data/codeship-steps.yml +3 -0
- data/lib/cashbox.rb +2 -0
- data/lib/cashbox/model/account.rb +2 -2
- data/lib/cashbox/model/invoice.rb +26 -0
- data/lib/cashbox/model/invoice_item.rb +20 -0
- data/lib/cashbox/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe784a85eecfedfab7d086b98e2d009adcd2541
|
4
|
+
data.tar.gz: 8c9b88899e9816f794170d92697e39c1893c327c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc06420eed34c40c720abfb9b8fea8cf377af397789812dee1d03a9efaa0605739bd551b9608bebc4893c8f53dfd93c39d531fc931322ce802a4e19d11521fba
|
7
|
+
data.tar.gz: 34cdf5779e68f860170fb15b6145ce974232e61f1db9aefe37c350b995755ae279d777552f2fe46f04fdc801985bcfcde9681c80c6511c45e98ca7b5b82fff86
|
data/.gitignore
CHANGED
data/Dockerfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
cashbox (0.0.1)
|
5
|
+
activesupport
|
6
|
+
addressable
|
7
|
+
hashie
|
8
|
+
httparty
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
activesupport (5.0.2)
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
i18n (~> 0.7)
|
16
|
+
minitest (~> 5.1)
|
17
|
+
tzinfo (~> 1.1)
|
18
|
+
addressable (2.5.0)
|
19
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
20
|
+
byebug (3.5.1)
|
21
|
+
columnize (~> 0.8)
|
22
|
+
debugger-linecache (~> 1.2)
|
23
|
+
slop (~> 3.6)
|
24
|
+
coderay (1.1.1)
|
25
|
+
columnize (0.9.0)
|
26
|
+
concurrent-ruby (1.0.5)
|
27
|
+
crack (0.4.3)
|
28
|
+
safe_yaml (~> 1.0.0)
|
29
|
+
debugger-linecache (1.2.0)
|
30
|
+
diff-lcs (1.3)
|
31
|
+
hashdiff (0.3.2)
|
32
|
+
hashie (3.5.5)
|
33
|
+
httparty (0.15.6)
|
34
|
+
multi_xml (>= 0.5.2)
|
35
|
+
i18n (0.8.1)
|
36
|
+
method_source (0.8.2)
|
37
|
+
minitest (5.10.1)
|
38
|
+
multi_xml (0.6.0)
|
39
|
+
pry (0.10.4)
|
40
|
+
coderay (~> 1.1.0)
|
41
|
+
method_source (~> 0.8.1)
|
42
|
+
slop (~> 3.4)
|
43
|
+
pry-byebug (2.0.0)
|
44
|
+
byebug (~> 3.4)
|
45
|
+
pry (~> 0.10)
|
46
|
+
public_suffix (2.0.5)
|
47
|
+
rake (10.5.0)
|
48
|
+
rspec (3.5.0)
|
49
|
+
rspec-core (~> 3.5.0)
|
50
|
+
rspec-expectations (~> 3.5.0)
|
51
|
+
rspec-mocks (~> 3.5.0)
|
52
|
+
rspec-core (3.5.4)
|
53
|
+
rspec-support (~> 3.5.0)
|
54
|
+
rspec-expectations (3.5.0)
|
55
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
56
|
+
rspec-support (~> 3.5.0)
|
57
|
+
rspec-its (1.2.0)
|
58
|
+
rspec-core (>= 3.0.0)
|
59
|
+
rspec-expectations (>= 3.0.0)
|
60
|
+
rspec-mocks (3.5.0)
|
61
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
62
|
+
rspec-support (~> 3.5.0)
|
63
|
+
rspec-support (3.5.0)
|
64
|
+
safe_yaml (1.0.4)
|
65
|
+
slop (3.6.0)
|
66
|
+
thread_safe (0.3.6)
|
67
|
+
tzinfo (1.2.2)
|
68
|
+
thread_safe (~> 0.1)
|
69
|
+
webmock (2.3.2)
|
70
|
+
addressable (>= 2.3.6)
|
71
|
+
crack (>= 0.3.2)
|
72
|
+
hashdiff
|
73
|
+
|
74
|
+
PLATFORMS
|
75
|
+
ruby
|
76
|
+
|
77
|
+
DEPENDENCIES
|
78
|
+
bundler (~> 1.13)
|
79
|
+
cashbox!
|
80
|
+
pry-byebug (~> 2.0)
|
81
|
+
rake (~> 10.0)
|
82
|
+
rspec (~> 3.0)
|
83
|
+
rspec-its (~> 1.2)
|
84
|
+
webmock (~> 2.0)
|
85
|
+
|
86
|
+
BUNDLED WITH
|
87
|
+
1.13.6
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Cashbox
|
2
2
|
|
3
|
+
### Status
|
4
|
+
|
5
|
+
[ ](https://app.codeship.com/projects/283978)
|
6
|
+
|
3
7
|
## Installation
|
4
8
|
|
5
9
|
Add this line to your application's Gemfile:
|
data/codeship-steps.yml
ADDED
data/lib/cashbox.rb
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
module Cashbox
|
2
|
+
class Invoice < Model
|
3
|
+
include Concern::Objectable
|
4
|
+
include Concern::Persistable
|
5
|
+
|
6
|
+
property :id
|
7
|
+
property :vid
|
8
|
+
property :billing_service_period_start, coerce: Cashbox::Type.DateTime
|
9
|
+
property :billing_service_period_end, coerce: Cashbox::Type.DateTime
|
10
|
+
property :due_date, coerce: Cashbox::Type.DateTime
|
11
|
+
property :invoice_date, coerce: Cashbox::Type.DateTime
|
12
|
+
property :status
|
13
|
+
property :invoice_currency
|
14
|
+
property :invoice_balance
|
15
|
+
property :gross_charges_total
|
16
|
+
property :tax_charges_total
|
17
|
+
property :credit_total
|
18
|
+
property :payments_received_total
|
19
|
+
property :billing_sequence
|
20
|
+
property :invoice_line_items, coerce: Cashbox::Type.List(Cashbox::InvoiceItem)
|
21
|
+
property :invoice_tax_items, coerce: Cashbox::Type.List(Cashbox::InvoiceItem)
|
22
|
+
property :invoice_payments, coerce: Cashbox::Type.List(Cashbox::Transaction)
|
23
|
+
property :account, coerce: Cashbox::Account
|
24
|
+
property :subscription, coerce: Cashbox::Subscription
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Cashbox
|
2
|
+
class InvoiceItem < Model
|
3
|
+
include Concern::Objectable
|
4
|
+
|
5
|
+
property :id
|
6
|
+
property :vid
|
7
|
+
property :index_number
|
8
|
+
property :type
|
9
|
+
property :sku
|
10
|
+
property :description
|
11
|
+
property :quantity
|
12
|
+
property :unit_amount
|
13
|
+
property :tax_classification
|
14
|
+
property :item_added, coerce: Cashbox::Type.DateTime
|
15
|
+
property :item_removed, coerce: Cashbox::Type.DateTime
|
16
|
+
property :item_serviceperiod_start, coerce: Cashbox::Type.DateTime
|
17
|
+
property :item_serviceperiod_end, coerce: Cashbox::Type.DateTime
|
18
|
+
property :subscription_item, coerce: Cashbox::SubscriptionItem
|
19
|
+
end
|
20
|
+
end
|
data/lib/cashbox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cashbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathon Storer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -161,11 +161,15 @@ files:
|
|
161
161
|
- ".rspec"
|
162
162
|
- ".ruby-version"
|
163
163
|
- CODE_OF_CONDUCT.md
|
164
|
+
- Dockerfile
|
164
165
|
- Gemfile
|
166
|
+
- Gemfile.lock
|
165
167
|
- LICENSE.txt
|
166
168
|
- README.md
|
167
169
|
- Rakefile
|
168
170
|
- cashbox.gemspec
|
171
|
+
- codeship-services.yml
|
172
|
+
- codeship-steps.yml
|
169
173
|
- lib/cashbox.rb
|
170
174
|
- lib/cashbox/concern/objectable.rb
|
171
175
|
- lib/cashbox/concern/persistable.rb
|
@@ -177,6 +181,8 @@ files:
|
|
177
181
|
- lib/cashbox/model/credit_card.rb
|
178
182
|
- lib/cashbox/model/description.rb
|
179
183
|
- lib/cashbox/model/entitlement.rb
|
184
|
+
- lib/cashbox/model/invoice.rb
|
185
|
+
- lib/cashbox/model/invoice_item.rb
|
180
186
|
- lib/cashbox/model/model.rb
|
181
187
|
- lib/cashbox/model/pay_pal.rb
|
182
188
|
- lib/cashbox/model/payment_method.rb
|