cashbox 0.0.1 → 0.0.2

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: ebbd158f354848a72145bfa71d1c5e7956098765
4
- data.tar.gz: c5b5461efa73a63be4664d2365f8744630e9f2c4
3
+ metadata.gz: 5fe784a85eecfedfab7d086b98e2d009adcd2541
4
+ data.tar.gz: 8c9b88899e9816f794170d92697e39c1893c327c
5
5
  SHA512:
6
- metadata.gz: f351afc15d6e16fa75321b98298a72fd6069281ff3da94b11ec73b539d2e78d1e61c375ddee2f629418443080ae9f6face4ea340c44705120dbec715ddbb5294
7
- data.tar.gz: d62ed9ed3f33e8406bd49763215d33a72d1bda1b8959e3cb73993211927f0e6858550149cd958596fb6d50fb8e8ecc5e41fbaf7b74b946f57b853902010dd657
6
+ metadata.gz: cc06420eed34c40c720abfb9b8fea8cf377af397789812dee1d03a9efaa0605739bd551b9608bebc4893c8f53dfd93c39d531fc931322ce802a4e19d11521fba
7
+ data.tar.gz: 34cdf5779e68f860170fb15b6145ce974232e61f1db9aefe37c350b995755ae279d777552f2fe46f04fdc801985bcfcde9681c80c6511c45e98ca7b5b82fff86
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
@@ -8,3 +7,4 @@
8
7
  /spec/reports/
9
8
  /tmp/
10
9
  /.DS_store
10
+ examples.rb
@@ -0,0 +1,12 @@
1
+ FROM paasmule/rbenv
2
+
3
+ RUN mkdir /app
4
+ ADD . /app
5
+ WORKDIR /app
6
+
7
+ RUN rbenv install $(cat .ruby-version)
8
+
9
+ COPY Gemfile Gemfile.lock ./
10
+ RUN gem install bundler && bundle install -j20
11
+
12
+ COPY . ./
@@ -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
+ [ ![Codeship Status for LegalShield/cashbox](https://app.codeship.com/projects/02080c20-18df-0136-5060-1edfcc351556/status?branch=master)](https://app.codeship.com/projects/283978)
6
+
3
7
  ## Installation
4
8
 
5
9
  Add this line to your application's Gemfile:
@@ -0,0 +1,4 @@
1
+ cashbox:
2
+ build:
3
+ image: cashbox
4
+ dockerfile: Dockerfile
@@ -0,0 +1,3 @@
1
+ - name: Tests
2
+ service: cashbox
3
+ command: bundle exec rake
@@ -52,6 +52,8 @@ module Cashbox
52
52
  autoload :CreditCard
53
53
  autoload :Description
54
54
  autoload :Entitlement
55
+ autoload :Invoice
56
+ autoload :InvoiceItem
55
57
  autoload :PayPal
56
58
  autoload :PaymentMethod
57
59
  autoload :Period
@@ -1,7 +1,7 @@
1
1
  module Cashbox
2
2
  class Account < Model
3
- include Cashbox::Concern::Objectable
4
- include Cashbox::Concern::Persistable
3
+ include Concern::Objectable
4
+ include Concern::Persistable
5
5
 
6
6
  property :id
7
7
  property :vid
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Cashbox
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-02 00:00:00.000000000 Z
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