Skip to content

Commit

Permalink
update test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jan 28, 2025
1 parent b4323b7 commit cac531b
Show file tree
Hide file tree
Showing 6 changed files with 1,429 additions and 843 deletions.
252 changes: 152 additions & 100 deletions tests/py/fixtures/TestDonationRenewalScheduling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,150 +5,202 @@ interactions:
method: GET
uri: https://api.stripe.com/v1/payment_methods/pm_card_visa
response:
body: {string: "{\n \"id\": \"pm_1JDmSkFk4eGpfLOCAlTwKrxW\",\n \"object\": \"\
payment_method\",\n \"billing_details\": {\n \"address\": {\n \"\
city\": null,\n \"country\": null,\n \"line1\": null,\n \"\
line2\": null,\n \"postal_code\": null,\n \"state\": null\n },\n\
\ \"email\": null,\n \"name\": null,\n \"phone\": null\n },\n \"\
card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\"\
: null,\n \"address_postal_code_check\": null,\n \"cvc_check\":\
\ null\n },\n \"country\": \"US\",\n \"exp_month\": 7,\n \"exp_year\"\
: 2022,\n \"fingerprint\": \"k6ycurEAdsI1uF3b\",\n \"funding\": \"credit\"\
body: {string: "{\n \"id\": \"pm_1QlBK3Fk4eGpfLOC2upY9AmT\",\n \"object\": \"\
payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\"\
: {\n \"address\": {\n \"city\": null,\n \"country\": null,\n\
\ \"line1\": null,\n \"line2\": null,\n \"postal_code\": null,\n\
\ \"state\": null\n },\n \"email\": null,\n \"name\": null,\n\
\ \"phone\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"\
checks\": {\n \"address_line1_check\": null,\n \"address_postal_code_check\"\
: null,\n \"cvc_check\": \"unchecked\"\n },\n \"country\": \"US\"\
,\n \"display_brand\": \"visa\",\n \"exp_month\": 1,\n \"exp_year\"\
: 2026,\n \"fingerprint\": \"k6ycurEAdsI1uF3b\",\n \"funding\": \"credit\"\
,\n \"generated_from\": null,\n \"last4\": \"4242\",\n \"networks\"\
: {\n \"available\": [\n \"visa\"\n ],\n \"preferred\"\
: null\n },\n \"three_d_secure_usage\": {\n \"supported\": true\n\
\ },\n \"wallet\": null\n },\n \"created\": 1626424323,\n \"customer\"\
: null,\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\
\n}\n"}
: null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\"\
: {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\"\
: 1737819059,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\"\
: {},\n \"type\": \"card\"\n}"}
headers:
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']
Connection: [keep-alive]
Content-Length: ['927']
Content-Length: ['1034']
Content-Security-Policy: ['base-uri ''none''; default-src ''none''; form-action
''none''; frame-ancestors ''none''; img-src ''self''; script-src ''self''
''report-sample''; style-src ''self''; upgrade-insecure-requests; report-uri
https://q.stripe.com/csp-violation?q=fOHUB8XHhdSEeRAsdEsYzMhfP-1VX6ps8wB04zmZyRWHZuHk9HCa2XFcUFytwgsEuujWslOqozEbWS3x']
Content-Type: [application/json]
Date: ['Fri, 16 Jul 2021 08:32:03 GMT']
Cross-Origin-Opener-Policy-Report-Only: [same-origin; report-to="coop"]
Date: ['Sat, 25 Jan 2025 15:30:59 GMT']
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_prPZ1qw1oKlkKr]
Server: [nginx]
Strict-Transport-Security: [max-age=31556926; includeSubDomains; preload]
access-control-allow-credentials: ['true']
access-control-allow-methods: ['GET, POST, HEAD, OPTIONS, DELETE']
access-control-allow-origin: ['*']
access-control-expose-headers: ['Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required,
X-Stripe-Privileged-Session-Required']
access-control-max-age: ['300']
cache-control: ['no-cache, no-store']
request-id: [req_fPXTvslTpPD0CK]
stripe-version: ['2019-08-14']
Strict-Transport-Security: [max-age=63072000; includeSubDomains; preload]
Stripe-Version: ['2019-08-14']
Vary: [Origin]
X-Content-Type-Options: [nosniff]
X-Stripe-Priority-Routing-Enabled: ['true']
X-Stripe-Routing-Context-Priority-Tier: [api-testmode]
X-Wc: [AB]
status: {code: 200, message: OK}
- request:
body: null
headers: {}
method: GET
uri: https://api.stripe.com/v1/payment_methods/pm_card_visa
response:
body: {string: "{\n \"id\": \"pm_1JDmSmFk4eGpfLOC7K50nS4D\",\n \"object\": \"\
payment_method\",\n \"billing_details\": {\n \"address\": {\n \"\
city\": null,\n \"country\": null,\n \"line1\": null,\n \"\
line2\": null,\n \"postal_code\": null,\n \"state\": null\n },\n\
\ \"email\": null,\n \"name\": null,\n \"phone\": null\n },\n \"\
card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\"\
: null,\n \"address_postal_code_check\": null,\n \"cvc_check\":\
\ null\n },\n \"country\": \"US\",\n \"exp_month\": 7,\n \"exp_year\"\
: 2022,\n \"fingerprint\": \"k6ycurEAdsI1uF3b\",\n \"funding\": \"credit\"\
body: {string: "{\n \"id\": \"pm_1QlBK3Fk4eGpfLOCjiNK2bhx\",\n \"object\": \"\
payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\"\
: {\n \"address\": {\n \"city\": null,\n \"country\": null,\n\
\ \"line1\": null,\n \"line2\": null,\n \"postal_code\": null,\n\
\ \"state\": null\n },\n \"email\": null,\n \"name\": null,\n\
\ \"phone\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"\
checks\": {\n \"address_line1_check\": null,\n \"address_postal_code_check\"\
: null,\n \"cvc_check\": \"unchecked\"\n },\n \"country\": \"US\"\
,\n \"display_brand\": \"visa\",\n \"exp_month\": 1,\n \"exp_year\"\
: 2026,\n \"fingerprint\": \"k6ycurEAdsI1uF3b\",\n \"funding\": \"credit\"\
,\n \"generated_from\": null,\n \"last4\": \"4242\",\n \"networks\"\
: {\n \"available\": [\n \"visa\"\n ],\n \"preferred\"\
: null\n },\n \"three_d_secure_usage\": {\n \"supported\": true\n\
\ },\n \"wallet\": null\n },\n \"created\": 1626424324,\n \"customer\"\
: null,\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\
\n}\n"}
: null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\"\
: {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\"\
: 1737819059,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\"\
: {},\n \"type\": \"card\"\n}"}
headers:
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']
Connection: [keep-alive]
Content-Length: ['927']
Content-Length: ['1034']
Content-Security-Policy: ['base-uri ''none''; default-src ''none''; form-action
''none''; frame-ancestors ''none''; img-src ''self''; script-src ''self''
''report-sample''; style-src ''self''; upgrade-insecure-requests; report-uri
https://q.stripe.com/csp-violation?q=ojOJrjvvtlkdiWL_b9eUSk3KSURVTxNPhKSvgIYMVLL1oK_jQoghboPqCFEKJmxbC6XjkaJGX_hqOzcJ']
Content-Type: [application/json]
Date: ['Fri, 16 Jul 2021 08:32:04 GMT']
Cross-Origin-Opener-Policy-Report-Only: [same-origin; report-to="coop"]
Date: ['Sat, 25 Jan 2025 15:30:59 GMT']
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_ZndliGEksvt52d]
Server: [nginx]
Strict-Transport-Security: [max-age=31556926; includeSubDomains; preload]
access-control-allow-credentials: ['true']
access-control-allow-methods: ['GET, POST, HEAD, OPTIONS, DELETE']
access-control-allow-origin: ['*']
access-control-expose-headers: ['Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required,
X-Stripe-Privileged-Session-Required']
access-control-max-age: ['300']
cache-control: ['no-cache, no-store']
request-id: [req_BDD4IY886I5Cke]
stripe-version: ['2019-08-14']
Strict-Transport-Security: [max-age=63072000; includeSubDomains; preload]
Stripe-Version: ['2019-08-14']
Vary: [Origin]
X-Content-Type-Options: [nosniff]
X-Stripe-Priority-Routing-Enabled: ['true']
X-Stripe-Routing-Context-Priority-Tier: [api-testmode]
X-Wc: [AB]
status: {code: 200, message: OK}
- request:
body: null
headers: {}
method: GET
uri: https://api.stripe.com/v1/payment_methods/pm_card_visa
response:
body: {string: "{\n \"id\": \"pm_1JDmSnFk4eGpfLOC0LJRraf0\",\n \"object\": \"\
payment_method\",\n \"billing_details\": {\n \"address\": {\n \"\
city\": null,\n \"country\": null,\n \"line1\": null,\n \"\
line2\": null,\n \"postal_code\": null,\n \"state\": null\n },\n\
\ \"email\": null,\n \"name\": null,\n \"phone\": null\n },\n \"\
card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\"\
: null,\n \"address_postal_code_check\": null,\n \"cvc_check\":\
\ null\n },\n \"country\": \"US\",\n \"exp_month\": 7,\n \"exp_year\"\
: 2022,\n \"fingerprint\": \"k6ycurEAdsI1uF3b\",\n \"funding\": \"credit\"\
body: {string: "{\n \"id\": \"pm_1QlBK4Fk4eGpfLOCFRemZymg\",\n \"object\": \"\
payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\"\
: {\n \"address\": {\n \"city\": null,\n \"country\": null,\n\
\ \"line1\": null,\n \"line2\": null,\n \"postal_code\": null,\n\
\ \"state\": null\n },\n \"email\": null,\n \"name\": null,\n\
\ \"phone\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"\
checks\": {\n \"address_line1_check\": null,\n \"address_postal_code_check\"\
: null,\n \"cvc_check\": \"unchecked\"\n },\n \"country\": \"US\"\
,\n \"display_brand\": \"visa\",\n \"exp_month\": 1,\n \"exp_year\"\
: 2026,\n \"fingerprint\": \"k6ycurEAdsI1uF3b\",\n \"funding\": \"credit\"\
,\n \"generated_from\": null,\n \"last4\": \"4242\",\n \"networks\"\
: {\n \"available\": [\n \"visa\"\n ],\n \"preferred\"\
: null\n },\n \"three_d_secure_usage\": {\n \"supported\": true\n\
\ },\n \"wallet\": null\n },\n \"created\": 1626424325,\n \"customer\"\
: null,\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\
\n}\n"}
: null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\"\
: {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\"\
: 1737819060,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\"\
: {},\n \"type\": \"card\"\n}"}
headers:
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']
Connection: [keep-alive]
Content-Length: ['927']
Content-Length: ['1034']
Content-Security-Policy: ['base-uri ''none''; default-src ''none''; form-action
''none''; frame-ancestors ''none''; img-src ''self''; script-src ''self''
''report-sample''; style-src ''self''; upgrade-insecure-requests; report-uri
https://q.stripe.com/csp-violation?q=ghVkSaoY7F6674WsmPY1R-RRmNwCRpf9ycG_Wl3yFT2aQ4xc4npGv6tJyAGMD0Hb3zlgSw7lUoqB7l0T']
Content-Type: [application/json]
Date: ['Fri, 16 Jul 2021 08:32:05 GMT']
Cross-Origin-Opener-Policy-Report-Only: [same-origin; report-to="coop"]
Date: ['Sat, 25 Jan 2025 15:31:00 GMT']
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_BXYYosRkHsT1rY]
Server: [nginx]
Strict-Transport-Security: [max-age=31556926; includeSubDomains; preload]
access-control-allow-credentials: ['true']
access-control-allow-methods: ['GET, POST, HEAD, OPTIONS, DELETE']
access-control-allow-origin: ['*']
access-control-expose-headers: ['Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required,
X-Stripe-Privileged-Session-Required']
access-control-max-age: ['300']
cache-control: ['no-cache, no-store']
request-id: [req_bsbDHgT99SgAGA]
stripe-version: ['2019-08-14']
Strict-Transport-Security: [max-age=63072000; includeSubDomains; preload]
Stripe-Version: ['2019-08-14']
Vary: [Origin]
X-Content-Type-Options: [nosniff]
X-Stripe-Priority-Routing-Enabled: ['true']
X-Stripe-Routing-Context-Priority-Tier: [api-testmode]
X-Wc: [AB]
status: {code: 200, message: OK}
- request:
body: null
headers: {}
method: GET
uri: https://api.stripe.com/v1/payment_methods/pm_card_visa
response:
body: {string: "{\n \"id\": \"pm_1JDmSoFk4eGpfLOCAvbLg1JS\",\n \"object\": \"\
payment_method\",\n \"billing_details\": {\n \"address\": {\n \"\
city\": null,\n \"country\": null,\n \"line1\": null,\n \"\
line2\": null,\n \"postal_code\": null,\n \"state\": null\n },\n\
\ \"email\": null,\n \"name\": null,\n \"phone\": null\n },\n \"\
card\": {\n \"brand\": \"visa\",\n \"checks\": {\n \"address_line1_check\"\
: null,\n \"address_postal_code_check\": null,\n \"cvc_check\":\
\ null\n },\n \"country\": \"US\",\n \"exp_month\": 7,\n \"exp_year\"\
: 2022,\n \"fingerprint\": \"k6ycurEAdsI1uF3b\",\n \"funding\": \"credit\"\
body: {string: "{\n \"id\": \"pm_1QlBK5Fk4eGpfLOCAJGk5UQe\",\n \"object\": \"\
payment_method\",\n \"allow_redisplay\": \"unspecified\",\n \"billing_details\"\
: {\n \"address\": {\n \"city\": null,\n \"country\": null,\n\
\ \"line1\": null,\n \"line2\": null,\n \"postal_code\": null,\n\
\ \"state\": null\n },\n \"email\": null,\n \"name\": null,\n\
\ \"phone\": null\n },\n \"card\": {\n \"brand\": \"visa\",\n \"\
checks\": {\n \"address_line1_check\": null,\n \"address_postal_code_check\"\
: null,\n \"cvc_check\": \"unchecked\"\n },\n \"country\": \"US\"\
,\n \"display_brand\": \"visa\",\n \"exp_month\": 1,\n \"exp_year\"\
: 2026,\n \"fingerprint\": \"k6ycurEAdsI1uF3b\",\n \"funding\": \"credit\"\
,\n \"generated_from\": null,\n \"last4\": \"4242\",\n \"networks\"\
: {\n \"available\": [\n \"visa\"\n ],\n \"preferred\"\
: null\n },\n \"three_d_secure_usage\": {\n \"supported\": true\n\
\ },\n \"wallet\": null\n },\n \"created\": 1626424326,\n \"customer\"\
: null,\n \"livemode\": false,\n \"metadata\": {\n },\n \"type\": \"card\"\
\n}\n"}
: null\n },\n \"regulated_status\": \"unregulated\",\n \"three_d_secure_usage\"\
: {\n \"supported\": true\n },\n \"wallet\": null\n },\n \"created\"\
: 1737819061,\n \"customer\": null,\n \"livemode\": false,\n \"metadata\"\
: {},\n \"type\": \"card\"\n}"}
headers:
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']
Connection: [keep-alive]
Content-Length: ['927']
Content-Length: ['1034']
Content-Security-Policy: ['base-uri ''none''; default-src ''none''; form-action
''none''; frame-ancestors ''none''; img-src ''self''; script-src ''self''
''report-sample''; style-src ''self''; upgrade-insecure-requests; report-uri
https://q.stripe.com/csp-violation?q=gu6lYPtFB1PUUmml_Y_OcpUMvYpOQNIqJ-KY4klTX5vlhUD5yxFZdw22RbmJgD0jV4kxrnQkYCRPmSwZ']
Content-Type: [application/json]
Date: ['Fri, 16 Jul 2021 08:32:07 GMT']
Cross-Origin-Opener-Policy-Report-Only: [same-origin; report-to="coop"]
Date: ['Sat, 25 Jan 2025 15:31:01 GMT']
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_w3bKlqsaFDPnDi]
Server: [nginx]
Strict-Transport-Security: [max-age=31556926; includeSubDomains; preload]
access-control-allow-credentials: ['true']
access-control-allow-methods: ['GET, POST, HEAD, OPTIONS, DELETE']
access-control-allow-origin: ['*']
access-control-expose-headers: ['Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required,
X-Stripe-Privileged-Session-Required']
access-control-max-age: ['300']
cache-control: ['no-cache, no-store']
request-id: [req_WM1cRDVHaTlB3o]
stripe-version: ['2019-08-14']
Strict-Transport-Security: [max-age=63072000; includeSubDomains; preload]
Stripe-Version: ['2019-08-14']
Vary: [Origin]
X-Content-Type-Options: [nosniff]
X-Stripe-Priority-Routing-Enabled: ['true']
X-Stripe-Routing-Context-Priority-Tier: [api-testmode]
X-Wc: [AB]
status: {code: 200, message: OK}
version: 1
Loading

0 comments on commit cac531b

Please sign in to comment.