jortt 6.0.0 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yml +2 -15
- data/README.md +2 -2
- data/lib/jortt/client/customers.rb +11 -1
- data/lib/jortt/client/invoices.rb +2 -2
- data/lib/jortt/client/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_vat_percentages/returns_the_vat_percentages.yml +330 -0
- data/spec/jortt/client/customers_spec.rb +21 -5
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfce1585dc32518fb10a2d0bdb712186bb0a2746ba1367454e88601411516697
|
4
|
+
data.tar.gz: bc9d0972988bcaf7d74bd4c3bc2719bbe792cb873cbb294df5226a8bc7163eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24934871450f27a253940c5757b09e9298f04c9e0d4f62e002db8ea65e4c267923d97e2af8ef10c537ecd68baabcc712287b47e1f22b6468ffdb70448b33b6af
|
7
|
+
data.tar.gz: 8df956433f4b19e82d188382e048f212272acd5d8efdac9eede3cd95da41f07bc77b9c2ae52cfbfef00c010f280649a546b6a0736fb2f5155dda967aaaea80b1
|
data/.github/workflows/rspec.yml
CHANGED
@@ -19,22 +19,9 @@ jobs:
|
|
19
19
|
- name: Checkout code
|
20
20
|
uses: actions/checkout@v2
|
21
21
|
- name: Set up Ruby
|
22
|
-
uses:
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
23
|
with:
|
24
24
|
ruby-version: ${{ matrix.ruby-version }}
|
25
|
-
|
26
|
-
uses: actions/cache@v2
|
27
|
-
with:
|
28
|
-
path: vendor/bundle
|
29
|
-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
30
|
-
restore-keys: |
|
31
|
-
${{ runner.os }}-gems-
|
32
|
-
- name: Install bundler
|
33
|
-
run: |
|
34
|
-
gem install bundler
|
35
|
-
- name: Install ruby dependencies
|
36
|
-
run: |
|
37
|
-
bundle config path vendor/bundle
|
38
|
-
bundle install --jobs 4
|
25
|
+
bundler-cache: true
|
39
26
|
- name: Run tests
|
40
27
|
run: bundle exec rspec
|
data/README.md
CHANGED
@@ -99,12 +99,12 @@ jortt.invoices.create(
|
|
99
99
|
line_items: [
|
100
100
|
{
|
101
101
|
description: "this is a description example",
|
102
|
-
units: 3.14,
|
102
|
+
units: "3.14",
|
103
103
|
amount_per_unit: {
|
104
104
|
value: "365.00",
|
105
105
|
currency: "EUR"
|
106
106
|
},
|
107
|
-
|
107
|
+
vat_percentage: "21",
|
108
108
|
ledger_account_id: "f8fd3e4e-da1c-43a7-892f-1410ac13e38a"
|
109
109
|
}
|
110
110
|
],
|
@@ -82,10 +82,20 @@ module Jortt # :nodoc:
|
|
82
82
|
# @example
|
83
83
|
# client.customers.direct_debit_mandate("9afcd96e-caf8-40a1-96c9-1af16d0bc804")
|
84
84
|
#
|
85
|
-
|
86
85
|
def direct_debit_mandate(id)
|
87
86
|
client.post("/customers/#{id}/direct_debit_mandate")
|
88
87
|
end
|
88
|
+
|
89
|
+
##
|
90
|
+
# Get vat percentages for a Customer using the GET /customers/{customer_id}/vat-percentages endpoint.
|
91
|
+
# https://developer.jortt.nl/#get-vat-percentages-for-a-customer-by-id
|
92
|
+
#
|
93
|
+
# @example
|
94
|
+
# client.customers.vat_percentages("9afcd96e-caf8-40a1-96c9-1af16d0bc804")
|
95
|
+
#
|
96
|
+
def vat_percentages(id)
|
97
|
+
client.get("/customers/#{id}/vat-percentages")
|
98
|
+
end
|
89
99
|
end
|
90
100
|
end
|
91
101
|
end
|
data/lib/jortt/client/version.rb
CHANGED
@@ -0,0 +1,330 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://app.jortt.nl/oauth-provider/oauth/token
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: grant_type=client_credentials&scope=invoices%3Aread+invoices%3Awrite+customers%3Aread+customers%3Awrite
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.3.0
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 17 Sep 2021 14:20:52 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
Cache-Control:
|
34
|
+
- private, no-store
|
35
|
+
Referrer-Policy:
|
36
|
+
- strict-origin-when-cross-origin
|
37
|
+
X-Permitted-Cross-Domain-Policies:
|
38
|
+
- none
|
39
|
+
Pragma:
|
40
|
+
- no-cache
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
43
|
+
X-Request-Id:
|
44
|
+
- 18d48586-a6ba-42e6-95f6-1af02a748ebe
|
45
|
+
X-Download-Options:
|
46
|
+
- noopen
|
47
|
+
Etag:
|
48
|
+
- W/"bd879426f2c6e1a444613e47fcf6fc70"
|
49
|
+
X-Frame-Options:
|
50
|
+
- SAMEORIGIN
|
51
|
+
X-Runtime:
|
52
|
+
- '0.317692'
|
53
|
+
X-Content-Type-Options:
|
54
|
+
- nosniff
|
55
|
+
X-Powered-By:
|
56
|
+
- Phusion Passenger
|
57
|
+
Server:
|
58
|
+
- nginx + Phusion Passenger
|
59
|
+
body:
|
60
|
+
encoding: UTF-8
|
61
|
+
string: '{"access_token":"JnCMcVt4sGmjNbB7HZBwfHLeW7ZIUmW9osuDcyH7e6w","token_type":"Bearer","expires_in":7200,"scope":"invoices:read
|
62
|
+
invoices:write customers:read customers:write","created_at":1631888452}'
|
63
|
+
recorded_at: Fri, 17 Sep 2021 14:20:51 GMT
|
64
|
+
- request:
|
65
|
+
method: post
|
66
|
+
uri: https://api.jortt.nl/customers?customer_name=Jane%20Doe&is_private=true
|
67
|
+
body:
|
68
|
+
encoding: UTF-8
|
69
|
+
string: ''
|
70
|
+
headers:
|
71
|
+
User-Agent:
|
72
|
+
- Faraday v1.3.0
|
73
|
+
Content-Length:
|
74
|
+
- '0'
|
75
|
+
Accept-Encoding:
|
76
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
77
|
+
Accept:
|
78
|
+
- "*/*"
|
79
|
+
response:
|
80
|
+
status:
|
81
|
+
code: 201
|
82
|
+
message: Created
|
83
|
+
headers:
|
84
|
+
Date:
|
85
|
+
- Fri, 17 Sep 2021 14:20:52 GMT
|
86
|
+
Content-Type:
|
87
|
+
- application/json
|
88
|
+
Content-Length:
|
89
|
+
- '54'
|
90
|
+
Connection:
|
91
|
+
- keep-alive
|
92
|
+
Server:
|
93
|
+
- Apache
|
94
|
+
Status:
|
95
|
+
- 201 Created
|
96
|
+
Content-Security-Policy:
|
97
|
+
- 'default-src ''self'' ''unsafe-inline'' blob: data: *.jortt.nl; script-src
|
98
|
+
''self'' ''unsafe-eval'' blob: ''unsafe-inline'' files.jortt.nl *.googletagmanager.com
|
99
|
+
*.uservoice.com inlinemanual.com *.google-analytics.com *.googleadservices.com
|
100
|
+
bat.bing.com tapfiliate.com static.ads-twitter.com tagmanager.google.com analytics.twitter.com
|
101
|
+
https://connect.facebook.net https://app.inlinemanual.com https://cdn.inlinemanual.com
|
102
|
+
https://optimize.google.com https://www.googleoptimize.com; connect-src
|
103
|
+
''self'' https://*.jortt.nl wss://*.jortt.nl analytics.inlinemanual.com files.jortt.nl
|
104
|
+
www.google-analytics.com stats.g.doubleclick.net file-storage-app-production.s3.eu-central-1.amazonaws.com
|
105
|
+
https://app.inlinemanual.com https://appsignal-endpoint.net; style-src
|
106
|
+
''self'' ''unsafe-inline'' fonts.googleapis.com files.jortt.nl tagmanager.google.com
|
107
|
+
https://app.inlinemanual.com https://optimize.google.com; font-src ''self''
|
108
|
+
data: fonts.gstatic.com files.jortt.nl https://app.inlinemanual.com; frame-src
|
109
|
+
''self'' *.jortt.nl files.jortt.nl b.frstre.com beacon.tapfiliate.com jortt.uservoice.com
|
110
|
+
*.vimeo.com https://connect.facebook.net https://optimize.google.com; img-src
|
111
|
+
''self'' blob: data: *.jortt.nl https://www.facebook.com files.jortt.nl www.google-analytics.com
|
112
|
+
stats.g.doubleclick.net www.google.nl www.google.com bat.bing.com googleads.g.doubleclick.net
|
113
|
+
https://www.googletagmanager.com https://widget.uservoice.com www.google.de
|
114
|
+
t.co *.gstatic.com https://ssl.google-analytics.com https://app.inlinemanual.com; frame-ancestors
|
115
|
+
''self'' https://*.jortt.nl files.jortt.nl;'
|
116
|
+
body:
|
117
|
+
encoding: UTF-8
|
118
|
+
string: '{"data":{"id":"546a86e8-7a57-4d46-9a81-09378a399dd9"}}'
|
119
|
+
recorded_at: Fri, 17 Sep 2021 14:20:52 GMT
|
120
|
+
- request:
|
121
|
+
method: post
|
122
|
+
uri: https://api.jortt.nl/customers?customer_name=John%20Doe&is_private=true
|
123
|
+
body:
|
124
|
+
encoding: UTF-8
|
125
|
+
string: ''
|
126
|
+
headers:
|
127
|
+
User-Agent:
|
128
|
+
- Faraday v1.3.0
|
129
|
+
Content-Length:
|
130
|
+
- '0'
|
131
|
+
Accept-Encoding:
|
132
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
133
|
+
Accept:
|
134
|
+
- "*/*"
|
135
|
+
response:
|
136
|
+
status:
|
137
|
+
code: 201
|
138
|
+
message: Created
|
139
|
+
headers:
|
140
|
+
Date:
|
141
|
+
- Fri, 17 Sep 2021 14:20:52 GMT
|
142
|
+
Content-Type:
|
143
|
+
- application/json
|
144
|
+
Content-Length:
|
145
|
+
- '54'
|
146
|
+
Connection:
|
147
|
+
- keep-alive
|
148
|
+
Server:
|
149
|
+
- Apache
|
150
|
+
Status:
|
151
|
+
- 201 Created
|
152
|
+
Content-Security-Policy:
|
153
|
+
- 'default-src ''self'' ''unsafe-inline'' blob: data: *.jortt.nl; script-src
|
154
|
+
''self'' ''unsafe-eval'' blob: ''unsafe-inline'' files.jortt.nl *.googletagmanager.com
|
155
|
+
*.uservoice.com inlinemanual.com *.google-analytics.com *.googleadservices.com
|
156
|
+
bat.bing.com tapfiliate.com static.ads-twitter.com tagmanager.google.com analytics.twitter.com
|
157
|
+
https://connect.facebook.net https://app.inlinemanual.com https://cdn.inlinemanual.com
|
158
|
+
https://optimize.google.com https://www.googleoptimize.com; connect-src
|
159
|
+
''self'' https://*.jortt.nl wss://*.jortt.nl analytics.inlinemanual.com files.jortt.nl
|
160
|
+
www.google-analytics.com stats.g.doubleclick.net file-storage-app-production.s3.eu-central-1.amazonaws.com
|
161
|
+
https://app.inlinemanual.com https://appsignal-endpoint.net; style-src
|
162
|
+
''self'' ''unsafe-inline'' fonts.googleapis.com files.jortt.nl tagmanager.google.com
|
163
|
+
https://app.inlinemanual.com https://optimize.google.com; font-src ''self''
|
164
|
+
data: fonts.gstatic.com files.jortt.nl https://app.inlinemanual.com; frame-src
|
165
|
+
''self'' *.jortt.nl files.jortt.nl b.frstre.com beacon.tapfiliate.com jortt.uservoice.com
|
166
|
+
*.vimeo.com https://connect.facebook.net https://optimize.google.com; img-src
|
167
|
+
''self'' blob: data: *.jortt.nl https://www.facebook.com files.jortt.nl www.google-analytics.com
|
168
|
+
stats.g.doubleclick.net www.google.nl www.google.com bat.bing.com googleads.g.doubleclick.net
|
169
|
+
https://www.googletagmanager.com https://widget.uservoice.com www.google.de
|
170
|
+
t.co *.gstatic.com https://ssl.google-analytics.com https://app.inlinemanual.com; frame-ancestors
|
171
|
+
''self'' https://*.jortt.nl files.jortt.nl;'
|
172
|
+
body:
|
173
|
+
encoding: UTF-8
|
174
|
+
string: '{"data":{"id":"474d305e-8c98-42ff-9b8d-16cd8b296200"}}'
|
175
|
+
recorded_at: Fri, 17 Sep 2021 14:20:52 GMT
|
176
|
+
- request:
|
177
|
+
method: get
|
178
|
+
uri: https://api.jortt.nl/customers/546a86e8-7a57-4d46-9a81-09378a399dd9/vat-percentages
|
179
|
+
body:
|
180
|
+
encoding: US-ASCII
|
181
|
+
string: ''
|
182
|
+
headers:
|
183
|
+
User-Agent:
|
184
|
+
- Faraday v1.3.0
|
185
|
+
Accept-Encoding:
|
186
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
187
|
+
Accept:
|
188
|
+
- "*/*"
|
189
|
+
response:
|
190
|
+
status:
|
191
|
+
code: 200
|
192
|
+
message: OK
|
193
|
+
headers:
|
194
|
+
Date:
|
195
|
+
- Fri, 17 Sep 2021 14:20:53 GMT
|
196
|
+
Content-Type:
|
197
|
+
- application/json
|
198
|
+
Content-Length:
|
199
|
+
- '126'
|
200
|
+
Connection:
|
201
|
+
- keep-alive
|
202
|
+
Server:
|
203
|
+
- Apache
|
204
|
+
Status:
|
205
|
+
- 200 OK
|
206
|
+
Content-Security-Policy:
|
207
|
+
- 'default-src ''self'' ''unsafe-inline'' blob: data: *.jortt.nl; script-src
|
208
|
+
''self'' ''unsafe-eval'' blob: ''unsafe-inline'' files.jortt.nl *.googletagmanager.com
|
209
|
+
*.uservoice.com inlinemanual.com *.google-analytics.com *.googleadservices.com
|
210
|
+
bat.bing.com tapfiliate.com static.ads-twitter.com tagmanager.google.com analytics.twitter.com
|
211
|
+
https://connect.facebook.net https://app.inlinemanual.com https://cdn.inlinemanual.com
|
212
|
+
https://optimize.google.com https://www.googleoptimize.com; connect-src
|
213
|
+
''self'' https://*.jortt.nl wss://*.jortt.nl analytics.inlinemanual.com files.jortt.nl
|
214
|
+
www.google-analytics.com stats.g.doubleclick.net file-storage-app-production.s3.eu-central-1.amazonaws.com
|
215
|
+
https://app.inlinemanual.com https://appsignal-endpoint.net; style-src
|
216
|
+
''self'' ''unsafe-inline'' fonts.googleapis.com files.jortt.nl tagmanager.google.com
|
217
|
+
https://app.inlinemanual.com https://optimize.google.com; font-src ''self''
|
218
|
+
data: fonts.gstatic.com files.jortt.nl https://app.inlinemanual.com; frame-src
|
219
|
+
''self'' *.jortt.nl files.jortt.nl b.frstre.com beacon.tapfiliate.com jortt.uservoice.com
|
220
|
+
*.vimeo.com https://connect.facebook.net https://optimize.google.com; img-src
|
221
|
+
''self'' blob: data: *.jortt.nl https://www.facebook.com files.jortt.nl www.google-analytics.com
|
222
|
+
stats.g.doubleclick.net www.google.nl www.google.com bat.bing.com googleads.g.doubleclick.net
|
223
|
+
https://www.googletagmanager.com https://widget.uservoice.com www.google.de
|
224
|
+
t.co *.gstatic.com https://ssl.google-analytics.com https://app.inlinemanual.com; frame-ancestors
|
225
|
+
''self'' https://*.jortt.nl files.jortt.nl;'
|
226
|
+
body:
|
227
|
+
encoding: UTF-8
|
228
|
+
string: '{"data":{"id":"546a86e8-7a57-4d46-9a81-09378a399dd9","vat_percentages":{"standard_rate":"21.0","reduced_rate":["9.0","0.0"]}}}'
|
229
|
+
recorded_at: Fri, 17 Sep 2021 14:20:52 GMT
|
230
|
+
- request:
|
231
|
+
method: delete
|
232
|
+
uri: https://api.jortt.nl/customers/546a86e8-7a57-4d46-9a81-09378a399dd9
|
233
|
+
body:
|
234
|
+
encoding: US-ASCII
|
235
|
+
string: ''
|
236
|
+
headers:
|
237
|
+
User-Agent:
|
238
|
+
- Faraday v1.3.0
|
239
|
+
Accept-Encoding:
|
240
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
241
|
+
Accept:
|
242
|
+
- "*/*"
|
243
|
+
response:
|
244
|
+
status:
|
245
|
+
code: 204
|
246
|
+
message: No Content
|
247
|
+
headers:
|
248
|
+
Date:
|
249
|
+
- Fri, 17 Sep 2021 14:20:53 GMT
|
250
|
+
Connection:
|
251
|
+
- keep-alive
|
252
|
+
Server:
|
253
|
+
- Apache
|
254
|
+
Status:
|
255
|
+
- 204 No Content
|
256
|
+
Content-Security-Policy:
|
257
|
+
- 'default-src ''self'' ''unsafe-inline'' blob: data: *.jortt.nl; script-src
|
258
|
+
''self'' ''unsafe-eval'' blob: ''unsafe-inline'' files.jortt.nl *.googletagmanager.com
|
259
|
+
*.uservoice.com inlinemanual.com *.google-analytics.com *.googleadservices.com
|
260
|
+
bat.bing.com tapfiliate.com static.ads-twitter.com tagmanager.google.com analytics.twitter.com
|
261
|
+
https://connect.facebook.net https://app.inlinemanual.com https://cdn.inlinemanual.com
|
262
|
+
https://optimize.google.com https://www.googleoptimize.com; connect-src
|
263
|
+
''self'' https://*.jortt.nl wss://*.jortt.nl analytics.inlinemanual.com files.jortt.nl
|
264
|
+
www.google-analytics.com stats.g.doubleclick.net file-storage-app-production.s3.eu-central-1.amazonaws.com
|
265
|
+
https://app.inlinemanual.com https://appsignal-endpoint.net; style-src
|
266
|
+
''self'' ''unsafe-inline'' fonts.googleapis.com files.jortt.nl tagmanager.google.com
|
267
|
+
https://app.inlinemanual.com https://optimize.google.com; font-src ''self''
|
268
|
+
data: fonts.gstatic.com files.jortt.nl https://app.inlinemanual.com; frame-src
|
269
|
+
''self'' *.jortt.nl files.jortt.nl b.frstre.com beacon.tapfiliate.com jortt.uservoice.com
|
270
|
+
*.vimeo.com https://connect.facebook.net https://optimize.google.com; img-src
|
271
|
+
''self'' blob: data: *.jortt.nl https://www.facebook.com files.jortt.nl www.google-analytics.com
|
272
|
+
stats.g.doubleclick.net www.google.nl www.google.com bat.bing.com googleads.g.doubleclick.net
|
273
|
+
https://www.googletagmanager.com https://widget.uservoice.com www.google.de
|
274
|
+
t.co *.gstatic.com https://ssl.google-analytics.com https://app.inlinemanual.com; frame-ancestors
|
275
|
+
''self'' https://*.jortt.nl files.jortt.nl;'
|
276
|
+
body:
|
277
|
+
encoding: UTF-8
|
278
|
+
string: ''
|
279
|
+
recorded_at: Fri, 17 Sep 2021 14:20:52 GMT
|
280
|
+
- request:
|
281
|
+
method: delete
|
282
|
+
uri: https://api.jortt.nl/customers/474d305e-8c98-42ff-9b8d-16cd8b296200
|
283
|
+
body:
|
284
|
+
encoding: US-ASCII
|
285
|
+
string: ''
|
286
|
+
headers:
|
287
|
+
User-Agent:
|
288
|
+
- Faraday v1.3.0
|
289
|
+
Accept-Encoding:
|
290
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
291
|
+
Accept:
|
292
|
+
- "*/*"
|
293
|
+
response:
|
294
|
+
status:
|
295
|
+
code: 204
|
296
|
+
message: No Content
|
297
|
+
headers:
|
298
|
+
Date:
|
299
|
+
- Fri, 17 Sep 2021 14:20:53 GMT
|
300
|
+
Connection:
|
301
|
+
- keep-alive
|
302
|
+
Server:
|
303
|
+
- Apache
|
304
|
+
Status:
|
305
|
+
- 204 No Content
|
306
|
+
Content-Security-Policy:
|
307
|
+
- 'default-src ''self'' ''unsafe-inline'' blob: data: *.jortt.nl; script-src
|
308
|
+
''self'' ''unsafe-eval'' blob: ''unsafe-inline'' files.jortt.nl *.googletagmanager.com
|
309
|
+
*.uservoice.com inlinemanual.com *.google-analytics.com *.googleadservices.com
|
310
|
+
bat.bing.com tapfiliate.com static.ads-twitter.com tagmanager.google.com analytics.twitter.com
|
311
|
+
https://connect.facebook.net https://app.inlinemanual.com https://cdn.inlinemanual.com
|
312
|
+
https://optimize.google.com https://www.googleoptimize.com; connect-src
|
313
|
+
''self'' https://*.jortt.nl wss://*.jortt.nl analytics.inlinemanual.com files.jortt.nl
|
314
|
+
www.google-analytics.com stats.g.doubleclick.net file-storage-app-production.s3.eu-central-1.amazonaws.com
|
315
|
+
https://app.inlinemanual.com https://appsignal-endpoint.net; style-src
|
316
|
+
''self'' ''unsafe-inline'' fonts.googleapis.com files.jortt.nl tagmanager.google.com
|
317
|
+
https://app.inlinemanual.com https://optimize.google.com; font-src ''self''
|
318
|
+
data: fonts.gstatic.com files.jortt.nl https://app.inlinemanual.com; frame-src
|
319
|
+
''self'' *.jortt.nl files.jortt.nl b.frstre.com beacon.tapfiliate.com jortt.uservoice.com
|
320
|
+
*.vimeo.com https://connect.facebook.net https://optimize.google.com; img-src
|
321
|
+
''self'' blob: data: *.jortt.nl https://www.facebook.com files.jortt.nl www.google-analytics.com
|
322
|
+
stats.g.doubleclick.net www.google.nl www.google.com bat.bing.com googleads.g.doubleclick.net
|
323
|
+
https://www.googletagmanager.com https://widget.uservoice.com www.google.de
|
324
|
+
t.co *.gstatic.com https://ssl.google-analytics.com https://app.inlinemanual.com; frame-ancestors
|
325
|
+
''self'' https://*.jortt.nl files.jortt.nl;'
|
326
|
+
body:
|
327
|
+
encoding: UTF-8
|
328
|
+
string: ''
|
329
|
+
recorded_at: Fri, 17 Sep 2021 14:20:52 GMT
|
330
|
+
recorded_with: VCR 6.0.0
|
@@ -5,11 +5,11 @@ describe Jortt::Client::Customers, :vcr do
|
|
5
5
|
|
6
6
|
let(:params) do
|
7
7
|
{
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
is_private: false,
|
9
|
+
customer_name: 'Nuka-Cola Corporation',
|
10
|
+
address_street: 'Vault 11',
|
11
|
+
address_postal_code: '1111AA',
|
12
|
+
address_city: 'Mojave Wasteland'
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
@@ -101,4 +101,20 @@ describe Jortt::Client::Customers, :vcr do
|
|
101
101
|
end
|
102
102
|
end
|
103
103
|
end
|
104
|
+
|
105
|
+
describe '#vat_percentages' do
|
106
|
+
subject { client.customers.vat_percentages(jane) }
|
107
|
+
|
108
|
+
it "returns the vat percentages" do
|
109
|
+
expect(subject).to eq (
|
110
|
+
{
|
111
|
+
"id" => "546a86e8-7a57-4d46-9a81-09378a399dd9",
|
112
|
+
"vat_percentages" => {
|
113
|
+
"reduced_rate" => ["9.0", "0.0"],
|
114
|
+
"standard_rate" => "21.0",
|
115
|
+
}
|
116
|
+
}
|
117
|
+
)
|
118
|
+
end
|
119
|
+
end
|
104
120
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jortt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Forma
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rest-client
|
@@ -182,6 +182,7 @@ files:
|
|
182
182
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_index/without_params/returns_customers.yml
|
183
183
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_show/returns_the_customer.yml
|
184
184
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_update/updates_the_customer.yml
|
185
|
+
- spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_vat_percentages/returns_the_vat_percentages.yml
|
185
186
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Invoices/_create/creates_the_invoice.yml
|
186
187
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Invoices/_credit/credits_the_invoice.yml
|
187
188
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Invoices/_download/returns_the_invoice_download_link.yml
|
@@ -231,6 +232,7 @@ test_files:
|
|
231
232
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_index/without_params/returns_customers.yml
|
232
233
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_show/returns_the_customer.yml
|
233
234
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_update/updates_the_customer.yml
|
235
|
+
- spec/fixtures/vcr_cassettes/Jortt_Client_Customers/_vat_percentages/returns_the_vat_percentages.yml
|
234
236
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Invoices/_create/creates_the_invoice.yml
|
235
237
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Invoices/_credit/credits_the_invoice.yml
|
236
238
|
- spec/fixtures/vcr_cassettes/Jortt_Client_Invoices/_download/returns_the_invoice_download_link.yml
|