fio_api 0.0.7 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 886ed6df6b92f3fda8e544c1a92d409b0d63e771
4
- data.tar.gz: 5254de00eeb387619475d8a5fcdb4a9f1e8ebe02
2
+ SHA256:
3
+ metadata.gz: 4637e351ea61bdbf29780a6f484476e8263be5f4affcbe7dbe7d559bb828761e
4
+ data.tar.gz: 4e32a12e425d4d3a108d58583d0926aaa9931134ea8ae11720412c8487286842
5
5
  SHA512:
6
- metadata.gz: a3d88c90b4e1b54b33c80ceaa85586e0e2455e2943a87600486a428f60bd14ca20c23febfb049d966f7aa9baaf9354d84a28358d3d3b5128556fda9f371adb19
7
- data.tar.gz: 8998e7992115cae5c652ed7633439815cc65a4fedf971554f6854520d82bd5bde55cb2577ef739388ab644f07cb56f378e9394249d6351074252b6dd2a704b71
6
+ metadata.gz: 889371500122508ad8dd0167505456b64ae0a6a3d215ae07664b9cca54b1b97f960560c44963f19900d30013fa25b2c2f326dd2e5dc98a7b61b147afefeb7068
7
+ data.tar.gz: af0dea8f4d2b1e98422546583aecde601167a07714f1a8afc055ea7b1c004136cb9cfbfdb9b0d7e3525d36eaf98f3f522f9502eb06dd83e039b76f2c6703b0dc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.9
data/fio_api.gemspec CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "fio_api".freeze
9
- s.version = "0.0.7"
9
+ s.version = "0.0.9"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
data/lib/base/list.rb CHANGED
@@ -14,7 +14,7 @@ module FioAPI
14
14
  # == Returns:
15
15
  # List insatnce with account info and transactions list
16
16
  #
17
- # https://www.fio.cz/ib_api/rest/periods/(token)/(date_from)/(date_to)/transactions.(format)
17
+ # https://fioapi.fio.cz/v1/rest/periods/(token)/(date_from)/(date_to)/transactions.(format)
18
18
  def by_date_range(from_date, to_date)
19
19
  fetch_and_deserialize_response("/periods/#{FioAPI.token}/#{from_date}/#{to_date}/transactions.json")
20
20
  end
@@ -30,7 +30,7 @@ module FioAPI
30
30
  # == Returns:
31
31
  # List insatnce with account info and transactions list
32
32
  #
33
- # https://www.fio.cz/ib_api/rest/by-id/(token)/(year)/(id)/transactions.(format)
33
+ # https://fioapi.fio.cz/v1/rest/by-id/(token)/(year)/(id)/transactions.(format)
34
34
  def by_listing_id_and_year(listing_id, year)
35
35
  fetch_and_deserialize_response("/by-id/#{FioAPI.token}/#{year}/#{listing_id}/transactions.json")
36
36
  end
@@ -40,7 +40,7 @@ module FioAPI
40
40
  # == Returns:
41
41
  # List insatnce with account info and transactions list
42
42
  #
43
- # https://www.fio.cz/ib_api/rest/last/(token)/transactions.(format)
43
+ # https://fioapi.fio.cz/v1/rest/last/(token)/transactions.(format)
44
44
  def from_last_fetch
45
45
  fetch_and_deserialize_response("/last/#{FioAPI.token}/transactions.json")
46
46
  end
@@ -54,7 +54,7 @@ module FioAPI
54
54
  # == Returns:
55
55
  # List insatnce with account info and transactions list
56
56
  #
57
- # https://www.fio.cz/ib_api/rest/set-last-id/(token)/(id)/
57
+ # https://fioapi.fio.cz/v1/rest/set-last-id/(token)/(id)/
58
58
  def set_last_fetch_id(transaction_id)
59
59
  fetch_and_deserialize_response("/set-last-id/#{FioAPI.token}/#{transaction_id}/")
60
60
  end
@@ -68,7 +68,7 @@ module FioAPI
68
68
  # == Returns:
69
69
  # List insatnce with account info and transactions list
70
70
  #
71
- # https://www.fio.cz/ib_api/rest/set-last-date/(token)/(rrrr-mm-dd)/
71
+ # https://fioapi.fio.cz/v1/rest/set-last-date/(token)/(rrrr-mm-dd)/
72
72
  def set_last_fetch_date(date)
73
73
  fetch_and_deserialize_response("/set-last-date/#{FioAPI.token}/#{date}/")
74
74
  end
data/lib/base/request.rb CHANGED
@@ -4,7 +4,7 @@ module FioAPI
4
4
  class Request < FioAPI::Base
5
5
  include HTTParty
6
6
 
7
- base_uri 'https://www.fio.cz/ib_api/rest/'
7
+ base_uri 'https://fioapi.fio.cz/v1/rest/'
8
8
 
9
9
  class << self
10
10
  # Reader for token
@@ -8,7 +8,7 @@ describe FioAPI::List do
8
8
  it 'should set request with uri for date range' do
9
9
  date_from = Date.new(2011, 1, 1)
10
10
  date_to = Date.new(2012, 11, 25)
11
- url = "https://www.fio.cz/ib_api/rest/periods/#{FioAPI.token}/#{date_from}/#{date_to}/transactions.json"
11
+ url = "https://fioapi.fio.cz/v1/rest/periods/#{FioAPI.token}/#{date_from}/#{date_to}/transactions.json"
12
12
  VCR.use_cassette 'by_date_range', erb: true do
13
13
  list = @list.by_date_range(date_from, date_to)
14
14
  expect(list.request.uri.to_s).to eq url
@@ -19,7 +19,7 @@ describe FioAPI::List do
19
19
  it 'should set request with uri for listing_id and year' do
20
20
  year = 2012
21
21
  id = '12345'
22
- url = "https://www.fio.cz/ib_api/rest/by-id/#{FioAPI.token}/#{year}/#{id}/transactions.json"
22
+ url = "https://fioapi.fio.cz/v1/rest/by-id/#{FioAPI.token}/#{year}/#{id}/transactions.json"
23
23
  VCR.use_cassette 'by_listing_id_and_year', erb: true do
24
24
  list = @list.by_listing_id_and_year(id, year)
25
25
  expect(list.request.uri.to_s).to eq url
@@ -28,7 +28,7 @@ describe FioAPI::List do
28
28
  end
29
29
 
30
30
  it 'should set request with uri from last fetch' do
31
- url = "https://www.fio.cz/ib_api/rest/last/#{FioAPI.token}/transactions.json"
31
+ url = "https://fioapi.fio.cz/v1/rest/last/#{FioAPI.token}/transactions.json"
32
32
  VCR.use_cassette 'from_last_fetch', erb: true do
33
33
  list = @list.from_last_fetch
34
34
  expect(list.request.uri.to_s).to eq url
@@ -38,7 +38,7 @@ describe FioAPI::List do
38
38
 
39
39
  it 'should set request with uri to set last fetch id' do
40
40
  id = '12345'
41
- url = "https://www.fio.cz/ib_api/rest/set-last-id/#{FioAPI.token}/#{id}/"
41
+ url = "https://fioapi.fio.cz/v1/rest/set-last-id/#{FioAPI.token}/#{id}/"
42
42
  VCR.use_cassette 'set_last_fetch_id', erb: true do
43
43
  list = @list.set_last_fetch_id(id)
44
44
  expect(list.request.uri.to_s).to eq url
@@ -48,7 +48,7 @@ describe FioAPI::List do
48
48
 
49
49
  it 'should set request with uri to set last date' do
50
50
  date = Date.new(2012, 11, 25)
51
- url = "https://www.fio.cz/ib_api/rest/set-last-date/#{FioAPI.token}/#{date}/"
51
+ url = "https://fioapi.fio.cz/v1/rest/set-last-date/#{FioAPI.token}/#{date}/"
52
52
  VCR.use_cassette 'set_last_fetch_date', erb: true do
53
53
  list = @list.set_last_fetch_date(date)
54
54
  expect(list.request.uri.to_s).to eq url
@@ -1,47 +1,47 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://www.fio.cz/ib_api/rest/periods/<%= FioAPI.token %>/2011-01-01/2012-11-25/transactions.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Date:
22
- - Sat, 02 Jun 2018 21:19:18 GMT
23
- Server:
24
- - Apache-Coyote/1.1
25
- X-Content-Type-Options:
26
- - nosniff
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- Referrer-Policy:
30
- - strict-origin-when-cross-origin
31
- X-Intervalusetoken:
32
- - '20000'
33
- Content-Type:
34
- - application/json;charset=UTF-8
35
- Content-Length:
36
- - '1253'
37
- X-Frame-Options:
38
- - SAMEORIGIN
39
- Strict-Transport-Security:
40
- - max-age=31536000
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |-
44
- eyJhY2NvdW50U3RhdGVtZW50Ijp7ImluZm8iOns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emV2IGJhbmt5IiwiaWQiOjEyfSwiY29sdW1uNCI6bnVsbCwiY29sdW1uNSI6bnVsbCwiY29sdW1uNiI6bnVsbCwiY29sdW1uNyI6bnVsbCwiY29sdW1uMTYiOnsidmFsdWUiOiJNaW5pbGFuaSB2a2xhZCBwcm8gRklPIiwibmFtZSI6IlpwcsOhdmEgcHJvIHDFmcOtamVtY2UiLCJpZCI6MTZ9LCJjb2x1bW44Ijp7InZhbHVlIjoiUMWZw61qZW0gcMWZZXZvZGVtIHV2bml0xZkgYmFua3kiLCJuYW1lIjoiVHlwIiwiaWQiOjh9LCJjb2x1bW45IjpudWxsLCJjb2x1bW4xOCI6bnVsbCwiY29sdW1uMjUiOnsidmFsdWUiOiJNaW5pbGFuaSB2a2xhZCBwcm8gRklPIiwibmFtZSI6IktvbWVudMOhxZkiLCJpZCI6MjV9LCJjb2x1bW4yNiI6bnVsbCwiY29sdW1uMTciOnsidmFsdWUiOjIxNjM3MzEwNTEsIm5hbWUiOiJJRCBwb2t5bnUiLCJpZCI6MTd9fV19fX0=
45
- http_version:
46
- recorded_at: Sat, 02 Jun 2018 21:19:19 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://fioapi.fio.cz/v1/rest/periods/<%= FioAPI.token %>/2011-01-01/2012-11-25/transactions.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 02 Jun 2018 21:19:18 GMT
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ Referrer-Policy:
30
+ - strict-origin-when-cross-origin
31
+ X-Intervalusetoken:
32
+ - "20000"
33
+ Content-Type:
34
+ - application/json;charset=UTF-8
35
+ Content-Length:
36
+ - "1253"
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ Strict-Transport-Security:
40
+ - max-age=31536000
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |-
44
+ eyJhY2NvdW50U3RhdGVtZW50Ijp7ImluZm8iOnsiYWNjb3VudElkIjoiMjMwMDMxODY1MCIsImJhbmtJZCI6IjIwMTAiLCJjdXJyZW5jeSI6IkNaSyIsImliYW4iOiJDWjc5MjAxMDAwMDAwMDIzMDAzMTg2NTAiLCJiaWMiOiJGSU9CQ1pQUFhYWCIsIm9wZW5pbmdCYWxhbmNlIjowLjAwLCJjbG9zaW5nQmFsYW5jZSI6MTAwLjAwLCJkYXRlU3RhcnQiOiIyMDExLTAxLTAxKzAxMDAiLCJkYXRlRW5kIjoiMjAxMi0xMS0yNSswMTAwIiwieWVhckxpc3QiOm51bGwsImlkTGlzdCI6bnVsbCwiaWRGcm9tIjoxMTYwNTE1NjY5LCJpZFRvIjoxMTYwNTE1NjY5LCJpZExhc3REb3dubG9hZCI6bnVsbH0sInRyYW5zYWN0aW9uTGlzdCI6eyJ0cmFuc2FjdGlvbiI6W3siY29sdW1uMjIiOnsidmFsdWUiOjExNjA1MTU2NjksIm5hbWUiOiJJRCBwb2h5YnUiLCJpZCI6MjJ9LCJjb2x1bW4wIjp7InZhbHVlIjoiMjAxMi0xMC0xOCswMjAwIiwibmFtZSI6IkRhdHVtIiwiaWQiOjB9LCJjb2x1bW4xIjp7InZhbHVlIjoxMDAuMDAsIm5hbWUiOiJPYmplbSIsImlkIjoxfSwiY29sdW1uMTQiOnsidmFsdWUiOiJDWksiLCJuYW1lIjoiTcSbbmEiLCJpZCI6MTR9LCJjb2x1bW4yIjp7InZhbHVlIjoiMjYwMDE3MDIwNSIsIm5hbWUiOiJQcm90acO6xI1ldCIsImlkIjoyfSwiY29sdW1uMTAiOnsidmFsdWUiOiJNYXJ0aW7DrWssIEFkYW0iLCJuYW1lIjoiTsOhemV2IHByb3Rpw7rEjXR1IiwiaWQiOjEwfSwiY29sdW1uMyI6eyJ2YWx1ZSI6IjIwMTAiLCJuYW1lIjoiS8OzZCBiYW5reSIsImlkIjozfSwiY29sdW1uMTIiOnsidmFsdWUiOiJGaW8gYmFua2EsIGEucy4iLCJuYW1lIjoiTsOhemV2IGJhbmt5IiwiaWQiOjEyfSwiY29sdW1uNCI6bnVsbCwiY29sdW1uNSI6bnVsbCwiY29sdW1uNiI6bnVsbCwiY29sdW1uNyI6bnVsbCwiY29sdW1uMTYiOnsidmFsdWUiOiJNaW5pbGFuaSB2a2xhZCBwcm8gRklPIiwibmFtZSI6IlpwcsOhdmEgcHJvIHDFmcOtamVtY2UiLCJpZCI6MTZ9LCJjb2x1bW44Ijp7InZhbHVlIjoiUMWZw61qZW0gcMWZZXZvZGVtIHV2bml0xZkgYmFua3kiLCJuYW1lIjoiVHlwIiwiaWQiOjh9LCJjb2x1bW45IjpudWxsLCJjb2x1bW4xOCI6bnVsbCwiY29sdW1uMjUiOnsidmFsdWUiOiJNaW5pbGFuaSB2a2xhZCBwcm8gRklPIiwibmFtZSI6IktvbWVudMOhxZkiLCJpZCI6MjV9LCJjb2x1bW4yNiI6bnVsbCwiY29sdW1uMTciOnsidmFsdWUiOjIxNjM3MzEwNTEsIm5hbWUiOiJJRCBwb2t5bnUiLCJpZCI6MTd9fV19fX0=
45
+ http_version:
46
+ recorded_at: Sat, 02 Jun 2018 21:19:19 GMT
47
47
  recorded_with: VCR 4.0.0
@@ -1,49 +1,49 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://www.fio.cz/ib_api/rest/by-id/<%= FioAPI.token %>/2012/12345/transactions.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 500
19
- message: Internal Server Error
20
- headers:
21
- Date:
22
- - Sat, 02 Jun 2018 21:21:47 GMT
23
- Server:
24
- - Apache-Coyote/1.1
25
- X-Content-Type-Options:
26
- - nosniff
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- Referrer-Policy:
30
- - strict-origin-when-cross-origin
31
- X-Intervalusetoken:
32
- - '20000'
33
- Content-Type:
34
- - text/xml;charset=UTF-8
35
- Content-Length:
36
- - '338'
37
- X-Frame-Options:
38
- - SAMEORIGIN
39
- Strict-Transport-Security:
40
- - max-age=31536000
41
- Connection:
42
- - close
43
- body:
44
- encoding: ASCII-8BIT
45
- string: !binary |-
46
- PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PgoKPHJlc3BvbnNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhzaTpub05hbWVzcGFjZVNjaGVtYUxvY2F0aW9uPSJodHRwczovL3d3dy5maW8uY3ovc2NoZW1hL3Jlc3BvbnNlLnhzZCI+Cgk8cmVzdWx0PiAKCQk8ZXJyb3JDb2RlPjIxPC9lcnJvckNvZGU+CgkJPHN0YXR1cz5lcnJvcjwvc3RhdHVzPgoJCTxtZXNzYWdlPlbDvXBpcyBuZWV4aXN0dWplPC9tZXNzYWdlPgoJCTxkZXRhaWw+PC9kZXRhaWw+Cgk8L3Jlc3VsdD4KPC9yZXNwb25zZT4=
47
- http_version:
48
- recorded_at: Sat, 02 Jun 2018 21:21:47 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://fioapi.fio.cz/v1/rest/by-id/<%= FioAPI.token %>/2012/12345/transactions.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 500
19
+ message: Internal Server Error
20
+ headers:
21
+ Date:
22
+ - Sat, 02 Jun 2018 21:21:47 GMT
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ Referrer-Policy:
30
+ - strict-origin-when-cross-origin
31
+ X-Intervalusetoken:
32
+ - "20000"
33
+ Content-Type:
34
+ - text/xml;charset=UTF-8
35
+ Content-Length:
36
+ - "338"
37
+ X-Frame-Options:
38
+ - SAMEORIGIN
39
+ Strict-Transport-Security:
40
+ - max-age=31536000
41
+ Connection:
42
+ - close
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: !binary |-
46
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PgoKPHJlc3BvbnNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhzaTpub05hbWVzcGFjZVNjaGVtYUxvY2F0aW9uPSJodHRwczovL3d3dy5maW8uY3ovc2NoZW1hL3Jlc3BvbnNlLnhzZCI+Cgk8cmVzdWx0PiAKCQk8ZXJyb3JDb2RlPjIxPC9lcnJvckNvZGU+CgkJPHN0YXR1cz5lcnJvcjwvc3RhdHVzPgoJCTxtZXNzYWdlPlbDvXBpcyBuZWV4aXN0dWplPC9tZXNzYWdlPgoJCTxkZXRhaWw+PC9kZXRhaWw+Cgk8L3Jlc3VsdD4KPC9yZXNwb25zZT4=
47
+ http_version:
48
+ recorded_at: Sat, 02 Jun 2018 21:21:47 GMT
49
49
  recorded_with: VCR 4.0.0
@@ -1,44 +1,44 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://www.fio.cz/ib_api/rest/last/<%= FioAPI.token %>/transactions.json
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 409
19
- message: Conflict
20
- headers:
21
- Date:
22
- - Sat, 02 Jun 2018 21:21:47 GMT
23
- Server:
24
- - Apache-Coyote/1.1
25
- X-Content-Type-Options:
26
- - nosniff
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- Referrer-Policy:
30
- - strict-origin-when-cross-origin
31
- Content-Type:
32
- - text/plain;charset=UTF-8
33
- Content-Length:
34
- - '0'
35
- X-Frame-Options:
36
- - SAMEORIGIN
37
- Strict-Transport-Security:
38
- - max-age=31536000
39
- body:
40
- encoding: UTF-8
41
- string: ''
42
- http_version:
43
- recorded_at: Sat, 02 Jun 2018 21:21:47 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://fioapi.fio.cz/v1/rest/last/<%= FioAPI.token %>/transactions.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 409
19
+ message: Conflict
20
+ headers:
21
+ Date:
22
+ - Sat, 02 Jun 2018 21:21:47 GMT
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ Referrer-Policy:
30
+ - strict-origin-when-cross-origin
31
+ Content-Type:
32
+ - text/plain;charset=UTF-8
33
+ Content-Length:
34
+ - "0"
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ body:
40
+ encoding: UTF-8
41
+ string: ""
42
+ http_version:
43
+ recorded_at: Sat, 02 Jun 2018 21:21:47 GMT
44
44
  recorded_with: VCR 4.0.0
@@ -1,53 +1,55 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: https://www.fio.cz/ib_api/rest/import/?token=<%= FioAPI.token %>&type=xml
6
- body:
7
- encoding: UTF-8
8
- string: "--------------------------zhBhYIqS35Jglk8M\r\nContent-Disposition:
9
- form-data; name=\"file\"; filename=\"20180603-11219-1kw9ccy\"\r\nContent-Type:
10
- application/octet-stream\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Import
11
- xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.fio.cz/schema/importIB.xsd\">\n
12
- \ <Orders>\n <DomesticTransaction>\n <accountFrom>11111111</accountFrom>\n
13
- \ <currency>CZK</currency>\n <amount>100.0</amount>\n <accountTo>22222222</accountTo>\n
14
- \ <bankCode>3030</bankCode>\n <ks/>\n <vs/>\n <ss/>\n <date>2018-06-15</date>\n
15
- \ <messageForRecipient/>\n <comment/>\n <paymentType>431001</paymentType>\n
16
- \ </DomesticTransaction>\n </Orders>\n</Import>\n\r\n--------------------------zhBhYIqS35Jglk8M--\r\n"
17
- headers:
18
- Content-Type:
19
- - multipart/form-data; boundary=------------------------zhBhYIqS35Jglk8M
20
- Boundary:
21
- - "-----------RubyMultipartPost"
22
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Date:
28
- - Sat, 02 Jun 2018 23:49:44 GMT
29
- Server:
30
- - Apache-Coyote/1.1
31
- X-Content-Type-Options:
32
- - nosniff
33
- X-Xss-Protection:
34
- - 1; mode=block
35
- Referrer-Policy:
36
- - strict-origin-when-cross-origin
37
- Content-Type:
38
- - application/xml;charset=UTF-8
39
- X-Frame-Options:
40
- - SAMEORIGIN
41
- Strict-Transport-Security:
42
- - max-age=31536000
43
- Transfer-Encoding:
44
- - chunked
45
- body:
46
- encoding: UTF-8
47
- string: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><responseImport
48
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.fio.cz/schema/responseImport.xsd"><result><errorCode>0</errorCode><idInstruction>153935923</idInstruction><status>ok</status><sums><sum
49
- id="CZK"><sumCredit>0</sumCredit><sumDebet>100.0</sumDebet></sum></sums></result><ordersDetails><detail
50
- id="1"><messages><message status="ok" errorCode="0">OK</message></messages></detail></ordersDetails></responseImport>
51
- http_version:
52
- recorded_at: Sat, 02 Jun 2018 23:49:44 GMT
3
+ - request:
4
+ method: post
5
+ uri: https://fioapi.fio.cz/v1/rest/import/?token=<%= FioAPI.token %>&type=xml
6
+ body:
7
+ encoding: UTF-8
8
+ string:
9
+ "--------------------------zhBhYIqS35Jglk8M\r\nContent-Disposition:
10
+ form-data; name=\"file\"; filename=\"20180603-11219-1kw9ccy\"\r\nContent-Type:
11
+ application/octet-stream\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Import
12
+ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.fio.cz/schema/importIB.xsd\">\n
13
+ \ <Orders>\n <DomesticTransaction>\n <accountFrom>11111111</accountFrom>\n
14
+ \ <currency>CZK</currency>\n <amount>100.0</amount>\n <accountTo>22222222</accountTo>\n
15
+ \ <bankCode>3030</bankCode>\n <ks/>\n <vs/>\n <ss/>\n <date>2018-06-15</date>\n
16
+ \ <messageForRecipient/>\n <comment/>\n <paymentType>431001</paymentType>\n
17
+ \ </DomesticTransaction>\n </Orders>\n</Import>\n\r\n--------------------------zhBhYIqS35Jglk8M--\r\n"
18
+ headers:
19
+ Content-Type:
20
+ - multipart/form-data; boundary=------------------------zhBhYIqS35Jglk8M
21
+ Boundary:
22
+ - "-----------RubyMultipartPost"
23
+ response:
24
+ status:
25
+ code: 200
26
+ message: OK
27
+ headers:
28
+ Date:
29
+ - Sat, 02 Jun 2018 23:49:44 GMT
30
+ Server:
31
+ - Apache-Coyote/1.1
32
+ X-Content-Type-Options:
33
+ - nosniff
34
+ X-Xss-Protection:
35
+ - 1; mode=block
36
+ Referrer-Policy:
37
+ - strict-origin-when-cross-origin
38
+ Content-Type:
39
+ - application/xml;charset=UTF-8
40
+ X-Frame-Options:
41
+ - SAMEORIGIN
42
+ Strict-Transport-Security:
43
+ - max-age=31536000
44
+ Transfer-Encoding:
45
+ - chunked
46
+ body:
47
+ encoding: UTF-8
48
+ string:
49
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?><responseImport
50
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.fio.cz/schema/responseImport.xsd"><result><errorCode>0</errorCode><idInstruction>153935923</idInstruction><status>ok</status><sums><sum
51
+ id="CZK"><sumCredit>0</sumCredit><sumDebet>100.0</sumDebet></sum></sums></result><ordersDetails><detail
52
+ id="1"><messages><message status="ok" errorCode="0">OK</message></messages></detail></ordersDetails></responseImport>
53
+ http_version:
54
+ recorded_at: Sat, 02 Jun 2018 23:49:44 GMT
53
55
  recorded_with: VCR 4.0.0
@@ -1,51 +1,52 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: https://www.fio.cz/ib_api/rest/import/?token=<%= FioAPI.token %>&type=xml
6
- body:
7
- encoding: UTF-8
8
- string: "--------------------------8kR1u87fzZKMC9tT\r\nContent-Disposition:
9
- form-data; name=\"file\"; filename=\"20180603-18534-1yh8r7y\"\r\nContent-Type:
10
- application/octet-stream\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Import
11
- xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.fio.cz/schema/importIB.xsd\">\n
12
- \ <Orders>\n <DomesticTransaction>\n <accountFrom>11111111</accountFrom>\n
13
- \ <currency>CZK</currency>\n <amount/>\n <accountTo>22222222</accountTo>\n
14
- \ <bankCode>3030</bankCode>\n <ks/>\n <vs/>\n <ss/>\n <date>2018-06-15</date>\n
15
- \ <messageForRecipient/>\n <comment/>\n <paymentType>431001</paymentType>\n
16
- \ </DomesticTransaction>\n </Orders>\n</Import>\n\r\n--------------------------8kR1u87fzZKMC9tT--\r\n"
17
- headers:
18
- Content-Type:
19
- - multipart/form-data; boundary=------------------------8kR1u87fzZKMC9tT
20
- Boundary:
21
- - "-----------RubyMultipartPost"
22
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Date:
28
- - Sun, 03 Jun 2018 12:28:55 GMT
29
- Server:
30
- - Apache-Coyote/1.1
31
- X-Content-Type-Options:
32
- - nosniff
33
- X-Xss-Protection:
34
- - 1; mode=block
35
- Referrer-Policy:
36
- - strict-origin-when-cross-origin
37
- Content-Type:
38
- - application/xml;charset=UTF-8
39
- X-Frame-Options:
40
- - SAMEORIGIN
41
- Strict-Transport-Security:
42
- - max-age=31536000
43
- Transfer-Encoding:
44
- - chunked
45
- body:
46
- encoding: ASCII-8BIT
47
- string: !binary |-
48
- PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxyZXNwb25zZUltcG9ydCB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iaHR0cDovL3d3dy5maW8uY3ovc2NoZW1hL3Jlc3BvbnNlSW1wb3J0LnhzZCI+PHJlc3VsdD48ZXJyb3JDb2RlPjExPC9lcnJvckNvZGU+PHN0YXR1cz5lcnJvcjwvc3RhdHVzPjxtZXNzYWdlPlNvdWJvciBtw6EgY2h5YnkgdmUgc3RydWt0dcWZZTogY3ZjLWRhdGF0eXBlLXZhbGlkLjEuMi4xOiAnJyBpcyBub3QgYSB2YWxpZCB2YWx1ZSBmb3IgJ2RlY2ltYWwnLjwvbWVzc2FnZT48L3Jlc3VsdD48L3Jlc3BvbnNlSW1wb3J0Pg==
49
- http_version:
50
- recorded_at: Sun, 03 Jun 2018 12:28:55 GMT
3
+ - request:
4
+ method: post
5
+ uri: https://fioapi.fio.cz/v1/rest/import/?token=<%= FioAPI.token %>&type=xml
6
+ body:
7
+ encoding: UTF-8
8
+ string:
9
+ "--------------------------8kR1u87fzZKMC9tT\r\nContent-Disposition:
10
+ form-data; name=\"file\"; filename=\"20180603-18534-1yh8r7y\"\r\nContent-Type:
11
+ application/octet-stream\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Import
12
+ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.fio.cz/schema/importIB.xsd\">\n
13
+ \ <Orders>\n <DomesticTransaction>\n <accountFrom>11111111</accountFrom>\n
14
+ \ <currency>CZK</currency>\n <amount/>\n <accountTo>22222222</accountTo>\n
15
+ \ <bankCode>3030</bankCode>\n <ks/>\n <vs/>\n <ss/>\n <date>2018-06-15</date>\n
16
+ \ <messageForRecipient/>\n <comment/>\n <paymentType>431001</paymentType>\n
17
+ \ </DomesticTransaction>\n </Orders>\n</Import>\n\r\n--------------------------8kR1u87fzZKMC9tT--\r\n"
18
+ headers:
19
+ Content-Type:
20
+ - multipart/form-data; boundary=------------------------8kR1u87fzZKMC9tT
21
+ Boundary:
22
+ - "-----------RubyMultipartPost"
23
+ response:
24
+ status:
25
+ code: 200
26
+ message: OK
27
+ headers:
28
+ Date:
29
+ - Sun, 03 Jun 2018 12:28:55 GMT
30
+ Server:
31
+ - Apache-Coyote/1.1
32
+ X-Content-Type-Options:
33
+ - nosniff
34
+ X-Xss-Protection:
35
+ - 1; mode=block
36
+ Referrer-Policy:
37
+ - strict-origin-when-cross-origin
38
+ Content-Type:
39
+ - application/xml;charset=UTF-8
40
+ X-Frame-Options:
41
+ - SAMEORIGIN
42
+ Strict-Transport-Security:
43
+ - max-age=31536000
44
+ Transfer-Encoding:
45
+ - chunked
46
+ body:
47
+ encoding: ASCII-8BIT
48
+ string: !binary |-
49
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxyZXNwb25zZUltcG9ydCB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iaHR0cDovL3d3dy5maW8uY3ovc2NoZW1hL3Jlc3BvbnNlSW1wb3J0LnhzZCI+PHJlc3VsdD48ZXJyb3JDb2RlPjExPC9lcnJvckNvZGU+PHN0YXR1cz5lcnJvcjwvc3RhdHVzPjxtZXNzYWdlPlNvdWJvciBtw6EgY2h5YnkgdmUgc3RydWt0dcWZZTogY3ZjLWRhdGF0eXBlLXZhbGlkLjEuMi4xOiAnJyBpcyBub3QgYSB2YWxpZCB2YWx1ZSBmb3IgJ2RlY2ltYWwnLjwvbWVzc2FnZT48L3Jlc3VsdD48L3Jlc3BvbnNlSW1wb3J0Pg==
50
+ http_version:
51
+ recorded_at: Sun, 03 Jun 2018 12:28:55 GMT
51
52
  recorded_with: VCR 4.0.0
@@ -1,51 +1,52 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: https://www.fio.cz/ib_api/rest/import/?token=<%= FioAPI.token %>&type=xml
6
- body:
7
- encoding: UTF-8
8
- string: "--------------------------YU5IeT1XYDoNHP6A\r\nContent-Disposition:
9
- form-data; name=\"file\"; filename=\"fio20180606-86151-1fg6aja\"\r\nContent-Type:
10
- application/octet-stream\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Import
11
- xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.fio.cz/schema/importIB.xsd\">\n
12
- \ <Orders>\n <DomesticTransaction>\n <accountFrom>11111111</accountFrom>\n
13
- \ <currency>CZK</currency>\n <amount>100.0</amount>\n <accountTo>22222222</accountTo>\n
14
- \ <bankCode>3030</bankCode>\n <ks/>\n <vs/>\n <ss/>\n <date>2018-05-05</date>\n
15
- \ <messageForRecipient/>\n <comment/>\n <paymentType>431001</paymentType>\n
16
- \ </DomesticTransaction>\n </Orders>\n</Import>\n\r\n--------------------------YU5IeT1XYDoNHP6A--\r\n"
17
- headers:
18
- Content-Type:
19
- - multipart/form-data; boundary=------------------------YU5IeT1XYDoNHP6A
20
- Boundary:
21
- - "-----------RubyMultipartPost"
22
- response:
23
- status:
24
- code: 200
25
- message: OK
26
- headers:
27
- Date:
28
- - Wed, 06 Jun 2018 11:14:56 GMT
29
- Server:
30
- - Apache-Coyote/1.1
31
- X-Content-Type-Options:
32
- - nosniff
33
- X-Xss-Protection:
34
- - 1; mode=block
35
- Referrer-Policy:
36
- - strict-origin-when-cross-origin
37
- Content-Type:
38
- - application/xml;charset=UTF-8
39
- X-Frame-Options:
40
- - SAMEORIGIN
41
- Strict-Transport-Security:
42
- - max-age=31536000
43
- Transfer-Encoding:
44
- - chunked
45
- body:
46
- encoding: ASCII-8BIT
47
- string: !binary |-
48
- PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PjxyZXNwb25zZUltcG9ydCB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4c2k6bm9OYW1lc3BhY2VTY2hlbWFMb2NhdGlvbj0iaHR0cDovL3d3dy5maW8uY3ovc2NoZW1hL3Jlc3BvbnNlSW1wb3J0LnhzZCI+PHJlc3VsdD48ZXJyb3JDb2RlPjE8L2Vycm9yQ29kZT48c3RhdHVzPmVycm9yPC9zdGF0dXM+PHN1bXM+PHN1bSBpZD0iQ1pLIj48c3VtQ3JlZGl0PjA8L3N1bUNyZWRpdD48c3VtRGViZXQ+MTAwLjA8L3N1bURlYmV0Pjwvc3VtPjwvc3Vtcz48L3Jlc3VsdD48b3JkZXJzRGV0YWlscz48ZGV0YWlsIGlkPSIxIj48bWVzc2FnZXM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lSW1wb3J0Pg==
49
- http_version:
50
- recorded_at: Wed, 06 Jun 2018 11:14:56 GMT
3
+ - request:
4
+ method: post
5
+ uri: https://fioapi.fio.cz/v1/rest/import/?token=<%= FioAPI.token %>&type=xml
6
+ body:
7
+ encoding: UTF-8
8
+ string:
9
+ "--------------------------YU5IeT1XYDoNHP6A\r\nContent-Disposition:
10
+ form-data; name=\"file\"; filename=\"fio20180606-86151-1fg6aja\"\r\nContent-Type:
11
+ application/octet-stream\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Import
12
+ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.fio.cz/schema/importIB.xsd\">\n
13
+ \ <Orders>\n <DomesticTransaction>\n <accountFrom>11111111</accountFrom>\n
14
+ \ <currency>CZK</currency>\n <amount>100.0</amount>\n <accountTo>22222222</accountTo>\n
15
+ \ <bankCode>3030</bankCode>\n <ks/>\n <vs/>\n <ss/>\n <date>2018-05-05</date>\n
16
+ \ <messageForRecipient/>\n <comment/>\n <paymentType>431001</paymentType>\n
17
+ \ </DomesticTransaction>\n </Orders>\n</Import>\n\r\n--------------------------YU5IeT1XYDoNHP6A--\r\n"
18
+ headers:
19
+ Content-Type:
20
+ - multipart/form-data; boundary=------------------------YU5IeT1XYDoNHP6A
21
+ Boundary:
22
+ - "-----------RubyMultipartPost"
23
+ response:
24
+ status:
25
+ code: 200
26
+ message: OK
27
+ headers:
28
+ Date:
29
+ - Wed, 06 Jun 2018 11:14:56 GMT
30
+ Server:
31
+ - Apache-Coyote/1.1
32
+ X-Content-Type-Options:
33
+ - nosniff
34
+ X-Xss-Protection:
35
+ - 1; mode=block
36
+ Referrer-Policy:
37
+ - strict-origin-when-cross-origin
38
+ Content-Type:
39
+ - application/xml;charset=UTF-8
40
+ X-Frame-Options:
41
+ - SAMEORIGIN
42
+ Strict-Transport-Security:
43
+ - max-age=31536000
44
+ Transfer-Encoding:
45
+ - chunked
46
+ body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w6kgcyDEjcOtc2xlbSDDusSNdHUgcGzDoXRjZS48L21lc3NhZ2U+PG1lc3NhZ2Ugc3RhdHVzPSJ3YXJuaW5nIiBlcnJvckNvZGU9IjE1NyI+VXBvem9ybsSbbsOtOiBwb2TDoXbDoXRlIHBva3luIGsgcGxhdGLEmyB2IG3Em27Emywga3RlcsOhIG5lbsOtIG3Em25vdSB0b2hvdG8gw7rEjXR1LiBaa29udHJvbHVqdGUgcHJvc8OtbSwgemRhIG3DoXRlIHNwcsOhdm7EmyB6dm9sZW5vdSBtxJtudSBWYcWhw60gcGxhdGJ5LjwvbWVzc2FnZT48bWVzc2FnZSBzdGF0dXM9ImVycm9yIiBlcnJvckNvZGU9IjIwMDEiPlZhxaFlIHXFvml2YXRlbHNrw6kgb3Byw6F2bsSbbsOtIG5lcG92b2x1amUgcG9kw6Fuw60gcG9reW51IHogdG9ob3RvIMO6xI10dTwvbWVzc2FnZT48L21lc3NhZ2VzPjwvZGV0YWlsPjwvb3JkZXJzRGV0YWlscz48L3Jlc3BvbnNlSW1wb3J0Pg==
50
+ http_version:
51
+ recorded_at: Wed, 06 Jun 2018 11:14:56 GMT
51
52
  recorded_with: VCR 4.0.0
@@ -1,44 +1,44 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://www.fio.cz/ib_api/rest/set-last-date/<%= FioAPI.token %>/2012-11-25/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Date:
22
- - Sat, 02 Jun 2018 21:21:47 GMT
23
- Server:
24
- - Apache-Coyote/1.1
25
- X-Content-Type-Options:
26
- - nosniff
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- Referrer-Policy:
30
- - strict-origin-when-cross-origin
31
- X-Intervalusetoken:
32
- - '0'
33
- Content-Length:
34
- - '0'
35
- X-Frame-Options:
36
- - SAMEORIGIN
37
- Strict-Transport-Security:
38
- - max-age=31536000
39
- body:
40
- encoding: UTF-8
41
- string: ''
42
- http_version:
43
- recorded_at: Sat, 02 Jun 2018 21:21:47 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://fioapi.fio.cz/v1/rest/set-last-date/<%= FioAPI.token %>/2012-11-25/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Date:
22
+ - Sat, 02 Jun 2018 21:21:47 GMT
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ Referrer-Policy:
30
+ - strict-origin-when-cross-origin
31
+ X-Intervalusetoken:
32
+ - "0"
33
+ Content-Length:
34
+ - "0"
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ body:
40
+ encoding: UTF-8
41
+ string: ""
42
+ http_version:
43
+ recorded_at: Sat, 02 Jun 2018 21:21:47 GMT
44
44
  recorded_with: VCR 4.0.0
@@ -1,47 +1,47 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://www.fio.cz/ib_api/rest/set-last-id/<%= FioAPI.token %>/12345/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- response:
17
- status:
18
- code: 500
19
- message: Internal Server Error
20
- headers:
21
- Date:
22
- - Sat, 02 Jun 2018 21:21:47 GMT
23
- Server:
24
- - Apache-Coyote/1.1
25
- X-Content-Type-Options:
26
- - nosniff
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- Referrer-Policy:
30
- - strict-origin-when-cross-origin
31
- Content-Type:
32
- - text/xml;charset=UTF-8
33
- Content-Length:
34
- - '406'
35
- X-Frame-Options:
36
- - SAMEORIGIN
37
- Strict-Transport-Security:
38
- - max-age=31536000
39
- Connection:
40
- - close
41
- body:
42
- encoding: ASCII-8BIT
43
- string: !binary |-
44
- PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PgoKPHJlc3BvbnNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhzaTpub05hbWVzcGFjZVNjaGVtYUxvY2F0aW9uPSJodHRwczovL3d3dy5maW8uY3ovc2NoZW1hL3Jlc3BvbnNlLnhzZCI+Cgk8cmVzdWx0PiAKCQk8ZXJyb3JDb2RlPjMxPC9lcnJvckNvZGU+CgkJPHN0YXR1cz5lcnJvcjwvc3RhdHVzPgoJCTxtZXNzYWdlPlphcsOhxb5rYSBuZW1vaGxhIGLDvXQgbmFzdGF2ZW5hLCBwcm90b8W+ZSBwb2h5YklEIDEyMzQ1IG5hIFZhxaFlbSDDusSNdHUgbmVleGlzdHVqZS48L21lc3NhZ2U+CgkJPGRldGFpbD48L2RldGFpbD4KCTwvcmVzdWx0Pgo8L3Jlc3BvbnNlPg==
45
- http_version:
46
- recorded_at: Sat, 02 Jun 2018 21:21:47 GMT
3
+ - request:
4
+ method: get
5
+ uri: https://fioapi.fio.cz/v1/rest/set-last-id/<%= FioAPI.token %>/12345/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ""
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 500
19
+ message: Internal Server Error
20
+ headers:
21
+ Date:
22
+ - Sat, 02 Jun 2018 21:21:47 GMT
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Content-Type-Options:
26
+ - nosniff
27
+ X-Xss-Protection:
28
+ - 1; mode=block
29
+ Referrer-Policy:
30
+ - strict-origin-when-cross-origin
31
+ Content-Type:
32
+ - text/xml;charset=UTF-8
33
+ Content-Length:
34
+ - "406"
35
+ X-Frame-Options:
36
+ - SAMEORIGIN
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ Connection:
40
+ - close
41
+ body:
42
+ encoding: ASCII-8BIT
43
+ string: !binary |-
44
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/PgoKPHJlc3BvbnNlIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhzaTpub05hbWVzcGFjZVNjaGVtYUxvY2F0aW9uPSJodHRwczovL3d3dy5maW8uY3ovc2NoZW1hL3Jlc3BvbnNlLnhzZCI+Cgk8cmVzdWx0PiAKCQk8ZXJyb3JDb2RlPjMxPC9lcnJvckNvZGU+CgkJPHN0YXR1cz5lcnJvcjwvc3RhdHVzPgoJCTxtZXNzYWdlPlphcsOhxb5rYSBuZW1vaGxhIGLDvXQgbmFzdGF2ZW5hLCBwcm90b8W+ZSBwb2h5YklEIDEyMzQ1IG5hIFZhxaFlbSDDusSNdHUgbmVleGlzdHVqZS48L21lc3NhZ2U+CgkJPGRldGFpbD48L2RldGFpbD4KCTwvcmVzdWx0Pgo8L3Jlc3BvbnNlPg==
45
+ http_version:
46
+ recorded_at: Sat, 02 Jun 2018 21:21:47 GMT
47
47
  recorded_with: VCR 4.0.0
@@ -1,52 +1,53 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: https://www.fio.cz/ib_api/rest/import/?token=somelongtoken&type=xml
6
- body:
7
- encoding: UTF-8
8
- string: "--------------------------UFUFp-y_DGK55ls6\r\nContent-Disposition:
9
- form-data; name=\"file\"; filename=\"fio20180606-86327-8ctjzc\"\r\nContent-Type:
10
- application/octet-stream\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Import
11
- xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.fio.cz/schema/importIB.xsd\">\n
12
- \ <Orders>\n <DomesticTransaction>\n <accountFrom>11111111</accountFrom>\n
13
- \ <currency>CZK</currency>\n <amount>100.0</amount>\n <accountTo>22222222</accountTo>\n
14
- \ <bankCode>3030</bankCode>\n <ks/>\n <vs/>\n <ss/>\n <date>2018-05-05</date>\n
15
- \ <messageForRecipient/>\n <comment/>\n <paymentType>431001</paymentType>\n
16
- \ </DomesticTransaction>\n </Orders>\n</Import>\n\r\n--------------------------UFUFp-y_DGK55ls6--\r\n"
17
- headers:
18
- Content-Type:
19
- - multipart/form-data; boundary=------------------------UFUFp-y_DGK55ls6
20
- Boundary:
21
- - "-----------RubyMultipartPost"
22
- response:
23
- status:
24
- code: 500
25
- message: Internal Server Error
26
- headers:
27
- Date:
28
- - Wed, 06 Jun 2018 11:16:43 GMT
29
- Server:
30
- - Apache-Coyote/1.1
31
- X-Content-Type-Options:
32
- - nosniff
33
- X-Xss-Protection:
34
- - 1; mode=block
35
- Referrer-Policy:
36
- - strict-origin-when-cross-origin
37
- Content-Type:
38
- - text/plain;charset=UTF-8
39
- Content-Length:
40
- - '1'
41
- X-Frame-Options:
42
- - SAMEORIGIN
43
- Strict-Transport-Security:
44
- - max-age=31536000
45
- Connection:
46
- - close
47
- body:
48
- encoding: UTF-8
49
- string: " "
50
- http_version:
51
- recorded_at: Wed, 06 Jun 2018 11:16:43 GMT
3
+ - request:
4
+ method: post
5
+ uri: https://fioapi.fio.cz/v1/rest/import/?token=somelongtoken&type=xml
6
+ body:
7
+ encoding: UTF-8
8
+ string:
9
+ "--------------------------UFUFp-y_DGK55ls6\r\nContent-Disposition:
10
+ form-data; name=\"file\"; filename=\"fio20180606-86327-8ctjzc\"\r\nContent-Type:
11
+ application/octet-stream\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Import
12
+ xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.fio.cz/schema/importIB.xsd\">\n
13
+ \ <Orders>\n <DomesticTransaction>\n <accountFrom>11111111</accountFrom>\n
14
+ \ <currency>CZK</currency>\n <amount>100.0</amount>\n <accountTo>22222222</accountTo>\n
15
+ \ <bankCode>3030</bankCode>\n <ks/>\n <vs/>\n <ss/>\n <date>2018-05-05</date>\n
16
+ \ <messageForRecipient/>\n <comment/>\n <paymentType>431001</paymentType>\n
17
+ \ </DomesticTransaction>\n </Orders>\n</Import>\n\r\n--------------------------UFUFp-y_DGK55ls6--\r\n"
18
+ headers:
19
+ Content-Type:
20
+ - multipart/form-data; boundary=------------------------UFUFp-y_DGK55ls6
21
+ Boundary:
22
+ - "-----------RubyMultipartPost"
23
+ response:
24
+ status:
25
+ code: 500
26
+ message: Internal Server Error
27
+ headers:
28
+ Date:
29
+ - Wed, 06 Jun 2018 11:16:43 GMT
30
+ Server:
31
+ - Apache-Coyote/1.1
32
+ X-Content-Type-Options:
33
+ - nosniff
34
+ X-Xss-Protection:
35
+ - 1; mode=block
36
+ Referrer-Policy:
37
+ - strict-origin-when-cross-origin
38
+ Content-Type:
39
+ - text/plain;charset=UTF-8
40
+ Content-Length:
41
+ - "1"
42
+ X-Frame-Options:
43
+ - SAMEORIGIN
44
+ Strict-Transport-Security:
45
+ - max-age=31536000
46
+ Connection:
47
+ - close
48
+ body:
49
+ encoding: UTF-8
50
+ string: " "
51
+ http_version:
52
+ recorded_at: Wed, 06 Jun 2018 11:16:43 GMT
52
53
  recorded_with: VCR 4.0.0
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fio_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Bortlik
8
8
  - Adam Martinik
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2018-06-06 00:00:00.000000000 Z
@@ -180,7 +180,7 @@ homepage: http://github.com/14113/fio_api
180
180
  licenses:
181
181
  - MIT
182
182
  metadata: {}
183
- post_install_message:
183
+ post_install_message:
184
184
  rdoc_options: []
185
185
  require_paths:
186
186
  - lib
@@ -195,9 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  - !ruby/object:Gem::Version
196
196
  version: '0'
197
197
  requirements: []
198
- rubyforge_project:
199
- rubygems_version: 2.6.11
200
- signing_key:
198
+ rubygems_version: 3.1.6
199
+ signing_key:
201
200
  specification_version: 4
202
201
  summary: API wrapper for FIO bank
203
202
  test_files: []