boletosimples 1.0.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +6 -7
- data/lib/boletosimples/configuration.rb +2 -2
- data/lib/boletosimples/response_error.rb +2 -2
- data/lib/boletosimples/version.rb +1 -1
- data/spec/boletosimples/configuration_spec.rb +3 -3
- data/spec/boletosimples/resources/bank_billet_spec.rb +2 -2
- data/spec/boletosimples/resources/customer_spec.rb +9 -4
- data/spec/boletosimples/resources/customer_subscription_spec.rb +1 -1
- data/spec/boletosimples/resources/installment_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +386 -520
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +78 -522
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +30 -12
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +32 -16
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +42 -28
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +41 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +46 -31
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +47 -103
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +35 -41
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +73 -72
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +39 -70
- data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +111 -56
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +35 -16
- data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +37 -21
- data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +34 -18
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +34 -18
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +35 -71
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +32 -16
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +34 -19
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +34 -18
- data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +37 -39
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +37 -21
- data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +36 -18
- data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +1 -1
- data/spec/fixtures/vcr_cassettes/resources/event/all.yml +267 -432
- data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +71 -375
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +32 -16
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +59 -19
- data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +82 -81
- data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +72 -71
- data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +33 -17
- data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +2657 -1206
- metadata +5 -186
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/customer_subscriptions
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"customer_subscription":{"amount":1120.4,"cycle":"monthly","description":"Hospedagem","customer_address":"Rua
|
@@ -25,10 +25,14 @@ http_interactions:
|
|
25
25
|
code: 201
|
26
26
|
message: Created
|
27
27
|
headers:
|
28
|
-
|
29
|
-
-
|
28
|
+
Content-Type:
|
29
|
+
- application/json; charset=utf-8
|
30
|
+
Transfer-Encoding:
|
31
|
+
- chunked
|
30
32
|
Connection:
|
31
33
|
- keep-alive
|
34
|
+
Server:
|
35
|
+
- Cowboy
|
32
36
|
X-Frame-Options:
|
33
37
|
- DENY
|
34
38
|
X-Xss-Protection:
|
@@ -41,40 +45,52 @@ http_interactions:
|
|
41
45
|
- none
|
42
46
|
Referrer-Policy:
|
43
47
|
- strict-origin-when-cross-origin
|
48
|
+
Expect-Ct:
|
49
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
50
|
+
Cross-Origin-Resource-Policy:
|
51
|
+
- cross-origin
|
52
|
+
Cross-Origin-Embedder-Policy:
|
53
|
+
- unsafe-none
|
54
|
+
Cross-Origin-Opener-Policy:
|
55
|
+
- unsafe-none
|
44
56
|
Location:
|
45
|
-
- https://sandbox.
|
46
|
-
Content-Type:
|
47
|
-
- application/json; charset=utf-8
|
57
|
+
- https://api-sandbox.kobana.com.br/api/v1/customer_subscriptions/3201
|
48
58
|
X-Ratelimit-Limit:
|
49
|
-
- '
|
59
|
+
- '18000'
|
50
60
|
X-Ratelimit-Remaining:
|
51
|
-
- '
|
61
|
+
- '17961'
|
52
62
|
Etag:
|
53
|
-
- W/"
|
63
|
+
- W/"e8d9ffd24772e55c7d7d6c230dbc3a2f"
|
54
64
|
Cache-Control:
|
55
65
|
- max-age=0, private, must-revalidate
|
56
66
|
X-Request-Id:
|
57
|
-
-
|
67
|
+
- ca7127e6-78f9-4fee-9a39-001c7f5e4954
|
58
68
|
X-Runtime:
|
59
|
-
- '0.
|
69
|
+
- '0.077451'
|
60
70
|
Date:
|
61
|
-
- Tue,
|
71
|
+
- Tue, 22 Feb 2022 17:30:36 GMT
|
62
72
|
X-Rack-Cache:
|
63
73
|
- invalidate, pass
|
64
74
|
Strict-Transport-Security:
|
65
|
-
- max-age=
|
75
|
+
- max-age=31556952; includeSubDomains; preload
|
66
76
|
Vary:
|
67
77
|
- Origin,Accept-Encoding
|
68
|
-
|
69
|
-
-
|
78
|
+
X-Rack-Cors:
|
79
|
+
- miss; no-origin
|
70
80
|
Via:
|
71
|
-
- 1.1 vegur
|
81
|
+
- 1.1 vegur, 1.1 3f72a8b28c744ea2f627e9f8a8ac8282.cloudfront.net (CloudFront)
|
82
|
+
X-Cache:
|
83
|
+
- Miss from cloudfront
|
84
|
+
X-Amz-Cf-Pop:
|
85
|
+
- MIA3-C1
|
86
|
+
X-Amz-Cf-Id:
|
87
|
+
- fP3zFZplXcWBWvsbd1AY3Rbj4Vb7LHUckehRDOabxRq3UC9eWVAyjQ==
|
72
88
|
body:
|
73
89
|
encoding: UTF-8
|
74
|
-
string: '{"id":
|
90
|
+
string: '{"id":3201,"amount":1120.4,"cycle":"monthly","next_billing":"2022-03-22","end_at":null,"instructions":null,"customer_id":93340,"customer_person_name":"Joao
|
75
91
|
da Silva","customer_cnpj_cpf":"18.033.842/0001-05","customer_address":"Rua
|
76
92
|
quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
|
77
93
|
4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_city_name":"Rio
|
78
|
-
de Janeiro","customer_email_cc":null,"customer_ignore_email":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"description":"Hospedagem","created_at":"
|
79
|
-
recorded_at: Tue,
|
94
|
+
de Janeiro","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"description":"Hospedagem","created_at":"2022-02-22T14:30:36-03:00","updated_at":"2022-02-22T14:30:36-03:00","created_via_api":true,"days_in_advance":7,"bank_billet_account_id":659,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"days_for_discount":null,"discount_value":null,"discount_percentage":null,"email":null,"bank_billet_layout_id":null,"bank_billet_ids":[],"notes":null,"payment_count":1,"tags":[],"tag_list":null,"prevent_registration":false,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_revoke":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"guarantor_name":null,"guarantor_cnpj_cpf":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null}'
|
95
|
+
recorded_at: Tue, 22 Feb 2022 17:30:36 GMT
|
80
96
|
recorded_with: VCR 6.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/customer_subscriptions/3201
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -20,10 +20,14 @@ http_interactions:
|
|
20
20
|
code: 200
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
|
-
|
24
|
-
-
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
25
27
|
Connection:
|
26
28
|
- keep-alive
|
29
|
+
Server:
|
30
|
+
- Cowboy
|
27
31
|
X-Frame-Options:
|
28
32
|
- DENY
|
29
33
|
X-Xss-Protection:
|
@@ -36,42 +40,54 @@ http_interactions:
|
|
36
40
|
- none
|
37
41
|
Referrer-Policy:
|
38
42
|
- strict-origin-when-cross-origin
|
43
|
+
Expect-Ct:
|
44
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
45
|
+
Cross-Origin-Resource-Policy:
|
46
|
+
- cross-origin
|
47
|
+
Cross-Origin-Embedder-Policy:
|
48
|
+
- unsafe-none
|
49
|
+
Cross-Origin-Opener-Policy:
|
50
|
+
- unsafe-none
|
39
51
|
Etag:
|
40
|
-
- W/"
|
52
|
+
- W/"9f89eefca9a317c68d6b0a2add5ef9de"
|
41
53
|
Last-Modified:
|
42
|
-
- Tue,
|
54
|
+
- Tue, 22 Feb 2022 17:30:36 GMT
|
43
55
|
Location:
|
44
|
-
- https://sandbox.
|
45
|
-
Content-Type:
|
46
|
-
- application/json; charset=utf-8
|
56
|
+
- https://api-sandbox.kobana.com.br/api/v1/customer_subscriptions/3201
|
47
57
|
Cache-Control:
|
48
58
|
- must-revalidate, private, max-age=0
|
49
59
|
X-Ratelimit-Limit:
|
50
|
-
- '
|
60
|
+
- '100'
|
51
61
|
X-Ratelimit-Remaining:
|
52
|
-
- '
|
62
|
+
- '63'
|
53
63
|
X-Request-Id:
|
54
|
-
-
|
64
|
+
- 24cd878e-92a1-49ce-9557-4248f1ff2bb3
|
55
65
|
X-Runtime:
|
56
|
-
- '0.
|
66
|
+
- '0.021194'
|
57
67
|
Date:
|
58
|
-
- Tue,
|
68
|
+
- Tue, 22 Feb 2022 17:30:37 GMT
|
59
69
|
X-Rack-Cache:
|
60
70
|
- miss
|
61
71
|
Strict-Transport-Security:
|
62
|
-
- max-age=
|
72
|
+
- max-age=31556952; includeSubDomains; preload
|
63
73
|
Vary:
|
64
74
|
- Origin,Accept-Encoding
|
65
|
-
|
66
|
-
-
|
75
|
+
X-Rack-Cors:
|
76
|
+
- miss; no-origin
|
67
77
|
Via:
|
68
|
-
- 1.1 vegur
|
78
|
+
- 1.1 vegur, 1.1 9346895309f99aec239d62e95959c174.cloudfront.net (CloudFront)
|
79
|
+
X-Cache:
|
80
|
+
- Miss from cloudfront
|
81
|
+
X-Amz-Cf-Pop:
|
82
|
+
- MIA3-C1
|
83
|
+
X-Amz-Cf-Id:
|
84
|
+
- ef6ztx_4sYryfwsv2hKwKGUiBwWGsz8G5ruTlpEzicZdfheHynAKlA==
|
69
85
|
body:
|
70
86
|
encoding: UTF-8
|
71
|
-
string: '{"id":
|
87
|
+
string: '{"id":3201,"amount":1120.4,"cycle":"monthly","next_billing":"2022-03-22","end_at":null,"instructions":null,"customer_id":93340,"customer_person_name":"Joao
|
72
88
|
da Silva","customer_cnpj_cpf":"18.033.842/0001-05","customer_address":"Rua
|
73
89
|
quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
|
74
90
|
4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_city_name":"Rio
|
75
|
-
de Janeiro","customer_email_cc":null,"customer_ignore_email":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"description":"Hospedagem","created_at":"
|
76
|
-
recorded_at: Tue,
|
91
|
+
de Janeiro","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"description":"Hospedagem","created_at":"2022-02-22T14:30:36-03:00","updated_at":"2022-02-22T14:30:36-03:00","created_via_api":true,"days_in_advance":7,"bank_billet_account_id":659,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"days_for_discount":null,"discount_value":null,"discount_percentage":null,"email":null,"bank_billet_layout_id":null,"bank_billet_ids":[],"notes":null,"payment_count":1,"tags":[],"tag_list":null,"prevent_registration":false,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_revoke":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"guarantor_name":null,"guarantor_cnpj_cpf":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null}'
|
92
|
+
recorded_at: Tue, 22 Feb 2022 17:30:37 GMT
|
77
93
|
recorded_with: VCR 6.0.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/customer_subscriptions/3201/next_charge
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"customer_subscription":{"id":
|
8
|
+
string: '{"customer_subscription":{"id":3201}}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
11
|
- email@minhaempresa.com.br
|
@@ -22,10 +22,14 @@ http_interactions:
|
|
22
22
|
code: 201
|
23
23
|
message: Created
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
27
29
|
Connection:
|
28
30
|
- keep-alive
|
31
|
+
Server:
|
32
|
+
- Cowboy
|
29
33
|
X-Frame-Options:
|
30
34
|
- DENY
|
31
35
|
X-Xss-Protection:
|
@@ -38,40 +42,52 @@ http_interactions:
|
|
38
42
|
- none
|
39
43
|
Referrer-Policy:
|
40
44
|
- strict-origin-when-cross-origin
|
45
|
+
Expect-Ct:
|
46
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
47
|
+
Cross-Origin-Resource-Policy:
|
48
|
+
- cross-origin
|
49
|
+
Cross-Origin-Embedder-Policy:
|
50
|
+
- unsafe-none
|
51
|
+
Cross-Origin-Opener-Policy:
|
52
|
+
- unsafe-none
|
41
53
|
Location:
|
42
|
-
- https://sandbox.
|
43
|
-
Content-Type:
|
44
|
-
- application/json; charset=utf-8
|
54
|
+
- https://api-sandbox.kobana.com.br/api/v1/customer_subscriptions/3201
|
45
55
|
X-Ratelimit-Limit:
|
46
|
-
- '
|
56
|
+
- '18000'
|
47
57
|
X-Ratelimit-Remaining:
|
48
|
-
- '
|
58
|
+
- '17958'
|
49
59
|
Etag:
|
50
|
-
- W/"
|
60
|
+
- W/"bebfa23971471d50f84a805510f91133"
|
51
61
|
Cache-Control:
|
52
62
|
- max-age=0, private, must-revalidate
|
53
63
|
X-Request-Id:
|
54
|
-
-
|
64
|
+
- d2febd46-6ee0-4209-bdd6-37cb34d0cb29
|
55
65
|
X-Runtime:
|
56
|
-
- '0.
|
66
|
+
- '0.118068'
|
57
67
|
Date:
|
58
|
-
- Tue,
|
68
|
+
- Tue, 22 Feb 2022 17:30:39 GMT
|
59
69
|
X-Rack-Cache:
|
60
70
|
- invalidate, pass
|
61
71
|
Strict-Transport-Security:
|
62
|
-
- max-age=
|
72
|
+
- max-age=31556952; includeSubDomains; preload
|
63
73
|
Vary:
|
64
74
|
- Origin,Accept-Encoding
|
65
|
-
|
66
|
-
-
|
75
|
+
X-Rack-Cors:
|
76
|
+
- miss; no-origin
|
67
77
|
Via:
|
68
|
-
- 1.1 vegur
|
78
|
+
- 1.1 vegur, 1.1 b3ca1a7752327aa687a6611c7f28951e.cloudfront.net (CloudFront)
|
79
|
+
X-Cache:
|
80
|
+
- Miss from cloudfront
|
81
|
+
X-Amz-Cf-Pop:
|
82
|
+
- MIA3-C1
|
83
|
+
X-Amz-Cf-Id:
|
84
|
+
- HhA-Ptk2PLngIWXQbPSvDf9hFgvmDn0n-v5V1TQ_keCx6h6vTwUOgA==
|
69
85
|
body:
|
70
86
|
encoding: UTF-8
|
71
|
-
string: '{"id":
|
87
|
+
string: '{"id":3201,"amount":1120.4,"cycle":"monthly","next_billing":"2022-04-22","end_at":null,"instructions":null,"customer_id":93340,"customer_person_name":"Joao
|
72
88
|
da Silva","customer_cnpj_cpf":"18.033.842/0001-05","customer_address":"Rua
|
73
89
|
quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
|
74
90
|
4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_city_name":"Rio
|
75
|
-
de Janeiro","customer_email_cc":null,"customer_ignore_email":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"description":"Hospedagem","created_at":"
|
76
|
-
recorded_at: Tue,
|
91
|
+
de Janeiro","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"description":"Hospedagem","created_at":"2022-02-22T14:30:36-03:00","updated_at":"2022-02-22T14:30:39-03:00","created_via_api":true,"days_in_advance":7,"bank_billet_account_id":659,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"days_for_discount":null,"discount_value":null,"discount_percentage":null,"email":null,"bank_billet_layout_id":null,"bank_billet_ids":[472531],"notes":null,"payment_count":1,"tags":[],"tag_list":null,"prevent_registration":false,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_revoke":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"guarantor_name":null,"guarantor_cnpj_cpf":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null}'
|
92
|
+
recorded_at: Tue, 22 Feb 2022 17:30:39 GMT
|
77
93
|
recorded_with: VCR 6.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/imports/customer_subscriptions
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -20,10 +20,14 @@ http_interactions:
|
|
20
20
|
code: 200
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
|
-
|
24
|
-
-
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
25
27
|
Connection:
|
26
28
|
- keep-alive
|
29
|
+
Server:
|
30
|
+
- Cowboy
|
27
31
|
X-Frame-Options:
|
28
32
|
- DENY
|
29
33
|
X-Xss-Protection:
|
@@ -36,40 +40,51 @@ http_interactions:
|
|
36
40
|
- none
|
37
41
|
Referrer-Policy:
|
38
42
|
- strict-origin-when-cross-origin
|
43
|
+
Expect-Ct:
|
44
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
45
|
+
Cross-Origin-Resource-Policy:
|
46
|
+
- cross-origin
|
47
|
+
Cross-Origin-Embedder-Policy:
|
48
|
+
- unsafe-none
|
49
|
+
Cross-Origin-Opener-Policy:
|
50
|
+
- unsafe-none
|
39
51
|
Per-Page:
|
40
52
|
- '50'
|
41
53
|
Page:
|
42
54
|
- ''
|
43
|
-
Content-Type:
|
44
|
-
- application/json; charset=utf-8
|
45
55
|
X-Ratelimit-Limit:
|
46
|
-
- '
|
56
|
+
- '100'
|
47
57
|
X-Ratelimit-Remaining:
|
48
|
-
- '
|
58
|
+
- '71'
|
49
59
|
Etag:
|
50
|
-
- W/"
|
60
|
+
- W/"e1d3d8d2e233041ff07873654985aefe"
|
51
61
|
Cache-Control:
|
52
62
|
- must-revalidate, private, max-age=0
|
53
63
|
X-Request-Id:
|
54
|
-
-
|
64
|
+
- dd85f8b3-101d-4c1a-b4a5-2382dc3cd095
|
55
65
|
X-Runtime:
|
56
|
-
- '0.
|
66
|
+
- '0.047629'
|
57
67
|
Date:
|
58
|
-
- Tue,
|
68
|
+
- Tue, 22 Feb 2022 17:30:29 GMT
|
59
69
|
X-Rack-Cache:
|
60
70
|
- miss
|
61
71
|
Strict-Transport-Security:
|
62
|
-
- max-age=
|
72
|
+
- max-age=31556952; includeSubDomains; preload
|
63
73
|
Vary:
|
64
74
|
- Origin,Accept-Encoding
|
65
|
-
|
66
|
-
-
|
75
|
+
X-Rack-Cors:
|
76
|
+
- miss; no-origin
|
67
77
|
Via:
|
68
|
-
- 1.1 vegur
|
78
|
+
- 1.1 vegur, 1.1 57b326460a798c60c06d0be01006b3d6.cloudfront.net (CloudFront)
|
79
|
+
X-Cache:
|
80
|
+
- Miss from cloudfront
|
81
|
+
X-Amz-Cf-Pop:
|
82
|
+
- MIA3-C1
|
83
|
+
X-Amz-Cf-Id:
|
84
|
+
- WeJq5Zmohw52wnAGMOiMth2MlBLWLsErvl8mgXJ8S-rPrLoVfqSpbA==
|
69
85
|
body:
|
70
86
|
encoding: UTF-8
|
71
|
-
string: '[{"id":
|
72
|
-
max number of clients reached","processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customer_subscriptions.csv","source_file_size":239,"status":"fatal_error","created_via_api":true},{"id":
|
73
|
-
|
74
|
-
recorded_at: Tue, 13 Apr 2021 17:18:18 GMT
|
87
|
+
string: '[{"id":1279,"created_rows":0,"enqueued_at":null,"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_file_name":"customer_subscriptions.csv","source_file_size":239,"status":"pending","created_via_api":true},{"id":1277,"created_rows":0,"enqueued_at":null,"started_at":"2022-02-22T14:27:22-03:00","finished_at":"2022-02-22T14:27:22-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":"ERR
|
88
|
+
max number of clients reached","processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customer_subscriptions.csv","source_file_size":239,"status":"fatal_error","created_via_api":true},{"id":1024,"created_rows":0,"enqueued_at":"2021-04-09T09:50:56-03:00","started_at":"2021-04-09T09:51:53-03:00","finished_at":"2021-04-09T09:51:54-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_file_name":"customer_subscriptions.csv","source_file_size":239,"status":"done","created_via_api":true},{"id":1023,"created_rows":0,"enqueued_at":"2021-04-09T09:12:24-03:00","started_at":"2021-04-09T09:14:34-03:00","finished_at":"2021-04-09T09:14:35-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_file_name":"customer_subscriptions.csv","source_file_size":239,"status":"done","created_via_api":true},{"id":845,"created_rows":0,"enqueued_at":"2020-10-06T09:17:27-03:00","started_at":"2020-10-06T09:17:27-03:00","finished_at":"2020-10-06T09:17:27-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_file_name":"customer_subscriptions.csv","source_file_size":239,"status":"done","created_via_api":true}]'
|
89
|
+
recorded_at: Tue, 22 Feb 2022 17:30:29 GMT
|
75
90
|
recorded_with: VCR 6.0.0
|
data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/imports/customer_subscriptions
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"customer_subscription_import":{"source":""}}'
|
@@ -22,10 +22,14 @@ http_interactions:
|
|
22
22
|
code: 422
|
23
23
|
message: Unprocessable Entity
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
27
29
|
Connection:
|
28
30
|
- keep-alive
|
31
|
+
Server:
|
32
|
+
- Cowboy
|
29
33
|
X-Frame-Options:
|
30
34
|
- DENY
|
31
35
|
X-Xss-Protection:
|
@@ -38,32 +42,44 @@ http_interactions:
|
|
38
42
|
- none
|
39
43
|
Referrer-Policy:
|
40
44
|
- strict-origin-when-cross-origin
|
41
|
-
|
42
|
-
-
|
45
|
+
Expect-Ct:
|
46
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
47
|
+
Cross-Origin-Resource-Policy:
|
48
|
+
- cross-origin
|
49
|
+
Cross-Origin-Embedder-Policy:
|
50
|
+
- unsafe-none
|
51
|
+
Cross-Origin-Opener-Policy:
|
52
|
+
- unsafe-none
|
43
53
|
X-Ratelimit-Limit:
|
44
|
-
- '
|
54
|
+
- '18000'
|
45
55
|
X-Ratelimit-Remaining:
|
46
|
-
- '
|
56
|
+
- '17966'
|
47
57
|
Cache-Control:
|
48
58
|
- no-cache
|
49
59
|
X-Request-Id:
|
50
|
-
-
|
60
|
+
- b54b032e-494b-4eb5-9188-054ab468cf95
|
51
61
|
X-Runtime:
|
52
|
-
- '0.
|
62
|
+
- '0.018397'
|
53
63
|
Date:
|
54
|
-
- Tue,
|
64
|
+
- Tue, 22 Feb 2022 17:30:30 GMT
|
55
65
|
X-Rack-Cache:
|
56
66
|
- invalidate, pass
|
57
67
|
Strict-Transport-Security:
|
58
|
-
- max-age=
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
59
69
|
Vary:
|
60
70
|
- Origin,Accept-Encoding
|
61
|
-
|
62
|
-
-
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
63
73
|
Via:
|
64
|
-
- 1.1 vegur
|
74
|
+
- 1.1 vegur, 1.1 d2c636aea3f69033bb2125c4038e1c48.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- 4R9b1LHH1dD0kTB0YljVqYtyz6-s6RiDtwh7xCkEVAbqwSia9_SwmA==
|
65
81
|
body:
|
66
82
|
encoding: UTF-8
|
67
83
|
string: '{"errors":{"source":["não pode ficar em branco"]}}'
|
68
|
-
recorded_at: Tue,
|
84
|
+
recorded_at: Tue, 22 Feb 2022 17:30:30 GMT
|
69
85
|
recorded_with: VCR 6.0.0
|
data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/imports/customer_subscriptions
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"customer_subscription_import":{}}'
|
@@ -22,10 +22,14 @@ http_interactions:
|
|
22
22
|
code: 422
|
23
23
|
message: Unprocessable Entity
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
27
29
|
Connection:
|
28
30
|
- keep-alive
|
31
|
+
Server:
|
32
|
+
- Cowboy
|
29
33
|
X-Frame-Options:
|
30
34
|
- DENY
|
31
35
|
X-Xss-Protection:
|
@@ -38,33 +42,45 @@ http_interactions:
|
|
38
42
|
- none
|
39
43
|
Referrer-Policy:
|
40
44
|
- strict-origin-when-cross-origin
|
41
|
-
|
42
|
-
-
|
45
|
+
Expect-Ct:
|
46
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
47
|
+
Cross-Origin-Resource-Policy:
|
48
|
+
- cross-origin
|
49
|
+
Cross-Origin-Embedder-Policy:
|
50
|
+
- unsafe-none
|
51
|
+
Cross-Origin-Opener-Policy:
|
52
|
+
- unsafe-none
|
43
53
|
X-Ratelimit-Limit:
|
44
|
-
- '
|
54
|
+
- '18000'
|
45
55
|
X-Ratelimit-Remaining:
|
46
|
-
- '
|
56
|
+
- '17965'
|
47
57
|
Cache-Control:
|
48
58
|
- no-cache
|
49
59
|
X-Request-Id:
|
50
|
-
-
|
60
|
+
- 76449dbc-a005-4512-af7e-0831d3442f97
|
51
61
|
X-Runtime:
|
52
|
-
- '0.
|
62
|
+
- '0.012940'
|
53
63
|
Date:
|
54
|
-
- Tue,
|
64
|
+
- Tue, 22 Feb 2022 17:30:30 GMT
|
55
65
|
X-Rack-Cache:
|
56
66
|
- invalidate, pass
|
57
67
|
Strict-Transport-Security:
|
58
|
-
- max-age=
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
59
69
|
Vary:
|
60
70
|
- Origin,Accept-Encoding
|
61
|
-
|
62
|
-
-
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
63
73
|
Via:
|
64
|
-
- 1.1 vegur
|
74
|
+
- 1.1 vegur, 1.1 3b6959d147738fd4bde35db4104f4052.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- w1N8jMfXy1ZqwNLHwfeeMaYvRhqTKQocAb2QLH-i1Vdr8abY8OJJpQ==
|
65
81
|
body:
|
66
82
|
encoding: UTF-8
|
67
83
|
string: '{"errors":[{"title":"customer_subscription_import não pode ficar em
|
68
84
|
branco","status":422,"code":422}]}'
|
69
|
-
recorded_at: Tue,
|
85
|
+
recorded_at: Tue, 22 Feb 2022 17:30:30 GMT
|
70
86
|
recorded_with: VCR 6.0.0
|