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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e8c90c985e2903b78aac8740875c83e34e2807f
4
- data.tar.gz: 6ce13a773b53e115d6997f5f201e19c24ae959de
3
+ metadata.gz: a80b9c7c4eccd124d8fd747c9c154ec28c18660d
4
+ data.tar.gz: 486619303a0b88216d227987a852bcf0af918ba5
5
5
  SHA512:
6
- metadata.gz: 016afcbef564c0dc62adae7a43dd333f37efd67794e442e8406ee8fb1614594285e4b8fd0f6205a53a990c27ed7669b218c8e31a2863819f36f2fd6f791c0eba
7
- data.tar.gz: 4a8a7d55a37c06ee9e76fd61321556321c30d41c403a920016738dc09f1b1e2db9f10c90cca6ca340a677790352f5e2118cb46c98b16a36101b97709e03e57ea
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 . ./
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cashbox (0.0.37)
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.0)
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.0.5)
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.5.7)
33
- httparty (0.16.2)
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.0.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.16.6
91
+ 1.17.1
@@ -47,11 +47,11 @@ module Cashbox
47
47
  billing_state == GRACE_PERIOD
48
48
  end
49
49
 
50
- def add_subscription_items(subscription_items, bill_prorated)
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: 'today',
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
@@ -6,6 +6,7 @@ module Cashbox
6
6
  property :item_type
7
7
  property :name
8
8
  property :quantity
9
+ property :replaces
9
10
  property :service_period_ends, coerce: Cashbox::Type.DateTime
10
11
  property :service_period_starts, coerce: Cashbox::Type.DateTime
11
12
  property :sku
@@ -1,3 +1,3 @@
1
1
  module Cashbox
2
- VERSION = "0.0.37"
2
+ VERSION = "0.0.38"
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.37
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: 2018-12-26 00:00:00.000000000 Z
11
+ date: 2019-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler