mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-10-27 14:57:15 +00:00
503afd5c3a
TestCloudContract drives the real handlers for every pad endpoint the pad-cloud sidecar decodes (user-by-customer, plan, stripe-event-processed, stripe-event-unmark, payment-failed, oauth-login, auth/me) and pins each response's SHAPE (values replaced by type placeholders) in testdata/cloud_contract/. pad-cloud keeps a copy and decodes each file through its own client, so a key renamed or dropped on either side of the repo boundary fails a test. The class this closes: user-by-customer answered user_id while pad-cloud read id, so every subscription webhook synced user "".
17 lines
321 B
JSON
17 lines
321 B
JSON
{
|
|
"avatar_url": "",
|
|
"created_at": "<string>",
|
|
"email": "<string>",
|
|
"id": "<string>",
|
|
"name": "<string>",
|
|
"oauth_providers": [
|
|
"<string>"
|
|
],
|
|
"password_set": false,
|
|
"role": "<string>",
|
|
"stripe_customer_id": "<string>",
|
|
"totp_enabled": false,
|
|
"updated_at": "<string>",
|
|
"username": "<string>"
|
|
}
|