pactas_itero 0.6.0 → 0.8.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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +15 -0
  3. data/.rubocop.yml +765 -0
  4. data/CHANGELOG.md +34 -1
  5. data/Gemfile +3 -1
  6. data/README.md +3 -1
  7. data/Rakefile +7 -4
  8. data/lib/pactas_itero/api/contracts.rb +12 -0
  9. data/lib/pactas_itero/api/customers.rb +2 -0
  10. data/lib/pactas_itero/api/invoices.rb +3 -2
  11. data/lib/pactas_itero/api/oauth.rb +3 -2
  12. data/lib/pactas_itero/api/orders.rb +2 -0
  13. data/lib/pactas_itero/api/rated_items.rb +10 -1
  14. data/lib/pactas_itero/api.rb +9 -7
  15. data/lib/pactas_itero/client.rb +32 -26
  16. data/lib/pactas_itero/configurable.rb +9 -8
  17. data/lib/pactas_itero/default.rb +17 -18
  18. data/lib/pactas_itero/error.rb +45 -44
  19. data/lib/pactas_itero/ext/hash/camelize_keys.rb +12 -10
  20. data/lib/pactas_itero/response/raise_error.rb +5 -5
  21. data/lib/pactas_itero/version.rb +3 -1
  22. data/lib/pactas_itero.rb +5 -3
  23. metadata +16 -83
  24. data/Gemfile.lock +0 -92
  25. data/pactas_itero.gemspec +0 -37
  26. data/spec/fixtures/bearer_token.json +0 -5
  27. data/spec/fixtures/commit_order_response.json +0 -50
  28. data/spec/fixtures/contract.json +0 -46
  29. data/spec/fixtures/contract_cancellation_preview_response.json +0 -73
  30. data/spec/fixtures/contract_termination_response.json +0 -79
  31. data/spec/fixtures/contracts.json +0 -48
  32. data/spec/fixtures/create_order_response.json +0 -17
  33. data/spec/fixtures/create_rated_item.json +0 -8
  34. data/spec/fixtures/customer.json +0 -23
  35. data/spec/fixtures/customers.json +0 -40
  36. data/spec/fixtures/invoice.json +0 -22
  37. data/spec/fixtures/invoice_download.pdf +0 -0
  38. data/spec/fixtures/invoices.json +0 -46
  39. data/spec/fixtures/order.json +0 -15
  40. data/spec/fixtures/payment_transaction.json +0 -37
  41. data/spec/fixtures/rated_items.json +0 -12
  42. data/spec/fixtures/self_service_token.json +0 -6
  43. data/spec/pactas_itero/api/contracts_spec.rb +0 -165
  44. data/spec/pactas_itero/api/customers_spec.rb +0 -229
  45. data/spec/pactas_itero/api/invoices_spec.rb +0 -103
  46. data/spec/pactas_itero/api/oauth_spec.rb +0 -44
  47. data/spec/pactas_itero/api/orders_spec.rb +0 -102
  48. data/spec/pactas_itero/api/payment_transactions_spec.rb +0 -66
  49. data/spec/pactas_itero/api/rated_items_spec.rb +0 -113
  50. data/spec/pactas_itero/client_spec.rb +0 -316
  51. data/spec/pactas_itero_spec.rb +0 -39
  52. data/spec/spec_helper.rb +0 -100
@@ -1,16 +1,16 @@
1
- require 'faraday'
2
- require 'pactas_itero/error'
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "pactas_itero/error"
3
5
 
4
6
  module PactasItero
5
7
  # Faraday response middleware
6
8
  module Response
7
-
8
9
  # This class raises an PactasItero-flavored exception based
9
10
  # HTTP status codes returned by the API
10
11
  class RaiseError < Faraday::Middleware
11
-
12
12
  def on_complete(response)
13
- if error = PactasItero::Error.from_response(response)
13
+ if (error = PactasItero::Error.from_response(response))
14
14
  raise error
15
15
  end
16
16
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PactasItero
2
- VERSION = "0.6.0".freeze
4
+ VERSION = "0.8.0"
3
5
  end
data/lib/pactas_itero.rb CHANGED
@@ -1,5 +1,7 @@
1
- require 'pactas_itero/client'
2
- require 'pactas_itero/default'
1
+ # frozen_string_literal: true
2
+
3
+ require "pactas_itero/client"
4
+ require "pactas_itero/default"
3
5
 
4
6
  module PactasItero
5
7
  class << self
@@ -13,7 +15,7 @@ module PactasItero
13
15
  end
14
16
 
15
17
  def respond_to_missing?(method_name, include_private = false)
16
- method_name != :client && client.respond_to?(method_name, include_private) || super
18
+ (method_name != :client && client.respond_to?(method_name, include_private)) || super
17
19
  end
18
20
 
19
21
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pactas_itero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Fröhler
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2023-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday_middleware
@@ -72,42 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 3.8.0
75
+ version: 3.11.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 3.8.0
82
+ version: 3.11.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: rubocop
84
+ name: standard
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.68'
89
+ version: 1.25.1
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0.68'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-performance
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1.3'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1.3'
96
+ version: 1.25.1
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: simplecov
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -138,16 +124,17 @@ dependencies:
138
124
  version: '3.3'
139
125
  description: |-
140
126
  pactas_itero provides a client mapping for accessing
141
- the Pactas Itero API, making it easy to post your data to, adn read your
127
+ the Pactas Itero API, making it easy to post your data to, and read your
142
128
  data from your Pactas account.
143
129
  email: simon@shipcloud.io
144
130
  executables: []
145
131
  extensions: []
146
132
  extra_rdoc_files: []
147
133
  files:
134
+ - ".codeclimate.yml"
135
+ - ".rubocop.yml"
148
136
  - CHANGELOG.md
149
137
  - Gemfile
150
- - Gemfile.lock
151
138
  - LICENSE.txt
152
139
  - README.md
153
140
  - Rakefile
@@ -167,38 +154,11 @@ files:
167
154
  - lib/pactas_itero/ext/hash/camelize_keys.rb
168
155
  - lib/pactas_itero/response/raise_error.rb
169
156
  - lib/pactas_itero/version.rb
170
- - pactas_itero.gemspec
171
- - spec/fixtures/bearer_token.json
172
- - spec/fixtures/commit_order_response.json
173
- - spec/fixtures/contract.json
174
- - spec/fixtures/contract_cancellation_preview_response.json
175
- - spec/fixtures/contract_termination_response.json
176
- - spec/fixtures/contracts.json
177
- - spec/fixtures/create_order_response.json
178
- - spec/fixtures/create_rated_item.json
179
- - spec/fixtures/customer.json
180
- - spec/fixtures/customers.json
181
- - spec/fixtures/invoice.json
182
- - spec/fixtures/invoice_download.pdf
183
- - spec/fixtures/invoices.json
184
- - spec/fixtures/order.json
185
- - spec/fixtures/payment_transaction.json
186
- - spec/fixtures/rated_items.json
187
- - spec/fixtures/self_service_token.json
188
- - spec/pactas_itero/api/contracts_spec.rb
189
- - spec/pactas_itero/api/customers_spec.rb
190
- - spec/pactas_itero/api/invoices_spec.rb
191
- - spec/pactas_itero/api/oauth_spec.rb
192
- - spec/pactas_itero/api/orders_spec.rb
193
- - spec/pactas_itero/api/payment_transactions_spec.rb
194
- - spec/pactas_itero/api/rated_items_spec.rb
195
- - spec/pactas_itero/client_spec.rb
196
- - spec/pactas_itero_spec.rb
197
- - spec/spec_helper.rb
198
157
  homepage: https://github.com/webionate/pactas_itero
199
158
  licenses:
200
159
  - MIT
201
- metadata: {}
160
+ metadata:
161
+ rubygems_mfa_required: 'true'
202
162
  post_install_message:
203
163
  rdoc_options: []
204
164
  require_paths:
@@ -207,42 +167,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
167
  requirements:
208
168
  - - ">="
209
169
  - !ruby/object:Gem::Version
210
- version: '2.0'
170
+ version: '2.6'
211
171
  required_rubygems_version: !ruby/object:Gem::Requirement
212
172
  requirements:
213
173
  - - ">="
214
174
  - !ruby/object:Gem::Version
215
175
  version: '0'
216
176
  requirements: []
217
- rubygems_version: 3.1.4
177
+ rubygems_version: 3.4.10
218
178
  signing_key:
219
179
  specification_version: 4
220
180
  summary: pactas_itero provides a client mapping for accessing the Pactas Itero API.
221
- test_files:
222
- - spec/fixtures/bearer_token.json
223
- - spec/fixtures/commit_order_response.json
224
- - spec/fixtures/contract.json
225
- - spec/fixtures/contract_cancellation_preview_response.json
226
- - spec/fixtures/contract_termination_response.json
227
- - spec/fixtures/contracts.json
228
- - spec/fixtures/create_order_response.json
229
- - spec/fixtures/create_rated_item.json
230
- - spec/fixtures/customer.json
231
- - spec/fixtures/customers.json
232
- - spec/fixtures/invoice.json
233
- - spec/fixtures/invoice_download.pdf
234
- - spec/fixtures/invoices.json
235
- - spec/fixtures/order.json
236
- - spec/fixtures/payment_transaction.json
237
- - spec/fixtures/rated_items.json
238
- - spec/fixtures/self_service_token.json
239
- - spec/pactas_itero/api/contracts_spec.rb
240
- - spec/pactas_itero/api/customers_spec.rb
241
- - spec/pactas_itero/api/invoices_spec.rb
242
- - spec/pactas_itero/api/oauth_spec.rb
243
- - spec/pactas_itero/api/orders_spec.rb
244
- - spec/pactas_itero/api/payment_transactions_spec.rb
245
- - spec/pactas_itero/api/rated_items_spec.rb
246
- - spec/pactas_itero/client_spec.rb
247
- - spec/pactas_itero_spec.rb
248
- - spec/spec_helper.rb
181
+ test_files: []
data/Gemfile.lock DELETED
@@ -1,92 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- pactas_itero (0.5.0)
5
- faraday_middleware (>= 1.0)
6
- rash_alt
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.7.0)
12
- public_suffix (>= 2.0.2, < 5.0)
13
- ast (2.4.2)
14
- crack (0.4.5)
15
- rexml
16
- diff-lcs (1.4.4)
17
- docile (1.3.5)
18
- faraday (1.3.0)
19
- faraday-net_http (~> 1.0)
20
- multipart-post (>= 1.2, < 3)
21
- ruby2_keywords
22
- faraday-net_http (1.0.1)
23
- faraday_middleware (1.0.0)
24
- faraday (~> 1.0)
25
- hashdiff (1.0.1)
26
- hashie (4.1.0)
27
- json (2.5.1)
28
- multipart-post (2.1.1)
29
- parallel (1.20.1)
30
- parser (3.0.0.0)
31
- ast (~> 2.4.1)
32
- public_suffix (4.0.6)
33
- rainbow (3.0.0)
34
- rake (13.0.3)
35
- rash_alt (0.4.9)
36
- hashie (~> 4.1)
37
- regexp_parser (2.0.3)
38
- rexml (3.2.4)
39
- rspec (3.8.0)
40
- rspec-core (~> 3.8.0)
41
- rspec-expectations (~> 3.8.0)
42
- rspec-mocks (~> 3.8.0)
43
- rspec-core (3.8.2)
44
- rspec-support (~> 3.8.0)
45
- rspec-expectations (3.8.6)
46
- diff-lcs (>= 1.2.0, < 2.0)
47
- rspec-support (~> 3.8.0)
48
- rspec-mocks (3.8.2)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.8.0)
51
- rspec-support (3.8.3)
52
- rubocop (1.8.1)
53
- parallel (~> 1.10)
54
- parser (>= 3.0.0.0)
55
- rainbow (>= 2.2.2, < 4.0)
56
- regexp_parser (>= 1.8, < 3.0)
57
- rexml
58
- rubocop-ast (>= 1.2.0, < 2.0)
59
- ruby-progressbar (~> 1.7)
60
- unicode-display_width (>= 1.4.0, < 3.0)
61
- rubocop-ast (1.4.1)
62
- parser (>= 2.7.1.5)
63
- rubocop-performance (1.7.1)
64
- rubocop (>= 0.82.0)
65
- ruby-progressbar (1.11.0)
66
- ruby2_keywords (0.0.4)
67
- simplecov (0.16.1)
68
- docile (~> 1.1)
69
- json (>= 1.8, < 3)
70
- simplecov-html (~> 0.10.0)
71
- simplecov-html (0.10.2)
72
- unicode-display_width (2.0.0)
73
- webmock (3.11.2)
74
- addressable (>= 2.3.6)
75
- crack (>= 0.3.2)
76
- hashdiff (>= 0.4.0, < 2.0.0)
77
-
78
- PLATFORMS
79
- ruby
80
-
81
- DEPENDENCIES
82
- bundler
83
- pactas_itero!
84
- rake
85
- rspec (~> 3.8.0)
86
- rubocop (~> 1.8.1)
87
- rubocop-performance (~> 1.7.0)
88
- simplecov (~> 0.16.1)
89
- webmock (~> 3.3)
90
-
91
- BUNDLED WITH
92
- 2.1.4
data/pactas_itero.gemspec DELETED
@@ -1,37 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'pactas_itero/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = 'pactas_itero'
8
- spec.version = PactasItero::VERSION
9
- spec.authors = ['Simon Fröhler']
10
- spec.email = "simon@shipcloud.io"
11
- spec.summary = %q{pactas_itero provides a client mapping for accessing
12
- the Pactas Itero API.}
13
- spec.description = %q{pactas_itero provides a client mapping for accessing
14
- the Pactas Itero API, making it easy to post your data to, adn read your
15
- data from your Pactas account.}
16
- spec.homepage = 'https://github.com/webionate/pactas_itero'
17
- spec.license = 'MIT'
18
-
19
- spec.files = Dir["lib/**/*.rb"] + Dir["bin/*"]
20
- spec.files += Dir["[A-Z]*"] + Dir["spec/**/*"]
21
- spec.test_files = spec.files.grep(%r{^spec/})
22
- spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
23
- spec.require_paths = ['lib']
24
-
25
- spec.required_ruby_version = ">= 2.0"
26
-
27
- spec.add_dependency("faraday_middleware", ">= 1.0")
28
- spec.add_dependency("rash_alt")
29
-
30
- spec.add_development_dependency 'bundler'
31
- spec.add_development_dependency 'rake'
32
- spec.add_development_dependency "rspec", '~> 3.8.0'
33
- spec.add_development_dependency("rubocop", '~> 0.68') # check houndci compatibility before updating rubocop
34
- spec.add_development_dependency("rubocop-performance", "~> 1.3")
35
- spec.add_development_dependency("simplecov", "~> 0.16.1")
36
- spec.add_development_dependency("webmock", "~> 3.3")
37
- end
@@ -1,5 +0,0 @@
1
- {
2
- "access_token": "top_secret_access_token",
3
- "expires": 0,
4
- "token_type": "bearer"
5
- }
@@ -1,50 +0,0 @@
1
- {
2
- "Id": "5370e5ab9e40071fd01e01e0",
3
- "LastBillingDate": "2014-05-22T13:33:30.9510000Z",
4
- "NextBillingDate": "2014-06-22T13:33:30.9510000Z",
5
- "PlanId": "525bf8eb9e40073a58590fd4",
6
- "CustomerId": "5370e5ab9e40071fd01e01df",
7
- "LifecycleStatus": "Active",
8
- "CustomerName": "asd asd",
9
- "Phases": [{
10
- "Type": "Normal",
11
- "StartDate": "2014-05-12T15:15:55.8410000Z",
12
- "PlanVariantId": "5256be5c9e4007398ce610f0",
13
- "PlanId": "5256be2a9e4007398ce610ef"
14
- }, {
15
- "Type": "Inactive",
16
- "StartDate": "2014-05-13T22:00:00.0000000Z"
17
- }, {
18
- "Type": "Normal",
19
- "StartDate": "2014-05-22T13:22:41.4510000Z",
20
- "PlanVariantId": "5256be5c9e4007398ce610f0",
21
- "PlanId": "5256be2a9e4007398ce610ef"
22
- }, {
23
- "Type": "Normal",
24
- "StartDate": "2014-05-22T13:33:30.9510000Z",
25
- "PlanVariantId": "525bf9089e40073a58590fd5",
26
- "PlanId": "525bf8eb9e40073a58590fd4"
27
- }],
28
- "Balance": 0,
29
- "Currency": "EUR",
30
- "PlanGroupId": "5256be1b9e4007398ce610ee",
31
- "PaymentBearer": {
32
- "Code": "41212312",
33
- "Holder": "asdasd asdad",
34
- "Country": "de",
35
- "Account": "*****3123",
36
- "Type": "BankAccount"
37
- },
38
- "PaymentProvider": "Paymill",
39
- "EscalationSuspended": false,
40
- "RecurringPaymentsPaused": false,
41
- "CurrentPhase": {
42
- "Type": "Normal",
43
- "StartDate": "2014-05-22T13:33:30.9510000Z",
44
- "PlanVariantId": "525bf9089e40073a58590fd5",
45
- "PlanId": "525bf8eb9e40073a58590fd4"
46
- },
47
- "StartDate": "2014-05-12T15:15:55.8410000Z",
48
- "BilledUntil": "2014-06-22T13:33:30.9510000Z",
49
- "PlanVariantId": "525bf9089e40073a58590fd5"
50
- }
@@ -1,46 +0,0 @@
1
- {
2
- "Balance": 0,
3
- "BilledUntil": "2014-05-23T13:12:47.0760000Z",
4
- "Currency": "EUR",
5
- "CurrentPhase": {
6
- "PlanId": "53567a9e1d8dd00df056564d",
7
- "PlanVariantId": "53567b431d8dd00df056564f",
8
- "StartDate": "2014-04-23T13:12:47.0760000Z",
9
- "Type": "Normal"
10
- },
11
- "CustomerId": "5357bc4f1d8dd00fa0db6c31",
12
- "CustomerName": "Max Mustermann",
13
- "EndDate": "2014-05-23T13:12:47.0760000Z",
14
- "EscalationSuspended": false,
15
- "Id": "5357bc4f1d8dd00fa0db6c32",
16
- "LastBillingDate": "2014-04-23T13:12:47.0760000Z",
17
- "LifecycleStatus": "Active",
18
- "NextBillingDate": "2014-05-23T13:12:47.0760000Z",
19
- "PaymentBearer": {
20
- "CardType": "visa",
21
- "Country": "DE",
22
- "ExpiryMonth": 12,
23
- "ExpiryYear": 2017,
24
- "Holder": "Marcellus Wallace",
25
- "Last4": "1111",
26
- "Type": "CreditCard"
27
- },
28
- "PaymentProvider": "Paymill",
29
- "Phases": [
30
- {
31
- "PlanId": "53567a9e1d8dd00df056564d",
32
- "PlanVariantId": "53567b431d8dd00df056564f",
33
- "StartDate": "2014-04-23T13:12:47.0760000Z",
34
- "Type": "Normal"
35
- },
36
- {
37
- "StartDate": "2014-05-23T13:12:47.0760000Z",
38
- "Type": "Inactive"
39
- }
40
- ],
41
- "PlanGroupId": "53567a731d8dd00df056564a",
42
- "PlanId": "53567a9e1d8dd00df056564d",
43
- "PlanVariantId": "53567b431d8dd00df056564f",
44
- "RecurringPaymentsPaused": false,
45
- "StartDate": "2014-04-23T13:12:47.0760000Z"
46
- }
@@ -1,73 +0,0 @@
1
- {
2
- "ContractAfter": {
3
- "Balance": 0,
4
- "Currency": "EUR",
5
- "CurrentPhase": {
6
- "PlanId": "53567a9e1d8dd00df056564d",
7
- "StartDate": "2015-10-15T09:02:21.2750000Z",
8
- "Type": "Trial"
9
- },
10
- "CustomFields": {},
11
- "CustomerId": "561f6b9d1d8dd21334f22cb0",
12
- "CustomerName": "Example Corp.",
13
- "EndDate": "2015-12-15T10:02:21.2750000Z",
14
- "EscalationSuspended": false,
15
- "Id": "561f6b9d1d8dd21334f22cb2",
16
- "LifecycleStatus": "InTrial",
17
- "NextBillingDate": "2015-11-15T10:02:21.2750000Z",
18
- "PaymentBearer": {
19
- "CardType": "visa",
20
- "Country": "DE",
21
- "ExpiryMonth": 12,
22
- "ExpiryYear": 2017,
23
- "Holder": "Marcellus Wallace",
24
- "Last4": "1111",
25
- "Type": "CreditCard"
26
- },
27
- "PaymentProvider": "Paymill",
28
- "PaymentProviderSupportRefunds": true,
29
- "Phases": [
30
- {
31
- "PlanId": "53567a9e1d8dd00df056564d",
32
- "StartDate": "2015-10-15T09:02:21.2750000Z",
33
- "Type": "Trial"
34
- },
35
- {
36
- "PlanId": "53567a9e1d8dd00df056564d",
37
- "PlanVariantId": "53567b431d8dd00df056564f",
38
- "StartDate": "2015-11-15T10:02:21.2750000Z",
39
- "Type": "Normal"
40
- },
41
- {
42
- "StartDate": "2015-12-15T10:02:21.2750000Z",
43
- "Type": "Inactive"
44
- }
45
- ],
46
- "PlanGroupId": "53567a731d8dd00df056564a",
47
- "PlanId": "53567a9e1d8dd00df056564d",
48
- "RecurringPaymentsPaused": false,
49
- "ReferenceCode": "RFDT-ZHXM",
50
- "StartDate": "2015-10-15T09:02:21.2750000Z"
51
- },
52
- "EndDate": "2015-12-15T10:02:21.2750000Z",
53
- "Invoice": {
54
- "ContractId": "561f6b9d1d8dd21334f22cb2",
55
- "CustomerId": "561f6b9d1d8dd21334f22cb0",
56
- "ItemList": [],
57
- "RecipientAddress": {
58
- "City": "Example City",
59
- "Country": "DE",
60
- "HouseNumber": "42",
61
- "PostalCode": "12345",
62
- "Street": "Example Street"
63
- },
64
- "RecipientName": "Example Corp.",
65
- "RecipientSubName": "Max Mustermann",
66
- "ReverseCharge": false,
67
- "TotalGross": 0,
68
- "TotalNet": 0,
69
- "TotalVat": 0,
70
- "VatDescriptors": []
71
- },
72
- "NextPossibleCancellationDate": "2015-11-15T10:02:21.2750000Z"
73
- }
@@ -1,79 +0,0 @@
1
- {
2
- "ContractAfter": {
3
- "Balance": -7.27,
4
- "BilledUntil": "2017-09-30T22:00:00.0000000Z",
5
- "BillingSuspended": false,
6
- "Currency": "EUR",
7
- "CurrentPhase": {
8
- "PlanId": "5357b8561d8dd00fa0db6c19",
9
- "PlanVariantId": "5357b8f11d8dd00fa0db6c1b",
10
- "Quantity": 1,
11
- "StartDate": "2017-08-08T12:30:39.8320000Z",
12
- "Type": "Normal"
13
- },
14
- "CustomFields": {},
15
- "CustomerId": "5922f1eeba5c1e0570f72e04",
16
- "CustomerName": "Musterfirma",
17
- "EndDate": "2017-10-01T14:51:29.3390000Z",
18
- "EscalationSuspended": false,
19
- "Id": "5922f50b81b1f007e0e4d738",
20
- "IsDeletable": false,
21
- "LastBillingDate": "2017-08-31T22:00:00.0000000Z",
22
- "LifecycleStatus": "Active",
23
- "NextBillingDate": "2017-09-30T22:00:00.0000000Z",
24
- "PaymentProvider": "PayOne",
25
- "PaymentProviderRole": "OnAccount",
26
- "PaymentProviderSupportRefunds": true,
27
- "Phases": [
28
- {
29
- "PlanId": "5357b8561d8dd00fa0db6c19",
30
- "PlanVariantId": "5357b8f11d8dd00fa0db6c1b",
31
- "Quantity": 1,
32
- "StartDate": "2017-05-22T14:26:19.6390000Z",
33
- "Type": "Normal"
34
- },
35
- {
36
- "StartDate": "2017-05-22T14:26:20.0000000Z",
37
- "Type": "Inactive"
38
- },
39
- {
40
- "PlanId": "5357b8561d8dd00fa0db6c19",
41
- "PlanVariantId": "5357b8f11d8dd00fa0db6c1b",
42
- "Quantity": 1,
43
- "StartDate": "2017-08-08T12:30:39.8320000Z",
44
- "Type": "Normal"
45
- },
46
- {
47
- "StartDate": "2017-10-01T14:51:29.3390000Z",
48
- "Type": "Inactive"
49
- }
50
- ],
51
- "PlanGroupId": "53567a731d8dd00df056564a",
52
- "PlanId": "5357b8561d8dd00fa0db6c19",
53
- "PlanVariantId": "5357b8f11d8dd00fa0db6c1b",
54
- "RecurringPaymentsPaused": false,
55
- "ReferenceCode": "NYXC-NPXH",
56
- "StartDate": "2017-05-22T14:26:19.6390000Z"
57
- },
58
- "EndDate": "2017-10-01T14:51:29.3390000Z",
59
- "Invoice": {
60
- "ContractId": "5922f50b81b1f007e0e4d738",
61
- "CustomerId": "5922f1eeba5c1e0570f72e04",
62
- "ExternalCustomerId": "a0979458",
63
- "ItemList": [],
64
- "RecipientAddress": {
65
- "City": "Musterstadt",
66
- "Country": "DE",
67
- "HouseNumber": "123",
68
- "PostalCode": "12345",
69
- "Street": "Musterstraße, 123"
70
- },
71
- "RecipientName": "Musterfirma",
72
- "RecipientSubName": "Max Mustermann",
73
- "ReverseCharge": false,
74
- "TotalGross": 0,
75
- "TotalNet": 0,
76
- "TotalVat": 0,
77
- "VatDescriptors": []
78
- }
79
- }
@@ -1,48 +0,0 @@
1
- [
2
- {
3
- "Balance": 0,
4
- "BilledUntil": "2014-05-23T13:12:47.0760000Z",
5
- "Currency": "EUR",
6
- "CurrentPhase": {
7
- "PlanId": "53567a9e1d8dd00df056564d",
8
- "PlanVariantId": "53567b431d8dd00df056564f",
9
- "StartDate": "2014-04-23T13:12:47.0760000Z",
10
- "Type": "Normal"
11
- },
12
- "CustomerId": "5357bc4f1d8dd00fa0db6c31",
13
- "CustomerName": "Max Mustermann",
14
- "EndDate": "2014-05-23T13:12:47.0760000Z",
15
- "EscalationSuspended": false,
16
- "Id": "5357bc4f1d8dd00fa0db6c32",
17
- "LastBillingDate": "2014-04-23T13:12:47.0760000Z",
18
- "LifecycleStatus": "Active",
19
- "NextBillingDate": "2014-05-23T13:12:47.0760000Z",
20
- "PaymentBearer": {
21
- "CardType": "visa",
22
- "Country": "DE",
23
- "ExpiryMonth": 12,
24
- "ExpiryYear": 2017,
25
- "Holder": "Marcellus Wallace",
26
- "Last4": "1111",
27
- "Type": "CreditCard"
28
- },
29
- "PaymentProvider": "Paymill",
30
- "Phases": [
31
- {
32
- "PlanId": "53567a9e1d8dd00df056564d",
33
- "PlanVariantId": "53567b431d8dd00df056564f",
34
- "StartDate": "2014-04-23T13:12:47.0760000Z",
35
- "Type": "Normal"
36
- },
37
- {
38
- "StartDate": "2014-05-23T13:12:47.0760000Z",
39
- "Type": "Inactive"
40
- }
41
- ],
42
- "PlanGroupId": "53567a731d8dd00df056564a",
43
- "PlanId": "53567a9e1d8dd00df056564d",
44
- "PlanVariantId": "53567b431d8dd00df056564f",
45
- "RecurringPaymentsPaused": false,
46
- "StartDate": "2014-04-23T13:12:47.0760000Z"
47
- }
48
- ]
@@ -1,17 +0,0 @@
1
- {
2
- "Id": "537dfcab9e400760b4cd6347",
3
- "AllowWithoutPaymentData": false,
4
- "ComponentSubscriptions": [{
5
- "PreventModification": false,
6
- "VatPercentage": 0,
7
- "TotalNet": 0,
8
- "TotalVat": 0,
9
- "ComponentId": "534bbdcc9e400722602f5a21",
10
- "Quantity": 1
11
- }],
12
- "Total": -0.99,
13
- "TotalVat": -0.19,
14
- "IsTrial": false,
15
- "CustomerId": "5370e5ab9e40071fd01e01df",
16
- "ContractId": "5370e5ab9e40071fd01e01e0"
17
- }