pactas_itero 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +15 -0
  3. data/.rubocop.yml +765 -0
  4. data/CHANGELOG.md +15 -0
  5. data/Gemfile +2 -0
  6. data/Rakefile +3 -0
  7. data/lib/pactas_itero/api/contracts.rb +7 -0
  8. data/lib/pactas_itero/api/customers.rb +2 -0
  9. data/lib/pactas_itero/api/invoices.rb +2 -0
  10. data/lib/pactas_itero/api/oauth.rb +2 -0
  11. data/lib/pactas_itero/api/orders.rb +2 -0
  12. data/lib/pactas_itero/api/rated_items.rb +11 -2
  13. data/lib/pactas_itero/api.rb +2 -0
  14. data/lib/pactas_itero/client.rb +11 -9
  15. data/lib/pactas_itero/configurable.rb +8 -6
  16. data/lib/pactas_itero/default.rb +7 -5
  17. data/lib/pactas_itero/error.rb +39 -35
  18. data/lib/pactas_itero/ext/hash/camelize_keys.rb +6 -3
  19. data/lib/pactas_itero/response/raise_error.rb +3 -1
  20. data/lib/pactas_itero/version.rb +3 -1
  21. data/lib/pactas_itero.rb +3 -1
  22. metadata +11 -83
  23. data/Gemfile.lock +0 -112
  24. data/bin/setup +0 -7
  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_changes.json +0 -22
  31. data/spec/fixtures/contract_termination_response.json +0 -79
  32. data/spec/fixtures/contracts.json +0 -48
  33. data/spec/fixtures/create_order_response.json +0 -17
  34. data/spec/fixtures/create_rated_item.json +0 -8
  35. data/spec/fixtures/customer.json +0 -23
  36. data/spec/fixtures/customers.json +0 -40
  37. data/spec/fixtures/invoice.json +0 -22
  38. data/spec/fixtures/invoice_download.pdf +0 -0
  39. data/spec/fixtures/invoices.json +0 -46
  40. data/spec/fixtures/order.json +0 -15
  41. data/spec/fixtures/payment_transaction.json +0 -37
  42. data/spec/fixtures/rated_items.json +0 -12
  43. data/spec/fixtures/self_service_token.json +0 -6
  44. data/spec/pactas_itero/api/contracts_spec.rb +0 -193
  45. data/spec/pactas_itero/api/customers_spec.rb +0 -231
  46. data/spec/pactas_itero/api/invoices_spec.rb +0 -103
  47. data/spec/pactas_itero/api/oauth_spec.rb +0 -44
  48. data/spec/pactas_itero/api/orders_spec.rb +0 -102
  49. data/spec/pactas_itero/api/payment_transactions_spec.rb +0 -66
  50. data/spec/pactas_itero/api/rated_items_spec.rb +0 -113
  51. data/spec/pactas_itero/client_spec.rb +0 -312
  52. data/spec/pactas_itero_spec.rb +0 -37
  53. data/spec/spec_helper.rb +0 -100
  54. data/yarn-error.log +0 -43
data/Gemfile.lock DELETED
@@ -1,112 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- pactas_itero (0.7.0)
5
- faraday_middleware (>= 1.0)
6
- rash_alt
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.8.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.5.0)
17
- docile (1.4.0)
18
- faraday (1.10.0)
19
- faraday-em_http (~> 1.0)
20
- faraday-em_synchrony (~> 1.0)
21
- faraday-excon (~> 1.1)
22
- faraday-httpclient (~> 1.0)
23
- faraday-multipart (~> 1.0)
24
- faraday-net_http (~> 1.0)
25
- faraday-net_http_persistent (~> 1.0)
26
- faraday-patron (~> 1.0)
27
- faraday-rack (~> 1.0)
28
- faraday-retry (~> 1.0)
29
- ruby2_keywords (>= 0.0.4)
30
- faraday-em_http (1.0.0)
31
- faraday-em_synchrony (1.0.0)
32
- faraday-excon (1.1.0)
33
- faraday-httpclient (1.0.1)
34
- faraday-multipart (1.0.3)
35
- multipart-post (>= 1.2, < 3)
36
- faraday-net_http (1.0.1)
37
- faraday-net_http_persistent (1.2.0)
38
- faraday-patron (1.0.0)
39
- faraday-rack (1.0.0)
40
- faraday-retry (1.0.3)
41
- faraday_middleware (1.2.0)
42
- faraday (~> 1.0)
43
- hashdiff (1.0.1)
44
- hashie (4.1.0)
45
- json (2.6.1)
46
- multipart-post (2.1.1)
47
- parallel (1.21.0)
48
- parser (3.1.0.0)
49
- ast (~> 2.4.1)
50
- public_suffix (4.0.6)
51
- rainbow (3.1.1)
52
- rake (13.0.6)
53
- rash_alt (0.4.9)
54
- hashie (~> 4.1)
55
- regexp_parser (2.2.1)
56
- rexml (3.2.5)
57
- rspec (3.11.0)
58
- rspec-core (~> 3.11.0)
59
- rspec-expectations (~> 3.11.0)
60
- rspec-mocks (~> 3.11.0)
61
- rspec-core (3.11.0)
62
- rspec-support (~> 3.11.0)
63
- rspec-expectations (3.11.0)
64
- diff-lcs (>= 1.2.0, < 2.0)
65
- rspec-support (~> 3.11.0)
66
- rspec-mocks (3.11.0)
67
- diff-lcs (>= 1.2.0, < 2.0)
68
- rspec-support (~> 3.11.0)
69
- rspec-support (3.11.0)
70
- rubocop (1.25.1)
71
- parallel (~> 1.10)
72
- parser (>= 3.1.0.0)
73
- rainbow (>= 2.2.2, < 4.0)
74
- regexp_parser (>= 1.8, < 3.0)
75
- rexml
76
- rubocop-ast (>= 1.15.1, < 2.0)
77
- ruby-progressbar (~> 1.7)
78
- unicode-display_width (>= 1.4.0, < 3.0)
79
- rubocop-ast (1.15.2)
80
- parser (>= 3.0.1.1)
81
- rubocop-performance (1.13.2)
82
- rubocop (>= 1.7.0, < 2.0)
83
- rubocop-ast (>= 0.4.0)
84
- ruby-progressbar (1.11.0)
85
- ruby2_keywords (0.0.5)
86
- simplecov (0.16.1)
87
- docile (~> 1.1)
88
- json (>= 1.8, < 3)
89
- simplecov-html (~> 0.10.0)
90
- simplecov-html (0.10.2)
91
- unicode-display_width (2.1.0)
92
- webmock (3.14.0)
93
- addressable (>= 2.8.0)
94
- crack (>= 0.3.2)
95
- hashdiff (>= 0.4.0, < 2.0.0)
96
-
97
- PLATFORMS
98
- arm64-darwin-21
99
- ruby
100
-
101
- DEPENDENCIES
102
- bundler
103
- pactas_itero!
104
- rake
105
- rspec (~> 3.11.0)
106
- rubocop (~> 1.25.1)
107
- rubocop-performance (~> 1.13.2)
108
- simplecov (~> 0.16.1)
109
- webmock (~> 3.3)
110
-
111
- BUNDLED WITH
112
- 2.3.7
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- gem install bundler -v "~> 2.0"
7
- bundle install
data/pactas_itero.gemspec DELETED
@@ -1,37 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path("lib", __dir__)
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 = 'pactas_itero provides a client mapping for accessing
12
- the Pactas Itero API.'
13
- spec.description = 'pactas_itero provides a client mapping for accessing
14
- the Pactas Itero API, making it easy to post your data to, and 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.6"
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.11.0"
33
- spec.add_development_dependency("rubocop", "~> 1.25.1")
34
- spec.add_development_dependency("rubocop-performance", "~> 1.13.2")
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,22 +0,0 @@
1
- [
2
- {
3
- "id": "620a22082b2290ae0d175bfa",
4
- "type": "Upgrade",
5
- "timestamp": "2022-02-14T08:34:00.0938297Z",
6
- "orderId": "620a22082b2290ae0d175bfc",
7
- "contractId": "620a22082b2290ae0d175bf8",
8
- "changeDate": "2022-03-14T09:34:00.0938301Z",
9
- "newPlanVariantId": "620a22082b2290ae0d175bfb",
10
- "newPlanId": "620a22082b2290ae0d175bf9"
11
- },
12
- {
13
- "id": "620a22082b2290ae0d175bfd",
14
- "type": "Signup",
15
- "timestamp": "2022-02-13T09:34:00.0938319Z",
16
- "orderId": "620a22082b2290ae0d175bff",
17
- "contractId": "620a22082b2290ae0d175bf8",
18
- "changeDate": "2022-02-14T09:34:00.0938319Z",
19
- "newPlanVariantId": "620a22082b2290ae0d175bfe",
20
- "newPlanId": "620a22082b2290ae0d175bf9"
21
- }
22
- ]
@@ -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
- }
@@ -1,8 +0,0 @@
1
- {
2
- "Description": "the description",
3
- "PeriodEnd": "2014-09-19T08:18:51.907Z",
4
- "PeriodStart": "2014-09-19T08:18:51.907Z",
5
- "PricePerUnit": 123.45,
6
- "Quantity": 2,
7
- "TaxPolicyId": "tax-policy-id"
8
- }
@@ -1,23 +0,0 @@
1
- {
2
- "Address": {
3
- "City": "Example City",
4
- "Country": "DE",
5
- "HouseNumber": "42",
6
- "PostalCode": "12345",
7
- "Street": "Example Street"
8
- },
9
- "CompanyName": "Example Company",
10
- "CreatedAt": "2014-05-12T14:22:24.0000000Z",
11
- "CustomerName": "Example Company",
12
- "CustomerType": "Consumer",
13
- "DefaultBearerMedium": "Email",
14
- "EmailAddress": "jane.doe@example.com",
15
- "ExternalCustomerId": "",
16
- "FirstName": "Jane",
17
- "Id": "5370d9201d8dd006288221b0",
18
- "Language": "de-DE",
19
- "LastName": "Doe",
20
- "Locale": "de-DE",
21
- "VatId": "DE123456710",
22
- "ExternalCustomerId": "1234"
23
- }
@@ -1,40 +0,0 @@
1
- [
2
- {
3
- "Address": {
4
- "City": "Example City",
5
- "Country": "DE",
6
- "HouseNumber": "42",
7
- "PostalCode": "12345",
8
- "Street": "Example Street"
9
- },
10
- "CompanyName": "Example Company",
11
- "CreatedAt": "2014-05-12T14:22:24.0000000Z",
12
- "CustomerName": "Example Company",
13
- "CustomerType": "Consumer",
14
- "DefaultBearerMedium": "Email",
15
- "EmailAddress": "jane.doe@example.com",
16
- "ExternalCustomerId": "",
17
- "FirstName": "Jane",
18
- "Id": "5370d9201d8dd006288221b0",
19
- "Language": "de-DE",
20
- "LastName": "Doe",
21
- "Locale": "de-DE",
22
- "VatId": "DE123456710"
23
- },
24
- {
25
- "Address": {},
26
- "CompanyName": "Test Inc.",
27
- "CreatedAt": "2014-05-14T14:21:20.0000000Z",
28
- "CustomerName": "Test Inc.",
29
- "CustomerType": "Consumer",
30
- "DefaultBearerMedium": "Email",
31
- "EmailAddress": "john.test@example.com",
32
- "ExternalCustomerId": "",
33
- "FirstName": "John",
34
- "Id": "5370d8e01d8dd00628822197",
35
- "Language": "de-DE",
36
- "LastName": "Test",
37
- "Locale": "de-DE",
38
- "VatId": "DE123456789"
39
- }
40
- ]
@@ -1,22 +0,0 @@
1
- {
2
- "Id": "54b67d9e995ec90bc8f37718",
3
- "InvoiceNumber": "SAN//2012//07--2435",
4
- "CustomerId": "54b67d9e675ec90bc8f3770c",
5
- "SentAt": "2012-07-03T23:02:22Z",
6
- "DueDate": "2012-08-02",
7
- "RecipientName": "OldTek GmbH",
8
- "RecipientSubName": "Hermann Anton Müller",
9
- "RecipientAddress": {
10
- "AddressLine1": "c/o Andreas Meister",
11
- "Street": "Sternstraße",
12
- "HouseNumber": "43",
13
- "PostalCode": "80538",
14
- "City": "München",
15
- "Country": "DE"
16
- },
17
- "Currency": "EUR",
18
- "TotalNet": "211.60",
19
- "TotalVat": "40.20",
20
- "TotalGross": "251.80",
21
- "IsInvoice": "False"
22
- }
Binary file
@@ -1,46 +0,0 @@
1
- [
2
- {
3
- "Id": "54b67d9e675ec90bc8f37718",
4
- "InvoiceNumber": "SAN//2012//07--2434",
5
- "CustomerId": "54b67d9e675ec90bc8f3770c",
6
- "SentAt": "2012-07-03T23:02:22Z",
7
- "DueDate": "2012-08-02",
8
- "RecipientName": "OldTek GmbH",
9
- "RecipientSubName": "Hermann Anton Müller",
10
- "RecipientAddress": {
11
- "AddressLine1": "c/o Andreas Meister",
12
- "Street": "Sternstraße",
13
- "HouseNumber": "43",
14
- "PostalCode": "80538",
15
- "City": "München",
16
- "Country": "DE"
17
- },
18
- "Currency": "EUR",
19
- "TotalNet": "211.60",
20
- "TotalVat": "40.20",
21
- "TotalGross": "251.80",
22
- "IsInvoice": "False"
23
- },
24
- {
25
- "Id": "54b67d9e995ec90bc8f37718",
26
- "InvoiceNumber": "SAN//2012//07--2435",
27
- "CustomerId": "54b67d9e675ec90bc8f3770c",
28
- "SentAt": "2012-07-03T23:02:22Z",
29
- "DueDate": "2012-08-02",
30
- "RecipientName": "OldTek GmbH",
31
- "RecipientSubName": "Hermann Anton Müller",
32
- "RecipientAddress": {
33
- "AddressLine1": "c/o Andreas Meister",
34
- "Street": "Sternstraße",
35
- "HouseNumber": "43",
36
- "PostalCode": "80538",
37
- "City": "München",
38
- "Country": "DE"
39
- },
40
- "Currency": "EUR",
41
- "TotalNet": "211.60",
42
- "TotalVat": "40.20",
43
- "TotalGross": "251.80",
44
- "IsInvoice": "False"
45
- }
46
- ]
@@ -1,15 +0,0 @@
1
- {
2
- "Id": "56af22c51d8dd207684db9b5",
3
- "PlanVariantId": "5357b8f11d8dd00fa0db6c1b",
4
- "AllowWithoutPaymentData": false,
5
- "ComponentSubscriptions": [],
6
- "DiscountSubscriptions": [],
7
- "Currency": "EUR",
8
- "Total": 24.9,
9
- "TotalVat": 4.73,
10
- "TotalGross": 29.63,
11
- "IsTrial": false,
12
- "Status": "InProgress",
13
- "CustomerId": "56af224c1d8dd207684db935",
14
- "ContractId": "56af22c51d8dd207684db9b4"
15
- }