cashbox 0.0.37 → 0.0.38
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/Dockerfile +2 -2
- data/Gemfile.lock +11 -7
- data/lib/cashbox/model/subscription.rb +5 -5
- data/lib/cashbox/model/transaction_item.rb +1 -0
- data/lib/cashbox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a80b9c7c4eccd124d8fd747c9c154ec28c18660d
|
|
4
|
+
data.tar.gz: 486619303a0b88216d227987a852bcf0af918ba5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e125bfd779af67f718afb2e77b0564e6eff366407371116272eba05c4f10bb276193abd36b542a0f0dfac153f9e068e52fd0cb3d832752aee005b85d63979344
|
|
7
|
+
data.tar.gz: 8fd9a0d22a11bc5f73b890e0fd509ceab50f6fba749b11fa60f77813b4fef5bf1887a9d5b1ad2f37237379e828cac1b5e8000f1f533869977e4a9dda16d6978d
|
data/Dockerfile
CHANGED
|
@@ -5,11 +5,11 @@ WORKDIR /app
|
|
|
5
5
|
|
|
6
6
|
ADD .ruby-version ./
|
|
7
7
|
RUN rbenv install $(cat .ruby-version)
|
|
8
|
-
RUN gem install bundler
|
|
8
|
+
RUN gem install bundler -v 1.17.3
|
|
9
9
|
|
|
10
10
|
ADD Gemfile Gemfile.lock cashbox.gemspec ./
|
|
11
11
|
RUN mkdir -p ./lib/cashbox/
|
|
12
12
|
ADD lib/cashbox/version.rb ./lib/cashbox/
|
|
13
|
-
RUN bundle install
|
|
13
|
+
RUN bundle install -j20
|
|
14
14
|
|
|
15
15
|
ADD . ./
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cashbox (0.0.
|
|
4
|
+
cashbox (0.0.38)
|
|
5
5
|
activesupport
|
|
6
6
|
addressable
|
|
7
7
|
hashie
|
|
@@ -10,7 +10,7 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
activesupport (5.2.
|
|
13
|
+
activesupport (5.2.2)
|
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
15
15
|
i18n (>= 0.7, < 2)
|
|
16
16
|
minitest (~> 5.1)
|
|
@@ -23,18 +23,22 @@ GEM
|
|
|
23
23
|
slop (~> 3.6)
|
|
24
24
|
coderay (1.1.2)
|
|
25
25
|
columnize (0.9.0)
|
|
26
|
-
concurrent-ruby (1.
|
|
26
|
+
concurrent-ruby (1.1.4)
|
|
27
27
|
crack (0.4.3)
|
|
28
28
|
safe_yaml (~> 1.0.0)
|
|
29
29
|
debugger-linecache (1.2.0)
|
|
30
30
|
diff-lcs (1.3)
|
|
31
31
|
hashdiff (0.3.7)
|
|
32
|
-
hashie (3.
|
|
33
|
-
httparty (0.16.
|
|
32
|
+
hashie (3.6.0)
|
|
33
|
+
httparty (0.16.3)
|
|
34
|
+
mime-types (~> 3.0)
|
|
34
35
|
multi_xml (>= 0.5.2)
|
|
35
|
-
i18n (1.
|
|
36
|
+
i18n (1.5.1)
|
|
36
37
|
concurrent-ruby (~> 1.0)
|
|
37
38
|
method_source (0.9.0)
|
|
39
|
+
mime-types (3.2.2)
|
|
40
|
+
mime-types-data (~> 3.2015)
|
|
41
|
+
mime-types-data (3.2018.0812)
|
|
38
42
|
minitest (5.11.3)
|
|
39
43
|
multi_xml (0.6.0)
|
|
40
44
|
pry (0.11.3)
|
|
@@ -84,4 +88,4 @@ DEPENDENCIES
|
|
|
84
88
|
webmock (~> 2.0)
|
|
85
89
|
|
|
86
90
|
BUNDLED WITH
|
|
87
|
-
1.
|
|
91
|
+
1.17.1
|
|
@@ -47,11 +47,11 @@ module Cashbox
|
|
|
47
47
|
billing_state == GRACE_PERIOD
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
def
|
|
51
|
-
request = Cashbox::Request.new(:post, route(vid),
|
|
50
|
+
def modify_subscription_items(subscription_items, bill_prorated, effective_date='today')
|
|
51
|
+
request = Cashbox::Request.new(:post, route(vid),
|
|
52
52
|
{
|
|
53
|
-
query: {
|
|
54
|
-
effective_date:
|
|
53
|
+
query: {
|
|
54
|
+
effective_date: effective_date,
|
|
55
55
|
bill_prorated_period: bill_prorated
|
|
56
56
|
},
|
|
57
57
|
body: {
|
|
@@ -59,7 +59,7 @@ module Cashbox
|
|
|
59
59
|
items: subscription_items
|
|
60
60
|
}.to_json
|
|
61
61
|
})
|
|
62
|
-
self.class.cast(self, request.response)
|
|
62
|
+
self.class.cast(self, request.response)
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
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.38
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathon Storer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|