mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Deletes connected account, after spec
Re-records cassettes
This commit is contained in:
@@ -52,6 +52,10 @@ describe Admin::StripeAccountsController, type: :controller do
|
||||
params[:id] = stripe_account.id
|
||||
end
|
||||
|
||||
after do
|
||||
Stripe::Account.delete(connected_account.id)
|
||||
end
|
||||
|
||||
context "when I don't manage the enterprise linked to the stripe account" do
|
||||
let(:some_user) { create(:user) }
|
||||
|
||||
@@ -143,6 +147,10 @@ describe Admin::StripeAccountsController, type: :controller do
|
||||
create(:stripe_account, stripe_user_id: connected_account.id, enterprise:)
|
||||
}
|
||||
|
||||
after do
|
||||
Stripe::Account.delete(connected_account.id)
|
||||
end
|
||||
|
||||
context "but access has been revoked or does not exist on stripe's servers" do
|
||||
let(:message) {
|
||||
"The provided key 'sk_test_******************************uCJm' " \
|
||||
|
||||
@@ -29,7 +29,7 @@ http_interactions:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Wed, 27 Mar 2024 11:34:59 GMT
|
||||
- Fri, 29 Mar 2024 18:53:02 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
@@ -56,15 +56,15 @@ http_interactions:
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Idempotency-Key:
|
||||
- f8570e37-5b0d-4cc0-b8a3-b8b9df4d1ffb
|
||||
- b963ad29-314d-4fa3-86c8-ed8d21182414
|
||||
Original-Request:
|
||||
- req_e2SoaA4Ghw0gaM
|
||||
- req_Ph5LpkrVmGvJSp
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_e2SoaA4Ghw0gaM
|
||||
- req_Ph5LpkrVmGvJSp
|
||||
Stripe-Should-Retry:
|
||||
- 'false'
|
||||
Stripe-Version:
|
||||
@@ -79,7 +79,7 @@ http_interactions:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1OyukwQMSSW9Jehj",
|
||||
"id": "acct_1OzkXwQMV2WNdfaG",
|
||||
"object": "account",
|
||||
"business_profile": {
|
||||
"annual_revenue": null,
|
||||
@@ -124,7 +124,7 @@ http_interactions:
|
||||
"type": "application"
|
||||
},
|
||||
"country": "AU",
|
||||
"created": 1711539299,
|
||||
"created": 1711738381,
|
||||
"default_currency": "aud",
|
||||
"details_submitted": false,
|
||||
"email": "jumping.jack@example.com",
|
||||
@@ -133,7 +133,7 @@ http_interactions:
|
||||
"data": [],
|
||||
"has_more": false,
|
||||
"total_count": 0,
|
||||
"url": "/v1/accounts/acct_1OyukwQMSSW9Jehj/external_accounts"
|
||||
"url": "/v1/accounts/acct_1OzkXwQMV2WNdfaG/external_accounts"
|
||||
},
|
||||
"future_requirements": {
|
||||
"alternatives": [],
|
||||
@@ -230,5 +230,87 @@ http_interactions:
|
||||
},
|
||||
"type": "standard"
|
||||
}
|
||||
recorded_at: Wed, 27 Mar 2024 11:34:59 GMT
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:02 GMT
|
||||
- request:
|
||||
method: delete
|
||||
uri: https://api.stripe.com/v1/accounts/acct_1OzkXwQMV2WNdfaG
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
headers:
|
||||
User-Agent:
|
||||
- Stripe/v1 RubyBindings/10.13.0
|
||||
Authorization:
|
||||
- "<HIDDEN-AUTHORIZATION-HEADER>"
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_Ph5LpkrVmGvJSp","request_duration_ms":2188}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
- "<HIDDEN-STRIPE-USER-AGENT>"
|
||||
Accept-Encoding:
|
||||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||||
Accept:
|
||||
- "*/*"
|
||||
response:
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
headers:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Fri, 29 Mar 2024 18:53:03 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
- '77'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Access-Control-Allow-Credentials:
|
||||
- 'true'
|
||||
Access-Control-Allow-Methods:
|
||||
- GET,HEAD,PUT,PATCH,POST,DELETE
|
||||
Access-Control-Allow-Origin:
|
||||
- "*"
|
||||
Access-Control-Expose-Headers:
|
||||
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required,
|
||||
X-Stripe-Privileged-Session-Required
|
||||
Access-Control-Max-Age:
|
||||
- '300'
|
||||
Cache-Control:
|
||||
- no-cache, no-store
|
||||
Content-Security-Policy:
|
||||
- report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts%2F%3Aaccount; block-all-mixed-content;
|
||||
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
|
||||
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_xbUYf1jqhpZXGn
|
||||
Stripe-Account:
|
||||
- acct_1OzkXwQMV2WNdfaG
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
Vary:
|
||||
- Origin
|
||||
X-Stripe-Routing-Context-Priority-Tier:
|
||||
- api-testmode
|
||||
Strict-Transport-Security:
|
||||
- max-age=63072000; includeSubDomains; preload
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1OzkXwQMV2WNdfaG",
|
||||
"object": "account",
|
||||
"deleted": true
|
||||
}
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:03 GMT
|
||||
recorded_with: VCR 6.2.0
|
||||
|
||||
@@ -14,7 +14,7 @@ http_interactions:
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_8Ak8cPKYtDzmwM","request_duration_ms":1828}}'
|
||||
- '{"last_request_metrics":{"request_id":"req_JGxjtcKW5dC7dD","request_duration_ms":910}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
@@ -31,7 +31,7 @@ http_interactions:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Wed, 27 Mar 2024 11:35:03 GMT
|
||||
- Fri, 29 Mar 2024 18:53:08 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
@@ -58,15 +58,15 @@ http_interactions:
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Idempotency-Key:
|
||||
- ea03a93f-8765-4d81-86da-fcfcad4ce6bc
|
||||
- 40c1e7cc-70fa-477f-afc9-5414eb47e9b7
|
||||
Original-Request:
|
||||
- req_9OMqL2pNI5AkPo
|
||||
- req_MZwNhnG2QwlJ04
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_9OMqL2pNI5AkPo
|
||||
- req_MZwNhnG2QwlJ04
|
||||
Stripe-Should-Retry:
|
||||
- 'false'
|
||||
Stripe-Version:
|
||||
@@ -81,7 +81,7 @@ http_interactions:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1Oyul04D5c5UitL3",
|
||||
"id": "acct_1OzkY24EZjTC8pH1",
|
||||
"object": "account",
|
||||
"business_profile": {
|
||||
"annual_revenue": null,
|
||||
@@ -126,7 +126,7 @@ http_interactions:
|
||||
"type": "application"
|
||||
},
|
||||
"country": "AU",
|
||||
"created": 1711539303,
|
||||
"created": 1711738387,
|
||||
"default_currency": "aud",
|
||||
"details_submitted": false,
|
||||
"email": "jumping.jack@example.com",
|
||||
@@ -135,7 +135,7 @@ http_interactions:
|
||||
"data": [],
|
||||
"has_more": false,
|
||||
"total_count": 0,
|
||||
"url": "/v1/accounts/acct_1Oyul04D5c5UitL3/external_accounts"
|
||||
"url": "/v1/accounts/acct_1OzkY24EZjTC8pH1/external_accounts"
|
||||
},
|
||||
"future_requirements": {
|
||||
"alternatives": [],
|
||||
@@ -232,5 +232,87 @@ http_interactions:
|
||||
},
|
||||
"type": "standard"
|
||||
}
|
||||
recorded_at: Wed, 27 Mar 2024 11:35:04 GMT
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:08 GMT
|
||||
- request:
|
||||
method: delete
|
||||
uri: https://api.stripe.com/v1/accounts/acct_1OzkY24EZjTC8pH1
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
headers:
|
||||
User-Agent:
|
||||
- Stripe/v1 RubyBindings/10.13.0
|
||||
Authorization:
|
||||
- "<HIDDEN-AUTHORIZATION-HEADER>"
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_MZwNhnG2QwlJ04","request_duration_ms":1764}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
- "<HIDDEN-STRIPE-USER-AGENT>"
|
||||
Accept-Encoding:
|
||||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||||
Accept:
|
||||
- "*/*"
|
||||
response:
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
headers:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Fri, 29 Mar 2024 18:53:09 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
- '77'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Access-Control-Allow-Credentials:
|
||||
- 'true'
|
||||
Access-Control-Allow-Methods:
|
||||
- GET,HEAD,PUT,PATCH,POST,DELETE
|
||||
Access-Control-Allow-Origin:
|
||||
- "*"
|
||||
Access-Control-Expose-Headers:
|
||||
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required,
|
||||
X-Stripe-Privileged-Session-Required
|
||||
Access-Control-Max-Age:
|
||||
- '300'
|
||||
Cache-Control:
|
||||
- no-cache, no-store
|
||||
Content-Security-Policy:
|
||||
- report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts%2F%3Aaccount; block-all-mixed-content;
|
||||
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
|
||||
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_tfFx6yqOhyxOEz
|
||||
Stripe-Account:
|
||||
- acct_1OzkY24EZjTC8pH1
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
Vary:
|
||||
- Origin
|
||||
X-Stripe-Routing-Context-Priority-Tier:
|
||||
- api-testmode
|
||||
Strict-Transport-Security:
|
||||
- max-age=63072000; includeSubDomains; preload
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1OzkY24EZjTC8pH1",
|
||||
"object": "account",
|
||||
"deleted": true
|
||||
}
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:09 GMT
|
||||
recorded_with: VCR 6.2.0
|
||||
|
||||
@@ -14,7 +14,7 @@ http_interactions:
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_e2SoaA4Ghw0gaM","request_duration_ms":1837}}'
|
||||
- '{"last_request_metrics":{"request_id":"req_xbUYf1jqhpZXGn","request_duration_ms":1121}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
@@ -31,7 +31,7 @@ http_interactions:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Wed, 27 Mar 2024 11:35:01 GMT
|
||||
- Fri, 29 Mar 2024 18:53:05 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
@@ -58,15 +58,15 @@ http_interactions:
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Idempotency-Key:
|
||||
- 0fd244bc-e210-4018-8f5f-f70eb42bf68b
|
||||
- 8f3afe92-8ae2-4e51-b958-949f48e942d3
|
||||
Original-Request:
|
||||
- req_8Ak8cPKYtDzmwM
|
||||
- req_6C0wxXNZ11Bgnz
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_8Ak8cPKYtDzmwM
|
||||
- req_6C0wxXNZ11Bgnz
|
||||
Stripe-Should-Retry:
|
||||
- 'false'
|
||||
Stripe-Version:
|
||||
@@ -81,7 +81,7 @@ http_interactions:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1OyukyQO5YeTxN1D",
|
||||
"id": "acct_1OzkXzQN8gTLyS3G",
|
||||
"object": "account",
|
||||
"business_profile": {
|
||||
"annual_revenue": null,
|
||||
@@ -126,7 +126,7 @@ http_interactions:
|
||||
"type": "application"
|
||||
},
|
||||
"country": "AU",
|
||||
"created": 1711539301,
|
||||
"created": 1711738384,
|
||||
"default_currency": "aud",
|
||||
"details_submitted": false,
|
||||
"email": "jumping.jack@example.com",
|
||||
@@ -135,7 +135,7 @@ http_interactions:
|
||||
"data": [],
|
||||
"has_more": false,
|
||||
"total_count": 0,
|
||||
"url": "/v1/accounts/acct_1OyukyQO5YeTxN1D/external_accounts"
|
||||
"url": "/v1/accounts/acct_1OzkXzQN8gTLyS3G/external_accounts"
|
||||
},
|
||||
"future_requirements": {
|
||||
"alternatives": [],
|
||||
@@ -232,5 +232,87 @@ http_interactions:
|
||||
},
|
||||
"type": "standard"
|
||||
}
|
||||
recorded_at: Wed, 27 Mar 2024 11:35:01 GMT
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:05 GMT
|
||||
- request:
|
||||
method: delete
|
||||
uri: https://api.stripe.com/v1/accounts/acct_1OzkXzQN8gTLyS3G
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
headers:
|
||||
User-Agent:
|
||||
- Stripe/v1 RubyBindings/10.13.0
|
||||
Authorization:
|
||||
- "<HIDDEN-AUTHORIZATION-HEADER>"
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_6C0wxXNZ11Bgnz","request_duration_ms":1887}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
- "<HIDDEN-STRIPE-USER-AGENT>"
|
||||
Accept-Encoding:
|
||||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||||
Accept:
|
||||
- "*/*"
|
||||
response:
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
headers:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Fri, 29 Mar 2024 18:53:06 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
- '77'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Access-Control-Allow-Credentials:
|
||||
- 'true'
|
||||
Access-Control-Allow-Methods:
|
||||
- GET,HEAD,PUT,PATCH,POST,DELETE
|
||||
Access-Control-Allow-Origin:
|
||||
- "*"
|
||||
Access-Control-Expose-Headers:
|
||||
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required,
|
||||
X-Stripe-Privileged-Session-Required
|
||||
Access-Control-Max-Age:
|
||||
- '300'
|
||||
Cache-Control:
|
||||
- no-cache, no-store
|
||||
Content-Security-Policy:
|
||||
- report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts%2F%3Aaccount; block-all-mixed-content;
|
||||
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
|
||||
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_JGxjtcKW5dC7dD
|
||||
Stripe-Account:
|
||||
- acct_1OzkXzQN8gTLyS3G
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
Vary:
|
||||
- Origin
|
||||
X-Stripe-Routing-Context-Priority-Tier:
|
||||
- api-testmode
|
||||
Strict-Transport-Security:
|
||||
- max-age=63072000; includeSubDomains; preload
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1OzkXzQN8gTLyS3G",
|
||||
"object": "account",
|
||||
"deleted": true
|
||||
}
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:06 GMT
|
||||
recorded_with: VCR 6.2.0
|
||||
|
||||
@@ -14,7 +14,7 @@ http_interactions:
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_9OMqL2pNI5AkPo","request_duration_ms":1882}}'
|
||||
- '{"last_request_metrics":{"request_id":"req_tfFx6yqOhyxOEz","request_duration_ms":1044}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
@@ -31,7 +31,7 @@ http_interactions:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Wed, 27 Mar 2024 11:35:06 GMT
|
||||
- Fri, 29 Mar 2024 18:53:11 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
@@ -58,15 +58,15 @@ http_interactions:
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Idempotency-Key:
|
||||
- c0512a95-e0b8-4071-91c4-7918ada106a9
|
||||
- 04c8a17e-a4e3-4013-829f-a734d08c842f
|
||||
Original-Request:
|
||||
- req_HEzsvVrbsxJf8Q
|
||||
- req_3nsCgMKYZfY3Wx
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_HEzsvVrbsxJf8Q
|
||||
- req_3nsCgMKYZfY3Wx
|
||||
Stripe-Should-Retry:
|
||||
- 'false'
|
||||
Stripe-Version:
|
||||
@@ -81,7 +81,7 @@ http_interactions:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1Oyul2QLMfJvTM4q",
|
||||
"id": "acct_1OzkY6QPPCVWPRug",
|
||||
"object": "account",
|
||||
"business_profile": {
|
||||
"annual_revenue": null,
|
||||
@@ -126,7 +126,7 @@ http_interactions:
|
||||
"type": "application"
|
||||
},
|
||||
"country": "AU",
|
||||
"created": 1711539305,
|
||||
"created": 1711738391,
|
||||
"default_currency": "aud",
|
||||
"details_submitted": false,
|
||||
"email": "jumping.jack@example.com",
|
||||
@@ -135,7 +135,7 @@ http_interactions:
|
||||
"data": [],
|
||||
"has_more": false,
|
||||
"total_count": 0,
|
||||
"url": "/v1/accounts/acct_1Oyul2QLMfJvTM4q/external_accounts"
|
||||
"url": "/v1/accounts/acct_1OzkY6QPPCVWPRug/external_accounts"
|
||||
},
|
||||
"future_requirements": {
|
||||
"alternatives": [],
|
||||
@@ -232,7 +232,7 @@ http_interactions:
|
||||
},
|
||||
"type": "standard"
|
||||
}
|
||||
recorded_at: Wed, 27 Mar 2024 11:35:06 GMT
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:12 GMT
|
||||
- request:
|
||||
method: get
|
||||
uri: https://api.stripe.com/v1/accounts/acct_fake_account
|
||||
@@ -247,7 +247,7 @@ http_interactions:
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_HEzsvVrbsxJf8Q","request_duration_ms":1610}}'
|
||||
- '{"last_request_metrics":{"request_id":"req_3nsCgMKYZfY3Wx","request_duration_ms":1860}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
@@ -264,7 +264,7 @@ http_interactions:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Wed, 27 Mar 2024 11:35:06 GMT
|
||||
- Fri, 29 Mar 2024 18:53:12 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
@@ -299,5 +299,87 @@ http_interactions:
|
||||
"doc_url": "https://stripe.com/docs/error-codes/account-invalid"
|
||||
}
|
||||
}
|
||||
recorded_at: Wed, 27 Mar 2024 11:35:06 GMT
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:12 GMT
|
||||
- request:
|
||||
method: delete
|
||||
uri: https://api.stripe.com/v1/accounts/acct_1OzkY6QPPCVWPRug
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
headers:
|
||||
User-Agent:
|
||||
- Stripe/v1 RubyBindings/10.13.0
|
||||
Authorization:
|
||||
- "<HIDDEN-AUTHORIZATION-HEADER>"
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_3nsCgMKYZfY3Wx","request_duration_ms":1860}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
- "<HIDDEN-STRIPE-USER-AGENT>"
|
||||
Accept-Encoding:
|
||||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||||
Accept:
|
||||
- "*/*"
|
||||
response:
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
headers:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Fri, 29 Mar 2024 18:53:13 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
- '77'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Access-Control-Allow-Credentials:
|
||||
- 'true'
|
||||
Access-Control-Allow-Methods:
|
||||
- GET,HEAD,PUT,PATCH,POST,DELETE
|
||||
Access-Control-Allow-Origin:
|
||||
- "*"
|
||||
Access-Control-Expose-Headers:
|
||||
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required,
|
||||
X-Stripe-Privileged-Session-Required
|
||||
Access-Control-Max-Age:
|
||||
- '300'
|
||||
Cache-Control:
|
||||
- no-cache, no-store
|
||||
Content-Security-Policy:
|
||||
- report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts%2F%3Aaccount; block-all-mixed-content;
|
||||
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
|
||||
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_vJuorSL1DL25TZ
|
||||
Stripe-Account:
|
||||
- acct_1OzkY6QPPCVWPRug
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
Vary:
|
||||
- Origin
|
||||
X-Stripe-Routing-Context-Priority-Tier:
|
||||
- api-testmode
|
||||
Strict-Transport-Security:
|
||||
- max-age=63072000; includeSubDomains; preload
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1OzkY6QPPCVWPRug",
|
||||
"object": "account",
|
||||
"deleted": true
|
||||
}
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:13 GMT
|
||||
recorded_with: VCR 6.2.0
|
||||
|
||||
@@ -14,7 +14,7 @@ http_interactions:
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_HEzsvVrbsxJf8Q","request_duration_ms":1610}}'
|
||||
- '{"last_request_metrics":{"request_id":"req_vJuorSL1DL25TZ","request_duration_ms":983}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
@@ -31,7 +31,7 @@ http_interactions:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Wed, 27 Mar 2024 11:35:08 GMT
|
||||
- Fri, 29 Mar 2024 18:53:15 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
@@ -58,15 +58,15 @@ http_interactions:
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Idempotency-Key:
|
||||
- d64085a3-eabd-4e3c-9228-4d36a77c3f5a
|
||||
- e53c1751-4670-4a7d-8fe1-0c0a8fb647fa
|
||||
Original-Request:
|
||||
- req_3EnrtDDoHbYLmY
|
||||
- req_uzAqOcAR3ltbmh
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_3EnrtDDoHbYLmY
|
||||
- req_uzAqOcAR3ltbmh
|
||||
Stripe-Should-Retry:
|
||||
- 'false'
|
||||
Stripe-Version:
|
||||
@@ -81,7 +81,7 @@ http_interactions:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1Oyul44GbcQfB8Y3",
|
||||
"id": "acct_1OzkY9QQsxwR3QX7",
|
||||
"object": "account",
|
||||
"business_profile": {
|
||||
"annual_revenue": null,
|
||||
@@ -126,7 +126,7 @@ http_interactions:
|
||||
"type": "application"
|
||||
},
|
||||
"country": "AU",
|
||||
"created": 1711539307,
|
||||
"created": 1711738394,
|
||||
"default_currency": "aud",
|
||||
"details_submitted": false,
|
||||
"email": "jumping.jack@example.com",
|
||||
@@ -135,7 +135,7 @@ http_interactions:
|
||||
"data": [],
|
||||
"has_more": false,
|
||||
"total_count": 0,
|
||||
"url": "/v1/accounts/acct_1Oyul44GbcQfB8Y3/external_accounts"
|
||||
"url": "/v1/accounts/acct_1OzkY9QQsxwR3QX7/external_accounts"
|
||||
},
|
||||
"future_requirements": {
|
||||
"alternatives": [],
|
||||
@@ -232,10 +232,10 @@ http_interactions:
|
||||
},
|
||||
"type": "standard"
|
||||
}
|
||||
recorded_at: Wed, 27 Mar 2024 11:35:08 GMT
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:15 GMT
|
||||
- request:
|
||||
method: get
|
||||
uri: https://api.stripe.com/v1/accounts/acct_1Oyul44GbcQfB8Y3
|
||||
uri: https://api.stripe.com/v1/accounts/acct_1OzkY9QQsxwR3QX7
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
@@ -247,7 +247,7 @@ http_interactions:
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_3EnrtDDoHbYLmY","request_duration_ms":1607}}'
|
||||
- '{"last_request_metrics":{"request_id":"req_uzAqOcAR3ltbmh","request_duration_ms":1896}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
@@ -264,7 +264,7 @@ http_interactions:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Wed, 27 Mar 2024 11:35:08 GMT
|
||||
- Fri, 29 Mar 2024 18:53:15 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
@@ -295,9 +295,9 @@ http_interactions:
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_XrctWcy82jeizJ
|
||||
- req_Lc3QvEcHt0FgLw
|
||||
Stripe-Account:
|
||||
- acct_1Oyul44GbcQfB8Y3
|
||||
- acct_1OzkY9QQsxwR3QX7
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
Vary:
|
||||
@@ -310,7 +310,7 @@ http_interactions:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1Oyul44GbcQfB8Y3",
|
||||
"id": "acct_1OzkY9QQsxwR3QX7",
|
||||
"object": "account",
|
||||
"business_profile": {
|
||||
"annual_revenue": null,
|
||||
@@ -355,7 +355,7 @@ http_interactions:
|
||||
"type": "application"
|
||||
},
|
||||
"country": "AU",
|
||||
"created": 1711539307,
|
||||
"created": 1711738394,
|
||||
"default_currency": "aud",
|
||||
"details_submitted": false,
|
||||
"email": "jumping.jack@example.com",
|
||||
@@ -364,7 +364,7 @@ http_interactions:
|
||||
"data": [],
|
||||
"has_more": false,
|
||||
"total_count": 0,
|
||||
"url": "/v1/accounts/acct_1Oyul44GbcQfB8Y3/external_accounts"
|
||||
"url": "/v1/accounts/acct_1OzkY9QQsxwR3QX7/external_accounts"
|
||||
},
|
||||
"future_requirements": {
|
||||
"alternatives": [],
|
||||
@@ -461,5 +461,87 @@ http_interactions:
|
||||
},
|
||||
"type": "standard"
|
||||
}
|
||||
recorded_at: Wed, 27 Mar 2024 11:35:09 GMT
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:15 GMT
|
||||
- request:
|
||||
method: delete
|
||||
uri: https://api.stripe.com/v1/accounts/acct_1OzkY9QQsxwR3QX7
|
||||
body:
|
||||
encoding: US-ASCII
|
||||
string: ''
|
||||
headers:
|
||||
User-Agent:
|
||||
- Stripe/v1 RubyBindings/10.13.0
|
||||
Authorization:
|
||||
- "<HIDDEN-AUTHORIZATION-HEADER>"
|
||||
Content-Type:
|
||||
- application/x-www-form-urlencoded
|
||||
X-Stripe-Client-Telemetry:
|
||||
- '{"last_request_metrics":{"request_id":"req_Lc3QvEcHt0FgLw","request_duration_ms":400}}'
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
X-Stripe-Client-User-Agent:
|
||||
- "<HIDDEN-STRIPE-USER-AGENT>"
|
||||
Accept-Encoding:
|
||||
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
||||
Accept:
|
||||
- "*/*"
|
||||
response:
|
||||
status:
|
||||
code: 200
|
||||
message: OK
|
||||
headers:
|
||||
Server:
|
||||
- nginx
|
||||
Date:
|
||||
- Fri, 29 Mar 2024 18:53:16 GMT
|
||||
Content-Type:
|
||||
- application/json
|
||||
Content-Length:
|
||||
- '77'
|
||||
Connection:
|
||||
- keep-alive
|
||||
Access-Control-Allow-Credentials:
|
||||
- 'true'
|
||||
Access-Control-Allow-Methods:
|
||||
- GET,HEAD,PUT,PATCH,POST,DELETE
|
||||
Access-Control-Allow-Origin:
|
||||
- "*"
|
||||
Access-Control-Expose-Headers:
|
||||
- Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required,
|
||||
X-Stripe-Privileged-Session-Required
|
||||
Access-Control-Max-Age:
|
||||
- '300'
|
||||
Cache-Control:
|
||||
- no-cache, no-store
|
||||
Content-Security-Policy:
|
||||
- report-uri https://q.stripe.com/csp-report?p=v1%2Faccounts%2F%3Aaccount; block-all-mixed-content;
|
||||
default-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none';
|
||||
img-src 'self'; script-src 'self' 'report-sample'; style-src 'self'
|
||||
Cross-Origin-Opener-Policy-Report-Only:
|
||||
- same-origin; report-to="coop"
|
||||
Report-To:
|
||||
- '{"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report"}],"include_subdomains":true}'
|
||||
Reporting-Endpoints:
|
||||
- coop="https://q.stripe.com/coop-report"
|
||||
Request-Id:
|
||||
- req_zHXfFMY9X0grgz
|
||||
Stripe-Account:
|
||||
- acct_1OzkY9QQsxwR3QX7
|
||||
Stripe-Version:
|
||||
- '2023-10-16'
|
||||
Vary:
|
||||
- Origin
|
||||
X-Stripe-Routing-Context-Priority-Tier:
|
||||
- api-testmode
|
||||
Strict-Transport-Security:
|
||||
- max-age=63072000; includeSubDomains; preload
|
||||
body:
|
||||
encoding: UTF-8
|
||||
string: |-
|
||||
{
|
||||
"id": "acct_1OzkY9QQsxwR3QX7",
|
||||
"object": "account",
|
||||
"deleted": true
|
||||
}
|
||||
recorded_at: Fri, 29 Mar 2024 18:53:16 GMT
|
||||
recorded_with: VCR 6.2.0
|
||||
|
||||
Reference in New Issue
Block a user