killbill-client 0.13.0 → 0.14.0
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/lib/killbill_client/models/invoice.rb +9 -5
- data/lib/killbill_client/version.rb +1 -1
- metadata +32 -38
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 48cdaec43be15b9b60a9f514d96410c2e1e680e0
|
|
4
|
+
data.tar.gz: 77718ed5919682cbbd05215f23977132ff659a98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e6ac6d1723ae4845e4e56af7c13c783d06665fe8a16c19082b2f39142b38edd9bdd8a2c6e7ceb05e049d5286aa1abc727027f860d57566f0a773b237895b1c9
|
|
7
|
+
data.tar.gz: ec0d266d12ca09c07de46fe96788b17e62deec948eb6e42e35bb5404c44d033a7f3435ef1c05522048b072bfd6553001346da33f19c385f140fbc69ee140a759
|
|
@@ -73,17 +73,21 @@ module KillBillClient
|
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
def trigger_invoice_dry_run(account_id, target_date, options = {})
|
|
77
|
-
query_map
|
|
78
|
-
|
|
76
|
+
def trigger_invoice_dry_run(account_id, target_date, upcoming_invoice_target_date, options = {})
|
|
77
|
+
query_map = {:accountId => account_id}
|
|
78
|
+
if upcoming_invoice_target_date
|
|
79
|
+
query_map[:targetDate] = "upcomingInvoiceTargetDate"
|
|
80
|
+
elsif target_date != nil
|
|
81
|
+
query_map[:targetDate] = target_date
|
|
82
|
+
end
|
|
79
83
|
|
|
80
84
|
begin
|
|
81
85
|
res = post "#{KILLBILL_API_DRY_RUN_INVOICES_PREFIX}",
|
|
82
86
|
{},
|
|
83
87
|
query_map,
|
|
84
88
|
{
|
|
85
|
-
:user
|
|
86
|
-
:reason
|
|
89
|
+
:user => 'trigger_invoice_dry_run',
|
|
90
|
+
:reason => '',
|
|
87
91
|
:comment => '',
|
|
88
92
|
}.merge(options),
|
|
89
93
|
Invoice
|
metadata
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: killbill-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Killbill core team
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
15
|
-
|
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - '>='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: 1.2.0
|
|
20
|
-
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
|
23
21
|
requirements:
|
|
24
|
-
- -
|
|
22
|
+
- - '>='
|
|
25
23
|
- !ruby/object:Gem::Version
|
|
26
24
|
version: 1.2.0
|
|
25
|
+
prerelease: false
|
|
26
|
+
type: :runtime
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
|
-
|
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: 10.0.0
|
|
34
|
-
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
|
37
35
|
requirements:
|
|
38
|
-
- -
|
|
36
|
+
- - '>='
|
|
39
37
|
- !ruby/object:Gem::Version
|
|
40
38
|
version: 10.0.0
|
|
39
|
+
prerelease: false
|
|
40
|
+
type: :development
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: rspec
|
|
43
|
-
|
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- -
|
|
45
|
+
- - ~>
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
47
|
version: 2.12.0
|
|
48
|
-
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
51
49
|
requirements:
|
|
52
|
-
- -
|
|
50
|
+
- - ~>
|
|
53
51
|
- !ruby/object:Gem::Version
|
|
54
52
|
version: 2.12.0
|
|
53
|
+
prerelease: false
|
|
54
|
+
type: :development
|
|
55
55
|
description: An API client library for Kill Bill.
|
|
56
56
|
email: killbilling-users@googlegroups.com
|
|
57
57
|
executables: []
|
|
58
58
|
extensions: []
|
|
59
59
|
extra_rdoc_files: []
|
|
60
60
|
files:
|
|
61
|
-
-
|
|
62
|
-
-
|
|
61
|
+
- .gitignore
|
|
62
|
+
- .travis.yml
|
|
63
63
|
- Gemfile
|
|
64
64
|
- README.md
|
|
65
65
|
- Rakefile
|
|
@@ -167,32 +167,26 @@ homepage: http://www.killbilling.org
|
|
|
167
167
|
licenses:
|
|
168
168
|
- Apache License (2.0)
|
|
169
169
|
metadata: {}
|
|
170
|
-
post_install_message:
|
|
170
|
+
post_install_message:
|
|
171
171
|
rdoc_options:
|
|
172
|
-
-
|
|
173
|
-
-
|
|
172
|
+
- --exclude
|
|
173
|
+
- .
|
|
174
174
|
require_paths:
|
|
175
175
|
- lib
|
|
176
176
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
177
|
requirements:
|
|
178
|
-
- -
|
|
178
|
+
- - '>='
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
180
|
version: 1.8.6
|
|
181
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
requirements:
|
|
183
|
-
- -
|
|
183
|
+
- - '>='
|
|
184
184
|
- !ruby/object:Gem::Version
|
|
185
185
|
version: '0'
|
|
186
186
|
requirements: []
|
|
187
|
-
rubyforge_project:
|
|
188
|
-
rubygems_version: 2.
|
|
189
|
-
signing_key:
|
|
187
|
+
rubyforge_project:
|
|
188
|
+
rubygems_version: 2.1.9
|
|
189
|
+
signing_key:
|
|
190
190
|
specification_version: 4
|
|
191
191
|
summary: Kill Bill client library.
|
|
192
|
-
test_files:
|
|
193
|
-
- spec/killbill_client/model_relation_spec.rb
|
|
194
|
-
- spec/killbill_client/remote/api_spec.rb
|
|
195
|
-
- spec/killbill_client/remote/model_spec.rb
|
|
196
|
-
- spec/killbill_client/resource_spec.rb
|
|
197
|
-
- spec/killbill_client/resources_spec.rb
|
|
198
|
-
- spec/spec_helper.rb
|
|
192
|
+
test_files: []
|