boletosimples 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +4 -3
- data/CHANGELOG.md +6 -0
- data/boletosimples.gemspec +12 -11
- data/lib/boletosimples.rb +2 -0
- data/lib/boletosimples/configuration.rb +6 -6
- data/lib/boletosimples/resources/customer_import.rb +6 -0
- data/lib/boletosimples/resources/customer_subscription_import.rb +6 -0
- data/lib/boletosimples/version.rb +1 -1
- data/spec/boletosimples/configuration_spec.rb +25 -9
- data/spec/boletosimples/resources/customer_import_spec.rb +56 -0
- data/spec/boletosimples/resources/customer_subscription_import_spec.rb +56 -0
- data/spec/fixtures/customer_imports.csv +1 -0
- data/spec/fixtures/customer_subscription_imports.csv +1 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +91 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +83 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +83 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +101 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +85 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +86 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +84 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +84 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +103 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +86 -0
- data/spec/spec_helper.rb +2 -2
- metadata +82 -38
@@ -0,0 +1,103 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: !binary |-
|
9
|
+
LS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LWY0ZGFlZTNhZDRhNmY2
|
10
|
+
MGVjZGY4ZjAyZDE0N2Q5Nzg3DQpDb250ZW50LURpc3Bvc2l0aW9uOiBmb3Jt
|
11
|
+
LWRhdGE7IG5hbWU9ImN1c3RvbWVyX3N1YnNjcmlwdGlvbl9pbXBvcnRbc291
|
12
|
+
cmNlXSI7IGZpbGVuYW1lPSJjdXN0b21lcl9zdWJzY3JpcHRpb25zLmNzdiIN
|
13
|
+
CkNvbnRlbnQtTGVuZ3RoOiAyMzkNCkNvbnRlbnQtVHlwZTogdGV4dC9jc3YN
|
14
|
+
CkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IGJpbmFyeQ0KDQpJRCxJRCBk
|
15
|
+
byBDbGllbnRlLElEIGRhIENhcnRlaXJhLElEIGRvIE1vZGVsbyxDTlBKL0NQ
|
16
|
+
RiBkbyBDbGllbnRlLENpY2xvIGRhIEFzc2luYXR1cmEsUXVhbnRpYSAqLFBy
|
17
|
+
aW1laXJhIENvYnJhbsOnYSxBbnRlY2Vkw6puY2lhLFBhcmFyIGVtLERlbW9u
|
18
|
+
c3RyYXRpdm8gKixJbnN0cnXDp8O1ZXMgcGFyYSBvIENhaXhhLE11bHRhIHBv
|
19
|
+
ciBBdHJhc28sSnVyb3MgZGUgTW9yYSBNZW5zYWwsRS1tYWlsLE9ic2VydmHD
|
20
|
+
p8O1ZXMNCg0KLS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LWY0ZGFl
|
21
|
+
ZTNhZDRhNmY2MGVjZGY4ZjAyZDE0N2Q5Nzg3LS0NCg0K
|
22
|
+
headers:
|
23
|
+
User-Agent:
|
24
|
+
- BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
|
25
|
+
Authorization:
|
26
|
+
- Token token="BOLETOSIMPLES_ACCESS_TOKEN"
|
27
|
+
Content-Type:
|
28
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost-f4daee3ad4a6f60ecdf8f02d147d9787
|
29
|
+
Content-Length:
|
30
|
+
- '573'
|
31
|
+
Accept-Encoding:
|
32
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
33
|
+
Accept:
|
34
|
+
- "*/*"
|
35
|
+
response:
|
36
|
+
status:
|
37
|
+
code: 201
|
38
|
+
message: Created
|
39
|
+
headers:
|
40
|
+
Connection:
|
41
|
+
- keep-alive
|
42
|
+
Content-Type:
|
43
|
+
- application/json; charset=utf-8
|
44
|
+
Transfer-Encoding:
|
45
|
+
- chunked
|
46
|
+
Status:
|
47
|
+
- 201 Created
|
48
|
+
Cache-Control:
|
49
|
+
- max-age=0, private, must-revalidate
|
50
|
+
Date:
|
51
|
+
- Wed, 28 Jun 2017 06:47:19 GMT
|
52
|
+
Vary:
|
53
|
+
- Origin,Accept-Encoding
|
54
|
+
Strict-Transport-Security:
|
55
|
+
- max-age=631138519
|
56
|
+
X-Permitted-Cross-Domain-Policies:
|
57
|
+
- none
|
58
|
+
X-Xss-Protection:
|
59
|
+
- 1; mode=block
|
60
|
+
X-Request-Id:
|
61
|
+
- 785e3884-4766-405b-b0ac-33a1e4a861ec
|
62
|
+
Content-Security-Policy-Report-Only:
|
63
|
+
- 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
|
64
|
+
www.google.com www.google.com.br app.popupdomination.com; connect-src ''self''
|
65
|
+
ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com *.pusher.com boletosimples.com.br
|
66
|
+
*.boletosimples.com.br boletosimples.zendesk.com; font-src ''self'' fonts.googleapis.com
|
67
|
+
fonts.gstatic.com js.intercomcdn.com data: v2.zopim.com d25j7wj0q61kjj.cloudfront.net;
|
68
|
+
img-src ''self'' https: data: maps.googleapis.com dev.bole.to:5001 bole.to
|
69
|
+
boletosimples-sandbox.s3.amazonaws.com; script-src ''self'' ''unsafe-inline''
|
70
|
+
static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com
|
71
|
+
js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com
|
72
|
+
doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io
|
73
|
+
tag.getdrip.com www.getdrip.com js-agent.newrelic.com bam.nr-data.net cdnjs.cloudflare.com
|
74
|
+
widget.pluga.co www.google.com www.gstatic.com boletosimples.zendesk.com assets.zendesk.com
|
75
|
+
v2.zopim.com landing.vincent-ai.com d25j7wj0q61kjj.cloudfront.net; style-src
|
76
|
+
''self'' ''unsafe-inline'' fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net;
|
77
|
+
report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
78
|
+
Location:
|
79
|
+
- https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions/7
|
80
|
+
X-Download-Options:
|
81
|
+
- noopen
|
82
|
+
Etag:
|
83
|
+
- W/"4ac3fd01c77a17d4db390124d121c4fd"
|
84
|
+
X-Runtime:
|
85
|
+
- '0.537522'
|
86
|
+
X-Frame-Options:
|
87
|
+
- sameorigin
|
88
|
+
X-Content-Type-Options:
|
89
|
+
- nosniff
|
90
|
+
X-Rack-Cache:
|
91
|
+
- invalidate, pass
|
92
|
+
X-Powered-By:
|
93
|
+
- Phusion Passenger 5.1.5
|
94
|
+
Server:
|
95
|
+
- nginx/1.10.3 + Phusion Passenger 5.1.5
|
96
|
+
Via:
|
97
|
+
- 1.1 vegur
|
98
|
+
body:
|
99
|
+
encoding: UTF-8
|
100
|
+
string: '{"id":7,"created_rows":0,"records_count":null,"enqueued_at":"2017-06-28T03:47:18-03:00","started_at":null,"finished_at":null,"processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":null,"processed_rows":0,"total_rows":null,"updated_rows":0,"source_content_type":"text/plain","source_file_name":"customer_subscriptions.csv","source_file_size":239,"source_updated_at":"2017-06-28T03:47:18-03:00","status":"enqueued"}'
|
101
|
+
http_version:
|
102
|
+
recorded_at: Wed, 28 Jun 2017 06:47:18 GMT
|
103
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions/7?access_token=BOLETOSIMPLES_ACCESS_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
|
12
|
+
Authorization:
|
13
|
+
- Token token="BOLETOSIMPLES_ACCESS_TOKEN"
|
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
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Status:
|
30
|
+
- 200 OK
|
31
|
+
Cache-Control:
|
32
|
+
- must-revalidate, private, max-age=0
|
33
|
+
Date:
|
34
|
+
- Wed, 28 Jun 2017 06:47:24 GMT
|
35
|
+
Vary:
|
36
|
+
- Origin,Accept-Encoding
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=631138519
|
39
|
+
X-Permitted-Cross-Domain-Policies:
|
40
|
+
- none
|
41
|
+
X-Xss-Protection:
|
42
|
+
- 1; mode=block
|
43
|
+
X-Request-Id:
|
44
|
+
- f255857f-31dd-47e2-9485-6bb7abcfe345
|
45
|
+
Content-Security-Policy-Report-Only:
|
46
|
+
- 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
|
47
|
+
www.google.com www.google.com.br app.popupdomination.com; connect-src ''self''
|
48
|
+
ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com *.pusher.com boletosimples.com.br
|
49
|
+
*.boletosimples.com.br boletosimples.zendesk.com; font-src ''self'' fonts.googleapis.com
|
50
|
+
fonts.gstatic.com js.intercomcdn.com data: v2.zopim.com d25j7wj0q61kjj.cloudfront.net;
|
51
|
+
img-src ''self'' https: data: maps.googleapis.com dev.bole.to:5001 bole.to
|
52
|
+
boletosimples-sandbox.s3.amazonaws.com; script-src ''self'' ''unsafe-inline''
|
53
|
+
static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com
|
54
|
+
js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com
|
55
|
+
doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io
|
56
|
+
tag.getdrip.com www.getdrip.com js-agent.newrelic.com bam.nr-data.net cdnjs.cloudflare.com
|
57
|
+
widget.pluga.co www.google.com www.gstatic.com boletosimples.zendesk.com assets.zendesk.com
|
58
|
+
v2.zopim.com landing.vincent-ai.com d25j7wj0q61kjj.cloudfront.net; style-src
|
59
|
+
''self'' ''unsafe-inline'' fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net;
|
60
|
+
report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
61
|
+
Location:
|
62
|
+
- https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions/7
|
63
|
+
X-Download-Options:
|
64
|
+
- noopen
|
65
|
+
Etag:
|
66
|
+
- W/"b6f1ce958b789e8877e205646365bdf0"
|
67
|
+
X-Runtime:
|
68
|
+
- '0.042036'
|
69
|
+
X-Frame-Options:
|
70
|
+
- sameorigin
|
71
|
+
X-Content-Type-Options:
|
72
|
+
- nosniff
|
73
|
+
X-Rack-Cache:
|
74
|
+
- miss
|
75
|
+
X-Powered-By:
|
76
|
+
- Phusion Passenger 5.1.5
|
77
|
+
Server:
|
78
|
+
- nginx/1.10.3 + Phusion Passenger 5.1.5
|
79
|
+
Via:
|
80
|
+
- 1.1 vegur
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: '{"id":7,"created_rows":0,"records_count":null,"enqueued_at":"2017-06-28T03:47:18-03:00","started_at":"2017-06-28T03:47:19-03:00","finished_at":"2017-06-28T03:47:19-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_content_type":"text/plain","source_file_name":"customer_subscriptions.csv","source_file_size":239,"source_updated_at":"2017-06-28T03:47:18-03:00","status":"done"}'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Wed, 28 Jun 2017 06:47:24 GMT
|
86
|
+
recorded_with: VCR 3.0.3
|
data/spec/spec_helper.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'coveralls'
|
2
2
|
Coveralls.wear!
|
3
3
|
|
4
|
-
require '
|
5
|
-
|
4
|
+
require 'simplecov'
|
5
|
+
SimpleCov.start
|
6
6
|
|
7
7
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
8
8
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boletosimples
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kivanio Barbosa
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2018-02-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: her
|
@@ -18,140 +18,154 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: '0.10'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
28
|
+
version: '0.10'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: faraday_middleware
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: '0.12'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: '0.12'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: faraday-http-cache
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 2.0.0
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: 2.0.0
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: pry
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- - "
|
61
|
+
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0
|
63
|
+
version: '0'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- - "
|
68
|
+
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0
|
70
|
+
version: '0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: rspec
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- - "
|
75
|
+
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: '0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- - "
|
82
|
+
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
84
|
+
version: '0'
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: vcr
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- - "
|
89
|
+
- - ">="
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: '
|
91
|
+
version: '0'
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- - "
|
96
|
+
- - ">="
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: '
|
98
|
+
version: '0'
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: webmock
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- - "
|
103
|
+
- - ">="
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
105
|
+
version: '0'
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- - "
|
110
|
+
- - ">="
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version:
|
112
|
+
version: '0'
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: rake
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- - "
|
117
|
+
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
119
|
+
version: '0'
|
120
120
|
type: :development
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- - "
|
124
|
+
- - ">="
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version:
|
126
|
+
version: '0'
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: coveralls
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
|
-
- - "
|
131
|
+
- - ">="
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0
|
133
|
+
version: '0'
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- - "
|
138
|
+
- - ">="
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0
|
140
|
+
version: '0'
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: simplecov
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
141
155
|
- !ruby/object:Gem::Dependency
|
142
156
|
name: codeclimate-test-reporter
|
143
157
|
requirement: !ruby/object:Gem::Requirement
|
144
158
|
requirements:
|
145
|
-
- - "
|
159
|
+
- - ">="
|
146
160
|
- !ruby/object:Gem::Version
|
147
|
-
version: 0
|
161
|
+
version: '0'
|
148
162
|
type: :development
|
149
163
|
prerelease: false
|
150
164
|
version_requirements: !ruby/object:Gem::Requirement
|
151
165
|
requirements:
|
152
|
-
- - "
|
166
|
+
- - ">="
|
153
167
|
- !ruby/object:Gem::Version
|
154
|
-
version: 0
|
168
|
+
version: '0'
|
155
169
|
- !ruby/object:Gem::Dependency
|
156
170
|
name: rubocop
|
157
171
|
requirement: !ruby/object:Gem::Requirement
|
@@ -197,7 +211,9 @@ files:
|
|
197
211
|
- lib/boletosimples/resources/bank_billet_account.rb
|
198
212
|
- lib/boletosimples/resources/base_model.rb
|
199
213
|
- lib/boletosimples/resources/customer.rb
|
214
|
+
- lib/boletosimples/resources/customer_import.rb
|
200
215
|
- lib/boletosimples/resources/customer_subscription.rb
|
216
|
+
- lib/boletosimples/resources/customer_subscription_import.rb
|
201
217
|
- lib/boletosimples/resources/discharge.rb
|
202
218
|
- lib/boletosimples/resources/event.rb
|
203
219
|
- lib/boletosimples/resources/installment.rb
|
@@ -214,7 +230,9 @@ files:
|
|
214
230
|
- spec/boletosimples/last_request_spec.rb
|
215
231
|
- spec/boletosimples/resources/bank_billet_account_spec.rb
|
216
232
|
- spec/boletosimples/resources/bank_billet_spec.rb
|
233
|
+
- spec/boletosimples/resources/customer_import_spec.rb
|
217
234
|
- spec/boletosimples/resources/customer_spec.rb
|
235
|
+
- spec/boletosimples/resources/customer_subscription_import_spec.rb
|
218
236
|
- spec/boletosimples/resources/customer_subscription_spec.rb
|
219
237
|
- spec/boletosimples/resources/discharge_spec.rb
|
220
238
|
- spec/boletosimples/resources/event_spec.rb
|
@@ -224,6 +242,8 @@ files:
|
|
224
242
|
- spec/boletosimples/resources/transactions_spec.rb
|
225
243
|
- spec/boletosimples/resources/webhook_delivery_spec.rb
|
226
244
|
- spec/boletosimples/resources/webhook_spec.rb
|
245
|
+
- spec/fixtures/customer_imports.csv
|
246
|
+
- spec/fixtures/customer_subscription_imports.csv
|
227
247
|
- spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml
|
228
248
|
- spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml
|
229
249
|
- spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml
|
@@ -247,12 +267,22 @@ files:
|
|
247
267
|
- spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml
|
248
268
|
- spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml
|
249
269
|
- spec/fixtures/vcr_cassettes/resources/customer/find.yml
|
270
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/all.yml
|
271
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml
|
272
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml
|
273
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml
|
274
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/find.yml
|
250
275
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml
|
251
276
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml
|
252
277
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml
|
253
278
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml
|
254
279
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml
|
255
280
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml
|
281
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml
|
282
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml
|
283
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml
|
284
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml
|
285
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml
|
256
286
|
- spec/fixtures/vcr_cassettes/resources/discharge/all.yml
|
257
287
|
- spec/fixtures/vcr_cassettes/resources/event/all.yml
|
258
288
|
- spec/fixtures/vcr_cassettes/resources/installment/all.yml
|
@@ -279,7 +309,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
279
309
|
requirements:
|
280
310
|
- - ">="
|
281
311
|
- !ruby/object:Gem::Version
|
282
|
-
version: '
|
312
|
+
version: '2.0'
|
283
313
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
314
|
requirements:
|
285
315
|
- - ">="
|
@@ -287,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
317
|
version: '0'
|
288
318
|
requirements: []
|
289
319
|
rubyforge_project:
|
290
|
-
rubygems_version: 2.
|
320
|
+
rubygems_version: 2.6.13
|
291
321
|
signing_key:
|
292
322
|
specification_version: 4
|
293
323
|
summary: Boleto Simples API wrapper.
|
@@ -297,7 +327,9 @@ test_files:
|
|
297
327
|
- spec/boletosimples/last_request_spec.rb
|
298
328
|
- spec/boletosimples/resources/bank_billet_account_spec.rb
|
299
329
|
- spec/boletosimples/resources/bank_billet_spec.rb
|
330
|
+
- spec/boletosimples/resources/customer_import_spec.rb
|
300
331
|
- spec/boletosimples/resources/customer_spec.rb
|
332
|
+
- spec/boletosimples/resources/customer_subscription_import_spec.rb
|
301
333
|
- spec/boletosimples/resources/customer_subscription_spec.rb
|
302
334
|
- spec/boletosimples/resources/discharge_spec.rb
|
303
335
|
- spec/boletosimples/resources/event_spec.rb
|
@@ -307,6 +339,8 @@ test_files:
|
|
307
339
|
- spec/boletosimples/resources/transactions_spec.rb
|
308
340
|
- spec/boletosimples/resources/webhook_delivery_spec.rb
|
309
341
|
- spec/boletosimples/resources/webhook_spec.rb
|
342
|
+
- spec/fixtures/customer_imports.csv
|
343
|
+
- spec/fixtures/customer_subscription_imports.csv
|
310
344
|
- spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml
|
311
345
|
- spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml
|
312
346
|
- spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml
|
@@ -330,12 +364,22 @@ test_files:
|
|
330
364
|
- spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml
|
331
365
|
- spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml
|
332
366
|
- spec/fixtures/vcr_cassettes/resources/customer/find.yml
|
367
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/all.yml
|
368
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml
|
369
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml
|
370
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml
|
371
|
+
- spec/fixtures/vcr_cassettes/resources/customer_import/find.yml
|
333
372
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml
|
334
373
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml
|
335
374
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml
|
336
375
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml
|
337
376
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml
|
338
377
|
- spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml
|
378
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml
|
379
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml
|
380
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml
|
381
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml
|
382
|
+
- spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml
|
339
383
|
- spec/fixtures/vcr_cassettes/resources/discharge/all.yml
|
340
384
|
- spec/fixtures/vcr_cassettes/resources/event/all.yml
|
341
385
|
- spec/fixtures/vcr_cassettes/resources/installment/all.yml
|