agenttwin 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +2113 -609
- package/dist/dashboard/assets/dashboard/agent-home.css +7 -7
- package/dist/dashboard/assets/dashboard/bay-morning.webp +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-afternoon.webp +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-portrait.webp +0 -0
- package/dist/dashboard/assets/dashboard/moonlit-coast.webp +0 -0
- package/dist/dashboard/assets/next/static/chunks/5663-403316746afad10e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/{page-9c11295678539a5f.js → page-0e0392368e0a891e.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-4981ea4966b19e3e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-dd4ac0f5f36e6bfa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{page-34574448d210c775.js → page-de0fe6d84be21e6a.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-360cbffc57981f6b.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/{page-07c8054d57c9089b.js → page-3e86fffabfa87d88.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{webpack-40324749d289e4a5.js → webpack-be6e526fd530c797.js} +1 -1
- package/dist/dashboard/assets/next/static/css/{42045de5f39b50ca.css → 37d81e1d2804cc5f.css} +1 -1
- package/dist/dashboard/assets/next/static/css/69ec1bae997c3bb0.css +1 -0
- package/dist/dashboard/assets/next/static/css/ad85402a1595e56e.css +1 -0
- package/dist/dashboard/assets/next/static/css/{4bbe78c2fe206b92.css → da981fb878a02b8c.css} +1 -1
- package/dist/dashboard/assets/next/static/media/bay-morning.82669113.webp +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-afternoon.0aa49492.webp +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-portrait.89fc667a.webp +0 -0
- package/dist/dashboard/assets/next/static/media/moonlit-coast.09739ef4.webp +0 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/engine.js +6385 -4973
- package/dist/gateway.js +2194 -604
- package/dist/twins/catalog.json +6020 -0
- package/dist/twins/engine/v2/THIRD-PARTY.txt +25 -0
- package/dist/twins/engine/v2/chunks/2CHBP57N.mjs +8 -0
- package/dist/twins/engine/v2/chunks/4CPL6MPF.mjs +30 -0
- package/dist/twins/engine/v2/chunks/OYLYKZGD.mjs +2 -0
- package/dist/twins/engine/v2/chunks/SQSP35HM.mjs +38 -0
- package/dist/twins/engine/v2/chunks/YSJQQVUM.mjs +2 -0
- package/dist/twins/engine/v2/react-dom_client.mjs +272 -0
- package/dist/twins/engine/v2/react-dom_server.mjs +263 -0
- package/dist/twins/engine/v2/react.mjs +2 -0
- package/dist/twins/engine/v2/react_jsx-runtime.mjs +31 -0
- package/dist/twins/engine/v2/volter_world-core.mjs +195 -0
- package/dist/twins/engine/v2/volter_world-core_app-route.mjs +2 -0
- package/dist/twins/engine/v2/volter_world-core_network-policy.mjs +2 -0
- package/dist/twins/engine/v3/THIRD-PARTY.txt +65 -0
- package/dist/twins/engine/v3/chunks/2CHBP57N.mjs +8 -0
- package/dist/twins/engine/v3/chunks/2YSSPA5O.mjs +65 -0
- package/dist/twins/engine/v3/chunks/5PWRY4UK.mjs +154 -0
- package/dist/twins/engine/v3/chunks/7XRKSFFJ.mjs +2 -0
- package/dist/twins/engine/v3/chunks/AWOWH2H5.mjs +2 -0
- package/dist/twins/engine/v3/chunks/C46M5U3Q.mjs +2 -0
- package/dist/twins/engine/v3/chunks/MFH2VZPP.mjs +2 -0
- package/dist/twins/engine/v3/chunks/MWCO5UV3.mjs +2 -0
- package/dist/twins/engine/v3/chunks/N5BL5RDF.mjs +313 -0
- package/dist/twins/engine/v3/chunks/O7HGPMXG.mjs +2 -0
- package/dist/twins/engine/v3/chunks/OYLYKZGD.mjs +2 -0
- package/dist/twins/engine/v3/chunks/PLB7HTON.mjs +8 -0
- package/dist/twins/engine/v3/chunks/TY4LDBVH.mjs +7 -0
- package/dist/twins/engine/v3/chunks/VDIRUSCM.mjs +2 -0
- package/dist/twins/engine/v3/chunks/WGUCFQK6.mjs +2 -0
- package/dist/twins/engine/v3/chunks/WPATONSC.mjs +2 -0
- package/dist/twins/engine/v3/react_jsx-runtime.mjs +2 -0
- package/dist/twins/engine/v3/volter_world-core.mjs +2 -0
- package/dist/twins/engine/v3/volter_world-ui.mjs +559 -0
- package/dist/twins/packs/ahrefs/LICENSE +202 -0
- package/dist/twins/packs/ahrefs/NOTICE +7 -0
- package/dist/twins/packs/ahrefs/index.mjs +2 -0
- package/dist/twins/packs/ai-gateway/LICENSE +202 -0
- package/dist/twins/packs/ai-gateway/NOTICE +7 -0
- package/dist/twins/packs/ai-gateway/index.mjs +14 -0
- package/dist/twins/packs/airtable/LICENSE +202 -0
- package/dist/twins/packs/airtable/NOTICE +7 -0
- package/dist/twins/packs/airtable/index.mjs +2 -0
- package/dist/twins/packs/algolia/LICENSE +202 -0
- package/dist/twins/packs/algolia/NOTICE +7 -0
- package/dist/twins/packs/algolia/index.mjs +2 -0
- package/dist/twins/packs/ambientcg/LICENSE +202 -0
- package/dist/twins/packs/ambientcg/NOTICE +7 -0
- package/dist/twins/packs/ambientcg/index.mjs +2 -0
- package/dist/twins/packs/anthropic/LICENSE +202 -0
- package/dist/twins/packs/anthropic/NOTICE +7 -0
- package/dist/twins/packs/anthropic/index.mjs +18 -0
- package/dist/twins/packs/assemblyai/LICENSE +202 -0
- package/dist/twins/packs/assemblyai/NOTICE +7 -0
- package/dist/twins/packs/assemblyai/index.mjs +11 -0
- package/dist/twins/packs/aws/LICENSE +202 -0
- package/dist/twins/packs/aws/NOTICE +7 -0
- package/dist/twins/packs/aws/index.mjs +2 -0
- package/dist/twins/packs/azure/LICENSE +202 -0
- package/dist/twins/packs/azure/NOTICE +7 -0
- package/dist/twins/packs/azure/index.mjs +38 -0
- package/dist/twins/packs/azureformrecognizer/LICENSE +202 -0
- package/dist/twins/packs/azureformrecognizer/NOTICE +7 -0
- package/dist/twins/packs/azureformrecognizer/index.mjs +3 -0
- package/dist/twins/packs/bitly/LICENSE +202 -0
- package/dist/twins/packs/bitly/NOTICE +7 -0
- package/dist/twins/packs/bitly/index.mjs +2 -0
- package/dist/twins/packs/bluesky/LICENSE +202 -0
- package/dist/twins/packs/bluesky/NOTICE +7 -0
- package/dist/twins/packs/bluesky/index.mjs +30 -0
- package/dist/twins/packs/calcom/LICENSE +202 -0
- package/dist/twins/packs/calcom/NOTICE +7 -0
- package/dist/twins/packs/calcom/index.mjs +2 -0
- package/dist/twins/packs/clerk/LICENSE +202 -0
- package/dist/twins/packs/clerk/NOTICE +7 -0
- package/dist/twins/packs/clerk/index.mjs +5 -0
- package/dist/twins/packs/cloudflare/LICENSE +202 -0
- package/dist/twins/packs/cloudflare/NOTICE +7 -0
- package/dist/twins/packs/cloudflare/index.mjs +79 -0
- package/dist/twins/packs/cohere/LICENSE +202 -0
- package/dist/twins/packs/cohere/NOTICE +7 -0
- package/dist/twins/packs/cohere/index.mjs +2 -0
- package/dist/twins/packs/datadog/LICENSE +202 -0
- package/dist/twins/packs/datadog/NOTICE +7 -0
- package/dist/twins/packs/datadog/index.mjs +3 -0
- package/dist/twins/packs/deepinfra/LICENSE +202 -0
- package/dist/twins/packs/deepinfra/NOTICE +7 -0
- package/dist/twins/packs/deepinfra/index.mjs +13 -0
- package/dist/twins/packs/deepseek/LICENSE +202 -0
- package/dist/twins/packs/deepseek/NOTICE +7 -0
- package/dist/twins/packs/deepseek/index.mjs +12 -0
- package/dist/twins/packs/discord/LICENSE +202 -0
- package/dist/twins/packs/discord/NOTICE +7 -0
- package/dist/twins/packs/discord/index.mjs +2 -0
- package/dist/twins/packs/duckduckgo/LICENSE +202 -0
- package/dist/twins/packs/duckduckgo/NOTICE +7 -0
- package/dist/twins/packs/duckduckgo/index.mjs +532 -0
- package/dist/twins/packs/dynadot/LICENSE +202 -0
- package/dist/twins/packs/dynadot/NOTICE +7 -0
- package/dist/twins/packs/dynadot/index.mjs +2 -0
- package/dist/twins/packs/e2b/LICENSE +202 -0
- package/dist/twins/packs/e2b/NOTICE +7 -0
- package/dist/twins/packs/e2b/index.mjs +2 -0
- package/dist/twins/packs/elevenlabs/LICENSE +202 -0
- package/dist/twins/packs/elevenlabs/NOTICE +7 -0
- package/dist/twins/packs/elevenlabs/index.mjs +4 -0
- package/dist/twins/packs/expo/LICENSE +202 -0
- package/dist/twins/packs/expo/NOTICE +7 -0
- package/dist/twins/packs/expo/index.mjs +2 -0
- package/dist/twins/packs/fal/LICENSE +202 -0
- package/dist/twins/packs/fal/NOTICE +7 -0
- package/dist/twins/packs/fal/index.mjs +2 -0
- package/dist/twins/packs/figma/LICENSE +202 -0
- package/dist/twins/packs/figma/NOTICE +7 -0
- package/dist/twins/packs/figma/index.mjs +2 -0
- package/dist/twins/packs/firecrawl/LICENSE +202 -0
- package/dist/twins/packs/firecrawl/NOTICE +7 -0
- package/dist/twins/packs/firecrawl/index.mjs +9 -0
- package/dist/twins/packs/fireworks/LICENSE +202 -0
- package/dist/twins/packs/fireworks/NOTICE +7 -0
- package/dist/twins/packs/fireworks/index.mjs +13 -0
- package/dist/twins/packs/fly/LICENSE +202 -0
- package/dist/twins/packs/fly/NOTICE +7 -0
- package/dist/twins/packs/fly/index.mjs +2 -0
- package/dist/twins/packs/gcs/LICENSE +202 -0
- package/dist/twins/packs/gcs/NOTICE +7 -0
- package/dist/twins/packs/gcs/index.mjs +8 -0
- package/dist/twins/packs/gemini/LICENSE +202 -0
- package/dist/twins/packs/gemini/NOTICE +7 -0
- package/dist/twins/packs/gemini/index.mjs +7 -0
- package/dist/twins/packs/github/LICENSE +202 -0
- package/dist/twins/packs/github/NOTICE +7 -0
- package/dist/twins/packs/github/index.mjs +75153 -0
- package/dist/twins/packs/googleads/LICENSE +202 -0
- package/dist/twins/packs/googleads/NOTICE +7 -0
- package/dist/twins/packs/googleads/index.mjs +3 -0
- package/dist/twins/packs/googlemaps/LICENSE +202 -0
- package/dist/twins/packs/googlemaps/NOTICE +7 -0
- package/dist/twins/packs/googlemaps/index.mjs +2 -0
- package/dist/twins/packs/googleoauth/LICENSE +202 -0
- package/dist/twins/packs/googleoauth/NOTICE +7 -0
- package/dist/twins/packs/googleoauth/index.mjs +2 -0
- package/dist/twins/packs/hackernews/LICENSE +202 -0
- package/dist/twins/packs/hackernews/NOTICE +7 -0
- package/dist/twins/packs/hackernews/index.mjs +35 -0
- package/dist/twins/packs/huggingface/LICENSE +202 -0
- package/dist/twins/packs/huggingface/NOTICE +7 -0
- package/dist/twins/packs/huggingface/index.mjs +9 -0
- package/dist/twins/packs/inngest/LICENSE +202 -0
- package/dist/twins/packs/inngest/NOTICE +7 -0
- package/dist/twins/packs/inngest/index.mjs +2 -0
- package/dist/twins/packs/instagram/LICENSE +202 -0
- package/dist/twins/packs/instagram/NOTICE +7 -0
- package/dist/twins/packs/instagram/index.mjs +2 -0
- package/dist/twins/packs/jira/LICENSE +202 -0
- package/dist/twins/packs/jira/NOTICE +7 -0
- package/dist/twins/packs/jira/index.mjs +2 -0
- package/dist/twins/packs/langfuse/LICENSE +202 -0
- package/dist/twins/packs/langfuse/NOTICE +7 -0
- package/dist/twins/packs/langfuse/index.mjs +2 -0
- package/dist/twins/packs/linear/LICENSE +202 -0
- package/dist/twins/packs/linear/NOTICE +7 -0
- package/dist/twins/packs/linear/index.mjs +52866 -0
- package/dist/twins/packs/linkedin/LICENSE +202 -0
- package/dist/twins/packs/linkedin/NOTICE +7 -0
- package/dist/twins/packs/linkedin/index.mjs +78 -0
- package/dist/twins/packs/livekit/LICENSE +202 -0
- package/dist/twins/packs/livekit/NOTICE +7 -0
- package/dist/twins/packs/livekit/index.mjs +2 -0
- package/dist/twins/packs/mailgun/LICENSE +202 -0
- package/dist/twins/packs/mailgun/NOTICE +7 -0
- package/dist/twins/packs/mailgun/index.mjs +13 -0
- package/dist/twins/packs/mapbox/LICENSE +202 -0
- package/dist/twins/packs/mapbox/NOTICE +7 -0
- package/dist/twins/packs/mapbox/index.mjs +2 -0
- package/dist/twins/packs/merge/LICENSE +202 -0
- package/dist/twins/packs/merge/NOTICE +7 -0
- package/dist/twins/packs/merge/index.mjs +4 -0
- package/dist/twins/packs/mistral/LICENSE +202 -0
- package/dist/twins/packs/mistral/NOTICE +7 -0
- package/dist/twins/packs/mistral/index.mjs +6 -0
- package/dist/twins/packs/mixpanel/LICENSE +202 -0
- package/dist/twins/packs/mixpanel/NOTICE +8 -0
- package/dist/twins/packs/mixpanel/index.mjs +2 -0
- package/dist/twins/packs/mongodb/LICENSE +202 -0
- package/dist/twins/packs/mongodb/NOTICE +7 -0
- package/dist/twins/packs/mongodb/index.mjs +8 -0
- package/dist/twins/packs/moonshot/LICENSE +202 -0
- package/dist/twins/packs/moonshot/NOTICE +7 -0
- package/dist/twins/packs/moonshot/index.mjs +18 -0
- package/dist/twins/packs/notion/LICENSE +202 -0
- package/dist/twins/packs/notion/NOTICE +7 -0
- package/dist/twins/packs/notion/index.mjs +2 -0
- package/dist/twins/packs/npm-registry/LICENSE +202 -0
- package/dist/twins/packs/npm-registry/NOTICE +7 -0
- package/dist/twins/packs/npm-registry/index.mjs +2 -0
- package/dist/twins/packs/oa-treasury/LICENSE +202 -0
- package/dist/twins/packs/oa-treasury/NOTICE +8 -0
- package/dist/twins/packs/oa-treasury/index.mjs +16 -0
- package/dist/twins/packs/openai/LICENSE +202 -0
- package/dist/twins/packs/openai/NOTICE +7 -0
- package/dist/twins/packs/openai/index.mjs +3473 -0
- package/dist/twins/packs/openrouter/LICENSE +202 -0
- package/dist/twins/packs/openrouter/NOTICE +7 -0
- package/dist/twins/packs/openrouter/index.mjs +2 -0
- package/dist/twins/packs/openweather/LICENSE +202 -0
- package/dist/twins/packs/openweather/NOTICE +7 -0
- package/dist/twins/packs/openweather/index.mjs +2 -0
- package/dist/twins/packs/paypal/LICENSE +202 -0
- package/dist/twins/packs/paypal/NOTICE +7 -0
- package/dist/twins/packs/paypal/index.mjs +51 -0
- package/dist/twins/packs/pinecone/LICENSE +202 -0
- package/dist/twins/packs/pinecone/NOTICE +7 -0
- package/dist/twins/packs/pinecone/index.mjs +2 -0
- package/dist/twins/packs/plain/LICENSE +202 -0
- package/dist/twins/packs/plain/NOTICE +8 -0
- package/dist/twins/packs/plain/index.mjs +18426 -0
- package/dist/twins/packs/planetscale/LICENSE +202 -0
- package/dist/twins/packs/planetscale/NOTICE +7 -0
- package/dist/twins/packs/planetscale/index.mjs +18 -0
- package/dist/twins/packs/polar/LICENSE +202 -0
- package/dist/twins/packs/polar/NOTICE +7 -0
- package/dist/twins/packs/polar/index.mjs +2 -0
- package/dist/twins/packs/polyhaven/LICENSE +202 -0
- package/dist/twins/packs/polyhaven/NOTICE +7 -0
- package/dist/twins/packs/polyhaven/index.mjs +3 -0
- package/dist/twins/packs/postmark/LICENSE +202 -0
- package/dist/twins/packs/postmark/NOTICE +7 -0
- package/dist/twins/packs/postmark/index.mjs +12 -0
- package/dist/twins/packs/reddit/LICENSE +202 -0
- package/dist/twins/packs/reddit/NOTICE +7 -0
- package/dist/twins/packs/reddit/index.mjs +324 -0
- package/dist/twins/packs/redis/LICENSE +202 -0
- package/dist/twins/packs/redis/NOTICE +7 -0
- package/dist/twins/packs/redis/index.mjs +2 -0
- package/dist/twins/packs/replicate/LICENSE +202 -0
- package/dist/twins/packs/replicate/NOTICE +7 -0
- package/dist/twins/packs/replicate/index.mjs +2 -0
- package/dist/twins/packs/resend/LICENSE +202 -0
- package/dist/twins/packs/resend/NOTICE +7 -0
- package/dist/twins/packs/resend/index.mjs +139 -0
- package/dist/twins/packs/runhuman/LICENSE +202 -0
- package/dist/twins/packs/runhuman/NOTICE +7 -0
- package/dist/twins/packs/runhuman/index.mjs +3 -0
- package/dist/twins/packs/scrapecreators/LICENSE +202 -0
- package/dist/twins/packs/scrapecreators/NOTICE +7 -0
- package/dist/twins/packs/scrapecreators/index.mjs +2 -0
- package/dist/twins/packs/segment/LICENSE +202 -0
- package/dist/twins/packs/segment/NOTICE +8 -0
- package/dist/twins/packs/segment/index.mjs +2 -0
- package/dist/twins/packs/sendblue/LICENSE +202 -0
- package/dist/twins/packs/sendblue/NOTICE +7 -0
- package/dist/twins/packs/sendblue/index.mjs +2 -0
- package/dist/twins/packs/sendgrid/LICENSE +202 -0
- package/dist/twins/packs/sendgrid/NOTICE +8 -0
- package/dist/twins/packs/sendgrid/index.mjs +4 -0
- package/dist/twins/packs/sentry/LICENSE +202 -0
- package/dist/twins/packs/sentry/NOTICE +7 -0
- package/dist/twins/packs/sentry/index.mjs +5 -0
- package/dist/twins/packs/sigstore/LICENSE +202 -0
- package/dist/twins/packs/sigstore/NOTICE +7 -0
- package/dist/twins/packs/sigstore/index.mjs +12 -0
- package/dist/twins/packs/slack/LICENSE +202 -0
- package/dist/twins/packs/slack/NOTICE +7 -0
- package/dist/twins/packs/slack/index.mjs +66 -0
- package/dist/twins/packs/smtp/LICENSE +202 -0
- package/dist/twins/packs/smtp/NOTICE +7 -0
- package/dist/twins/packs/smtp/index.mjs +3 -0
- package/dist/twins/packs/snowflake/LICENSE +202 -0
- package/dist/twins/packs/snowflake/NOTICE +8 -0
- package/dist/twins/packs/snowflake/index.mjs +30 -0
- package/dist/twins/packs/stigg/LICENSE +202 -0
- package/dist/twins/packs/stigg/NOTICE +8 -0
- package/dist/twins/packs/stigg/index.mjs +22194 -0
- package/dist/twins/packs/stream/LICENSE +202 -0
- package/dist/twins/packs/stream/NOTICE +7 -0
- package/dist/twins/packs/stream/index.mjs +2 -0
- package/dist/twins/packs/stripe/LICENSE +202 -0
- package/dist/twins/packs/stripe/NOTICE +7 -0
- package/dist/twins/packs/stripe/index.mjs +211 -0
- package/dist/twins/packs/supabase/LICENSE +202 -0
- package/dist/twins/packs/supabase/NOTICE +7 -0
- package/dist/twins/packs/supabase/index.mjs +2 -0
- package/dist/twins/packs/supermemory/LICENSE +202 -0
- package/dist/twins/packs/supermemory/NOTICE +7 -0
- package/dist/twins/packs/supermemory/index.mjs +2 -0
- package/dist/twins/packs/svix/LICENSE +202 -0
- package/dist/twins/packs/svix/NOTICE +7 -0
- package/dist/twins/packs/svix/index.mjs +2 -0
- package/dist/twins/packs/tavily/LICENSE +202 -0
- package/dist/twins/packs/tavily/NOTICE +7 -0
- package/dist/twins/packs/tavily/index.mjs +2 -0
- package/dist/twins/packs/telegram/LICENSE +202 -0
- package/dist/twins/packs/telegram/NOTICE +7 -0
- package/dist/twins/packs/telegram/index.mjs +11 -0
- package/dist/twins/packs/temporal/LICENSE +202 -0
- package/dist/twins/packs/temporal/NOTICE +7 -0
- package/dist/twins/packs/temporal/index.mjs +44 -0
- package/dist/twins/packs/tiktok/LICENSE +202 -0
- package/dist/twins/packs/tiktok/NOTICE +7 -0
- package/dist/twins/packs/tiktok/index.mjs +2 -0
- package/dist/twins/packs/tinybird/LICENSE +202 -0
- package/dist/twins/packs/tinybird/NOTICE +7 -0
- package/dist/twins/packs/tinybird/index.mjs +50 -0
- package/dist/twins/packs/togetherai/LICENSE +202 -0
- package/dist/twins/packs/togetherai/NOTICE +7 -0
- package/dist/twins/packs/togetherai/index.mjs +11 -0
- package/dist/twins/packs/tremendous/LICENSE +202 -0
- package/dist/twins/packs/tremendous/NOTICE +7 -0
- package/dist/twins/packs/tremendous/index.mjs +2 -0
- package/dist/twins/packs/tripo/LICENSE +202 -0
- package/dist/twins/packs/tripo/NOTICE +7 -0
- package/dist/twins/packs/tripo/index.mjs +9 -0
- package/dist/twins/packs/tunnel/LICENSE +202 -0
- package/dist/twins/packs/tunnel/NOTICE +7 -0
- package/dist/twins/packs/tunnel/index.mjs +2 -0
- package/dist/twins/packs/twelvelabs/LICENSE +202 -0
- package/dist/twins/packs/twelvelabs/NOTICE +7 -0
- package/dist/twins/packs/twelvelabs/index.mjs +5 -0
- package/dist/twins/packs/twilio/LICENSE +202 -0
- package/dist/twins/packs/twilio/NOTICE +7 -0
- package/dist/twins/packs/twilio/index.mjs +2 -0
- package/dist/twins/packs/twitch/LICENSE +202 -0
- package/dist/twins/packs/twitch/NOTICE +7 -0
- package/dist/twins/packs/twitch/index.mjs +68 -0
- package/dist/twins/packs/upstash/LICENSE +202 -0
- package/dist/twins/packs/upstash/NOTICE +7 -0
- package/dist/twins/packs/upstash/index.mjs +14 -0
- package/dist/twins/packs/upstashvector/LICENSE +202 -0
- package/dist/twins/packs/upstashvector/NOTICE +7 -0
- package/dist/twins/packs/upstashvector/index.mjs +3 -0
- package/dist/twins/packs/vercel/LICENSE +202 -0
- package/dist/twins/packs/vercel/NOTICE +7 -0
- package/dist/twins/packs/vercel/index.mjs +10 -0
- package/dist/twins/packs/veriff/LICENSE +202 -0
- package/dist/twins/packs/veriff/NOTICE +7 -0
- package/dist/twins/packs/veriff/index.mjs +2 -0
- package/dist/twins/packs/vgauth/LICENSE +202 -0
- package/dist/twins/packs/vgauth/NOTICE +7 -0
- package/dist/twins/packs/vgauth/index.mjs +2 -0
- package/dist/twins/packs/vital/LICENSE +202 -0
- package/dist/twins/packs/vital/NOTICE +7 -0
- package/dist/twins/packs/vital/index.mjs +2 -0
- package/dist/twins/packs/volteridentity/LICENSE +202 -0
- package/dist/twins/packs/volteridentity/NOTICE +7 -0
- package/dist/twins/packs/volteridentity/index.mjs +2 -0
- package/dist/twins/packs/webrisk/LICENSE +202 -0
- package/dist/twins/packs/webrisk/NOTICE +7 -0
- package/dist/twins/packs/webrisk/index.mjs +2 -0
- package/dist/twins/packs/worldlabs/LICENSE +202 -0
- package/dist/twins/packs/worldlabs/NOTICE +7 -0
- package/dist/twins/packs/worldlabs/index.mjs +2 -0
- package/dist/twins/packs/x/LICENSE +202 -0
- package/dist/twins/packs/x/NOTICE +7 -0
- package/dist/twins/packs/x/index.mjs +63 -0
- package/dist/twins/packs/xai/LICENSE +202 -0
- package/dist/twins/packs/xai/NOTICE +7 -0
- package/dist/twins/packs/xai/index.mjs +4 -0
- package/dist/twins/packs/xidentity/LICENSE +202 -0
- package/dist/twins/packs/xidentity/NOTICE +8 -0
- package/dist/twins/packs/xidentity/index.mjs +209 -0
- package/dist/twins/packs/youtube/LICENSE +202 -0
- package/dist/twins/packs/youtube/NOTICE +7 -0
- package/dist/twins/packs/youtube/index.mjs +5 -0
- package/dist/worker.js +442 -18
- package/dist/world-host.js +928 -91
- package/package.json +5 -4
- package/dist/dashboard/assets/dashboard/bay-morning.png +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-afternoon.png +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-portrait.png +0 -0
- package/dist/dashboard/assets/dashboard/moonlit-coast.png +0 -0
- package/dist/dashboard/assets/next/static/chunks/2868-424d32cfc8ae81c9.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-f9fca2c08f779fa0.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-bc480c9258e5cc4d.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-f04c0b236abaead3.js +0 -1
- package/dist/dashboard/assets/next/static/css/4af3c8ca0da0f48b.css +0 -1
- package/dist/dashboard/assets/next/static/css/6b8edde77e493a51.css +0 -1
- package/dist/dashboard/assets/next/static/media/bay-morning.1a9f358c.png +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-afternoon.3e7cea58.png +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-portrait.7941528f.png +0 -0
- package/dist/dashboard/assets/next/static/media/moonlit-coast.bbe901a1.png +0 -0
- /package/dist/dashboard/assets/next/static/{5ub3D2yzS8DE7w2qZd1nv → 8f121VqXS9LLPMmYd1SRn}/_buildManifest.js +0 -0
- /package/dist/dashboard/assets/next/static/{5ub3D2yzS8DE7w2qZd1nv → 8f121VqXS9LLPMmYd1SRn}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import{createRequire as __atReq}from'node:module';const require=__atReq(import.meta.url);
|
|
2
|
+
var jo=Object.defineProperty;var Co=(e,t)=>{for(var a in t)jo(e,a,{get:t[a],enumerable:!0})};import{packOf as Yd,registerPack as Kd}from"../../engine/v3/volter_world-core.mjs";import{digest as Oo}from"../../engine/v3/volter_world-core.mjs";import{ownFields as Bo}from"../../engine/v3/volter_world-core.mjs";var ie={generatedBy:"scripts/derive-pack.ts",spec:"openapi.json.gz",format:"openapi",version:"2026-09-30.endive",resources:[{name:"account",schema:"account",fields:[{name:"business_profile",type:"union",nullable:!0},{name:"business_type",type:"string",nullable:!0,enum:["company","government_entity","individual","non_profit"]},{name:"capabilities",type:"account_capabilities",nullable:!1},{name:"charges_enabled",type:"boolean",nullable:!1},{name:"company",type:"legal_entity_company",nullable:!1},{name:"controller",type:"account_unification_account_controller",nullable:!1},{name:"country",type:"string",nullable:!1},{name:"created",type:"integer",nullable:!1},{name:"default_currency",type:"string",nullable:!1},{name:"details_submitted",type:"boolean",nullable:!1},{name:"email",type:"string",nullable:!0},{name:"external_accounts",type:"object",nullable:!1},{name:"future_requirements",type:"account_future_requirements",nullable:!1},{name:"groups",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"individual",type:"person",nullable:!1},{name:"metadata",type:"object",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["account"]},{name:"payouts_enabled",type:"boolean",nullable:!1},{name:"requirements",type:"account_requirements",nullable:!1},{name:"settings",type:"union",nullable:!0},{name:"tos_acceptance",type:"account_tos_acceptance",nullable:!1},{name:"type",type:"string",nullable:!1,enum:["custom","express","none","standard"]}],stateCandidates:[{field:"business_type",values:["company","government_entity","individual","non_profit"]},{field:"type",values:["custom","express","none","standard"]}],expandable:["business_profile","capabilities","company","controller","external_accounts","future_requirements","groups","individual","requirements","settings","tos_acceptance"]},{name:"account_link",schema:"account_link",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"expires_at",type:"integer",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["account_link"]},{name:"url",type:"string",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"account_session",schema:"account_session",fields:[{name:"account",type:"string",nullable:!1,required:!0},{name:"client_secret",type:"string",nullable:!1,required:!0},{name:"components",type:"connect_embedded_account_session_create_components",nullable:!1,required:!0},{name:"expires_at",type:"integer",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["account_session"]}],stateCandidates:[],expandable:["components"]},{name:"apple_pay_domain",schema:"apple_pay_domain",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"domain_name",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["apple_pay_domain"]}],stateCandidates:[],expandable:[]},{name:"application_fee",schema:"application_fee",fields:[{name:"account",type:"union",nullable:!1,required:!0},{name:"amount",type:"integer",nullable:!1,required:!0},{name:"amount_refunded",type:"integer",nullable:!1,required:!0},{name:"application",type:"union",nullable:!1,required:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"charge",type:"union",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"fee_source",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["application_fee"]},{name:"originating_transaction",type:"union",nullable:!0},{name:"refunded",type:"boolean",nullable:!1,required:!0},{name:"refunds",type:"object",nullable:!1,required:!0}],stateCandidates:[{field:"refunded",values:["false","true"]}],expandable:["account","application","balance_transaction","charge","fee_source","originating_transaction","refunds"]},{name:"apps.install",schema:"apps.install",fields:[{name:"account",type:"string",nullable:!1,required:!0},{name:"app",type:"string",nullable:!1,required:!0},{name:"approval_required",type:"boolean",nullable:!1,required:!0},{name:"auth_code",type:"string",nullable:!0},{name:"channel",type:"string",nullable:!1,required:!0,enum:["private_live","private_test","public","review","testing"]},{name:"content_security_policy_granted",type:"app_service_resource_install_content_security_policy",nullable:!1,required:!0},{name:"content_security_policy_pending",type:"app_service_resource_install_content_security_policy",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"created_by",type:"string",nullable:!0},{name:"endpoints_granted",type:"array",nullable:!1,required:!0},{name:"endpoints_pending",type:"array",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["apps.install"]},{name:"permissions_granted",type:"array",nullable:!1,required:!0},{name:"permissions_pending",type:"array",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["install_failed","installed","installing","uninstall_failed","uninstalling"]}],stateCandidates:[{field:"channel",values:["private_live","private_test","public","review","testing"]},{field:"status",values:["install_failed","installed","installing","uninstall_failed","uninstalling"]}],expandable:["content_security_policy_granted","content_security_policy_pending"]},{name:"apps.secret",schema:"apps.secret",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"deleted",type:"boolean",nullable:!1},{name:"expires_at",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["apps.secret"]},{name:"payload",type:"string",nullable:!0},{name:"scope",type:"secret_service_resource_scope",nullable:!1,required:!0}],stateCandidates:[],expandable:["scope"]},{name:"balance",schema:"balance",fields:[{name:"available",type:"array",nullable:!1,required:!0},{name:"connect_reserved",type:"array",nullable:!1},{name:"instant_available",type:"array",nullable:!1},{name:"issuing",type:"balance_detail",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["balance"]},{name:"pending",type:"array",nullable:!1,required:!0},{name:"refund_and_dispute_prefunding",type:"balance_detail_ungated",nullable:!1}],stateCandidates:[],expandable:["available","connect_reserved","instant_available","issuing","pending","refund_and_dispute_prefunding"]},{name:"balance_settings",schema:"balance_settings",fields:[{name:"object",type:"string",nullable:!1,required:!0,enum:["balance_settings"]},{name:"payments",type:"balance_settings_resource_payments",nullable:!1,required:!0}],stateCandidates:[],expandable:["payments"]},{name:"balance_transaction",schema:"balance_transaction",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"available_on",type:"integer",nullable:!1,required:!0},{name:"balance_type",type:"string",nullable:!1,required:!0,enum:["issuing","payments","refund_and_dispute_prefunding","risk_reserved"]},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"exchange_rate",type:"number",nullable:!0},{name:"fee",type:"integer",nullable:!1,required:!0},{name:"fee_details",type:"array",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"net",type:"integer",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["balance_transaction"]},{name:"reporting_category",type:"string",nullable:!1,required:!0},{name:"source",type:"union",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["adjustment","advance","advance_funding","anticipation_repayment","application_fee","application_fee_refund","charge","climate_order_purchase","climate_order_refund","connect_collection_transfer","contribution","fee_credit_funding","inbound_transfer","inbound_transfer_reversal","issuing_authorization_hold","issuing_authorization_release","issuing_dispute","issuing_dispute_provisional_credit","issuing_dispute_provisional_credit_reversal","issuing_transaction","obligation_outbound","obligation_reversal_inbound","payment","payment_failure_refund","payment_network_reserve_hold","payment_network_reserve_release","payment_refund","payment_reversal","payment_unreconciled","payout","payout_cancel","payout_failure","payout_minimum_balance_hold","payout_minimum_balance_release","refund","refund_failure","reserve_hold","reserve_release","reserve_transaction","reserved_funds","stripe_balance_payment_debit","stripe_balance_payment_debit_reversal","stripe_fee","stripe_fx_fee","tax_fee","tax_fund","topup","topup_reversal","transfer","transfer_cancel","transfer_failure","transfer_refund"]}],stateCandidates:[{field:"balance_type",values:["issuing","payments","refund_and_dispute_prefunding","risk_reserved"]},{field:"status",values:[]},{field:"type",values:["adjustment","advance","advance_funding","anticipation_repayment","application_fee","application_fee_refund","charge","climate_order_purchase","climate_order_refund","connect_collection_transfer","contribution","fee_credit_funding","inbound_transfer","inbound_transfer_reversal","issuing_authorization_hold","issuing_authorization_release","issuing_dispute","issuing_dispute_provisional_credit","issuing_dispute_provisional_credit_reversal","issuing_transaction","obligation_outbound","obligation_reversal_inbound","payment","payment_failure_refund","payment_network_reserve_hold","payment_network_reserve_release","payment_refund","payment_reversal","payment_unreconciled","payout","payout_cancel","payout_failure","payout_minimum_balance_hold","payout_minimum_balance_release","refund","refund_failure","reserve_hold","reserve_release","reserve_transaction","reserved_funds","stripe_balance_payment_debit","stripe_balance_payment_debit_reversal","stripe_fee","stripe_fx_fee","tax_fee","tax_fund","topup","topup_reversal","transfer","transfer_cancel","transfer_failure","transfer_refund"]}],expandable:["fee_details","source"]},{name:"bank_account",schema:"bank_account",fields:[{name:"account",type:"union",nullable:!0},{name:"account_holder_name",type:"string",nullable:!0},{name:"account_holder_type",type:"string",nullable:!0},{name:"account_type",type:"string",nullable:!0},{name:"available_payout_methods",type:"array",nullable:!0},{name:"bank_name",type:"string",nullable:!0},{name:"country",type:"string",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!0},{name:"default_for_currency",type:"boolean",nullable:!0},{name:"fingerprint",type:"string",nullable:!0},{name:"future_requirements",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"last4",type:"string",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["bank_account"]},{name:"requirements",type:"union",nullable:!0},{name:"routing_number",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:[]}],expandable:["account","customer","future_requirements","requirements"]},{name:"billing_portal.configuration",schema:"billing_portal.configuration",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"application",type:"union",nullable:!0},{name:"business_profile",type:"portal_business_profile",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"default_return_url",type:"string",nullable:!0},{name:"features",type:"portal_features",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"is_default",type:"boolean",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"login_page",type:"portal_login_page",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"name",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing_portal.configuration"]},{name:"updated",type:"integer",nullable:!1,required:!0}],stateCandidates:[{field:"active",values:["false","true"]},{field:"is_default",values:["false","true"]}],expandable:["application","business_profile","features","login_page"]},{name:"billing_portal.session",schema:"billing_portal.session",fields:[{name:"configuration",type:"union",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer",type:"string",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"flow",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"locale",type:"string",nullable:!0,enum:["auto","bg","cs","da","de","el","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-NZ","en-SG","es","es-419","et","fi","fil","fr","fr-CA","hr","hu","id","it","ja","ko","lt","lv","ms","mt","nb","nl","pl","pt","pt-BR","ro","ru","sk","sl","sv","th","tr","vi","zh","zh-HK","zh-TW"]},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing_portal.session"]},{name:"on_behalf_of",type:"string",nullable:!0},{name:"return_url",type:"string",nullable:!0},{name:"url",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"locale",values:["auto","bg","cs","da","de","el","en","en-AU","en-CA","en-GB","en-IE","en-IN","en-NZ","en-SG","es","es-419","et","fi","fil","fr","fr-CA","hr","hu","id","it","ja","ko","lt","lv","ms","mt","nb","nl","pl","pt","pt-BR","ro","ru","sk","sl","sv","th","tr","vi","zh","zh-HK","zh-TW"]}],expandable:["configuration","flow"]},{name:"billing.alert",schema:"billing.alert",fields:[{name:"alert_type",type:"string",nullable:!1,required:!0,enum:["usage_threshold"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.alert"]},{name:"status",type:"string",nullable:!0,enum:["active","archived","inactive"]},{name:"title",type:"string",nullable:!1,required:!0},{name:"usage_threshold",type:"union",nullable:!0}],stateCandidates:[{field:"status",values:["active","archived","inactive"]}],expandable:["usage_threshold"]},{name:"billing.credit_balance_summary",schema:"billing.credit_balance_summary",fields:[{name:"balances",type:"array",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.credit_balance_summary"]}],stateCandidates:[],expandable:["balances","customer"]},{name:"billing.credit_balance_transaction",schema:"billing.credit_balance_transaction",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"credit",type:"union",nullable:!0},{name:"credit_grant",type:"union",nullable:!1,required:!0},{name:"debit",type:"union",nullable:!0},{name:"effective_at",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.credit_balance_transaction"]},{name:"test_clock",type:"union",nullable:!0},{name:"type",type:"string",nullable:!0,enum:["credit","debit"]}],stateCandidates:[{field:"type",values:["credit","debit"]}],expandable:["credit","credit_grant","debit","test_clock"]},{name:"billing.credit_grant",schema:"billing.credit_grant",fields:[{name:"amount",type:"billing_credit_grants_resource_amount",nullable:!1,required:!0},{name:"applicability_config",type:"billing_credit_grants_resource_applicability_config",nullable:!1,required:!0},{name:"category",type:"string",nullable:!1,required:!0,enum:["paid","promotional"]},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"effective_at",type:"integer",nullable:!0},{name:"expires_at",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"name",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.credit_grant"]},{name:"priority",type:"integer",nullable:!0},{name:"test_clock",type:"union",nullable:!0},{name:"updated",type:"integer",nullable:!1,required:!0},{name:"voided_at",type:"integer",nullable:!0}],stateCandidates:[{field:"category",values:["paid","promotional"]}],expandable:["amount","applicability_config","customer","test_clock"]},{name:"billing.feedback_option",schema:"billing.feedback_option",fields:[{name:"description",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.feedback_option"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","inactive"]},{name:"status_transitions",type:"feedback_options_status_transitions",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:["active","inactive"]}],expandable:["status_transitions"]},{name:"billing.meter",schema:"billing.meter",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer_mapping",type:"billing_meter_resource_customer_mapping_settings",nullable:!1,required:!0},{name:"default_aggregation",type:"billing_meter_resource_aggregation_settings",nullable:!1,required:!0},{name:"display_name",type:"string",nullable:!1,required:!0},{name:"event_name",type:"string",nullable:!1,required:!0},{name:"event_time_window",type:"string",nullable:!0,enum:["day","hour"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.meter"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","inactive"]},{name:"status_transitions",type:"billing_meter_resource_billing_meter_status_transitions",nullable:!1,required:!0},{name:"updated",type:"integer",nullable:!1,required:!0},{name:"value_settings",type:"billing_meter_resource_billing_meter_value",nullable:!1,required:!0}],stateCandidates:[{field:"event_time_window",values:["day","hour"]},{field:"status",values:["active","inactive"]}],expandable:["customer_mapping","default_aggregation","status_transitions","value_settings"]},{name:"billing.meter_event",schema:"billing.meter_event",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"event_name",type:"string",nullable:!1,required:!0},{name:"identifier",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.meter_event"]},{name:"payload",type:"object",nullable:!1,required:!0},{name:"timestamp",type:"integer",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"billing.meter_event_adjustment",schema:"billing.meter_event_adjustment",fields:[{name:"cancel",type:"union",nullable:!0},{name:"event_name",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.meter_event_adjustment"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["complete","pending"]},{name:"type",type:"string",nullable:!1,required:!0,enum:["cancel"]}],stateCandidates:[{field:"status",values:["complete","pending"]}],expandable:["cancel"]},{name:"billing.meter_event_summary",schema:"billing.meter_event_summary",fields:[{name:"aggregated_value",type:"number",nullable:!1,required:!0},{name:"end_time",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"meter",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["billing.meter_event_summary"]},{name:"start_time",type:"integer",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"capability",schema:"capability",fields:[{name:"account",type:"union",nullable:!1,required:!0},{name:"future_requirements",type:"account_capability_future_requirements",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["capability"]},{name:"requested",type:"boolean",nullable:!1,required:!0},{name:"requested_at",type:"integer",nullable:!0},{name:"requirements",type:"account_capability_requirements",nullable:!1},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","inactive","pending","unrequested"]}],stateCandidates:[{field:"status",values:["active","inactive","pending","unrequested"]}],expandable:["account","future_requirements","requirements"]},{name:"card",schema:"card",fields:[{name:"account",type:"union",nullable:!0},{name:"address_city",type:"string",nullable:!0},{name:"address_country",type:"string",nullable:!0},{name:"address_line1",type:"string",nullable:!0},{name:"address_line1_check",type:"string",nullable:!0},{name:"address_line2",type:"string",nullable:!0},{name:"address_state",type:"string",nullable:!0},{name:"address_zip",type:"string",nullable:!0},{name:"address_zip_check",type:"string",nullable:!0},{name:"allow_redisplay",type:"string",nullable:!0,enum:["always","limited","unspecified"]},{name:"available_payout_methods",type:"array",nullable:!0},{name:"brand",type:"string",nullable:!1,required:!0},{name:"country",type:"string",nullable:!0},{name:"currency",type:"string",nullable:!0},{name:"customer",type:"union",nullable:!0},{name:"cvc_check",type:"string",nullable:!0},{name:"default_for_currency",type:"boolean",nullable:!0},{name:"dynamic_last4",type:"string",nullable:!0},{name:"exp_month",type:"integer",nullable:!1,required:!0},{name:"exp_year",type:"integer",nullable:!1,required:!0},{name:"fingerprint",type:"string",nullable:!0},{name:"funding",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"last4",type:"string",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"name",type:"string",nullable:!0},{name:"networks",type:"token_card_networks",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["card"]},{name:"regulated_status",type:"string",nullable:!0,enum:["regulated","unregulated"]},{name:"status",type:"string",nullable:!0},{name:"tokenization_method",type:"string",nullable:!0}],stateCandidates:[{field:"allow_redisplay",values:["always","limited","unspecified"]},{field:"regulated_status",values:["regulated","unregulated"]},{field:"status",values:[]}],expandable:["account","customer","networks"]},{name:"cash_balance",schema:"cash_balance",fields:[{name:"available",type:"object",nullable:!0},{name:"customer",type:"string",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["cash_balance"]},{name:"settings",type:"customer_balance_customer_balance_settings",nullable:!1,required:!0}],stateCandidates:[],expandable:["settings"]},{name:"charge",schema:"charge",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"amount_captured",type:"integer",nullable:!1,required:!0},{name:"amount_refunded",type:"integer",nullable:!1,required:!0},{name:"application",type:"union",nullable:!0},{name:"application_fee",type:"union",nullable:!0},{name:"application_fee_amount",type:"integer",nullable:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"billing_details",type:"billing_details",nullable:!1,required:!0},{name:"calculated_statement_descriptor",type:"string",nullable:!0},{name:"captured",type:"boolean",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!0},{name:"description",type:"string",nullable:!0},{name:"disputed",type:"boolean",nullable:!1,required:!0},{name:"failure_balance_transaction",type:"union",nullable:!0},{name:"failure_code",type:"string",nullable:!0},{name:"failure_message",type:"string",nullable:!0},{name:"fraud_details",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["charge"]},{name:"on_behalf_of",type:"union",nullable:!0},{name:"outcome",type:"union",nullable:!0},{name:"paid",type:"boolean",nullable:!1,required:!0},{name:"payment_intent",type:"union",nullable:!0},{name:"payment_method",type:"string",nullable:!0},{name:"payment_method_details",type:"union",nullable:!0},{name:"presentment_details",type:"payment_flows_payment_intent_presentment_details",nullable:!1},{name:"radar_options",type:"radar_radar_options",nullable:!1},{name:"receipt_email",type:"string",nullable:!0},{name:"receipt_number",type:"string",nullable:!0},{name:"receipt_url",type:"string",nullable:!0},{name:"refunded",type:"boolean",nullable:!1,required:!0},{name:"refunds",type:"object",nullable:!0},{name:"review",type:"union",nullable:!0},{name:"shipping",type:"union",nullable:!0},{name:"source_transfer",type:"union",nullable:!0},{name:"statement_descriptor",type:"string",nullable:!0},{name:"statement_descriptor_suffix",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["failed","pending","succeeded"]},{name:"transfer",type:"union",nullable:!1},{name:"transfer_data",type:"union",nullable:!0},{name:"transfer_group",type:"string",nullable:!0}],stateCandidates:[{field:"captured",values:["false","true"]},{field:"paid",values:["false","true"]},{field:"refunded",values:["false","true"]},{field:"status",values:["failed","pending","succeeded"]}],expandable:["application","application_fee","balance_transaction","billing_details","customer","failure_balance_transaction","fraud_details","on_behalf_of","outcome","payment_intent","payment_method_details","presentment_details","radar_options","refunds","review","shipping","source_transfer","transfer","transfer_data"]},{name:"checkout.session",schema:"checkout.session",fields:[{name:"adaptive_pricing",type:"union",nullable:!0},{name:"after_expiration",type:"union",nullable:!0},{name:"allow_promotion_codes",type:"boolean",nullable:!0},{name:"allowed_payment_method_types",type:"array",nullable:!0},{name:"amount_subtotal",type:"integer",nullable:!0},{name:"amount_total",type:"integer",nullable:!0},{name:"automatic_tax",type:"payment_pages_checkout_session_automatic_tax",nullable:!1,required:!0},{name:"billing_address_collection",type:"string",nullable:!0,enum:["auto","required"]},{name:"branding_settings",type:"payment_pages_checkout_session_branding_settings",nullable:!1},{name:"cancel_url",type:"string",nullable:!0},{name:"client_reference_id",type:"string",nullable:!0},{name:"client_secret",type:"string",nullable:!0},{name:"collected_information",type:"union",nullable:!0},{name:"consent",type:"union",nullable:!0},{name:"consent_collection",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!0},{name:"currency_conversion",type:"union",nullable:!0},{name:"custom_fields",type:"array",nullable:!1,required:!0},{name:"custom_text",type:"payment_pages_checkout_session_custom_text",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"customer_creation",type:"string",nullable:!0,enum:["always","if_required"]},{name:"customer_details",type:"union",nullable:!0},{name:"customer_email",type:"string",nullable:!0},{name:"discounts",type:"array",nullable:!0},{name:"excluded_payment_method_types",type:"array",nullable:!1},{name:"expires_at",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"integration_identifier",type:"string",nullable:!0},{name:"invoice",type:"union",nullable:!0},{name:"invoice_creation",type:"union",nullable:!0},{name:"line_items",type:"object",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"locale",type:"string",nullable:!0,enum:["auto","bg","cs","da","de","el","en","en-GB","es","es-419","et","fi","fil","fr","fr-CA","hr","hu","id","it","ja","ko","lt","lv","ms","mt","nb","nl","pl","pt","pt-BR","ro","ru","sk","sl","sv","th","tr","vi","zh","zh-HK","zh-TW"]},{name:"managed_payments",type:"union",nullable:!0},{name:"metadata",type:"object",nullable:!0},{name:"mode",type:"string",nullable:!1,required:!0,enum:["payment","setup","subscription"]},{name:"name_collection",type:"payment_pages_checkout_session_name_collection",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["checkout.session"]},{name:"optional_items",type:"array",nullable:!0},{name:"origin_context",type:"string",nullable:!0,enum:["mobile_app","web"]},{name:"payment_intent",type:"union",nullable:!0},{name:"payment_link",type:"union",nullable:!0},{name:"payment_method_collection",type:"string",nullable:!0,enum:["always","if_required"]},{name:"payment_method_configuration_details",type:"union",nullable:!0},{name:"payment_method_options",type:"union",nullable:!0},{name:"payment_method_types",type:"array",nullable:!1,required:!0},{name:"payment_status",type:"string",nullable:!1,required:!0,enum:["no_payment_required","paid","unpaid"]},{name:"permissions",type:"union",nullable:!0},{name:"phone_number_collection",type:"payment_pages_checkout_session_phone_number_collection",nullable:!1},{name:"presentment_details",type:"payment_flows_payment_intent_presentment_details",nullable:!1},{name:"recovered_from",type:"string",nullable:!0},{name:"redirect_on_completion",type:"string",nullable:!1,enum:["always","if_required","never"]},{name:"return_url",type:"string",nullable:!1},{name:"saved_payment_method_options",type:"union",nullable:!0},{name:"setup_intent",type:"union",nullable:!0},{name:"shipping_address_collection",type:"union",nullable:!0},{name:"shipping_cost",type:"union",nullable:!0},{name:"shipping_options",type:"array",nullable:!1,required:!0},{name:"status",type:"string",nullable:!0,enum:["complete","expired","open"]},{name:"submit_type",type:"string",nullable:!0,enum:["auto","book","donate","pay","subscribe"]},{name:"subscription",type:"union",nullable:!0},{name:"success_url",type:"string",nullable:!0},{name:"tax_id_collection",type:"payment_pages_checkout_session_tax_id_collection",nullable:!1},{name:"total_details",type:"union",nullable:!0},{name:"ui_mode",type:"string",nullable:!0,enum:["elements","embedded_page","form","hosted_page"]},{name:"url",type:"string",nullable:!0},{name:"wallet_options",type:"union",nullable:!0}],stateCandidates:[{field:"billing_address_collection",values:["auto","required"]},{field:"customer_creation",values:["always","if_required"]},{field:"locale",values:["auto","bg","cs","da","de","el","en","en-GB","es","es-419","et","fi","fil","fr","fr-CA","hr","hu","id","it","ja","ko","lt","lv","ms","mt","nb","nl","pl","pt","pt-BR","ro","ru","sk","sl","sv","th","tr","vi","zh","zh-HK","zh-TW"]},{field:"mode",values:["payment","setup","subscription"]},{field:"origin_context",values:["mobile_app","web"]},{field:"payment_method_collection",values:["always","if_required"]},{field:"payment_status",values:["no_payment_required","paid","unpaid"]},{field:"redirect_on_completion",values:["always","if_required","never"]},{field:"status",values:["complete","expired","open"]},{field:"submit_type",values:["auto","book","donate","pay","subscribe"]},{field:"ui_mode",values:["elements","embedded_page","form","hosted_page"]}],expandable:["adaptive_pricing","after_expiration","automatic_tax","branding_settings","collected_information","consent","consent_collection","currency_conversion","custom_fields","custom_text","customer","customer_details","discounts","invoice","invoice_creation","line_items","managed_payments","name_collection","optional_items","payment_intent","payment_link","payment_method_configuration_details","payment_method_options","permissions","phone_number_collection","presentment_details","saved_payment_method_options","setup_intent","shipping_address_collection","shipping_cost","shipping_options","subscription","tax_id_collection","total_details","wallet_options"]},{name:"climate.order",schema:"climate.order",fields:[{name:"amount_fees",type:"integer",nullable:!1,required:!0},{name:"amount_subtotal",type:"integer",nullable:!1,required:!0},{name:"amount_total",type:"integer",nullable:!1,required:!0},{name:"beneficiary",type:"climate_removals_beneficiary",nullable:!1},{name:"canceled_at",type:"integer",nullable:!0},{name:"cancellation_reason",type:"string",nullable:!0,enum:["expired","product_unavailable","requested"]},{name:"certificate",type:"string",nullable:!0},{name:"confirmed_at",type:"integer",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"delayed_at",type:"integer",nullable:!0},{name:"delivered_at",type:"integer",nullable:!0},{name:"delivery_details",type:"array",nullable:!1,required:!0},{name:"expected_delivery_year",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"metric_tons",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["climate.order"]},{name:"product",type:"union",nullable:!1,required:!0},{name:"product_substituted_at",type:"integer",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["awaiting_funds","canceled","confirmed","delivered","open"]}],stateCandidates:[{field:"cancellation_reason",values:["expired","product_unavailable","requested"]},{field:"status",values:["awaiting_funds","canceled","confirmed","delivered","open"]}],expandable:["beneficiary","delivery_details","product"]},{name:"climate.product",schema:"climate.product",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"current_prices_per_metric_ton",type:"object",nullable:!1,required:!0},{name:"delivery_year",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metric_tons_available",type:"string",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["climate.product"]},{name:"suppliers",type:"array",nullable:!1,required:!0}],stateCandidates:[],expandable:["current_prices_per_metric_ton","suppliers"]},{name:"climate.supplier",schema:"climate.supplier",fields:[{name:"id",type:"string",nullable:!1,required:!0},{name:"info_url",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"locations",type:"array",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["climate.supplier"]},{name:"removal_pathway",type:"string",nullable:!1,required:!0,enum:["biomass_carbon_removal_and_storage","direct_air_capture","enhanced_weathering","marine_carbon_removal"]}],stateCandidates:[{field:"removal_pathway",values:["biomass_carbon_removal_and_storage","direct_air_capture","enhanced_weathering","marine_carbon_removal"]}],expandable:["locations"]},{name:"confirmation_token",schema:"confirmation_token",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"expires_at",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"mandate_data",type:"union",nullable:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["confirmation_token"]},{name:"payment_intent",type:"string",nullable:!0},{name:"payment_method_options",type:"union",nullable:!0},{name:"payment_method_preview",type:"union",nullable:!0},{name:"return_url",type:"string",nullable:!0},{name:"setup_future_usage",type:"string",nullable:!0,enum:["off_session","on_session"]},{name:"setup_intent",type:"string",nullable:!0},{name:"shipping",type:"union",nullable:!0},{name:"use_stripe_sdk",type:"boolean",nullable:!1,required:!0}],stateCandidates:[{field:"setup_future_usage",values:["off_session","on_session"]}],expandable:["mandate_data","payment_method_options","payment_method_preview","shipping"]},{name:"country_spec",schema:"country_spec",fields:[{name:"default_currency",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["country_spec"]},{name:"supported_bank_account_currencies",type:"object",nullable:!1,required:!0},{name:"supported_payment_currencies",type:"array",nullable:!1,required:!0},{name:"supported_payment_methods",type:"array",nullable:!1,required:!0},{name:"supported_transfer_countries",type:"array",nullable:!1,required:!0},{name:"verification_fields",type:"country_spec_verification_fields",nullable:!1,required:!0}],stateCandidates:[],expandable:["verification_fields"]},{name:"coupon",schema:"coupon",fields:[{name:"amount_off",type:"integer",nullable:!0},{name:"applies_to",type:"coupon_applies_to",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!0},{name:"currency_options",type:"object",nullable:!1},{name:"duration",type:"string",nullable:!1,required:!0,enum:["forever","once","repeating"]},{name:"duration_in_months",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"max_redemptions",type:"integer",nullable:!0},{name:"metadata",type:"object",nullable:!0},{name:"name",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["coupon"]},{name:"percent_off",type:"number",nullable:!0},{name:"redeem_by",type:"integer",nullable:!0},{name:"times_redeemed",type:"integer",nullable:!1,required:!0},{name:"valid",type:"boolean",nullable:!1,required:!0}],stateCandidates:[{field:"duration",values:["forever","once","repeating"]}],expandable:["applies_to","currency_options"]},{name:"credit_note",schema:"credit_note",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"amount_shipping",type:"integer",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"customer_balance_transaction",type:"union",nullable:!0},{name:"discount_amount",type:"integer",nullable:!1,required:!0},{name:"discount_amounts",type:"array",nullable:!1,required:!0},{name:"effective_at",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice",type:"union",nullable:!1,required:!0},{name:"lines",type:"object",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"memo",type:"string",nullable:!0},{name:"metadata",type:"object",nullable:!0},{name:"number",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["credit_note"]},{name:"out_of_band_amount",type:"integer",nullable:!0},{name:"pdf",type:"string",nullable:!1,required:!0},{name:"post_payment_amount",type:"integer",nullable:!1,required:!0},{name:"pre_payment_amount",type:"integer",nullable:!1,required:!0},{name:"pretax_credit_amounts",type:"array",nullable:!1,required:!0},{name:"reason",type:"string",nullable:!0,enum:["duplicate","fraudulent","order_change","product_unsatisfactory"]},{name:"refunds",type:"array",nullable:!1,required:!0},{name:"shipping_cost",type:"union",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["issued","void"]},{name:"subtotal",type:"integer",nullable:!1,required:!0},{name:"subtotal_excluding_tax",type:"integer",nullable:!0},{name:"total",type:"integer",nullable:!1,required:!0},{name:"total_excluding_tax",type:"integer",nullable:!0},{name:"total_taxes",type:"array",nullable:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["mixed","post_payment","pre_payment"]},{name:"voided_at",type:"integer",nullable:!0}],stateCandidates:[{field:"reason",values:["duplicate","fraudulent","order_change","product_unsatisfactory"]},{field:"status",values:["issued","void"]},{field:"type",values:["mixed","post_payment","pre_payment"]}],expandable:["customer","customer_balance_transaction","discount_amounts","invoice","lines","pretax_credit_amounts","refunds","shipping_cost","total_taxes"]},{name:"credit_note_line_item",schema:"credit_note_line_item",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"discount_amount",type:"integer",nullable:!1,required:!0},{name:"discount_amounts",type:"array",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice_line_item",type:"string",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["credit_note_line_item"]},{name:"pretax_credit_amounts",type:"array",nullable:!1,required:!0},{name:"quantity",type:"integer",nullable:!0},{name:"tax_rates",type:"array",nullable:!1,required:!0},{name:"taxes",type:"array",nullable:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["custom_line_item","invoice_line_item"]},{name:"unit_amount",type:"integer",nullable:!0},{name:"unit_amount_decimal",type:"string",nullable:!0}],stateCandidates:[{field:"type",values:["custom_line_item","invoice_line_item"]}],expandable:["discount_amounts","pretax_credit_amounts","tax_rates","taxes"]},{name:"customer",schema:"customer",fields:[{name:"address",type:"union",nullable:!0},{name:"balance",type:"integer",nullable:!1},{name:"business_name",type:"string",nullable:!1},{name:"cash_balance",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"default_source",type:"union",nullable:!0},{name:"delinquent",type:"boolean",nullable:!0},{name:"description",type:"string",nullable:!0},{name:"discount",type:"union",nullable:!0},{name:"email",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"individual_name",type:"string",nullable:!1},{name:"invoice_credit_balance",type:"object",nullable:!1},{name:"invoice_prefix",type:"string",nullable:!0},{name:"invoice_settings",type:"invoice_setting_customer_setting",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1},{name:"name",type:"string",nullable:!0},{name:"next_invoice_sequence",type:"integer",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["customer"]},{name:"phone",type:"string",nullable:!0},{name:"preferred_locales",type:"array",nullable:!0},{name:"shipping",type:"union",nullable:!0},{name:"sources",type:"object",nullable:!1},{name:"subscriptions",type:"object",nullable:!1},{name:"tax",type:"customer_tax",nullable:!1},{name:"tax_exempt",type:"string",nullable:!0,enum:["exempt","none","reverse"]},{name:"tax_ids",type:"object",nullable:!1},{name:"test_clock",type:"union",nullable:!0}],stateCandidates:[{field:"tax_exempt",values:["exempt","none","reverse"]}],expandable:["address","cash_balance","default_source","discount","invoice_settings","shipping","sources","subscriptions","tax","tax_ids","test_clock"]},{name:"customer_balance_transaction",schema:"customer_balance_transaction",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"checkout_session",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"credit_note",type:"union",nullable:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"description",type:"string",nullable:!0},{name:"ending_balance",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["customer_balance_transaction"]},{name:"type",type:"string",nullable:!1,required:!0,enum:["adjustment","applied_to_invoice","checkout_session_subscription_payment","checkout_session_subscription_payment_canceled","credit_note","initial","invoice_overpaid","invoice_too_large","invoice_too_small","migration","unapplied_from_invoice","unspent_receiver_credit"]}],stateCandidates:[{field:"type",values:["adjustment","applied_to_invoice","checkout_session_subscription_payment","checkout_session_subscription_payment_canceled","credit_note","initial","invoice_overpaid","invoice_too_large","invoice_too_small","migration","unapplied_from_invoice","unspent_receiver_credit"]}],expandable:["checkout_session","credit_note","customer","invoice"]},{name:"customer_cash_balance_transaction",schema:"customer_cash_balance_transaction",fields:[{name:"adjusted_for_overdraft",type:"customer_balance_resource_cash_balance_transaction_resource_adjusted_for_overdraft",nullable:!1},{name:"applied_to_payment",type:"customer_balance_resource_cash_balance_transaction_resource_applied_to_payment_transaction",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"ending_balance",type:"integer",nullable:!1,required:!0},{name:"funded",type:"customer_balance_resource_cash_balance_transaction_resource_funded_transaction",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"net_amount",type:"integer",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["customer_cash_balance_transaction"]},{name:"refunded_from_payment",type:"customer_balance_resource_cash_balance_transaction_resource_refunded_from_payment_transaction",nullable:!1},{name:"transferred_to_balance",type:"customer_balance_resource_cash_balance_transaction_resource_transferred_to_balance",nullable:!1},{name:"type",type:"string",nullable:!1,required:!0,enum:["adjusted_for_overdraft","applied_to_payment","funded","funding_reversed","refunded_from_payment","return_canceled","return_initiated","transferred_to_balance","unapplied_from_payment"]},{name:"unapplied_from_payment",type:"customer_balance_resource_cash_balance_transaction_resource_unapplied_from_payment_transaction",nullable:!1}],stateCandidates:[{field:"type",values:["adjusted_for_overdraft","applied_to_payment","funded","funding_reversed","refunded_from_payment","return_canceled","return_initiated","transferred_to_balance","unapplied_from_payment"]}],expandable:["adjusted_for_overdraft","applied_to_payment","customer","funded","refunded_from_payment","transferred_to_balance","unapplied_from_payment"]},{name:"customer_session",schema:"customer_session",fields:[{name:"client_secret",type:"string",nullable:!1,required:!0},{name:"components",type:"customer_session_resource_components",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"expires_at",type:"integer",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["customer_session"]}],stateCandidates:[],expandable:["components","customer"]},{name:"deleted_account",schema:"deleted_account",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["account"]}],stateCandidates:[],expandable:[]},{name:"deleted_apple_pay_domain",schema:"deleted_apple_pay_domain",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["apple_pay_domain"]}],stateCandidates:[],expandable:[]},{name:"deleted_coupon",schema:"deleted_coupon",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["coupon"]}],stateCandidates:[],expandable:[]},{name:"deleted_customer",schema:"deleted_customer",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["customer"]}],stateCandidates:[],expandable:[]},{name:"deleted_discount",schema:"deleted_discount",fields:[{name:"checkout_session",type:"string",nullable:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice",type:"string",nullable:!0},{name:"invoice_item",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["discount"]},{name:"promotion_code",type:"union",nullable:!0},{name:"source",type:"discount_source",nullable:!1,required:!0},{name:"start",type:"integer",nullable:!1,required:!0},{name:"subscription",type:"string",nullable:!0},{name:"subscription_item",type:"string",nullable:!0}],stateCandidates:[],expandable:["customer","promotion_code","source"]},{name:"deleted_external_account",schema:"deleted_external_account",fields:[{name:"currency",type:"string",nullable:!0},{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"],discriminator:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["bank_account","card"],discriminator:!0}],stateCandidates:[],expandable:[]},{name:"deleted_invoice",schema:"deleted_invoice",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["invoice"]}],stateCandidates:[],expandable:[]},{name:"deleted_invoiceitem",schema:"deleted_invoiceitem",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["invoiceitem"]}],stateCandidates:[],expandable:[]},{name:"deleted_payment_source",schema:"deleted_payment_source",fields:[{name:"currency",type:"string",nullable:!0},{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"],discriminator:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["bank_account","card"],discriminator:!0}],stateCandidates:[],expandable:[]},{name:"deleted_person",schema:"deleted_person",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["person"]}],stateCandidates:[],expandable:[]},{name:"deleted_plan",schema:"deleted_plan",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["plan"]}],stateCandidates:[],expandable:[]},{name:"deleted_product",schema:"deleted_product",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["product"]}],stateCandidates:[],expandable:[]},{name:"deleted_product_feature",schema:"deleted_product_feature",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["product_feature"]}],stateCandidates:[],expandable:[]},{name:"deleted_radar.value_list",schema:"deleted_radar.value_list",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["radar.value_list"]}],stateCandidates:[],expandable:[]},{name:"deleted_radar.value_list_item",schema:"deleted_radar.value_list_item",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["radar.value_list_item"]}],stateCandidates:[],expandable:[]},{name:"deleted_subscription_item",schema:"deleted_subscription_item",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["subscription_item"]}],stateCandidates:[],expandable:[]},{name:"deleted_tax_id",schema:"deleted_tax_id",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax_id"]}],stateCandidates:[],expandable:[]},{name:"deleted_terminal.configuration",schema:"deleted_terminal.configuration",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["terminal.configuration"]}],stateCandidates:[],expandable:[]},{name:"deleted_terminal.location",schema:"deleted_terminal.location",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["terminal.location"]}],stateCandidates:[],expandable:[]},{name:"deleted_terminal.reader",schema:"deleted_terminal.reader",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"device_type",type:"string",nullable:!1,required:!0,enum:["bbpos_chipper2x","bbpos_wisepad3","bbpos_wisepos_e","mobile_phone_reader","simulated_stripe_s700","simulated_stripe_s710","simulated_verifone_m425","simulated_verifone_p630","simulated_verifone_ux700","simulated_verifone_v660p","simulated_wisepos_e","stripe_m2","stripe_s700","stripe_s710","verifone_P400","verifone_m425","verifone_p630","verifone_ux700","verifone_v660p"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["terminal.reader"]},{name:"serial_number",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"device_type",values:["bbpos_chipper2x","bbpos_wisepad3","bbpos_wisepos_e","mobile_phone_reader","simulated_stripe_s700","simulated_stripe_s710","simulated_verifone_m425","simulated_verifone_p630","simulated_verifone_ux700","simulated_verifone_v660p","simulated_wisepos_e","stripe_m2","stripe_s700","stripe_s710","verifone_P400","verifone_m425","verifone_p630","verifone_ux700","verifone_v660p"]}],expandable:[]},{name:"deleted_test_helpers.test_clock",schema:"deleted_test_helpers.test_clock",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["test_helpers.test_clock"]}],stateCandidates:[],expandable:[]},{name:"deleted_webhook_endpoint",schema:"deleted_webhook_endpoint",fields:[{name:"deleted",type:"boolean",nullable:!1,required:!0,enum:["true"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["webhook_endpoint"]}],stateCandidates:[],expandable:[]},{name:"discount",schema:"discount",fields:[{name:"checkout_session",type:"string",nullable:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"end",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice",type:"string",nullable:!0},{name:"invoice_item",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["discount"]},{name:"promotion_code",type:"union",nullable:!0},{name:"source",type:"discount_source",nullable:!1,required:!0},{name:"start",type:"integer",nullable:!1,required:!0},{name:"subscription",type:"string",nullable:!0},{name:"subscription_item",type:"string",nullable:!0}],stateCandidates:[],expandable:["customer","promotion_code","source"]},{name:"dispute",schema:"dispute",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"balance_transactions",type:"array",nullable:!1,required:!0},{name:"charge",type:"union",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"enhanced_eligibility_types",type:"array",nullable:!1,required:!0},{name:"evidence",type:"dispute_evidence",nullable:!1,required:!0},{name:"evidence_details",type:"dispute_evidence_details",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"is_charge_refundable",type:"boolean",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["dispute"]},{name:"payment_intent",type:"union",nullable:!0},{name:"payment_method_details",type:"dispute_payment_method_details",nullable:!1},{name:"reason",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["lost","needs_response","prevented","under_review","warning_closed","warning_needs_response","warning_under_review","won"]}],stateCandidates:[{field:"is_charge_refundable",values:["false","true"]},{field:"status",values:["lost","needs_response","prevented","under_review","warning_closed","warning_needs_response","warning_under_review","won"]}],expandable:["balance_transactions","charge","evidence","evidence_details","payment_intent","payment_method_details"]},{name:"entitlements.active_entitlement",schema:"entitlements.active_entitlement",fields:[{name:"feature",type:"union",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"lookup_key",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["entitlements.active_entitlement"]}],stateCandidates:[],expandable:["feature"]},{name:"entitlements.feature",schema:"entitlements.feature",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"lookup_key",type:"string",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["entitlements.feature"]}],stateCandidates:[{field:"active",values:["false","true"]}],expandable:[]},{name:"ephemeral_key",schema:"ephemeral_key",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"expires",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["ephemeral_key"]},{name:"secret",type:"string",nullable:!1}],stateCandidates:[],expandable:[]},{name:"event",schema:"event",fields:[{name:"account",type:"string",nullable:!1},{name:"api_version",type:"string",nullable:!0},{name:"context",type:"string",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"data",type:"notification_event_data",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["event"]},{name:"pending_webhooks",type:"integer",nullable:!1,required:!0},{name:"request",type:"union",nullable:!0},{name:"type",type:"string",nullable:!1,required:!0}],stateCandidates:[],expandable:["data","request"]},{name:"exchange_rate",schema:"exchange_rate",fields:[{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["exchange_rate"]},{name:"rates",type:"object",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"external_account",schema:"external_account",fields:[{name:"account",type:"union",nullable:!0},{name:"account_holder_name",type:"string",nullable:!0},{name:"account_holder_type",type:"string",nullable:!0},{name:"account_type",type:"string",nullable:!0},{name:"address_city",type:"string",nullable:!0},{name:"address_country",type:"string",nullable:!0},{name:"address_line1",type:"string",nullable:!0},{name:"address_line1_check",type:"string",nullable:!0},{name:"address_line2",type:"string",nullable:!0},{name:"address_state",type:"string",nullable:!0},{name:"address_zip",type:"string",nullable:!0},{name:"address_zip_check",type:"string",nullable:!0},{name:"allow_redisplay",type:"string",nullable:!0,enum:["always","limited","unspecified"]},{name:"available_payout_methods",type:"array",nullable:!0},{name:"bank_name",type:"string",nullable:!0},{name:"brand",type:"string",nullable:!1},{name:"country",type:"string",nullable:!1},{name:"currency",type:"string",nullable:!1},{name:"customer",type:"union",nullable:!0},{name:"cvc_check",type:"string",nullable:!0},{name:"default_for_currency",type:"boolean",nullable:!0},{name:"dynamic_last4",type:"string",nullable:!0},{name:"exp_month",type:"integer",nullable:!1},{name:"exp_year",type:"integer",nullable:!1},{name:"fingerprint",type:"string",nullable:!0},{name:"funding",type:"string",nullable:!1},{name:"future_requirements",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"last4",type:"string",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"name",type:"string",nullable:!0},{name:"networks",type:"token_card_networks",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["bank_account","card"],discriminator:!0},{name:"regulated_status",type:"string",nullable:!0,enum:["regulated","unregulated"]},{name:"requirements",type:"union",nullable:!0},{name:"routing_number",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1},{name:"tokenization_method",type:"string",nullable:!0}],stateCandidates:[{field:"allow_redisplay",values:["always","limited","unspecified"]},{field:"regulated_status",values:["regulated","unregulated"]},{field:"status",values:[]}],expandable:[]},{name:"fee_refund",schema:"fee_refund",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"fee",type:"union",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["fee_refund"]}],stateCandidates:[],expandable:["balance_transaction","fee"]},{name:"file",schema:"file",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"expires_at",type:"integer",nullable:!0},{name:"filename",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"links",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["file"]},{name:"purpose",type:"string",nullable:!1,required:!0,enum:["account_requirement","additional_verification","business_icon","business_logo","customer_signature","dispute_evidence","document_provider_identity_document","finance_report_run","financial_account_statement","identity_document","identity_document_downloadable","issuing_regulatory_reporting","pci_document","platform_terms_of_service","selfie","sigma_scheduled_query","tax_document_user_upload","terminal_android_apk","terminal_reader_splashscreen","terminal_wifi_certificate","terminal_wifi_private_key","issuing_logo"]},{name:"size",type:"integer",nullable:!1,required:!0},{name:"title",type:"string",nullable:!0},{name:"type",type:"string",nullable:!0},{name:"url",type:"string",nullable:!0}],stateCandidates:[{field:"purpose",values:["account_requirement","additional_verification","business_icon","business_logo","customer_signature","dispute_evidence","document_provider_identity_document","finance_report_run","financial_account_statement","identity_document","identity_document_downloadable","issuing_logo","issuing_regulatory_reporting","pci_document","platform_terms_of_service","selfie","sigma_scheduled_query","tax_document_user_upload","terminal_android_apk","terminal_reader_splashscreen","terminal_wifi_certificate","terminal_wifi_private_key"]}],expandable:["links"]},{name:"file_link",schema:"file_link",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"expired",type:"boolean",nullable:!1,required:!0},{name:"expires_at",type:"integer",nullable:!0},{name:"file",type:"union",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["file_link"]},{name:"url",type:"string",nullable:!0}],stateCandidates:[],expandable:["file"]},{name:"financial_connections.account",schema:"financial_connections.account",fields:[{name:"account_holder",type:"union",nullable:!0},{name:"account_numbers",type:"array",nullable:!0},{name:"balance",type:"union",nullable:!0},{name:"balance_refresh",type:"union",nullable:!0},{name:"category",type:"string",nullable:!1,required:!0,enum:["cash","credit","investment","other"]},{name:"created",type:"integer",nullable:!1,required:!0},{name:"display_name",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"institution_name",type:"string",nullable:!1,required:!0},{name:"last4",type:"string",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["financial_connections.account"]},{name:"ownership",type:"union",nullable:!0},{name:"ownership_refresh",type:"union",nullable:!0},{name:"permissions",type:"array",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","disconnected","inactive"]},{name:"status_details",type:"bank_connections_resource_account_status_details",nullable:!1},{name:"subcategory",type:"string",nullable:!1,required:!0,enum:["checking","credit_card","line_of_credit","mortgage","other","savings"]},{name:"subscriptions",type:"array",nullable:!0},{name:"supported_payment_method_types",type:"array",nullable:!1,required:!0},{name:"transaction_refresh",type:"union",nullable:!0}],stateCandidates:[{field:"category",values:["cash","credit","investment","other"]},{field:"status",values:["active","disconnected","inactive"]},{field:"subcategory",values:["checking","credit_card","line_of_credit","mortgage","other","savings"]}],expandable:["account_holder","account_numbers","balance","balance_refresh","ownership","ownership_refresh","status_details","transaction_refresh"]},{name:"financial_connections.account_owner",schema:"financial_connections.account_owner",fields:[{name:"email",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["financial_connections.account_owner"]},{name:"ownership",type:"string",nullable:!1,required:!0},{name:"phone",type:"string",nullable:!0},{name:"raw_address",type:"string",nullable:!0},{name:"refreshed_at",type:"integer",nullable:!0}],stateCandidates:[],expandable:[]},{name:"financial_connections.session",schema:"financial_connections.session",fields:[{name:"account_holder",type:"union",nullable:!0},{name:"accounts",type:"object",nullable:!1,required:!0},{name:"bank_account_token",type:"token",nullable:!1},{name:"client_secret",type:"string",nullable:!0},{name:"filters",type:"bank_connections_resource_link_account_session_filters",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"limits",type:"bank_connections_resource_link_account_session_limits",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"manual_entry",type:"bank_connections_resource_link_account_session_manual_entry",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["financial_connections.session"]},{name:"permissions",type:"array",nullable:!1,required:!0},{name:"prefetch",type:"array",nullable:!0},{name:"return_url",type:"string",nullable:!1}],stateCandidates:[],expandable:["account_holder","accounts","bank_account_token","filters","limits","manual_entry"]},{name:"financial_connections.transaction",schema:"financial_connections.transaction",fields:[{name:"account",type:"string",nullable:!1,required:!0},{name:"amount",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["financial_connections.transaction"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["pending","posted","void"]},{name:"status_transitions",type:"bank_connections_resource_transaction_resource_status_transitions",nullable:!1,required:!0},{name:"transacted_at",type:"integer",nullable:!1,required:!0},{name:"transaction_refresh",type:"string",nullable:!1,required:!0},{name:"updated",type:"integer",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:["pending","posted","void"]}],expandable:["status_transitions"]},{name:"forwarding.request",schema:"forwarding.request",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["forwarding.request"]},{name:"payment_method",type:"string",nullable:!1,required:!0},{name:"replacements",type:"array",nullable:!1,required:!0},{name:"request_context",type:"union",nullable:!0},{name:"request_details",type:"union",nullable:!0},{name:"response_details",type:"union",nullable:!0},{name:"url",type:"string",nullable:!0}],stateCandidates:[],expandable:["request_context","request_details","response_details"]},{name:"funding_instructions",schema:"funding_instructions",fields:[{name:"bank_transfer",type:"funding_instructions_bank_transfer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"funding_type",type:"string",nullable:!1,required:!0,enum:["bank_transfer"]},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["funding_instructions"]}],stateCandidates:[],expandable:["bank_transfer"]},{name:"identity.verification_report",schema:"identity.verification_report",fields:[{name:"client_reference_id",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"document",type:"gelato_document_report",nullable:!1},{name:"email",type:"gelato_email_report",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"id_number",type:"gelato_id_number_report",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["identity.verification_report"]},{name:"options",type:"gelato_verification_report_options",nullable:!1},{name:"phone",type:"gelato_phone_report",nullable:!1},{name:"selfie",type:"gelato_selfie_report",nullable:!1},{name:"type",type:"string",nullable:!1,required:!0,enum:["document","id_number","verification_flow"]},{name:"verification_flow",type:"string",nullable:!1},{name:"verification_session",type:"string",nullable:!0}],stateCandidates:[{field:"type",values:["document","id_number","verification_flow"]}],expandable:["document","email","id_number","options","phone","selfie"]},{name:"identity.verification_session",schema:"identity.verification_session",fields:[{name:"client_reference_id",type:"string",nullable:!0},{name:"client_secret",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"last_error",type:"union",nullable:!0},{name:"last_verification_report",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["identity.verification_session"]},{name:"options",type:"union",nullable:!0},{name:"provided_details",type:"union",nullable:!0},{name:"redaction",type:"union",nullable:!0},{name:"related_customer",type:"string",nullable:!0},{name:"related_customer_account",type:"string",nullable:!0},{name:"related_person",type:"gelato_related_person",nullable:!1},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","processing","requires_input","verified"]},{name:"type",type:"string",nullable:!1,required:!0,enum:["document","id_number","verification_flow"]},{name:"url",type:"string",nullable:!0},{name:"verification_flow",type:"string",nullable:!1},{name:"verified_outputs",type:"union",nullable:!0}],stateCandidates:[{field:"status",values:["canceled","processing","requires_input","verified"]},{field:"type",values:["document","id_number","verification_flow"]}],expandable:["last_error","last_verification_report","options","provided_details","redaction","related_person","verified_outputs"]},{name:"invoice",schema:"invoice",fields:[{name:"account_country",type:"string",nullable:!0},{name:"account_name",type:"string",nullable:!0},{name:"account_tax_ids",type:"array",nullable:!0},{name:"amount_due",type:"integer",nullable:!1,required:!0},{name:"amount_overpaid",type:"integer",nullable:!1,required:!0},{name:"amount_paid",type:"integer",nullable:!1,required:!0},{name:"amount_paid_off_stripe",type:"integer",nullable:!1,required:!0},{name:"amount_remaining",type:"integer",nullable:!1,required:!0},{name:"amount_shipping",type:"integer",nullable:!1,required:!0},{name:"application",type:"union",nullable:!0},{name:"attempt_count",type:"integer",nullable:!1,required:!0},{name:"attempted",type:"boolean",nullable:!1,required:!0},{name:"auto_advance",type:"boolean",nullable:!1,required:!0},{name:"automatic_tax",type:"automatic_tax",nullable:!1,required:!0},{name:"automatically_finalizes_at",type:"integer",nullable:!0},{name:"billing_reason",type:"string",nullable:!0,enum:["automatic_pending_invoice_item_invoice","manual","quote_accept","subscription","subscription_create","subscription_cycle","subscription_threshold","subscription_update","upcoming"]},{name:"collection_method",type:"string",nullable:!1,required:!0,enum:["charge_automatically","send_invoice"]},{name:"confirmation_secret",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"custom_fields",type:"array",nullable:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"customer_address",type:"union",nullable:!0},{name:"customer_email",type:"string",nullable:!0},{name:"customer_name",type:"string",nullable:!0},{name:"customer_phone",type:"string",nullable:!0},{name:"customer_shipping",type:"union",nullable:!0},{name:"customer_tax_exempt",type:"string",nullable:!0,enum:["exempt","none","reverse"]},{name:"customer_tax_ids",type:"array",nullable:!0},{name:"default_payment_method",type:"union",nullable:!0},{name:"default_source",type:"union",nullable:!0},{name:"default_tax_rates",type:"array",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"discounts",type:"array",nullable:!1,required:!0},{name:"due_date",type:"integer",nullable:!0},{name:"effective_at",type:"integer",nullable:!0},{name:"ending_balance",type:"integer",nullable:!0},{name:"footer",type:"string",nullable:!0},{name:"from_invoice",type:"union",nullable:!0},{name:"hosted_invoice_url",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice_pdf",type:"string",nullable:!0},{name:"issuer",type:"connect_account_reference",nullable:!1,required:!0},{name:"last_finalization_error",type:"union",nullable:!0},{name:"latest_revision",type:"union",nullable:!0},{name:"lines",type:"object",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"next_payment_attempt",type:"integer",nullable:!0},{name:"number",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["invoice"]},{name:"on_behalf_of",type:"union",nullable:!0},{name:"parent",type:"union",nullable:!0},{name:"payment_settings",type:"invoices_payment_settings",nullable:!1,required:!0},{name:"payments",type:"object",nullable:!1},{name:"period_end",type:"integer",nullable:!1,required:!0},{name:"period_start",type:"integer",nullable:!1,required:!0},{name:"post_payment_credit_notes_amount",type:"integer",nullable:!1,required:!0},{name:"pre_payment_credit_notes_amount",type:"integer",nullable:!1,required:!0},{name:"receipt_number",type:"string",nullable:!0},{name:"rendering",type:"union",nullable:!0},{name:"shipping_cost",type:"union",nullable:!0},{name:"shipping_details",type:"union",nullable:!0},{name:"starting_balance",type:"integer",nullable:!1,required:!0},{name:"statement_descriptor",type:"string",nullable:!0},{name:"status",type:"string",nullable:!0,enum:["draft","open","paid","uncollectible","void"]},{name:"status_details",type:"invoices_resource_status_details",nullable:!1},{name:"status_transitions",type:"invoices_resource_status_transitions",nullable:!1,required:!0},{name:"subtotal",type:"integer",nullable:!1,required:!0},{name:"subtotal_excluding_tax",type:"integer",nullable:!0},{name:"test_clock",type:"union",nullable:!0},{name:"threshold_reason",type:"invoice_threshold_reason",nullable:!1},{name:"total",type:"integer",nullable:!1,required:!0},{name:"total_discount_amounts",type:"array",nullable:!0},{name:"total_excluding_tax",type:"integer",nullable:!0},{name:"total_pretax_credit_amounts",type:"array",nullable:!0},{name:"total_taxes",type:"array",nullable:!0},{name:"webhooks_delivered_at",type:"integer",nullable:!0}],stateCandidates:[{field:"billing_reason",values:["automatic_pending_invoice_item_invoice","manual","quote_accept","subscription","subscription_create","subscription_cycle","subscription_threshold","subscription_update","upcoming"]},{field:"collection_method",values:["charge_automatically","send_invoice"]},{field:"customer_tax_exempt",values:["exempt","none","reverse"]},{field:"status",values:["draft","open","paid","uncollectible","void"]}],expandable:["account_tax_ids","application","automatic_tax","confirmation_secret","custom_fields","customer","customer_address","customer_shipping","customer_tax_ids","default_payment_method","default_source","default_tax_rates","discounts","from_invoice","issuer","last_finalization_error","latest_revision","lines","on_behalf_of","parent","payment_settings","payments","rendering","shipping_cost","shipping_details","status_details","status_transitions","test_clock","threshold_reason","total_discount_amounts","total_pretax_credit_amounts","total_taxes"]},{name:"invoice_payment",schema:"invoice_payment",fields:[{name:"amount_paid",type:"integer",nullable:!0},{name:"amount_requested",type:"integer",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice",type:"union",nullable:!1,required:!0},{name:"is_default",type:"boolean",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["invoice_payment"]},{name:"payment",type:"invoices_payments_invoice_payment_associated_payment",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"status_transitions",type:"invoices_payments_invoice_payment_status_transitions",nullable:!1,required:!0}],stateCandidates:[{field:"is_default",values:["false","true"]},{field:"status",values:[]}],expandable:["invoice","payment","status_transitions"]},{name:"invoice_rendering_template",schema:"invoice_rendering_template",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"nickname",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["invoice_rendering_template"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","archived"]},{name:"version",type:"integer",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:["active","archived"]}],expandable:[]},{name:"invoiceitem",schema:"invoiceitem",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"date",type:"integer",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"discountable",type:"boolean",nullable:!1,required:!0},{name:"discounts",type:"array",nullable:!0},{name:"frozen_fields",type:"array",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice",type:"union",nullable:!0},{name:"invoicing_rules",type:"array",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"net_amount",type:"integer",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["invoiceitem"]},{name:"parent",type:"union",nullable:!0},{name:"period",type:"invoice_line_item_period",nullable:!1,required:!0},{name:"pricing",type:"union",nullable:!0},{name:"proration",type:"boolean",nullable:!1,required:!0},{name:"proration_details",type:"proration_details",nullable:!1},{name:"quantity",type:"integer",nullable:!1,required:!0},{name:"quantity_decimal",type:"string",nullable:!1,required:!0},{name:"tax_rates",type:"array",nullable:!0},{name:"test_clock",type:"union",nullable:!0}],stateCandidates:[],expandable:["customer","discounts","invoice","invoicing_rules","parent","period","pricing","proration_details","tax_rates","test_clock"]},{name:"issuing.authorization",schema:"issuing.authorization",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"amount_details",type:"union",nullable:!0},{name:"approved",type:"boolean",nullable:!1,required:!0},{name:"authorization_method",type:"string",nullable:!1,required:!0,enum:["chip","contactless","keyed_in","online","swipe"]},{name:"balance_transactions",type:"array",nullable:!1,required:!0},{name:"card",type:"issuing.card",nullable:!1,required:!0},{name:"card_presence",type:"string",nullable:!0,enum:["not_present","present"]},{name:"cardholder",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"fleet",type:"union",nullable:!0},{name:"fraud_challenges",type:"array",nullable:!0},{name:"fuel",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"merchant_amount",type:"integer",nullable:!1,required:!0},{name:"merchant_currency",type:"string",nullable:!1,required:!0},{name:"merchant_data",type:"issuing_authorization_merchant_data",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"network_data",type:"union",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.authorization"]},{name:"pending_request",type:"union",nullable:!0},{name:"request_history",type:"array",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["closed","expired","pending","reversed"]},{name:"token",type:"union",nullable:!0},{name:"transactions",type:"array",nullable:!1,required:!0},{name:"treasury",type:"union",nullable:!0},{name:"verification_data",type:"issuing_authorization_verification_data",nullable:!1,required:!0},{name:"verified_by_fraud_challenge",type:"boolean",nullable:!0},{name:"wallet",type:"string",nullable:!0}],stateCandidates:[{field:"authorization_method",values:["chip","contactless","keyed_in","online","swipe"]},{field:"card_presence",values:["not_present","present"]},{field:"status",values:["closed","expired","pending","reversed"]}],expandable:["amount_details","balance_transactions","card","cardholder","fleet","fraud_challenges","fuel","merchant_data","network_data","pending_request","request_history","token","transactions","treasury","verification_data"]},{name:"issuing.card",schema:"issuing.card",fields:[{name:"brand",type:"string",nullable:!1,required:!0},{name:"cancellation_reason",type:"string",nullable:!0,enum:["design_rejected","fulfillment_error","lost","stolen"]},{name:"cardholder",type:"issuing.cardholder",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"cvc",type:"string",nullable:!1},{name:"exp_month",type:"integer",nullable:!1,required:!0},{name:"exp_year",type:"integer",nullable:!1,required:!0},{name:"financial_account",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"last4",type:"string",nullable:!1,required:!0},{name:"latest_fraud_warning",type:"union",nullable:!0},{name:"lifecycle_controls",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"number",type:"string",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.card"]},{name:"personalization_design",type:"union",nullable:!0},{name:"replaced_by",type:"union",nullable:!0},{name:"replacement_for",type:"union",nullable:!0},{name:"replacement_reason",type:"string",nullable:!0,enum:["damaged","expired","fulfillment_error","lost","stolen"]},{name:"second_line",type:"string",nullable:!0},{name:"shipping",type:"union",nullable:!0},{name:"spending_controls",type:"issuing_card_authorization_controls",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","canceled","inactive"]},{name:"type",type:"string",nullable:!1,required:!0,enum:["physical","virtual"]},{name:"wallets",type:"union",nullable:!0}],stateCandidates:[{field:"cancellation_reason",values:["design_rejected","fulfillment_error","lost","stolen"]},{field:"replacement_reason",values:["damaged","expired","fulfillment_error","lost","stolen"]},{field:"status",values:["active","canceled","inactive"]},{field:"type",values:["physical","virtual"]}],expandable:["cardholder","latest_fraud_warning","lifecycle_controls","personalization_design","replaced_by","replacement_for","shipping","spending_controls","wallets"]},{name:"issuing.cardholder",schema:"issuing.cardholder",fields:[{name:"billing",type:"issuing_cardholder_address",nullable:!1,required:!0},{name:"company",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"email",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"individual",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.cardholder"]},{name:"phone_number",type:"string",nullable:!0},{name:"preferred_locales",type:"array",nullable:!0},{name:"requirements",type:"issuing_cardholder_requirements",nullable:!1,required:!0},{name:"spending_controls",type:"union",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","blocked","inactive"]},{name:"type",type:"string",nullable:!1,required:!0,enum:["company","individual"]}],stateCandidates:[{field:"status",values:["active","blocked","inactive"]},{field:"type",values:["company","individual"]}],expandable:["billing","company","individual","requirements","spending_controls"]},{name:"issuing.dispute",schema:"issuing.dispute",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"balance_transactions",type:"array",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"evidence",type:"issuing_dispute_evidence",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"loss_reason",type:"string",nullable:!1,enum:["cardholder_authentication_issuer_liability","eci5_token_transaction_with_tavv","excess_disputes_in_timeframe","has_not_met_the_minimum_dispute_amount_requirements","invalid_duplicate_dispute","invalid_incorrect_amount_dispute","invalid_no_authorization","invalid_use_of_disputes","merchandise_delivered_or_shipped","merchandise_or_service_as_described","not_cancelled","other","refund_issued","submitted_beyond_allowable_time_limit","transaction_3ds_required","transaction_approved_after_prior_fraud_dispute","transaction_authorized","transaction_electronically_read","transaction_qualifies_for_visa_easy_payment_service","transaction_unattended"]},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.dispute"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["expired","lost","submitted","unsubmitted","won"]},{name:"transaction",type:"union",nullable:!1,required:!0},{name:"treasury",type:"union",nullable:!0}],stateCandidates:[{field:"loss_reason",values:["cardholder_authentication_issuer_liability","eci5_token_transaction_with_tavv","excess_disputes_in_timeframe","has_not_met_the_minimum_dispute_amount_requirements","invalid_duplicate_dispute","invalid_incorrect_amount_dispute","invalid_no_authorization","invalid_use_of_disputes","merchandise_delivered_or_shipped","merchandise_or_service_as_described","not_cancelled","other","refund_issued","submitted_beyond_allowable_time_limit","transaction_3ds_required","transaction_approved_after_prior_fraud_dispute","transaction_authorized","transaction_electronically_read","transaction_qualifies_for_visa_easy_payment_service","transaction_unattended"]},{field:"status",values:["expired","lost","submitted","unsubmitted","won"]}],expandable:["balance_transactions","evidence","transaction","treasury"]},{name:"issuing.personalization_design",schema:"issuing.personalization_design",fields:[{name:"card_logo",type:"union",nullable:!0},{name:"carrier_text",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"lookup_key",type:"string",nullable:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"name",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.personalization_design"]},{name:"physical_bundle",type:"union",nullable:!1,required:!0},{name:"preferences",type:"issuing_personalization_design_preferences",nullable:!1,required:!0},{name:"rejection_reasons",type:"issuing_personalization_design_rejection_reasons",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","inactive","rejected","review"]}],stateCandidates:[{field:"status",values:["active","inactive","rejected","review"]}],expandable:["card_logo","carrier_text","physical_bundle","preferences","rejection_reasons"]},{name:"issuing.physical_bundle",schema:"issuing.physical_bundle",fields:[{name:"features",type:"issuing_physical_bundle_features",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.physical_bundle"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","inactive","review"]},{name:"type",type:"string",nullable:!1,required:!0,enum:["custom","standard"]}],stateCandidates:[{field:"status",values:["active","inactive","review"]},{field:"type",values:["custom","standard"]}],expandable:["features"]},{name:"issuing.settlement",schema:"issuing.settlement",fields:[{name:"bin",type:"string",nullable:!1,required:!0},{name:"clearing_date",type:"integer",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"interchange_fees_amount",type:"integer",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"net_total_amount",type:"integer",nullable:!1,required:!0},{name:"network",type:"string",nullable:!1,required:!0,enum:["maestro","mastercard","visa"]},{name:"network_fees_amount",type:"integer",nullable:!1,required:!0},{name:"network_settlement_identifier",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.settlement"]},{name:"settlement_service",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["complete","pending"]},{name:"transaction_amount",type:"integer",nullable:!1,required:!0},{name:"transaction_count",type:"integer",nullable:!1,required:!0}],stateCandidates:[{field:"network",values:["maestro","mastercard","visa"]},{field:"status",values:["complete","pending"]}],expandable:[]},{name:"issuing.token",schema:"issuing.token",fields:[{name:"card",type:"union",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"device_fingerprint",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"last4",type:"string",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"network",type:"string",nullable:!1,required:!0,enum:["mastercard","visa"]},{name:"network_data",type:"issuing_network_token_network_data",nullable:!1},{name:"network_updated_at",type:"integer",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.token"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","deleted","requested","suspended"]},{name:"wallet_provider",type:"string",nullable:!1,enum:["apple_pay","google_pay","samsung_pay"]}],stateCandidates:[{field:"network",values:["mastercard","visa"]},{field:"status",values:["active","deleted","requested","suspended"]},{field:"wallet_provider",values:["apple_pay","google_pay","samsung_pay"]}],expandable:["card","network_data"]},{name:"issuing.transaction",schema:"issuing.transaction",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"amount_details",type:"union",nullable:!0},{name:"authorization",type:"union",nullable:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"card",type:"union",nullable:!1,required:!0},{name:"cardholder",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"dispute",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"merchant_amount",type:"integer",nullable:!1,required:!0},{name:"merchant_currency",type:"string",nullable:!1,required:!0},{name:"merchant_data",type:"issuing_authorization_merchant_data",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"network_data",type:"union",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["issuing.transaction"]},{name:"purchase_details",type:"union",nullable:!0},{name:"token",type:"union",nullable:!0},{name:"treasury",type:"union",nullable:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["capture","refund"]},{name:"wallet",type:"string",nullable:!0,enum:["apple_pay","google_pay","samsung_pay"]}],stateCandidates:[{field:"type",values:["capture","refund"]},{field:"wallet",values:["apple_pay","google_pay","samsung_pay"]}],expandable:["amount_details","authorization","balance_transaction","card","cardholder","dispute","merchant_data","network_data","purchase_details","token","treasury"]},{name:"item",schema:"item",fields:[{name:"adjustable_quantity",type:"union",nullable:!0},{name:"amount_discount",type:"integer",nullable:!1,required:!0},{name:"amount_subtotal",type:"integer",nullable:!1,required:!0},{name:"amount_tax",type:"integer",nullable:!1,required:!0},{name:"amount_total",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"discounts",type:"array",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["item"]},{name:"price",type:"union",nullable:!0},{name:"quantity",type:"integer",nullable:!0},{name:"taxes",type:"array",nullable:!1}],stateCandidates:[],expandable:["adjustable_quantity","discounts","price","taxes"]},{name:"line_item",schema:"line_item",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"discount_amounts",type:"array",nullable:!0},{name:"discountable",type:"boolean",nullable:!1,required:!0},{name:"discounts",type:"array",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice",type:"string",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["line_item"]},{name:"parent",type:"union",nullable:!0},{name:"period",type:"invoice_line_item_period",nullable:!1,required:!0},{name:"pretax_credit_amounts",type:"array",nullable:!0},{name:"pricing",type:"union",nullable:!0},{name:"quantity",type:"integer",nullable:!0},{name:"quantity_decimal",type:"string",nullable:!0},{name:"subscription",type:"union",nullable:!0},{name:"subtotal",type:"integer",nullable:!1,required:!0},{name:"taxes",type:"array",nullable:!0}],stateCandidates:[],expandable:["discount_amounts","discounts","parent","period","pretax_credit_amounts","pricing","subscription","taxes"]},{name:"login_link",schema:"login_link",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["login_link"]},{name:"url",type:"string",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"mandate",schema:"mandate",fields:[{name:"customer_acceptance",type:"customer_acceptance",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"multi_use",type:"mandate_multi_use",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["mandate"]},{name:"on_behalf_of",type:"string",nullable:!1},{name:"payment_method",type:"union",nullable:!1,required:!0},{name:"payment_method_details",type:"mandate_payment_method_details",nullable:!1,required:!0},{name:"single_use",type:"mandate_single_use",nullable:!1},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","inactive","pending"]},{name:"type",type:"string",nullable:!1,required:!0,enum:["multi_use","single_use"]}],stateCandidates:[{field:"status",values:["active","inactive","pending"]},{field:"type",values:["multi_use","single_use"]}],expandable:["customer_acceptance","multi_use","payment_method","payment_method_details","single_use"]},{name:"payment_attempt_record",schema:"payment_attempt_record",fields:[{name:"amount",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_authorized",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_canceled",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_failed",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_guaranteed",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_refunded",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_requested",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"application",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer_details",type:"union",nullable:!0},{name:"customer_presence",type:"string",nullable:!0,enum:["off_session","on_session"]},{name:"description",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["payment_attempt_record"]},{name:"payment_method_details",type:"union",nullable:!0},{name:"payment_record",type:"string",nullable:!0},{name:"processor_details",type:"payments_primitives_payment_records_resource_processor_details",nullable:!1,required:!0},{name:"reported_by",type:"string",nullable:!1,required:!0,enum:["self","stripe"]},{name:"shipping_details",type:"union",nullable:!0}],stateCandidates:[{field:"customer_presence",values:["off_session","on_session"]},{field:"reported_by",values:["self","stripe"]}],expandable:["amount","amount_authorized","amount_canceled","amount_failed","amount_guaranteed","amount_refunded","amount_requested","customer_details","payment_method_details","processor_details","shipping_details"]},{name:"payment_intent",schema:"payment_intent",fields:[{name:"allowed_payment_method_types",type:"array",nullable:!0},{name:"amount",type:"integer",nullable:!1},{name:"amount_capturable",type:"integer",nullable:!1},{name:"amount_details",type:"union",nullable:!1},{name:"amount_received",type:"integer",nullable:!1},{name:"application",type:"union",nullable:!0},{name:"application_fee_amount",type:"integer",nullable:!0},{name:"automatic_payment_methods",type:"union",nullable:!0},{name:"canceled_at",type:"integer",nullable:!0},{name:"cancellation_reason",type:"string",nullable:!0,enum:["abandoned","automatic","duplicate","expired","failed_invoice","fraudulent","requested_by_customer","void_invoice"]},{name:"capture_method",type:"string",nullable:!1,enum:["automatic","automatic_async","manual"]},{name:"client_secret",type:"string",nullable:!0},{name:"confirmation_method",type:"string",nullable:!1,enum:["automatic","manual"]},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"description",type:"string",nullable:!0},{name:"excluded_payment_method_types",type:"array",nullable:!0},{name:"hooks",type:"payment_flows_payment_intent_async_workflows",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"last_payment_error",type:"union",nullable:!0},{name:"latest_charge",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"managed_payments",type:"union",nullable:!0},{name:"metadata",type:"object",nullable:!1},{name:"next_action",type:"union",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["payment_intent"]},{name:"on_behalf_of",type:"union",nullable:!0},{name:"payment_details",type:"payment_flows_payment_details",nullable:!1},{name:"payment_method",type:"union",nullable:!0},{name:"payment_method_configuration_details",type:"union",nullable:!0},{name:"payment_method_options",type:"union",nullable:!0},{name:"payment_method_types",type:"array",nullable:!1},{name:"payment_record",type:"union",nullable:!0},{name:"presentment_details",type:"payment_flows_payment_intent_presentment_details",nullable:!1},{name:"processing",type:"union",nullable:!0},{name:"receipt_email",type:"string",nullable:!0},{name:"review",type:"union",nullable:!0},{name:"setup_future_usage",type:"string",nullable:!0,enum:["off_session","on_session"]},{name:"shipping",type:"union",nullable:!0},{name:"statement_descriptor",type:"string",nullable:!0},{name:"statement_descriptor_suffix",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","processing","requires_action","requires_capture","requires_confirmation","requires_payment_method","succeeded"]},{name:"transfer_data",type:"union",nullable:!0},{name:"transfer_group",type:"string",nullable:!0}],stateCandidates:[{field:"cancellation_reason",values:["abandoned","automatic","duplicate","expired","failed_invoice","fraudulent","requested_by_customer","void_invoice"]},{field:"capture_method",values:["automatic","automatic_async","manual"]},{field:"confirmation_method",values:["automatic","manual"]},{field:"setup_future_usage",values:["off_session","on_session"]},{field:"status",values:["canceled","processing","requires_action","requires_capture","requires_confirmation","requires_payment_method","succeeded"]}],expandable:["amount_details","application","automatic_payment_methods","customer","hooks","last_payment_error","latest_charge","managed_payments","next_action","on_behalf_of","payment_details","payment_method","payment_method_configuration_details","payment_method_options","payment_record","presentment_details","processing","review","shipping","transfer_data"]},{name:"payment_intent_amount_details_line_item",schema:"payment_intent_amount_details_line_item",fields:[{name:"discount_amount",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["payment_intent_amount_details_line_item"]},{name:"payment_method_options",type:"union",nullable:!0},{name:"product_code",type:"string",nullable:!0},{name:"product_name",type:"string",nullable:!1,required:!0},{name:"quantity",type:"integer",nullable:!1,required:!0},{name:"tax",type:"union",nullable:!0},{name:"unit_cost",type:"integer",nullable:!1,required:!0},{name:"unit_of_measure",type:"string",nullable:!0}],stateCandidates:[],expandable:["payment_method_options","tax"]},{name:"payment_link",schema:"payment_link",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"after_completion",type:"payment_links_resource_after_completion",nullable:!1,required:!0},{name:"allow_promotion_codes",type:"boolean",nullable:!1,required:!0},{name:"application",type:"union",nullable:!0},{name:"application_fee_amount",type:"integer",nullable:!0},{name:"application_fee_percent",type:"number",nullable:!0},{name:"automatic_tax",type:"payment_links_resource_automatic_tax",nullable:!1,required:!0},{name:"billing_address_collection",type:"string",nullable:!1,required:!0,enum:["auto","required"]},{name:"consent_collection",type:"union",nullable:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"custom_fields",type:"array",nullable:!1,required:!0},{name:"custom_text",type:"payment_links_resource_custom_text",nullable:!1,required:!0},{name:"customer_creation",type:"string",nullable:!1,required:!0,enum:["always","if_required"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"inactive_message",type:"string",nullable:!0},{name:"invoice_creation",type:"union",nullable:!0},{name:"line_items",type:"object",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"managed_payments",type:"union",nullable:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"name_collection",type:"payment_links_resource_name_collection",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["payment_link"]},{name:"on_behalf_of",type:"union",nullable:!0},{name:"optional_items",type:"array",nullable:!0},{name:"payment_intent_data",type:"union",nullable:!0},{name:"payment_method_collection",type:"string",nullable:!1,required:!0,enum:["always","if_required"]},{name:"payment_method_options",type:"union",nullable:!0},{name:"payment_method_types",type:"array",nullable:!0},{name:"phone_number_collection",type:"payment_links_resource_phone_number_collection",nullable:!1,required:!0},{name:"restrictions",type:"union",nullable:!0},{name:"shipping_address_collection",type:"union",nullable:!0},{name:"shipping_options",type:"array",nullable:!1,required:!0},{name:"submit_type",type:"string",nullable:!1,required:!0,enum:["auto","book","donate","pay","subscribe"]},{name:"subscription_data",type:"union",nullable:!0},{name:"tax_id_collection",type:"payment_links_resource_tax_id_collection",nullable:!1,required:!0},{name:"transfer_data",type:"union",nullable:!0},{name:"url",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"active",values:["false","true"]},{field:"billing_address_collection",values:["auto","required"]},{field:"customer_creation",values:["always","if_required"]},{field:"payment_method_collection",values:["always","if_required"]},{field:"submit_type",values:["auto","book","donate","pay","subscribe"]}],expandable:["after_completion","application","automatic_tax","consent_collection","custom_fields","custom_text","invoice_creation","line_items","managed_payments","name_collection","on_behalf_of","optional_items","payment_intent_data","payment_method_options","phone_number_collection","restrictions","shipping_address_collection","shipping_options","subscription_data","tax_id_collection","transfer_data"]},{name:"payment_method",schema:"payment_method",fields:[{name:"acss_debit",type:"payment_method_acss_debit",nullable:!1},{name:"affirm",type:"payment_method_affirm",nullable:!1},{name:"afterpay_clearpay",type:"payment_method_afterpay_clearpay",nullable:!1},{name:"alipay",type:"payment_flows_private_payment_methods_alipay",nullable:!1},{name:"allow_redisplay",type:"string",nullable:!1,enum:["always","limited","unspecified"]},{name:"alma",type:"payment_method_alma",nullable:!1},{name:"amazon_pay",type:"payment_method_amazon_pay",nullable:!1},{name:"au_becs_debit",type:"payment_method_au_becs_debit",nullable:!1},{name:"bacs_debit",type:"payment_method_bacs_debit",nullable:!1},{name:"bancontact",type:"payment_method_bancontact",nullable:!1},{name:"billie",type:"payment_method_billie",nullable:!1},{name:"billing_details",type:"billing_details",nullable:!1,required:!0},{name:"bizum",type:"payment_method_bizum",nullable:!1},{name:"blik",type:"payment_method_blik",nullable:!1},{name:"boleto",type:"payment_method_boleto",nullable:!1},{name:"card",type:"payment_method_card",nullable:!1},{name:"card_present",type:"payment_method_card_present",nullable:!1},{name:"cashapp",type:"payment_method_cashapp",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"crypto",type:"payment_method_crypto",nullable:!1},{name:"custom",type:"payment_method_custom",nullable:!1},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"customer_balance",type:"payment_method_customer_balance",nullable:!1},{name:"eps",type:"payment_method_eps",nullable:!1},{name:"fpx",type:"payment_method_fpx",nullable:!1},{name:"giropay",type:"payment_method_giropay",nullable:!1},{name:"grabpay",type:"payment_method_grabpay",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"ideal",type:"payment_method_ideal",nullable:!1},{name:"interac_present",type:"payment_method_interac_present",nullable:!1},{name:"kakao_pay",type:"payment_method_kakao_pay",nullable:!1},{name:"klarna",type:"payment_method_klarna",nullable:!1},{name:"konbini",type:"payment_method_konbini",nullable:!1},{name:"kr_card",type:"payment_method_kr_card",nullable:!1},{name:"link",type:"payment_method_link",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"mb_way",type:"payment_method_mb_way",nullable:!1},{name:"metadata",type:"object",nullable:!0},{name:"mobilepay",type:"payment_method_mobilepay",nullable:!1},{name:"multibanco",type:"payment_method_multibanco",nullable:!1},{name:"naver_pay",type:"payment_method_naver_pay",nullable:!1},{name:"nz_bank_account",type:"payment_method_nz_bank_account",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["payment_method"]},{name:"oxxo",type:"payment_method_oxxo",nullable:!1},{name:"p24",type:"payment_method_p24",nullable:!1},{name:"pay_by_bank",type:"payment_method_pay_by_bank",nullable:!1},{name:"payco",type:"payment_method_payco",nullable:!1},{name:"paynow",type:"payment_method_paynow",nullable:!1},{name:"paypal",type:"payment_method_paypal",nullable:!1},{name:"paypay",type:"payment_method_paypay",nullable:!1},{name:"payto",type:"payment_method_payto",nullable:!1},{name:"pix",type:"payment_method_pix",nullable:!1},{name:"promptpay",type:"payment_method_promptpay",nullable:!1},{name:"radar_options",type:"radar_radar_options",nullable:!1},{name:"revolut_pay",type:"payment_method_revolut_pay",nullable:!1},{name:"samsung_pay",type:"payment_method_samsung_pay",nullable:!1},{name:"satispay",type:"payment_method_satispay",nullable:!1},{name:"scalapay",type:"payment_method_scalapay",nullable:!1},{name:"sepa_debit",type:"payment_method_sepa_debit",nullable:!1},{name:"sequra",type:"payment_method_sequra",nullable:!1},{name:"sofort",type:"payment_method_sofort",nullable:!1},{name:"sunbit",type:"payment_method_sunbit",nullable:!1},{name:"swish",type:"payment_method_swish",nullable:!1},{name:"twint",type:"payment_method_twint",nullable:!1},{name:"type",type:"string",nullable:!1,required:!0,enum:["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","bizum","blik","boleto","card","card_present","cashapp","crypto","custom","customer_balance","eps","fpx","giropay","grabpay","ideal","interac_present","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","paypay","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","scalapay","sepa_debit","sequra","sofort","sunbit","swish","twint","upi","us_bank_account","wechat_pay","zip"]},{name:"upi",type:"payment_method_upi",nullable:!1},{name:"us_bank_account",type:"payment_method_us_bank_account",nullable:!1},{name:"wechat_pay",type:"payment_method_wechat_pay",nullable:!1},{name:"zip",type:"payment_method_zip",nullable:!1}],stateCandidates:[{field:"allow_redisplay",values:["always","limited","unspecified"]},{field:"type",values:["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","bizum","blik","boleto","card","card_present","cashapp","crypto","custom","customer_balance","eps","fpx","giropay","grabpay","ideal","interac_present","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","paypay","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","scalapay","sepa_debit","sequra","sofort","sunbit","swish","twint","upi","us_bank_account","wechat_pay","zip"]}],expandable:["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","billing_details","bizum","blik","boleto","card","card_present","cashapp","crypto","custom","customer","customer_balance","eps","fpx","giropay","grabpay","ideal","interac_present","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","paypay","payto","pix","promptpay","radar_options","revolut_pay","samsung_pay","satispay","scalapay","sepa_debit","sequra","sofort","sunbit","swish","twint","upi","us_bank_account","wechat_pay","zip"]},{name:"payment_method_configuration",schema:"payment_method_configuration",fields:[{name:"acss_debit",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"active",type:"boolean",nullable:!1,required:!0},{name:"affirm",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"afterpay_clearpay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"alipay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"alma",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"amazon_pay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"apple_pay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"application",type:"string",nullable:!0},{name:"au_becs_debit",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"bacs_debit",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"bancontact",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"billie",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"bizum",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"blik",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"boleto",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"card",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"cartes_bancaires",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"cashapp",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"crypto",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"customer_balance",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"eps",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"fpx",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"giropay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"google_pay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"grabpay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"ideal",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"is_default",type:"boolean",nullable:!1,required:!0},{name:"jcb",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"kakao_pay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"klarna",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"konbini",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"kr_card",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"link",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"mb_way",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"mobilepay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"multibanco",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"name",type:"string",nullable:!1,required:!0},{name:"naver_pay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"nz_bank_account",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["payment_method_configuration"]},{name:"oxxo",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"p24",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"parent",type:"string",nullable:!0},{name:"pay_by_bank",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"payco",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"paynow",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"paypal",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"paypay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"payto",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"pix",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"promptpay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"revolut_pay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"samsung_pay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"satispay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"scalapay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"sepa_debit",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"sequra",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"sofort",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"sunbit",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"swish",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"twint",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"upi",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"us_bank_account",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"wechat_pay",type:"payment_method_config_resource_payment_method_properties",nullable:!1},{name:"zip",type:"payment_method_config_resource_payment_method_properties",nullable:!1}],stateCandidates:[{field:"active",values:["false","true"]},{field:"is_default",values:["false","true"]}],expandable:["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","apple_pay","au_becs_debit","bacs_debit","bancontact","billie","bizum","blik","boleto","card","cartes_bancaires","cashapp","crypto","customer_balance","eps","fpx","giropay","google_pay","grabpay","ideal","jcb","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","paypay","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","scalapay","sepa_debit","sequra","sofort","sunbit","swish","twint","upi","us_bank_account","wechat_pay","zip"]},{name:"payment_method_domain",schema:"payment_method_domain",fields:[{name:"amazon_pay",type:"payment_method_domain_resource_payment_method_status",nullable:!1,required:!0},{name:"apple_pay",type:"payment_method_domain_resource_payment_method_status",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"domain_name",type:"string",nullable:!1,required:!0},{name:"enabled",type:"boolean",nullable:!1,required:!0},{name:"google_pay",type:"payment_method_domain_resource_payment_method_status",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"klarna",type:"payment_method_domain_resource_payment_method_status",nullable:!1,required:!0},{name:"link",type:"payment_method_domain_resource_payment_method_status",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["payment_method_domain"]},{name:"paypal",type:"payment_method_domain_resource_payment_method_status",nullable:!1,required:!0}],stateCandidates:[],expandable:["amazon_pay","apple_pay","google_pay","klarna","link","paypal"]},{name:"payment_record",schema:"payment_record",fields:[{name:"amount",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_authorized",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_canceled",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_failed",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_guaranteed",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_refunded",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"amount_requested",type:"payments_primitives_payment_records_resource_amount",nullable:!1,required:!0},{name:"application",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer_details",type:"union",nullable:!0},{name:"customer_presence",type:"string",nullable:!0,enum:["off_session","on_session"]},{name:"description",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"latest_payment_attempt_record",type:"string",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["payment_record"]},{name:"payment_method_details",type:"union",nullable:!0},{name:"processor_details",type:"payments_primitives_payment_records_resource_processor_details",nullable:!1,required:!0},{name:"reported_by",type:"string",nullable:!1,required:!0,enum:["self","stripe"]},{name:"shipping_details",type:"union",nullable:!0}],stateCandidates:[{field:"customer_presence",values:["off_session","on_session"]},{field:"reported_by",values:["self","stripe"]}],expandable:["amount","amount_authorized","amount_canceled","amount_failed","amount_guaranteed","amount_refunded","amount_requested","customer_details","payment_method_details","processor_details","shipping_details"]},{name:"payment_source",schema:"payment_source",fields:[{name:"account",type:"union",nullable:!0},{name:"account_holder_name",type:"string",nullable:!0},{name:"account_holder_type",type:"string",nullable:!0},{name:"account_type",type:"string",nullable:!0},{name:"ach_credit_transfer",type:"source_type_ach_credit_transfer",nullable:!1},{name:"ach_debit",type:"source_type_ach_debit",nullable:!1},{name:"acss_debit",type:"source_type_acss_debit",nullable:!1},{name:"address_city",type:"string",nullable:!0},{name:"address_country",type:"string",nullable:!0},{name:"address_line1",type:"string",nullable:!0},{name:"address_line1_check",type:"string",nullable:!0},{name:"address_line2",type:"string",nullable:!0},{name:"address_state",type:"string",nullable:!0},{name:"address_zip",type:"string",nullable:!0},{name:"address_zip_check",type:"string",nullable:!0},{name:"alipay",type:"source_type_alipay",nullable:!1},{name:"allow_redisplay",type:"string",nullable:!0,enum:["always","limited","unspecified"]},{name:"amount",type:"integer",nullable:!0},{name:"au_becs_debit",type:"source_type_au_becs_debit",nullable:!1},{name:"available_payout_methods",type:"array",nullable:!0},{name:"bancontact",type:"source_type_bancontact",nullable:!1},{name:"bank_name",type:"string",nullable:!0},{name:"brand",type:"string",nullable:!1},{name:"business_profile",type:"union",nullable:!0},{name:"business_type",type:"string",nullable:!0,enum:["company","government_entity","individual","non_profit"]},{name:"capabilities",type:"account_capabilities",nullable:!1},{name:"card",type:"source_type_card",nullable:!1},{name:"card_present",type:"source_type_card_present",nullable:!1},{name:"charges_enabled",type:"boolean",nullable:!1},{name:"client_secret",type:"string",nullable:!1},{name:"code_verification",type:"source_code_verification_flow",nullable:!1},{name:"company",type:"legal_entity_company",nullable:!1},{name:"controller",type:"account_unification_account_controller",nullable:!1},{name:"country",type:"string",nullable:!1},{name:"created",type:"integer",nullable:!1},{name:"currency",type:"string",nullable:!1},{name:"customer",type:"union",nullable:!0},{name:"cvc_check",type:"string",nullable:!0},{name:"default_currency",type:"string",nullable:!1},{name:"default_for_currency",type:"boolean",nullable:!0},{name:"details_submitted",type:"boolean",nullable:!1},{name:"dynamic_last4",type:"string",nullable:!0},{name:"email",type:"string",nullable:!0},{name:"eps",type:"source_type_eps",nullable:!1},{name:"exp_month",type:"integer",nullable:!1},{name:"exp_year",type:"integer",nullable:!1},{name:"external_accounts",type:"object",nullable:!1},{name:"fingerprint",type:"string",nullable:!0},{name:"flow",type:"string",nullable:!1},{name:"funding",type:"string",nullable:!1},{name:"future_requirements",type:"account_future_requirements",nullable:!1},{name:"giropay",type:"source_type_giropay",nullable:!1},{name:"groups",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"ideal",type:"source_type_ideal",nullable:!1},{name:"individual",type:"person",nullable:!1},{name:"klarna",type:"source_type_klarna",nullable:!1},{name:"last4",type:"string",nullable:!1},{name:"livemode",type:"boolean",nullable:!1},{name:"metadata",type:"object",nullable:!1},{name:"multibanco",type:"source_type_multibanco",nullable:!1},{name:"name",type:"string",nullable:!0},{name:"networks",type:"token_card_networks",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["account","bank_account","card","source"],discriminator:!0},{name:"owner",type:"union",nullable:!0},{name:"p24",type:"source_type_p24",nullable:!1},{name:"payouts_enabled",type:"boolean",nullable:!1},{name:"receiver",type:"source_receiver_flow",nullable:!1},{name:"redirect",type:"source_redirect_flow",nullable:!1},{name:"regulated_status",type:"string",nullable:!0,enum:["regulated","unregulated"]},{name:"requirements",type:"account_requirements",nullable:!1},{name:"routing_number",type:"string",nullable:!0},{name:"sepa_debit",type:"source_type_sepa_debit",nullable:!1},{name:"settings",type:"union",nullable:!0},{name:"sofort",type:"source_type_sofort",nullable:!1},{name:"source_order",type:"source_order",nullable:!1},{name:"statement_descriptor",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1},{name:"three_d_secure",type:"source_type_three_d_secure",nullable:!1},{name:"tokenization_method",type:"string",nullable:!0},{name:"tos_acceptance",type:"account_tos_acceptance",nullable:!1},{name:"type",type:"string",nullable:!1,enum:["custom","express","none","standard","ach_credit_transfer","ach_debit","acss_debit","alipay","au_becs_debit","bancontact","card","card_present","eps","giropay","ideal","klarna","multibanco","p24","sepa_debit","sofort","three_d_secure","wechat"]},{name:"usage",type:"string",nullable:!0},{name:"wechat",type:"source_type_wechat",nullable:!1}],stateCandidates:[{field:"allow_redisplay",values:["always","limited","unspecified"]},{field:"business_type",values:["company","government_entity","individual","non_profit"]},{field:"regulated_status",values:["regulated","unregulated"]},{field:"status",values:[]},{field:"type",values:["ach_credit_transfer","ach_debit","acss_debit","alipay","au_becs_debit","bancontact","card","card_present","custom","eps","express","giropay","ideal","klarna","multibanco","none","p24","sepa_debit","sofort","standard","three_d_secure","wechat"]}],expandable:[]},{name:"payout",schema:"payout",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"application_fee",type:"union",nullable:!0},{name:"application_fee_amount",type:"integer",nullable:!0},{name:"arrival_date",type:"integer",nullable:!1,required:!0},{name:"automatic",type:"boolean",nullable:!1,required:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"destination",type:"union",nullable:!0},{name:"failure_balance_transaction",type:"union",nullable:!0},{name:"failure_code",type:"string",nullable:!0},{name:"failure_message",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"method",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["payout"]},{name:"original_payout",type:"union",nullable:!0},{name:"payout_method",type:"string",nullable:!0},{name:"reconciliation_status",type:"string",nullable:!1,required:!0,enum:["completed","in_progress","not_applicable"]},{name:"reversed_by",type:"union",nullable:!0},{name:"source_type",type:"string",nullable:!1,required:!0},{name:"statement_descriptor",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"trace_id",type:"union",nullable:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["bank_account","card"]}],stateCandidates:[{field:"reconciliation_status",values:["completed","in_progress","not_applicable"]},{field:"status",values:[]},{field:"type",values:["bank_account","card"]}],expandable:["application_fee","balance_transaction","destination","failure_balance_transaction","original_payout","reversed_by","trace_id"]},{name:"person",schema:"person",fields:[{name:"account",type:"string",nullable:!1,required:!0},{name:"additional_tos_acceptances",type:"person_additional_tos_acceptances",nullable:!1},{name:"address",type:"address",nullable:!1},{name:"address_kana",type:"union",nullable:!0},{name:"address_kanji",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"dob",type:"legal_entity_dob",nullable:!1},{name:"email",type:"string",nullable:!0},{name:"first_name",type:"string",nullable:!0},{name:"first_name_kana",type:"string",nullable:!0},{name:"first_name_kanji",type:"string",nullable:!0},{name:"full_name_aliases",type:"array",nullable:!1},{name:"future_requirements",type:"union",nullable:!0},{name:"gender",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"id_number_provided",type:"boolean",nullable:!1},{name:"id_number_secondary_provided",type:"boolean",nullable:!1},{name:"last_name",type:"string",nullable:!0},{name:"last_name_kana",type:"string",nullable:!0},{name:"last_name_kanji",type:"string",nullable:!0},{name:"maiden_name",type:"string",nullable:!0},{name:"metadata",type:"object",nullable:!1},{name:"nationality",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["person"]},{name:"phone",type:"string",nullable:!0},{name:"political_exposure",type:"string",nullable:!1,enum:["existing","none"]},{name:"registered_address",type:"address",nullable:!1},{name:"relationship",type:"person_relationship",nullable:!1},{name:"requirements",type:"union",nullable:!0},{name:"ssn_last_4_provided",type:"boolean",nullable:!1},{name:"us_cfpb_data",type:"union",nullable:!0},{name:"verification",type:"legal_entity_person_verification",nullable:!1}],stateCandidates:[{field:"political_exposure",values:["existing","none"]}],expandable:["additional_tos_acceptances","address","address_kana","address_kanji","dob","future_requirements","registered_address","relationship","requirements","us_cfpb_data","verification"]},{name:"plan",schema:"plan",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"amount",type:"integer",nullable:!0},{name:"amount_decimal",type:"string",nullable:!0},{name:"billing_scheme",type:"string",nullable:!1,required:!0,enum:["per_unit","tiered"]},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"interval",type:"string",nullable:!1,required:!0,enum:["day","month","week","year"]},{name:"interval_count",type:"integer",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"meter",type:"string",nullable:!0},{name:"nickname",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["plan"]},{name:"product",type:"union",nullable:!0},{name:"tiers",type:"array",nullable:!1},{name:"tiers_mode",type:"string",nullable:!0,enum:["graduated","volume"]},{name:"transform_usage",type:"union",nullable:!0},{name:"trial_period_days",type:"integer",nullable:!0},{name:"usage_type",type:"string",nullable:!1,required:!0,enum:["licensed","metered"]}],stateCandidates:[{field:"active",values:["false","true"]},{field:"billing_scheme",values:["per_unit","tiered"]},{field:"interval",values:["day","month","week","year"]},{field:"tiers_mode",values:["graduated","volume"]},{field:"usage_type",values:["licensed","metered"]}],expandable:["product","tiers","transform_usage"]},{name:"price",schema:"price",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"billing_scheme",type:"string",nullable:!1,required:!0,enum:["per_unit","tiered"]},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"currency_options",type:"object",nullable:!1},{name:"custom_unit_amount",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"lookup_key",type:"string",nullable:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"nickname",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["price"]},{name:"product",type:"union",nullable:!1,required:!0},{name:"recurring",type:"union",nullable:!0},{name:"tax_behavior",type:"string",nullable:!0,enum:["exclusive","inclusive","unspecified"]},{name:"tiers",type:"array",nullable:!1},{name:"tiers_mode",type:"string",nullable:!0,enum:["graduated","volume"]},{name:"transform_quantity",type:"union",nullable:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["one_time","recurring"]},{name:"unit_amount",type:"integer",nullable:!0},{name:"unit_amount_decimal",type:"string",nullable:!0}],stateCandidates:[{field:"active",values:["false","true"]},{field:"billing_scheme",values:["per_unit","tiered"]},{field:"tax_behavior",values:["exclusive","inclusive","unspecified"]},{field:"tiers_mode",values:["graduated","volume"]},{field:"type",values:["one_time","recurring"]}],expandable:["currency_options","custom_unit_amount","product","recurring","tiers","transform_quantity"]},{name:"product",schema:"product",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"default_price",type:"union",nullable:!0},{name:"description",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"images",type:"array",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"marketing_features",type:"array",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["product"]},{name:"package_dimensions",type:"union",nullable:!0},{name:"shippable",type:"boolean",nullable:!0},{name:"statement_descriptor",type:"string",nullable:!0},{name:"tax_code",type:"union",nullable:!0},{name:"tax_details",type:"union",nullable:!0},{name:"unit_label",type:"string",nullable:!0},{name:"updated",type:"integer",nullable:!1,required:!0},{name:"url",type:"string",nullable:!0}],stateCandidates:[{field:"active",values:["false","true"]}],expandable:["default_price","marketing_features","package_dimensions","tax_code","tax_details"]},{name:"product_catalog.trial_offer",schema:"product_catalog.trial_offer",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"duration",type:"product_catalog_impl_endpoints_trial_offer_resource_trial_offer_duration",nullable:!1,required:!0},{name:"end_behavior",type:"product_catalog_impl_endpoints_trial_offer_resource_trial_offer_end_behavior",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"nickname",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["product_catalog.trial_offer"]},{name:"price",type:"union",nullable:!1,required:!0}],stateCandidates:[{field:"active",values:["false","true"]}],expandable:["duration","end_behavior","price"]},{name:"product_feature",schema:"product_feature",fields:[{name:"entitlement_feature",type:"entitlements.feature",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["product_feature"]}],stateCandidates:[],expandable:["entitlement_feature"]},{name:"promotion_code",schema:"promotion_code",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"code",type:"string",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"expires_at",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"max_redemptions",type:"integer",nullable:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["promotion_code"]},{name:"promotion",type:"promotion_codes_resource_promotion",nullable:!1,required:!0},{name:"restrictions",type:"promotion_codes_resource_restrictions",nullable:!1,required:!0},{name:"times_redeemed",type:"integer",nullable:!1,required:!0}],stateCandidates:[{field:"active",values:["false","true"]}],expandable:["customer","promotion","restrictions"]},{name:"quote",schema:"quote",fields:[{name:"amount_subtotal",type:"integer",nullable:!1,required:!0},{name:"amount_total",type:"integer",nullable:!1,required:!0},{name:"application",type:"union",nullable:!0},{name:"application_fee_amount",type:"integer",nullable:!0},{name:"application_fee_percent",type:"number",nullable:!0},{name:"automatic_tax",type:"quotes_resource_automatic_tax",nullable:!1,required:!0},{name:"collection_method",type:"string",nullable:!1,required:!0,enum:["charge_automatically","send_invoice"]},{name:"computed",type:"quotes_resource_computed",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"default_tax_rates",type:"array",nullable:!1},{name:"description",type:"string",nullable:!0},{name:"discounts",type:"array",nullable:!1,required:!0},{name:"expires_at",type:"integer",nullable:!1,required:!0},{name:"footer",type:"string",nullable:!0},{name:"from_quote",type:"union",nullable:!0},{name:"header",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice",type:"union",nullable:!0},{name:"invoice_settings",type:"invoice_setting_quote_setting",nullable:!1,required:!0},{name:"line_items",type:"object",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"number",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["quote"]},{name:"on_behalf_of",type:"union",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["accepted","canceled","draft","open"]},{name:"status_transitions",type:"quotes_resource_status_transitions",nullable:!1,required:!0},{name:"subscription",type:"union",nullable:!0},{name:"subscription_data",type:"quotes_resource_subscription_data_subscription_data",nullable:!1,required:!0},{name:"subscription_schedule",type:"union",nullable:!0},{name:"test_clock",type:"union",nullable:!0},{name:"total_details",type:"quotes_resource_total_details",nullable:!1,required:!0},{name:"transfer_data",type:"union",nullable:!0}],stateCandidates:[{field:"collection_method",values:["charge_automatically","send_invoice"]},{field:"status",values:["accepted","canceled","draft","open"]}],expandable:["application","automatic_tax","computed","customer","default_tax_rates","discounts","from_quote","invoice","invoice_settings","line_items","on_behalf_of","status_transitions","subscription","subscription_data","subscription_schedule","test_clock","total_details","transfer_data"]},{name:"radar.early_fraud_warning",schema:"radar.early_fraud_warning",fields:[{name:"actionable",type:"boolean",nullable:!1,required:!0},{name:"charge",type:"union",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"fraud_type",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["radar.early_fraud_warning"]},{name:"payment_intent",type:"union",nullable:!1}],stateCandidates:[],expandable:["charge","payment_intent"]},{name:"radar.payment_evaluation",schema:"radar.payment_evaluation",fields:[{name:"client_device_metadata_details",type:"insights_resources_payment_evaluation_client_device_metadata",nullable:!1},{name:"created_at",type:"integer",nullable:!1,required:!0},{name:"customer_details",type:"insights_resources_payment_evaluation_customer_details",nullable:!1},{name:"events",type:"array",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["radar.payment_evaluation"]},{name:"outcome",type:"union",nullable:!0},{name:"payment_details",type:"insights_resources_payment_evaluation_payment_details",nullable:!1},{name:"recommended_action",type:"string",nullable:!1,required:!0,enum:["block","continue"]},{name:"signals",type:"insights_resources_payment_evaluation_signals",nullable:!1,required:!0}],stateCandidates:[{field:"recommended_action",values:["block","continue"]}],expandable:["client_device_metadata_details","customer_details","events","outcome","payment_details","signals"]},{name:"radar.value_list",schema:"radar.value_list",fields:[{name:"alias",type:"string",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"created_by",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"item_type",type:"string",nullable:!1,required:!0,enum:["account","card_bin","card_fingerprint","case_sensitive_string","country","crypto_fingerprint","customer_id","email","ip_address","sepa_debit_fingerprint","string","us_bank_account_fingerprint"]},{name:"list_items",type:"object",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["radar.value_list"]}],stateCandidates:[{field:"item_type",values:["account","card_bin","card_fingerprint","case_sensitive_string","country","crypto_fingerprint","customer_id","email","ip_address","sepa_debit_fingerprint","string","us_bank_account_fingerprint"]}],expandable:["list_items"]},{name:"radar.value_list_item",schema:"radar.value_list_item",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"created_by",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["radar.value_list_item"]},{name:"value",type:"string",nullable:!1,required:!0},{name:"value_list",type:"string",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"refund",schema:"refund",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"charge",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"description",type:"string",nullable:!1},{name:"destination_details",type:"refund_destination_details",nullable:!1},{name:"failure_balance_transaction",type:"union",nullable:!1},{name:"failure_reason",type:"string",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"instructions_email",type:"string",nullable:!1},{name:"metadata",type:"object",nullable:!0},{name:"next_action",type:"refund_next_action",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["refund"]},{name:"payment_intent",type:"union",nullable:!0},{name:"payment_method",type:"union",nullable:!0},{name:"pending_reason",type:"string",nullable:!1,enum:["charge_pending","insufficient_funds","processing"]},{name:"presentment_details",type:"payment_flows_payment_intent_presentment_details",nullable:!1},{name:"reason",type:"string",nullable:!0,enum:["duplicate","expired_uncaptured_charge","fraudulent","requested_by_customer"]},{name:"receipt_number",type:"string",nullable:!0},{name:"source_transfer_reversal",type:"union",nullable:!0},{name:"status",type:"string",nullable:!0},{name:"transfer_reversal",type:"union",nullable:!0}],stateCandidates:[{field:"pending_reason",values:["charge_pending","insufficient_funds","processing"]},{field:"reason",values:["duplicate","expired_uncaptured_charge","fraudulent","requested_by_customer"]},{field:"status",values:[]}],expandable:["balance_transaction","charge","customer","destination_details","failure_balance_transaction","next_action","payment_intent","payment_method","presentment_details","source_transfer_reversal","transfer_reversal"]},{name:"reporting.report_run",schema:"reporting.report_run",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"error",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["reporting.report_run"]},{name:"parameters",type:"financial_reporting_finance_report_run_run_parameters",nullable:!1,required:!0},{name:"report_type",type:"string",nullable:!1,required:!0},{name:"result",type:"union",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"succeeded_at",type:"integer",nullable:!0}],stateCandidates:[{field:"status",values:[]}],expandable:["parameters","result"]},{name:"reporting.report_type",schema:"reporting.report_type",fields:[{name:"data_available_end",type:"integer",nullable:!1,required:!0},{name:"data_available_start",type:"integer",nullable:!1,required:!0},{name:"default_columns",type:"array",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["reporting.report_type"]},{name:"updated",type:"integer",nullable:!1,required:!0},{name:"version",type:"integer",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"review",schema:"review",fields:[{name:"billing_zip",type:"string",nullable:!0},{name:"charge",type:"union",nullable:!0},{name:"closed_reason",type:"string",nullable:!0,enum:["acknowledged","approved","canceled","disputed","payment_never_settled","redacted","refunded","refunded_as_fraud"]},{name:"created",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"ip_address",type:"string",nullable:!0},{name:"ip_address_location",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["review"]},{name:"open",type:"boolean",nullable:!1,required:!0},{name:"opened_reason",type:"string",nullable:!1,required:!0,enum:["manual","rule"]},{name:"payment_intent",type:"union",nullable:!1},{name:"reason",type:"string",nullable:!1,required:!0},{name:"session",type:"union",nullable:!0}],stateCandidates:[{field:"closed_reason",values:["acknowledged","approved","canceled","disputed","payment_never_settled","redacted","refunded","refunded_as_fraud"]},{field:"opened_reason",values:["manual","rule"]}],expandable:["charge","ip_address_location","payment_intent","session"]},{name:"scheduled_query_run",schema:"scheduled_query_run",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"data_load_time",type:"integer",nullable:!1,required:!0},{name:"error",type:"sigma_scheduled_query_run_error",nullable:!1},{name:"file",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["scheduled_query_run"]},{name:"result_available_until",type:"integer",nullable:!1,required:!0},{name:"sql",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"title",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:[]}],expandable:["error","file"]},{name:"setup_attempt",schema:"setup_attempt",fields:[{name:"application",type:"union",nullable:!0},{name:"attach_to_self",type:"boolean",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"flow_directions",type:"array",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["setup_attempt"]},{name:"on_behalf_of",type:"union",nullable:!0},{name:"payment_method",type:"union",nullable:!1,required:!0},{name:"payment_method_details",type:"setup_attempt_payment_method_details",nullable:!1,required:!0},{name:"setup_error",type:"union",nullable:!0},{name:"setup_intent",type:"union",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"usage",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:[]}],expandable:["application","customer","on_behalf_of","payment_method","payment_method_details","setup_error","setup_intent"]},{name:"setup_intent",schema:"setup_intent",fields:[{name:"allowed_payment_method_types",type:"array",nullable:!0},{name:"application",type:"union",nullable:!0},{name:"attach_to_self",type:"boolean",nullable:!1},{name:"automatic_payment_methods",type:"union",nullable:!0},{name:"cancellation_reason",type:"string",nullable:!0,enum:["abandoned","duplicate","requested_by_customer"]},{name:"client_secret",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"description",type:"string",nullable:!0},{name:"excluded_payment_method_types",type:"array",nullable:!0},{name:"flow_directions",type:"array",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"last_setup_error",type:"union",nullable:!0},{name:"latest_attempt",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"managed_payments",type:"union",nullable:!0},{name:"mandate",type:"union",nullable:!0},{name:"metadata",type:"object",nullable:!0},{name:"next_action",type:"union",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["setup_intent"]},{name:"on_behalf_of",type:"union",nullable:!0},{name:"payment_method",type:"union",nullable:!0},{name:"payment_method_configuration_details",type:"union",nullable:!0},{name:"payment_method_options",type:"union",nullable:!0},{name:"payment_method_types",type:"array",nullable:!1,required:!0},{name:"single_use_mandate",type:"union",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","processing","requires_action","requires_confirmation","requires_payment_method","succeeded"]},{name:"usage",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"cancellation_reason",values:["abandoned","duplicate","requested_by_customer"]},{field:"status",values:["canceled","processing","requires_action","requires_confirmation","requires_payment_method","succeeded"]}],expandable:["application","automatic_payment_methods","customer","last_setup_error","latest_attempt","managed_payments","mandate","next_action","on_behalf_of","payment_method","payment_method_configuration_details","payment_method_options","single_use_mandate"]},{name:"shipping_rate",schema:"shipping_rate",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"delivery_estimate",type:"union",nullable:!0},{name:"display_name",type:"string",nullable:!0},{name:"fixed_amount",type:"shipping_rate_fixed_amount",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["shipping_rate"]},{name:"tax_behavior",type:"string",nullable:!0,enum:["exclusive","inclusive","unspecified"]},{name:"tax_code",type:"union",nullable:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["fixed_amount"]}],stateCandidates:[{field:"active",values:["false","true"]},{field:"tax_behavior",values:["exclusive","inclusive","unspecified"]}],expandable:["delivery_estimate","fixed_amount","tax_code"]},{name:"sigma.sigma_api_query",schema:"sigma.sigma_api_query",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["sigma.sigma_api_query"]},{name:"sql",type:"string",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"source",schema:"source",fields:[{name:"ach_credit_transfer",type:"source_type_ach_credit_transfer",nullable:!1},{name:"ach_debit",type:"source_type_ach_debit",nullable:!1},{name:"acss_debit",type:"source_type_acss_debit",nullable:!1},{name:"alipay",type:"source_type_alipay",nullable:!1},{name:"allow_redisplay",type:"string",nullable:!0,enum:["always","limited","unspecified"]},{name:"amount",type:"integer",nullable:!0},{name:"au_becs_debit",type:"source_type_au_becs_debit",nullable:!1},{name:"bancontact",type:"source_type_bancontact",nullable:!1},{name:"card",type:"source_type_card",nullable:!1},{name:"card_present",type:"source_type_card_present",nullable:!1},{name:"client_secret",type:"string",nullable:!1,required:!0},{name:"code_verification",type:"source_code_verification_flow",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!0},{name:"customer",type:"string",nullable:!1},{name:"eps",type:"source_type_eps",nullable:!1},{name:"flow",type:"string",nullable:!1,required:!0},{name:"giropay",type:"source_type_giropay",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"ideal",type:"source_type_ideal",nullable:!1},{name:"klarna",type:"source_type_klarna",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"multibanco",type:"source_type_multibanco",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["source"]},{name:"owner",type:"union",nullable:!0},{name:"p24",type:"source_type_p24",nullable:!1},{name:"receiver",type:"source_receiver_flow",nullable:!1},{name:"redirect",type:"source_redirect_flow",nullable:!1},{name:"sepa_debit",type:"source_type_sepa_debit",nullable:!1},{name:"sofort",type:"source_type_sofort",nullable:!1},{name:"source_order",type:"source_order",nullable:!1},{name:"statement_descriptor",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"three_d_secure",type:"source_type_three_d_secure",nullable:!1},{name:"type",type:"string",nullable:!1,required:!0,enum:["ach_credit_transfer","ach_debit","acss_debit","alipay","au_becs_debit","bancontact","card","card_present","eps","giropay","ideal","klarna","multibanco","p24","sepa_debit","sofort","three_d_secure","wechat"]},{name:"usage",type:"string",nullable:!0},{name:"wechat",type:"source_type_wechat",nullable:!1}],stateCandidates:[{field:"allow_redisplay",values:["always","limited","unspecified"]},{field:"status",values:[]},{field:"type",values:["ach_credit_transfer","ach_debit","acss_debit","alipay","au_becs_debit","bancontact","card","card_present","eps","giropay","ideal","klarna","multibanco","p24","sepa_debit","sofort","three_d_secure","wechat"]}],expandable:["code_verification","owner","receiver","redirect","source_order"]},{name:"source_mandate_notification",schema:"source_mandate_notification",fields:[{name:"acss_debit",type:"source_mandate_notification_acss_debit_data",nullable:!1},{name:"amount",type:"integer",nullable:!0},{name:"bacs_debit",type:"source_mandate_notification_bacs_debit_data",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["source_mandate_notification"]},{name:"reason",type:"string",nullable:!1,required:!0},{name:"sepa_debit",type:"source_mandate_notification_sepa_debit_data",nullable:!1},{name:"source",type:"source",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"type",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:[]}],expandable:["acss_debit","bacs_debit","sepa_debit","source"]},{name:"source_transaction",schema:"source_transaction",fields:[{name:"ach_credit_transfer",type:"source_transaction_ach_credit_transfer_data",nullable:!1},{name:"amount",type:"integer",nullable:!1,required:!0},{name:"chf_credit_transfer",type:"source_transaction_chf_credit_transfer_data",nullable:!1},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"gbp_credit_transfer",type:"source_transaction_gbp_credit_transfer_data",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["source_transaction"]},{name:"paper_check",type:"source_transaction_paper_check_data",nullable:!1},{name:"sepa_credit_transfer",type:"source_transaction_sepa_credit_transfer_data",nullable:!1},{name:"source",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["ach_credit_transfer","ach_debit","alipay","bancontact","card","card_present","eps","giropay","ideal","klarna","multibanco","p24","sepa_debit","sofort","three_d_secure","wechat"]}],stateCandidates:[{field:"status",values:[]},{field:"type",values:["ach_credit_transfer","ach_debit","alipay","bancontact","card","card_present","eps","giropay","ideal","klarna","multibanco","p24","sepa_debit","sofort","three_d_secure","wechat"]}],expandable:["ach_credit_transfer","chf_credit_transfer","gbp_credit_transfer","paper_check","sepa_credit_transfer"]},{name:"subscription",schema:"subscription",fields:[{name:"application",type:"union",nullable:!0},{name:"application_fee_percent",type:"number",nullable:!0},{name:"automatic_tax",type:"subscription_automatic_tax",nullable:!1,required:!0},{name:"billing_cycle_anchor",type:"integer",nullable:!1,required:!0},{name:"billing_cycle_anchor_config",type:"union",nullable:!0},{name:"billing_mode",type:"subscriptions_resource_billing_mode",nullable:!1,required:!0},{name:"billing_schedules",type:"array",nullable:!1,required:!0},{name:"billing_thresholds",type:"union",nullable:!0},{name:"cancel_at",type:"integer",nullable:!0},{name:"cancel_at_period_end",type:"boolean",nullable:!1,required:!0},{name:"canceled_at",type:"integer",nullable:!0},{name:"cancellation_details",type:"union",nullable:!0},{name:"collection_method",type:"string",nullable:!1,required:!0,enum:["charge_automatically","send_invoice"]},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"days_until_due",type:"integer",nullable:!0},{name:"default_payment_method",type:"union",nullable:!0},{name:"default_source",type:"union",nullable:!0},{name:"default_tax_rates",type:"array",nullable:!0},{name:"description",type:"string",nullable:!0},{name:"discounts",type:"array",nullable:!1,required:!0},{name:"ended_at",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"invoice_settings",type:"subscriptions_resource_subscription_invoice_settings",nullable:!1,required:!0},{name:"items",type:"object",nullable:!1,required:!0},{name:"latest_invoice",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"managed_payments",type:"union",nullable:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"next_pending_invoice_item_invoice",type:"integer",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["subscription"]},{name:"on_behalf_of",type:"union",nullable:!0},{name:"pause_collection",type:"union",nullable:!0},{name:"payment_settings",type:"union",nullable:!0},{name:"pending_invoice_item_interval",type:"union",nullable:!0},{name:"pending_setup_intent",type:"union",nullable:!0},{name:"pending_update",type:"union",nullable:!0},{name:"presentment_details",type:"subscriptions_resource_subscription_presentment_details",nullable:!1},{name:"schedule",type:"union",nullable:!0},{name:"start_date",type:"integer",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","canceled","incomplete","incomplete_expired","past_due","paused","trialing","unpaid"]},{name:"status_details",type:"subscriptions_resource_status_details_public",nullable:!1},{name:"test_clock",type:"union",nullable:!0},{name:"transfer_data",type:"union",nullable:!0},{name:"trial_end",type:"integer",nullable:!0},{name:"trial_settings",type:"union",nullable:!0},{name:"trial_start",type:"integer",nullable:!0}],stateCandidates:[{field:"collection_method",values:["charge_automatically","send_invoice"]},{field:"status",values:["active","canceled","incomplete","incomplete_expired","past_due","paused","trialing","unpaid"]}],expandable:["application","automatic_tax","billing_cycle_anchor_config","billing_mode","billing_schedules","billing_thresholds","cancellation_details","customer","default_payment_method","default_source","default_tax_rates","discounts","invoice_settings","items","latest_invoice","managed_payments","on_behalf_of","pause_collection","payment_settings","pending_invoice_item_interval","pending_setup_intent","pending_update","presentment_details","schedule","status_details","test_clock","transfer_data","trial_settings"]},{name:"subscription_item",schema:"subscription_item",fields:[{name:"billed_until",type:"integer",nullable:!1},{name:"billing_thresholds",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"current_period_end",type:"integer",nullable:!1,required:!0},{name:"current_period_start",type:"integer",nullable:!1,required:!0},{name:"current_trial",type:"union",nullable:!0},{name:"discounts",type:"array",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["subscription_item"]},{name:"price",type:"price",nullable:!1,required:!0},{name:"quantity",type:"integer",nullable:!1},{name:"subscription",type:"string",nullable:!1,required:!0},{name:"tax_rates",type:"array",nullable:!0}],stateCandidates:[],expandable:["billing_thresholds","current_trial","discounts","price","tax_rates"]},{name:"subscription_schedule",schema:"subscription_schedule",fields:[{name:"application",type:"union",nullable:!0},{name:"billing_mode",type:"subscriptions_resource_billing_mode",nullable:!1,required:!0},{name:"canceled_at",type:"integer",nullable:!0},{name:"completed_at",type:"integer",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"current_phase",type:"union",nullable:!0},{name:"customer",type:"union",nullable:!1,required:!0},{name:"customer_account",type:"string",nullable:!0},{name:"default_settings",type:"subscription_schedules_resource_default_settings",nullable:!1,required:!0},{name:"end_behavior",type:"string",nullable:!1,required:!0,enum:["cancel","none","release","renew"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["subscription_schedule"]},{name:"pause_schedules",type:"array",nullable:!1},{name:"phases",type:"array",nullable:!1,required:!0},{name:"released_at",type:"integer",nullable:!0},{name:"released_subscription",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","canceled","completed","not_started","released"]},{name:"subscription",type:"union",nullable:!0},{name:"test_clock",type:"union",nullable:!0}],stateCandidates:[{field:"end_behavior",values:["cancel","none","release","renew"]},{field:"status",values:["active","canceled","completed","not_started","released"]}],expandable:["application","billing_mode","current_phase","customer","default_settings","pause_schedules","phases","subscription","test_clock"]},{name:"tax_code",schema:"tax_code",fields:[{name:"description",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"name",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax_code"]},{name:"requirements",type:"union",nullable:!0}],stateCandidates:[],expandable:["requirements"]},{name:"tax_id",schema:"tax_id",fields:[{name:"country",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"customer",type:"union",nullable:!0},{name:"customer_account",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax_id"]},{name:"owner",type:"union",nullable:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["ad_nrt","ae_trn","al_tin","am_tin","ao_tin","ar_cuit","au_abn","au_arn","aw_tin","az_tin","ba_tin","bb_tin","bd_bin","bf_ifu","bg_uic","bh_vat","bj_ifu","bo_tin","br_cnpj","br_cpf","bs_tin","by_tin","ca_bn","ca_gst_hst","ca_pst_bc","ca_pst_mb","ca_pst_sk","ca_qst","cd_nif","ch_uid","ch_vat","cl_tin","cm_niu","cn_tin","co_nit","cr_tin","cv_nif","de_stn","do_rcn","ec_ruc","eg_tin","es_cif","et_tin","eu_oss_vat","eu_vat","fo_vat","gb_vat","ge_vat","gi_tin","gn_nif","hk_br","hr_oib","hu_tin","ic_nif","id_npwp","il_vat","in_gst","is_vat","it_cf","jp_cn","jp_rn","jp_trn","ke_pin","kg_tin","kh_tin","kr_brn","kz_bin","la_tin","li_uid","li_vat","lk_vat","ma_vat","md_vat","me_pib","mk_vat","mr_nif","mx_rfc","my_frp","my_itn","my_sst","ng_tin","no_vat","no_voec","np_pan","nz_gst","om_vat","pe_ruc","ph_tin","pl_nip","py_ruc","ro_tin","rs_pib","ru_inn","ru_kpp","sa_vat","sg_gst","sg_uen","si_tin","sn_ninea","sr_fin","sv_nit","th_vat","tj_tin","tr_tin","tw_vat","tz_vat","ua_vat","ug_tin","unknown","us_ein","uy_ruc","uz_tin","uz_vat","ve_rif","vn_tin","za_vat","zm_tin","zw_tin"]},{name:"value",type:"string",nullable:!1,required:!0},{name:"verification",type:"union",nullable:!0}],stateCandidates:[{field:"type",values:["ad_nrt","ae_trn","al_tin","am_tin","ao_tin","ar_cuit","au_abn","au_arn","aw_tin","az_tin","ba_tin","bb_tin","bd_bin","bf_ifu","bg_uic","bh_vat","bj_ifu","bo_tin","br_cnpj","br_cpf","bs_tin","by_tin","ca_bn","ca_gst_hst","ca_pst_bc","ca_pst_mb","ca_pst_sk","ca_qst","cd_nif","ch_uid","ch_vat","cl_tin","cm_niu","cn_tin","co_nit","cr_tin","cv_nif","de_stn","do_rcn","ec_ruc","eg_tin","es_cif","et_tin","eu_oss_vat","eu_vat","fo_vat","gb_vat","ge_vat","gi_tin","gn_nif","hk_br","hr_oib","hu_tin","ic_nif","id_npwp","il_vat","in_gst","is_vat","it_cf","jp_cn","jp_rn","jp_trn","ke_pin","kg_tin","kh_tin","kr_brn","kz_bin","la_tin","li_uid","li_vat","lk_vat","ma_vat","md_vat","me_pib","mk_vat","mr_nif","mx_rfc","my_frp","my_itn","my_sst","ng_tin","no_vat","no_voec","np_pan","nz_gst","om_vat","pe_ruc","ph_tin","pl_nip","py_ruc","ro_tin","rs_pib","ru_inn","ru_kpp","sa_vat","sg_gst","sg_uen","si_tin","sn_ninea","sr_fin","sv_nit","th_vat","tj_tin","tr_tin","tw_vat","tz_vat","ua_vat","ug_tin","unknown","us_ein","uy_ruc","uz_tin","uz_vat","ve_rif","vn_tin","za_vat","zm_tin","zw_tin"]}],expandable:["customer","owner","verification"]},{name:"tax_rate",schema:"tax_rate",fields:[{name:"active",type:"boolean",nullable:!1,required:!0},{name:"country",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"display_name",type:"string",nullable:!1,required:!0},{name:"effective_percentage",type:"number",nullable:!0},{name:"flat_amount",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"inclusive",type:"boolean",nullable:!1,required:!0},{name:"jurisdiction",type:"string",nullable:!0},{name:"jurisdiction_level",type:"string",nullable:!0,enum:["city","country","county","district","multiple","state"]},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax_rate"]},{name:"percentage",type:"number",nullable:!1,required:!0},{name:"rate_type",type:"string",nullable:!0,enum:["flat_amount","percentage"]},{name:"state",type:"string",nullable:!0},{name:"tax_type",type:"string",nullable:!0,enum:["amusement_tax","communications_tax","digital_excise_tax","gst","hst","igst","jct","lease_tax","mass_transit_parking_tax","parking_tax","pst","qst","retail_delivery_fee","rst","sales_tax","service_tax","utility_users_tax","vat"]}],stateCandidates:[{field:"active",values:["false","true"]},{field:"jurisdiction_level",values:["city","country","county","district","multiple","state"]},{field:"rate_type",values:["flat_amount","percentage"]},{field:"state",values:[]},{field:"tax_type",values:["amusement_tax","communications_tax","digital_excise_tax","gst","hst","igst","jct","lease_tax","mass_transit_parking_tax","parking_tax","pst","qst","retail_delivery_fee","rst","sales_tax","service_tax","utility_users_tax","vat"]}],expandable:["flat_amount"]},{name:"tax.association",schema:"tax.association",fields:[{name:"calculation",type:"string",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax.association"]},{name:"payment_intent",type:"string",nullable:!1,required:!0},{name:"tax_transaction_attempts",type:"array",nullable:!0}],stateCandidates:[],expandable:["tax_transaction_attempts"]},{name:"tax.calculation",schema:"tax.calculation",fields:[{name:"amount_total",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"string",nullable:!0},{name:"customer_details",type:"tax_product_resource_customer_details",nullable:!1,required:!0},{name:"expires_at",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!0},{name:"line_items",type:"object",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax.calculation"]},{name:"ship_from_details",type:"union",nullable:!0},{name:"shipping_cost",type:"union",nullable:!0},{name:"tax_amount_exclusive",type:"integer",nullable:!1,required:!0},{name:"tax_amount_inclusive",type:"integer",nullable:!1,required:!0},{name:"tax_breakdown",type:"array",nullable:!1,required:!0},{name:"tax_date",type:"integer",nullable:!1,required:!0}],stateCandidates:[],expandable:["customer_details","line_items","ship_from_details","shipping_cost","tax_breakdown"]},{name:"tax.calculation_line_item",schema:"tax.calculation_line_item",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"amount_tax",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax.calculation_line_item"]},{name:"performance_location",type:"string",nullable:!0},{name:"product",type:"string",nullable:!0},{name:"quantity",type:"integer",nullable:!1,required:!0},{name:"reference",type:"string",nullable:!1,required:!0},{name:"tax_behavior",type:"string",nullable:!1,required:!0,enum:["exclusive","inclusive"]},{name:"tax_breakdown",type:"array",nullable:!0},{name:"tax_code",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"tax_behavior",values:["exclusive","inclusive"]}],expandable:["tax_breakdown"]},{name:"tax.location",schema:"tax.location",fields:[{name:"address",type:"address",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax.location"]},{name:"type",type:"string",nullable:!1,required:!0,enum:["performance"]}],stateCandidates:[],expandable:["address"]},{name:"tax.registration",schema:"tax.registration",fields:[{name:"active_from",type:"integer",nullable:!1,required:!0},{name:"country",type:"string",nullable:!1,required:!0},{name:"country_options",type:"tax_product_registrations_resource_country_options",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"expires_at",type:"integer",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax.registration"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","expired","scheduled"]}],stateCandidates:[{field:"status",values:["active","expired","scheduled"]}],expandable:["country_options"]},{name:"tax.settings",schema:"tax.settings",fields:[{name:"defaults",type:"tax_product_resource_tax_settings_defaults",nullable:!1,required:!0},{name:"head_office",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax.settings"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["active","pending"]},{name:"status_details",type:"tax_product_resource_tax_settings_status_details",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:["active","pending"]}],expandable:["defaults","head_office","status_details"]},{name:"tax.transaction",schema:"tax.transaction",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"string",nullable:!0},{name:"customer_details",type:"tax_product_resource_customer_details",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"line_items",type:"object",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax.transaction"]},{name:"posted_at",type:"integer",nullable:!1,required:!0},{name:"reference",type:"string",nullable:!1,required:!0},{name:"reversal",type:"union",nullable:!0},{name:"ship_from_details",type:"union",nullable:!0},{name:"shipping_cost",type:"union",nullable:!0},{name:"tax_date",type:"integer",nullable:!1,required:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["reversal","transaction"]}],stateCandidates:[{field:"type",values:["reversal","transaction"]}],expandable:["customer_details","line_items","reversal","ship_from_details","shipping_cost"]},{name:"tax.transaction_line_item",schema:"tax.transaction_line_item",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"amount_tax",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["tax.transaction_line_item"]},{name:"product",type:"string",nullable:!0},{name:"quantity",type:"integer",nullable:!1,required:!0},{name:"reference",type:"string",nullable:!1,required:!0},{name:"reversal",type:"union",nullable:!0},{name:"tax_behavior",type:"string",nullable:!1,required:!0,enum:["exclusive","inclusive"]},{name:"tax_code",type:"string",nullable:!1,required:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["reversal","transaction"]}],stateCandidates:[{field:"tax_behavior",values:["exclusive","inclusive"]},{field:"type",values:["reversal","transaction"]}],expandable:["reversal"]},{name:"terminal.configuration",schema:"terminal.configuration",fields:[{name:"bbpos_wisepad3",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"bbpos_wisepos_e",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"cellular",type:"terminal_configuration_configuration_resource_cellular_config",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"is_account_default",type:"boolean",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"name",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["terminal.configuration"]},{name:"offline",type:"terminal_configuration_configuration_resource_offline_config",nullable:!1},{name:"reboot_window",type:"terminal_configuration_configuration_resource_reboot_window",nullable:!1},{name:"stripe_s700",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"stripe_s710",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"tipping",type:"terminal_configuration_configuration_resource_tipping",nullable:!1},{name:"verifone_m425",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"verifone_p400",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"verifone_p630",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"verifone_ux700",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"verifone_v660p",type:"terminal_configuration_configuration_resource_device_type_specific_config",nullable:!1},{name:"wifi",type:"terminal_configuration_configuration_resource_wifi_config",nullable:!1}],stateCandidates:[{field:"is_account_default",values:["false","true"]}],expandable:["bbpos_wisepad3","bbpos_wisepos_e","cellular","offline","reboot_window","stripe_s700","stripe_s710","tipping","verifone_m425","verifone_p400","verifone_p630","verifone_ux700","verifone_v660p","wifi"]},{name:"terminal.connection_token",schema:"terminal.connection_token",fields:[{name:"location",type:"string",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["terminal.connection_token"]},{name:"secret",type:"string",nullable:!1,required:!0}],stateCandidates:[],expandable:[]},{name:"terminal.location",schema:"terminal.location",fields:[{name:"address",type:"address_api_resource_terminal",nullable:!1,required:!0},{name:"address_kana",type:"legal_entity_japan_address",nullable:!1},{name:"address_kanji",type:"legal_entity_japan_address",nullable:!1},{name:"configuration_overrides",type:"string",nullable:!1},{name:"display_name",type:"string",nullable:!1,required:!0},{name:"display_name_kana",type:"string",nullable:!1},{name:"display_name_kanji",type:"string",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["terminal.location"]},{name:"phone",type:"string",nullable:!1}],stateCandidates:[],expandable:["address","address_kana","address_kanji"]},{name:"terminal.onboarding_link",schema:"terminal.onboarding_link",fields:[{name:"link_options",type:"terminal_onboarding_link_link_options",nullable:!1,required:!0},{name:"link_type",type:"string",nullable:!1,required:!0,enum:["apple_terms_and_conditions"]},{name:"object",type:"string",nullable:!1,required:!0,enum:["terminal.onboarding_link"]},{name:"on_behalf_of",type:"string",nullable:!0},{name:"redirect_url",type:"string",nullable:!1,required:!0}],stateCandidates:[],expandable:["link_options"]},{name:"terminal.reader",schema:"terminal.reader",fields:[{name:"action",type:"union",nullable:!0},{name:"device_sw_version",type:"string",nullable:!0},{name:"device_type",type:"string",nullable:!1,required:!0,enum:["bbpos_chipper2x","bbpos_wisepad3","bbpos_wisepos_e","mobile_phone_reader","simulated_stripe_s700","simulated_stripe_s710","simulated_verifone_m425","simulated_verifone_p630","simulated_verifone_ux700","simulated_verifone_v660p","simulated_wisepos_e","stripe_m2","stripe_s700","stripe_s710","verifone_P400","verifone_m425","verifone_p630","verifone_ux700","verifone_v660p"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"ip_address",type:"string",nullable:!0},{name:"label",type:"string",nullable:!1,required:!0},{name:"last_seen_at",type:"integer",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"location",type:"union",nullable:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["terminal.reader"]},{name:"serial_number",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!0,enum:["offline","online"]}],stateCandidates:[{field:"device_type",values:["bbpos_chipper2x","bbpos_wisepad3","bbpos_wisepos_e","mobile_phone_reader","simulated_stripe_s700","simulated_stripe_s710","simulated_verifone_m425","simulated_verifone_p630","simulated_verifone_ux700","simulated_verifone_v660p","simulated_wisepos_e","stripe_m2","stripe_s700","stripe_s710","verifone_P400","verifone_m425","verifone_p630","verifone_ux700","verifone_v660p"]},{field:"status",values:["offline","online"]}],expandable:["action","location"]},{name:"terminal.refund",schema:"terminal.refund",fields:[],stateCandidates:[],expandable:[]},{name:"test_helpers.test_clock",schema:"test_helpers.test_clock",fields:[{name:"created",type:"integer",nullable:!1,required:!0},{name:"deletes_after",type:"integer",nullable:!1,required:!0},{name:"frozen_time",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"name",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["test_helpers.test_clock"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["advancing","internal_failure","ready"]},{name:"status_details",type:"billing_clocks_resource_status_details_status_details",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:["advancing","internal_failure","ready"]}],expandable:["status_details"]},{name:"three_d_secure.authentication",schema:"three_d_secure.authentication",fields:[{name:"acquirer_details",type:"three_d_secure_standalone_resource_acquirer_details",nullable:!1},{name:"amount",type:"integer",nullable:!1},{name:"challenge_url",type:"string",nullable:!1},{name:"channel",type:"three_d_secure_standalone_resource_channel",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1},{name:"directory_server",type:"string",nullable:!1,required:!0,enum:["american_express","cartes_bancaires","discover","mastercard","visa"]},{name:"fingerprinting_url",type:"string",nullable:!1},{name:"flow_preference",type:"three_d_secure_standalone_resource_flow_preference",nullable:!1},{name:"future_usage",type:"three_d_secure_standalone_resource_future_usage",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"message_category",type:"string",nullable:!1,required:!0,enum:["non_payment_authentication","payment_authentication"]},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["three_d_secure.authentication"]},{name:"outcome",type:"string",nullable:!1,enum:["abandoned","attempt_acknowledged","authenticated","canceled","denied","informational","internal_error","not_supported","not_triggered","processing_error","rejected"]},{name:"outcome_details",type:"three_d_secure_standalone_resource_outcome_details",nullable:!1},{name:"payment_method",type:"union",nullable:!1,required:!0},{name:"reason",type:"string",nullable:!1,enum:["cardholder_authentication","issuer_requested","liability_shift","processing_costs","regulatory_compliance"]},{name:"shipping_address",type:"three_d_secure_standalone_resource_shipping_address",nullable:!1},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","error","failed","requires_challenge","requires_submission","succeeded"]}],stateCandidates:[{field:"directory_server",values:["american_express","cartes_bancaires","discover","mastercard","visa"]},{field:"message_category",values:["non_payment_authentication","payment_authentication"]},{field:"outcome",values:["abandoned","attempt_acknowledged","authenticated","canceled","denied","informational","internal_error","not_supported","not_triggered","processing_error","rejected"]},{field:"reason",values:["cardholder_authentication","issuer_requested","liability_shift","processing_costs","regulatory_compliance"]},{field:"status",values:["canceled","error","failed","requires_challenge","requires_submission","succeeded"]}],expandable:["acquirer_details","channel","flow_preference","future_usage","outcome_details","payment_method","shipping_address"]},{name:"token",schema:"token",fields:[{name:"bank_account",type:"bank_account",nullable:!1},{name:"card",type:"card",nullable:!1},{name:"client_ip",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["token"]},{name:"type",type:"string",nullable:!1,required:!0},{name:"used",type:"boolean",nullable:!1,required:!0}],stateCandidates:[],expandable:["bank_account","card"]},{name:"topup",schema:"topup",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"expected_availability_date",type:"integer",nullable:!0},{name:"failure_code",type:"string",nullable:!0},{name:"failure_message",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"initiated_by",type:"string",nullable:!0,enum:["stripe","user"]},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["topup"]},{name:"payment_method",type:"union",nullable:!0},{name:"payment_method_options",type:"union",nullable:!0},{name:"source",type:"union",nullable:!0},{name:"statement_descriptor",type:"string",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","failed","pending","reversed","succeeded"]},{name:"transfer_group",type:"string",nullable:!0}],stateCandidates:[{field:"initiated_by",values:["stripe","user"]},{field:"status",values:["canceled","failed","pending","reversed","succeeded"]}],expandable:["balance_transaction","payment_method","payment_method_options","source"]},{name:"transfer",schema:"transfer",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"amount_reversed",type:"integer",nullable:!1,required:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"destination",type:"union",nullable:!0},{name:"destination_payment",type:"union",nullable:!1},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["transfer"]},{name:"reversals",type:"object",nullable:!1,required:!0},{name:"reversed",type:"boolean",nullable:!1,required:!0},{name:"source_transaction",type:"union",nullable:!0},{name:"source_type",type:"string",nullable:!1},{name:"transfer_group",type:"string",nullable:!0}],stateCandidates:[],expandable:["balance_transaction","destination","destination_payment","reversals","source_transaction"]},{name:"transfer_reversal",schema:"transfer_reversal",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"balance_transaction",type:"union",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"destination_payment_refund",type:"union",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["transfer_reversal"]},{name:"source_refund",type:"union",nullable:!0},{name:"transfer",type:"union",nullable:!1,required:!0}],stateCandidates:[],expandable:["balance_transaction","destination_payment_refund","source_refund","transfer"]},{name:"treasury.credit_reversal",schema:"treasury.credit_reversal",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"financial_account",type:"string",nullable:!1,required:!0},{name:"hosted_regulatory_receipt_url",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"network",type:"string",nullable:!1,required:!0,enum:["ach","stripe"]},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.credit_reversal"]},{name:"received_credit",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","posted","processing"]},{name:"status_transitions",type:"treasury_received_credits_resource_status_transitions",nullable:!1,required:!0},{name:"transaction",type:"union",nullable:!0}],stateCandidates:[{field:"network",values:["ach","stripe"]},{field:"status",values:["canceled","posted","processing"]}],expandable:["status_transitions","transaction"]},{name:"treasury.debit_reversal",schema:"treasury.debit_reversal",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"financial_account",type:"string",nullable:!0},{name:"hosted_regulatory_receipt_url",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"linked_flows",type:"union",nullable:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"network",type:"string",nullable:!1,required:!0,enum:["ach","card"]},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.debit_reversal"]},{name:"received_debit",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["failed","processing","succeeded"]},{name:"status_transitions",type:"treasury_received_debits_resource_status_transitions",nullable:!1,required:!0},{name:"transaction",type:"union",nullable:!0}],stateCandidates:[{field:"network",values:["ach","card"]},{field:"status",values:["failed","processing","succeeded"]}],expandable:["linked_flows","status_transitions","transaction"]},{name:"treasury.financial_account",schema:"treasury.financial_account",fields:[{name:"active_features",type:"array",nullable:!1},{name:"balance",type:"treasury_financial_accounts_resource_balance",nullable:!1,required:!0},{name:"country",type:"string",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"features",type:"treasury.financial_account_features",nullable:!1},{name:"financial_addresses",type:"array",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"is_default",type:"boolean",nullable:!1},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!0},{name:"nickname",type:"string",nullable:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.financial_account"]},{name:"pending_features",type:"array",nullable:!1},{name:"platform_restrictions",type:"union",nullable:!0},{name:"restricted_features",type:"array",nullable:!1},{name:"status",type:"string",nullable:!1,required:!0,enum:["closed","open"]},{name:"status_details",type:"treasury_financial_accounts_resource_status_details",nullable:!1,required:!0},{name:"supported_currencies",type:"array",nullable:!1,required:!0}],stateCandidates:[{field:"is_default",values:["false","true"]},{field:"status",values:["closed","open"]}],expandable:["balance","features","financial_addresses","platform_restrictions","status_details"]},{name:"treasury.financial_account_features",schema:"treasury.financial_account_features",fields:[{name:"card_issuing",type:"treasury_financial_accounts_resource_toggle_settings",nullable:!1},{name:"deposit_insurance",type:"treasury_financial_accounts_resource_toggle_settings",nullable:!1},{name:"financial_addresses",type:"treasury_financial_accounts_resource_financial_addresses_features",nullable:!1},{name:"inbound_transfers",type:"treasury_financial_accounts_resource_inbound_transfers",nullable:!1},{name:"intra_stripe_flows",type:"treasury_financial_accounts_resource_toggle_settings",nullable:!1},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.financial_account_features"]},{name:"outbound_payments",type:"treasury_financial_accounts_resource_outbound_payments",nullable:!1},{name:"outbound_transfers",type:"treasury_financial_accounts_resource_outbound_transfers",nullable:!1}],stateCandidates:[],expandable:["card_issuing","deposit_insurance","financial_addresses","inbound_transfers","intra_stripe_flows","outbound_payments","outbound_transfers"]},{name:"treasury.inbound_transfer",schema:"treasury.inbound_transfer",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"cancelable",type:"boolean",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"failure_details",type:"union",nullable:!0},{name:"financial_account",type:"string",nullable:!1,required:!0},{name:"hosted_regulatory_receipt_url",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"linked_flows",type:"treasury_inbound_transfers_resource_inbound_transfer_resource_linked_flows",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.inbound_transfer"]},{name:"origin_payment_method",type:"string",nullable:!0},{name:"origin_payment_method_details",type:"union",nullable:!0},{name:"returned",type:"boolean",nullable:!0},{name:"statement_descriptor",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","failed","processing","succeeded"]},{name:"status_transitions",type:"treasury_inbound_transfers_resource_inbound_transfer_resource_status_transitions",nullable:!1,required:!0},{name:"transaction",type:"union",nullable:!0}],stateCandidates:[{field:"status",values:["canceled","failed","processing","succeeded"]}],expandable:["failure_details","linked_flows","origin_payment_method_details","status_transitions","transaction"]},{name:"treasury.outbound_payment",schema:"treasury.outbound_payment",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"cancelable",type:"boolean",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"customer",type:"string",nullable:!0},{name:"description",type:"string",nullable:!0},{name:"destination_payment_method",type:"string",nullable:!0},{name:"destination_payment_method_details",type:"union",nullable:!0},{name:"end_user_details",type:"union",nullable:!0},{name:"expected_arrival_date",type:"integer",nullable:!1,required:!0},{name:"financial_account",type:"string",nullable:!1,required:!0},{name:"hosted_regulatory_receipt_url",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.outbound_payment"]},{name:"returned_details",type:"union",nullable:!0},{name:"statement_descriptor",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","failed","posted","processing","returned"]},{name:"status_transitions",type:"treasury_outbound_payments_resource_outbound_payment_resource_status_transitions",nullable:!1,required:!0},{name:"tracking_details",type:"union",nullable:!0},{name:"transaction",type:"union",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:["canceled","failed","posted","processing","returned"]}],expandable:["destination_payment_method_details","end_user_details","returned_details","status_transitions","tracking_details","transaction"]},{name:"treasury.outbound_transfer",schema:"treasury.outbound_transfer",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"cancelable",type:"boolean",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"destination_payment_method",type:"string",nullable:!0},{name:"destination_payment_method_details",type:"outbound_transfers_payment_method_details",nullable:!1,required:!0},{name:"expected_arrival_date",type:"integer",nullable:!1,required:!0},{name:"financial_account",type:"string",nullable:!1,required:!0},{name:"hosted_regulatory_receipt_url",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.outbound_transfer"]},{name:"returned_details",type:"union",nullable:!0},{name:"statement_descriptor",type:"string",nullable:!1,required:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["canceled","failed","posted","processing","returned"]},{name:"status_transitions",type:"treasury_outbound_transfers_resource_status_transitions",nullable:!1,required:!0},{name:"tracking_details",type:"union",nullable:!0},{name:"transaction",type:"union",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:["canceled","failed","posted","processing","returned"]}],expandable:["destination_payment_method_details","returned_details","status_transitions","tracking_details","transaction"]},{name:"treasury.received_credit",schema:"treasury.received_credit",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!1,required:!0},{name:"failure_code",type:"string",nullable:!0,enum:["account_closed","account_frozen","international_transaction","other"]},{name:"financial_account",type:"string",nullable:!0},{name:"hosted_regulatory_receipt_url",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"initiating_payment_method_details",type:"treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details",nullable:!1,required:!0},{name:"linked_flows",type:"treasury_received_credits_resource_linked_flows",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"network",type:"string",nullable:!1,required:!0,enum:["ach","card","rtp","stripe","us_domestic_wire"]},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.received_credit"]},{name:"reversal_details",type:"union",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["failed","succeeded"]},{name:"transaction",type:"union",nullable:!0}],stateCandidates:[{field:"failure_code",values:["account_closed","account_frozen","international_transaction","other"]},{field:"network",values:["ach","card","rtp","stripe","us_domestic_wire"]},{field:"status",values:["failed","succeeded"]}],expandable:["initiating_payment_method_details","linked_flows","reversal_details","transaction"]},{name:"treasury.received_debit",schema:"treasury.received_debit",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!1,required:!0},{name:"failure_code",type:"string",nullable:!0,enum:["account_closed","account_frozen","insufficient_funds","international_transaction","other"]},{name:"financial_account",type:"string",nullable:!0},{name:"hosted_regulatory_receipt_url",type:"string",nullable:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"initiating_payment_method_details",type:"treasury_shared_resource_initiating_payment_method_details_initiating_payment_method_details",nullable:!1},{name:"linked_flows",type:"treasury_received_debits_resource_linked_flows",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"network",type:"string",nullable:!1,required:!0,enum:["ach","card","stripe"]},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.received_debit"]},{name:"reversal_details",type:"union",nullable:!0},{name:"status",type:"string",nullable:!1,required:!0,enum:["failed","succeeded"]},{name:"transaction",type:"union",nullable:!0}],stateCandidates:[{field:"failure_code",values:["account_closed","account_frozen","insufficient_funds","international_transaction","other"]},{field:"network",values:["ach","card","stripe"]},{field:"status",values:["failed","succeeded"]}],expandable:["initiating_payment_method_details","linked_flows","reversal_details","transaction"]},{name:"treasury.transaction",schema:"treasury.transaction",fields:[{name:"amount",type:"integer",nullable:!1,required:!0},{name:"balance_impact",type:"treasury_transactions_resource_balance_impact",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"description",type:"string",nullable:!1,required:!0},{name:"entries",type:"object",nullable:!0},{name:"financial_account",type:"string",nullable:!1,required:!0},{name:"flow",type:"string",nullable:!0},{name:"flow_details",type:"union",nullable:!0},{name:"flow_type",type:"string",nullable:!1,required:!0,enum:["credit_reversal","debit_reversal","inbound_transfer","issuing_authorization","other","outbound_payment","outbound_transfer","received_credit","received_debit"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.transaction"]},{name:"status",type:"string",nullable:!1,required:!0,enum:["open","posted","void"]},{name:"status_transitions",type:"treasury_transactions_resource_abstract_transaction_resource_status_transitions",nullable:!1,required:!0}],stateCandidates:[{field:"flow_type",values:["credit_reversal","debit_reversal","inbound_transfer","issuing_authorization","other","outbound_payment","outbound_transfer","received_credit","received_debit"]},{field:"status",values:["open","posted","void"]}],expandable:["balance_impact","entries","flow_details","status_transitions"]},{name:"treasury.transaction_entry",schema:"treasury.transaction_entry",fields:[{name:"balance_impact",type:"treasury_transactions_resource_balance_impact",nullable:!1,required:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"currency",type:"string",nullable:!1,required:!0},{name:"effective_at",type:"integer",nullable:!1,required:!0},{name:"financial_account",type:"string",nullable:!1,required:!0},{name:"flow",type:"string",nullable:!0},{name:"flow_details",type:"union",nullable:!0},{name:"flow_type",type:"string",nullable:!1,required:!0,enum:["credit_reversal","debit_reversal","inbound_transfer","issuing_authorization","other","outbound_payment","outbound_transfer","received_credit","received_debit"]},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["treasury.transaction_entry"]},{name:"transaction",type:"union",nullable:!1,required:!0},{name:"type",type:"string",nullable:!1,required:!0,enum:["credit_reversal","credit_reversal_posting","debit_reversal","inbound_transfer","inbound_transfer_return","issuing_authorization_hold","issuing_authorization_release","other","outbound_payment","outbound_payment_cancellation","outbound_payment_failure","outbound_payment_posting","outbound_payment_return","outbound_transfer","outbound_transfer_cancellation","outbound_transfer_failure","outbound_transfer_posting","outbound_transfer_return","received_credit","received_debit"]}],stateCandidates:[{field:"flow_type",values:["credit_reversal","debit_reversal","inbound_transfer","issuing_authorization","other","outbound_payment","outbound_transfer","received_credit","received_debit"]},{field:"type",values:["credit_reversal","credit_reversal_posting","debit_reversal","inbound_transfer","inbound_transfer_return","issuing_authorization_hold","issuing_authorization_release","other","outbound_payment","outbound_payment_cancellation","outbound_payment_failure","outbound_payment_posting","outbound_payment_return","outbound_transfer","outbound_transfer_cancellation","outbound_transfer_failure","outbound_transfer_posting","outbound_transfer_return","received_credit","received_debit"]}],expandable:["balance_impact","flow_details","transaction"]},{name:"webhook_endpoint",schema:"webhook_endpoint",fields:[{name:"api_version",type:"string",nullable:!0},{name:"application",type:"string",nullable:!0},{name:"created",type:"integer",nullable:!1,required:!0},{name:"description",type:"string",nullable:!0},{name:"enabled_events",type:"array",nullable:!1,required:!0},{name:"id",type:"string",nullable:!1,required:!0},{name:"livemode",type:"boolean",nullable:!1,required:!0},{name:"metadata",type:"object",nullable:!1,required:!0},{name:"object",type:"string",nullable:!1,required:!0,enum:["webhook_endpoint"]},{name:"secret",type:"string",nullable:!1},{name:"status",type:"string",nullable:!1,required:!0},{name:"url",type:"string",nullable:!1,required:!0}],stateCandidates:[{field:"status",values:[]}],expandable:[]}],operations:[{id:"GetAccount",method:"get",path:"/v1/account",pathParams:[],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account",list:!1},class:"retrieve",resource:"account"},{id:"PostAccountLinks",method:"post",path:"/v1/account_links",pathParams:[],query:[],body:[{name:"account",type:"string",required:!0},{name:"collect",type:"string",required:!1},{name:"collection_options",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"refresh_url",type:"string",required:!1},{name:"return_url",type:"string",required:!1},{name:"type",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account_link",list:!1},class:"action",resource:"account_link"},{id:"PostAccountSessions",method:"post",path:"/v1/account_sessions",pathParams:[],query:[],body:[{name:"account",type:"string",required:!0},{name:"components",type:"object",required:!0},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{"components.account_management.enabled":"boolean","components.account_management.features.disable_stripe_user_authentication":"boolean","components.account_management.features.external_account_collection":"boolean","components.account_onboarding.enabled":"boolean","components.account_onboarding.features.disable_stripe_user_authentication":"boolean","components.account_onboarding.features.external_account_collection":"boolean","components.balance_report.enabled":"boolean","components.balances.enabled":"boolean","components.balances.features.disable_stripe_user_authentication":"boolean","components.balances.features.edit_payout_schedule":"boolean","components.balances.features.external_account_collection":"boolean","components.balances.features.instant_payouts":"boolean","components.balances.features.standard_payouts":"boolean","components.disputes_list.enabled":"boolean","components.disputes_list.features.capture_payments":"boolean","components.disputes_list.features.destination_on_behalf_of_charge_management":"boolean","components.disputes_list.features.dispute_management":"boolean","components.disputes_list.features.refund_management":"boolean","components.disputes_list.features.smart_disputes_management":"boolean","components.documents.enabled":"boolean","components.financial_account_transactions.enabled":"boolean","components.financial_account_transactions.features.card_spend_dispute_management":"boolean","components.financial_account.enabled":"boolean","components.financial_account.features.disable_stripe_user_authentication":"boolean","components.financial_account.features.external_account_collection":"boolean","components.financial_account.features.send_money":"boolean","components.financial_account.features.transfer_balance":"boolean","components.instant_payouts_promotion.enabled":"boolean","components.instant_payouts_promotion.features.disable_stripe_user_authentication":"boolean","components.instant_payouts_promotion.features.external_account_collection":"boolean","components.instant_payouts_promotion.features.instant_payouts":"boolean","components.issuing_card.enabled":"boolean","components.issuing_card.features.card_management":"boolean","components.issuing_card.features.card_spend_dispute_management":"boolean","components.issuing_card.features.cardholder_management":"boolean","components.issuing_card.features.spend_control_management":"boolean","components.issuing_cards_list.enabled":"boolean","components.issuing_cards_list.features.card_management":"boolean","components.issuing_cards_list.features.card_spend_dispute_management":"boolean","components.issuing_cards_list.features.cardholder_management":"boolean","components.issuing_cards_list.features.disable_stripe_user_authentication":"boolean","components.issuing_cards_list.features.spend_control_management":"boolean","components.notification_banner.enabled":"boolean","components.notification_banner.features.disable_stripe_user_authentication":"boolean","components.notification_banner.features.external_account_collection":"boolean","components.payment_details.enabled":"boolean","components.payment_details.features.capture_payments":"boolean","components.payment_details.features.destination_on_behalf_of_charge_management":"boolean","components.payment_details.features.dispute_management":"boolean","components.payment_details.features.refund_management":"boolean","components.payment_details.features.smart_disputes_management":"boolean","components.payment_disputes.enabled":"boolean","components.payment_disputes.features.destination_on_behalf_of_charge_management":"boolean","components.payment_disputes.features.dispute_management":"boolean","components.payment_disputes.features.refund_management":"boolean","components.payment_disputes.features.smart_disputes_management":"boolean","components.payment_method_settings.enabled":"boolean","components.payment_method_settings.features.disable_stripe_user_authentication":"boolean","components.payments.enabled":"boolean","components.payments.features.capture_payments":"boolean","components.payments.features.destination_on_behalf_of_charge_management":"boolean","components.payments.features.dispute_management":"boolean","components.payments.features.refund_management":"boolean","components.payments.features.smart_disputes_management":"boolean","components.payout_details.enabled":"boolean","components.payout_reconciliation_report.enabled":"boolean","components.payouts_list.enabled":"boolean","components.payouts.enabled":"boolean","components.payouts.features.disable_stripe_user_authentication":"boolean","components.payouts.features.edit_payout_schedule":"boolean","components.payouts.features.external_account_collection":"boolean","components.payouts.features.instant_payouts":"boolean","components.payouts.features.standard_payouts":"boolean","components.tax_registrations.enabled":"boolean","components.tax_settings.enabled":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account_session",list:!1},class:"action",resource:"account_session"},{id:"GetAccounts",method:"get",path:"/v1/accounts",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account",list:!0},class:"list",resource:"account"},{id:"PostAccounts",method:"post",path:"/v1/accounts",pathParams:[],query:[],body:[{name:"account_token",type:"string",required:!1},{name:"bank_account",type:"union",required:!1},{name:"business_profile",type:"object",required:!1},{name:"business_type",type:"string",required:!1},{name:"capabilities",type:"object",required:!1},{name:"company",type:"object",required:!1},{name:"controller",type:"object",required:!1},{name:"country",type:"string",required:!1},{name:"default_currency",type:"string",required:!1},{name:"documents",type:"object",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"external_account",type:"string",required:!1},{name:"groups",type:"object",required:!1},{name:"individual",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"settings",type:"object",required:!1},{name:"tos_acceptance",type:"object",required:!1},{name:"type",type:"string",required:!1}],bodyEncoding:"form",scalars:{"business_profile.annual_revenue.amount":"integer","business_profile.estimated_worker_count":"integer","business_profile.monthly_estimated_revenue.amount":"integer","capabilities.acss_debit_payments.requested":"boolean","capabilities.affirm_payments.requested":"boolean","capabilities.afterpay_clearpay_payments.requested":"boolean","capabilities.alma_payments.requested":"boolean","capabilities.amazon_pay_payments.requested":"boolean","capabilities.app_distribution.requested":"boolean","capabilities.au_becs_debit_payments.requested":"boolean","capabilities.bacs_debit_payments.requested":"boolean","capabilities.bancontact_payments.requested":"boolean","capabilities.bank_transfer_payments.requested":"boolean","capabilities.billie_payments.requested":"boolean","capabilities.bizum_payments.requested":"boolean","capabilities.blik_payments.requested":"boolean","capabilities.blik_recurring_payments.requested":"boolean","capabilities.boleto_payments.requested":"boolean","capabilities.card_issuing.requested":"boolean","capabilities.card_payments.requested":"boolean","capabilities.cartes_bancaires_payments.requested":"boolean","capabilities.cashapp_payments.requested":"boolean","capabilities.crypto_payments.requested":"boolean","capabilities.eps_payments.requested":"boolean","capabilities.fpx_payments.requested":"boolean","capabilities.gb_bank_transfer_payments.requested":"boolean","capabilities.giropay_payments.requested":"boolean","capabilities.grabpay_payments.requested":"boolean","capabilities.ideal_payments.requested":"boolean","capabilities.india_international_payments.requested":"boolean","capabilities.jcb_payments.requested":"boolean","capabilities.jp_bank_transfer_payments.requested":"boolean","capabilities.kakao_pay_payments.requested":"boolean","capabilities.klarna_payments.requested":"boolean","capabilities.konbini_payments.requested":"boolean","capabilities.kr_card_payments.requested":"boolean","capabilities.legacy_payments.requested":"boolean","capabilities.link_payments.requested":"boolean","capabilities.mb_way_payments.requested":"boolean","capabilities.mobilepay_payments.requested":"boolean","capabilities.multibanco_payments.requested":"boolean","capabilities.mx_bank_transfer_payments.requested":"boolean","capabilities.naver_pay_payments.requested":"boolean","capabilities.nz_bank_account_becs_debit_payments.requested":"boolean","capabilities.oxxo_payments.requested":"boolean","capabilities.p24_payments.requested":"boolean","capabilities.pay_by_bank_payments.requested":"boolean","capabilities.payco_payments.requested":"boolean","capabilities.paynow_payments.requested":"boolean","capabilities.paypay_payments.requested":"boolean","capabilities.payto_payments.requested":"boolean","capabilities.pix_payments.requested":"boolean","capabilities.promptpay_payments.requested":"boolean","capabilities.revolut_pay_payments.requested":"boolean","capabilities.samsung_pay_payments.requested":"boolean","capabilities.satispay_payments.requested":"boolean","capabilities.scalapay_payments.requested":"boolean","capabilities.sepa_bank_transfer_payments.requested":"boolean","capabilities.sepa_debit_payments.requested":"boolean","capabilities.sequra_payments.requested":"boolean","capabilities.sofort_payments.requested":"boolean","capabilities.sunbit_payments.requested":"boolean","capabilities.swish_payments.requested":"boolean","capabilities.tax_reporting_us_1099_k.requested":"boolean","capabilities.tax_reporting_us_1099_misc.requested":"boolean","capabilities.transfers.requested":"boolean","capabilities.treasury.requested":"boolean","capabilities.twint_payments.requested":"boolean","capabilities.upi_payments.requested":"boolean","capabilities.us_bank_account_ach_payments.requested":"boolean","capabilities.us_bank_transfer_payments.requested":"boolean","capabilities.zip_payments.requested":"boolean","company.directors_provided":"boolean","company.directorship_declaration.date":"integer","company.executives_provided":"boolean","company.owners_provided":"boolean","company.ownership_declaration.date":"integer","company.registration_date.day":"integer","company.registration_date.month":"integer","company.registration_date.year":"integer","company.representative_declaration.date":"integer","individual.dob.day":"integer","individual.dob.month":"integer","individual.dob.year":"integer","individual.relationship.director":"boolean","individual.relationship.executive":"boolean","individual.relationship.owner":"boolean","individual.relationship.percent_ownership":"number","settings.card_issuing.tos_acceptance.date":"integer","settings.card_payments.decline_on.avs_failure":"boolean","settings.card_payments.decline_on.cvc_failure":"boolean","settings.payouts.debit_negative_balances":"boolean","settings.payouts.schedule.delay_days":"integer","settings.payouts.schedule.monthly_anchor":"integer","settings.payouts.schedule.monthly_payout_days.[]":"integer","settings.treasury.tos_acceptance.date":"integer","tos_acceptance.date":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account",list:!1},class:"create",resource:"account"},{id:"GetAccountsAccount",method:"get",path:"/v1/accounts/{account}",pathParams:["account"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account",list:!1},class:"retrieve",resource:"account"},{id:"PostAccountsAccount",method:"post",path:"/v1/accounts/{account}",pathParams:["account"],query:[],body:[{name:"account_token",type:"string",required:!1},{name:"business_profile",type:"object",required:!1},{name:"business_type",type:"string",required:!1},{name:"capabilities",type:"object",required:!1},{name:"company",type:"object",required:!1},{name:"default_currency",type:"string",required:!1},{name:"documents",type:"object",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"external_account",type:"string",required:!1},{name:"groups",type:"object",required:!1},{name:"individual",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"settings",type:"object",required:!1},{name:"tos_acceptance",type:"object",required:!1}],bodyEncoding:"form",scalars:{"business_profile.annual_revenue.amount":"integer","business_profile.estimated_worker_count":"integer","business_profile.monthly_estimated_revenue.amount":"integer","capabilities.acss_debit_payments.requested":"boolean","capabilities.affirm_payments.requested":"boolean","capabilities.afterpay_clearpay_payments.requested":"boolean","capabilities.alma_payments.requested":"boolean","capabilities.amazon_pay_payments.requested":"boolean","capabilities.app_distribution.requested":"boolean","capabilities.au_becs_debit_payments.requested":"boolean","capabilities.bacs_debit_payments.requested":"boolean","capabilities.bancontact_payments.requested":"boolean","capabilities.bank_transfer_payments.requested":"boolean","capabilities.billie_payments.requested":"boolean","capabilities.bizum_payments.requested":"boolean","capabilities.blik_payments.requested":"boolean","capabilities.blik_recurring_payments.requested":"boolean","capabilities.boleto_payments.requested":"boolean","capabilities.card_issuing.requested":"boolean","capabilities.card_payments.requested":"boolean","capabilities.cartes_bancaires_payments.requested":"boolean","capabilities.cashapp_payments.requested":"boolean","capabilities.crypto_payments.requested":"boolean","capabilities.eps_payments.requested":"boolean","capabilities.fpx_payments.requested":"boolean","capabilities.gb_bank_transfer_payments.requested":"boolean","capabilities.giropay_payments.requested":"boolean","capabilities.grabpay_payments.requested":"boolean","capabilities.ideal_payments.requested":"boolean","capabilities.india_international_payments.requested":"boolean","capabilities.jcb_payments.requested":"boolean","capabilities.jp_bank_transfer_payments.requested":"boolean","capabilities.kakao_pay_payments.requested":"boolean","capabilities.klarna_payments.requested":"boolean","capabilities.konbini_payments.requested":"boolean","capabilities.kr_card_payments.requested":"boolean","capabilities.legacy_payments.requested":"boolean","capabilities.link_payments.requested":"boolean","capabilities.mb_way_payments.requested":"boolean","capabilities.mobilepay_payments.requested":"boolean","capabilities.multibanco_payments.requested":"boolean","capabilities.mx_bank_transfer_payments.requested":"boolean","capabilities.naver_pay_payments.requested":"boolean","capabilities.nz_bank_account_becs_debit_payments.requested":"boolean","capabilities.oxxo_payments.requested":"boolean","capabilities.p24_payments.requested":"boolean","capabilities.pay_by_bank_payments.requested":"boolean","capabilities.payco_payments.requested":"boolean","capabilities.paynow_payments.requested":"boolean","capabilities.paypay_payments.requested":"boolean","capabilities.payto_payments.requested":"boolean","capabilities.pix_payments.requested":"boolean","capabilities.promptpay_payments.requested":"boolean","capabilities.revolut_pay_payments.requested":"boolean","capabilities.samsung_pay_payments.requested":"boolean","capabilities.satispay_payments.requested":"boolean","capabilities.scalapay_payments.requested":"boolean","capabilities.sepa_bank_transfer_payments.requested":"boolean","capabilities.sepa_debit_payments.requested":"boolean","capabilities.sequra_payments.requested":"boolean","capabilities.sofort_payments.requested":"boolean","capabilities.sunbit_payments.requested":"boolean","capabilities.swish_payments.requested":"boolean","capabilities.tax_reporting_us_1099_k.requested":"boolean","capabilities.tax_reporting_us_1099_misc.requested":"boolean","capabilities.transfers.requested":"boolean","capabilities.treasury.requested":"boolean","capabilities.twint_payments.requested":"boolean","capabilities.upi_payments.requested":"boolean","capabilities.us_bank_account_ach_payments.requested":"boolean","capabilities.us_bank_transfer_payments.requested":"boolean","capabilities.zip_payments.requested":"boolean","company.directors_provided":"boolean","company.directorship_declaration.date":"integer","company.executives_provided":"boolean","company.owners_provided":"boolean","company.ownership_declaration.date":"integer","company.registration_date.day":"integer","company.registration_date.month":"integer","company.registration_date.year":"integer","company.representative_declaration.date":"integer","individual.dob.day":"integer","individual.dob.month":"integer","individual.dob.year":"integer","individual.relationship.director":"boolean","individual.relationship.executive":"boolean","individual.relationship.owner":"boolean","individual.relationship.percent_ownership":"number","settings.card_issuing.tos_acceptance.date":"integer","settings.card_payments.decline_on.avs_failure":"boolean","settings.card_payments.decline_on.cvc_failure":"boolean","settings.payouts.debit_negative_balances":"boolean","settings.payouts.schedule.delay_days":"integer","settings.payouts.schedule.monthly_anchor":"integer","settings.payouts.schedule.monthly_payout_days.[]":"integer","settings.treasury.tos_acceptance.date":"integer","tos_acceptance.date":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account",list:!1},class:"update",resource:"account"},{id:"DeleteAccountsAccount",method:"delete",path:"/v1/accounts/{account}",pathParams:["account"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_account",list:!1},class:"delete",resource:"account"},{id:"PostAccountsAccountBankAccounts",method:"post",path:"/v1/accounts/{account}/bank_accounts",pathParams:["account"],query:[],body:[{name:"bank_account",type:"union",required:!1},{name:"default_for_currency",type:"boolean",required:!1},{name:"expand",type:"array",required:!1},{name:"external_account",type:"string",required:!1},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",scalars:{default_for_currency:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"external_account",list:!1},class:"create",resource:"external_account"},{id:"GetAccountsAccountBankAccountsId",method:"get",path:"/v1/accounts/{account}/bank_accounts/{id}",pathParams:["account","id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"external_account",list:!1},class:"retrieve",resource:"external_account"},{id:"PostAccountsAccountBankAccountsId",method:"post",path:"/v1/accounts/{account}/bank_accounts/{id}",pathParams:["account","id"],query:[],body:[{name:"account_holder_name",type:"string",required:!1},{name:"account_holder_type",type:"string",required:!1},{name:"account_type",type:"string",required:!1},{name:"address_city",type:"string",required:!1},{name:"address_country",type:"string",required:!1},{name:"address_line1",type:"string",required:!1},{name:"address_line2",type:"string",required:!1},{name:"address_state",type:"string",required:!1},{name:"address_zip",type:"string",required:!1},{name:"default_for_currency",type:"boolean",required:!1},{name:"documents",type:"object",required:!1},{name:"exp_month",type:"string",required:!1},{name:"exp_year",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1}],bodyEncoding:"form",scalars:{default_for_currency:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"external_account",list:!1},class:"update",resource:"external_account"},{id:"DeleteAccountsAccountBankAccountsId",method:"delete",path:"/v1/accounts/{account}/bank_accounts/{id}",pathParams:["account","id"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_external_account",list:!1},class:"delete",resource:"external_account"},{id:"GetAccountsAccountCapabilities",method:"get",path:"/v1/accounts/{account}/capabilities",pathParams:["account"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"capability",list:!0},class:"list",resource:"capability"},{id:"GetAccountsAccountCapabilitiesCapability",method:"get",path:"/v1/accounts/{account}/capabilities/{capability}",pathParams:["account","capability"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"capability",list:!1},class:"retrieve",resource:"capability"},{id:"PostAccountsAccountCapabilitiesCapability",method:"post",path:"/v1/accounts/{account}/capabilities/{capability}",pathParams:["account","capability"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"requested",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{requested:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"capability",list:!1},class:"update",resource:"capability"},{id:"GetAccountsAccountExternalAccounts",method:"get",path:"/v1/accounts/{account}/external_accounts",pathParams:["account"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"object",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"bank_account",list:!0,alternatives:["card"]},class:"list",resource:"bank_account"},{id:"PostAccountsAccountExternalAccounts",method:"post",path:"/v1/accounts/{account}/external_accounts",pathParams:["account"],query:[],body:[{name:"bank_account",type:"union",required:!1},{name:"default_for_currency",type:"boolean",required:!1},{name:"expand",type:"array",required:!1},{name:"external_account",type:"string",required:!1},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",scalars:{default_for_currency:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"external_account",list:!1},class:"create",resource:"external_account"},{id:"GetAccountsAccountExternalAccountsId",method:"get",path:"/v1/accounts/{account}/external_accounts/{id}",pathParams:["account","id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"external_account",list:!1},class:"retrieve",resource:"external_account"},{id:"PostAccountsAccountExternalAccountsId",method:"post",path:"/v1/accounts/{account}/external_accounts/{id}",pathParams:["account","id"],query:[],body:[{name:"account_holder_name",type:"string",required:!1},{name:"account_holder_type",type:"string",required:!1},{name:"account_type",type:"string",required:!1},{name:"address_city",type:"string",required:!1},{name:"address_country",type:"string",required:!1},{name:"address_line1",type:"string",required:!1},{name:"address_line2",type:"string",required:!1},{name:"address_state",type:"string",required:!1},{name:"address_zip",type:"string",required:!1},{name:"default_for_currency",type:"boolean",required:!1},{name:"documents",type:"object",required:!1},{name:"exp_month",type:"string",required:!1},{name:"exp_year",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1}],bodyEncoding:"form",scalars:{default_for_currency:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"external_account",list:!1},class:"update",resource:"external_account"},{id:"DeleteAccountsAccountExternalAccountsId",method:"delete",path:"/v1/accounts/{account}/external_accounts/{id}",pathParams:["account","id"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_external_account",list:!1},class:"delete",resource:"external_account"},{id:"PostAccountsAccountLoginLinks",method:"post",path:"/v1/accounts/{account}/login_links",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"login_link",list:!1},class:"action",resource:"account"},{id:"GetAccountsAccountPeople",method:"get",path:"/v1/accounts/{account}/people",pathParams:["account"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"relationship",type:"object",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer","relationship.authorizer":"boolean","relationship.director":"boolean","relationship.executive":"boolean","relationship.legal_guardian":"boolean","relationship.owner":"boolean","relationship.representative":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"person",list:!0},class:"list",resource:"person"},{id:"PostAccountsAccountPeople",method:"post",path:"/v1/accounts/{account}/people",pathParams:["account"],query:[],body:[{name:"additional_tos_acceptances",type:"object",required:!1},{name:"address",type:"object",required:!1},{name:"address_kana",type:"object",required:!1},{name:"address_kanji",type:"object",required:!1},{name:"dob",type:"union",required:!1},{name:"documents",type:"object",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"first_name",type:"string",required:!1},{name:"first_name_kana",type:"string",required:!1},{name:"first_name_kanji",type:"string",required:!1},{name:"full_name_aliases",type:"union",required:!1},{name:"gender",type:"string",required:!1},{name:"id_number",type:"string",required:!1},{name:"id_number_secondary",type:"string",required:!1},{name:"last_name",type:"string",required:!1},{name:"last_name_kana",type:"string",required:!1},{name:"last_name_kanji",type:"string",required:!1},{name:"maiden_name",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"nationality",type:"string",required:!1},{name:"person_token",type:"string",required:!1},{name:"phone",type:"string",required:!1},{name:"political_exposure",type:"string",required:!1},{name:"registered_address",type:"object",required:!1},{name:"relationship",type:"object",required:!1},{name:"ssn_last_4",type:"string",required:!1},{name:"us_cfpb_data",type:"object",required:!1},{name:"verification",type:"object",required:!1}],bodyEncoding:"form",scalars:{"additional_tos_acceptances.account.date":"integer","dob.day":"integer","dob.month":"integer","dob.year":"integer","relationship.authorizer":"boolean","relationship.director":"boolean","relationship.executive":"boolean","relationship.legal_guardian":"boolean","relationship.owner":"boolean","relationship.percent_ownership":"number","relationship.representative":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"person",list:!1},class:"create",resource:"person"},{id:"GetAccountsAccountPeoplePerson",method:"get",path:"/v1/accounts/{account}/people/{person}",pathParams:["account","person"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"person",list:!1},class:"retrieve",resource:"person"},{id:"PostAccountsAccountPeoplePerson",method:"post",path:"/v1/accounts/{account}/people/{person}",pathParams:["account","person"],query:[],body:[{name:"additional_tos_acceptances",type:"object",required:!1},{name:"address",type:"object",required:!1},{name:"address_kana",type:"object",required:!1},{name:"address_kanji",type:"object",required:!1},{name:"dob",type:"union",required:!1},{name:"documents",type:"object",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"first_name",type:"string",required:!1},{name:"first_name_kana",type:"string",required:!1},{name:"first_name_kanji",type:"string",required:!1},{name:"full_name_aliases",type:"union",required:!1},{name:"gender",type:"string",required:!1},{name:"id_number",type:"string",required:!1},{name:"id_number_secondary",type:"string",required:!1},{name:"last_name",type:"string",required:!1},{name:"last_name_kana",type:"string",required:!1},{name:"last_name_kanji",type:"string",required:!1},{name:"maiden_name",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"nationality",type:"string",required:!1},{name:"person_token",type:"string",required:!1},{name:"phone",type:"string",required:!1},{name:"political_exposure",type:"string",required:!1},{name:"registered_address",type:"object",required:!1},{name:"relationship",type:"object",required:!1},{name:"ssn_last_4",type:"string",required:!1},{name:"us_cfpb_data",type:"object",required:!1},{name:"verification",type:"object",required:!1}],bodyEncoding:"form",scalars:{"additional_tos_acceptances.account.date":"integer","dob.day":"integer","dob.month":"integer","dob.year":"integer","relationship.authorizer":"boolean","relationship.director":"boolean","relationship.executive":"boolean","relationship.legal_guardian":"boolean","relationship.owner":"boolean","relationship.percent_ownership":"number","relationship.representative":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"person",list:!1},class:"update",resource:"person"},{id:"DeleteAccountsAccountPeoplePerson",method:"delete",path:"/v1/accounts/{account}/people/{person}",pathParams:["account","person"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_person",list:!1},class:"delete",resource:"person"},{id:"GetAccountsAccountPersons",method:"get",path:"/v1/accounts/{account}/persons",pathParams:["account"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"relationship",type:"object",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer","relationship.authorizer":"boolean","relationship.director":"boolean","relationship.executive":"boolean","relationship.legal_guardian":"boolean","relationship.owner":"boolean","relationship.representative":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"person",list:!0},class:"list",resource:"person"},{id:"PostAccountsAccountPersons",method:"post",path:"/v1/accounts/{account}/persons",pathParams:["account"],query:[],body:[{name:"additional_tos_acceptances",type:"object",required:!1},{name:"address",type:"object",required:!1},{name:"address_kana",type:"object",required:!1},{name:"address_kanji",type:"object",required:!1},{name:"dob",type:"union",required:!1},{name:"documents",type:"object",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"first_name",type:"string",required:!1},{name:"first_name_kana",type:"string",required:!1},{name:"first_name_kanji",type:"string",required:!1},{name:"full_name_aliases",type:"union",required:!1},{name:"gender",type:"string",required:!1},{name:"id_number",type:"string",required:!1},{name:"id_number_secondary",type:"string",required:!1},{name:"last_name",type:"string",required:!1},{name:"last_name_kana",type:"string",required:!1},{name:"last_name_kanji",type:"string",required:!1},{name:"maiden_name",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"nationality",type:"string",required:!1},{name:"person_token",type:"string",required:!1},{name:"phone",type:"string",required:!1},{name:"political_exposure",type:"string",required:!1},{name:"registered_address",type:"object",required:!1},{name:"relationship",type:"object",required:!1},{name:"ssn_last_4",type:"string",required:!1},{name:"us_cfpb_data",type:"object",required:!1},{name:"verification",type:"object",required:!1}],bodyEncoding:"form",scalars:{"additional_tos_acceptances.account.date":"integer","dob.day":"integer","dob.month":"integer","dob.year":"integer","relationship.authorizer":"boolean","relationship.director":"boolean","relationship.executive":"boolean","relationship.legal_guardian":"boolean","relationship.owner":"boolean","relationship.percent_ownership":"number","relationship.representative":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"person",list:!1},class:"create",resource:"person"},{id:"GetAccountsAccountPersonsPerson",method:"get",path:"/v1/accounts/{account}/persons/{person}",pathParams:["account","person"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"person",list:!1},class:"retrieve",resource:"person"},{id:"PostAccountsAccountPersonsPerson",method:"post",path:"/v1/accounts/{account}/persons/{person}",pathParams:["account","person"],query:[],body:[{name:"additional_tos_acceptances",type:"object",required:!1},{name:"address",type:"object",required:!1},{name:"address_kana",type:"object",required:!1},{name:"address_kanji",type:"object",required:!1},{name:"dob",type:"union",required:!1},{name:"documents",type:"object",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"first_name",type:"string",required:!1},{name:"first_name_kana",type:"string",required:!1},{name:"first_name_kanji",type:"string",required:!1},{name:"full_name_aliases",type:"union",required:!1},{name:"gender",type:"string",required:!1},{name:"id_number",type:"string",required:!1},{name:"id_number_secondary",type:"string",required:!1},{name:"last_name",type:"string",required:!1},{name:"last_name_kana",type:"string",required:!1},{name:"last_name_kanji",type:"string",required:!1},{name:"maiden_name",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"nationality",type:"string",required:!1},{name:"person_token",type:"string",required:!1},{name:"phone",type:"string",required:!1},{name:"political_exposure",type:"string",required:!1},{name:"registered_address",type:"object",required:!1},{name:"relationship",type:"object",required:!1},{name:"ssn_last_4",type:"string",required:!1},{name:"us_cfpb_data",type:"object",required:!1},{name:"verification",type:"object",required:!1}],bodyEncoding:"form",scalars:{"additional_tos_acceptances.account.date":"integer","dob.day":"integer","dob.month":"integer","dob.year":"integer","relationship.authorizer":"boolean","relationship.director":"boolean","relationship.executive":"boolean","relationship.legal_guardian":"boolean","relationship.owner":"boolean","relationship.percent_ownership":"number","relationship.representative":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"person",list:!1},class:"update",resource:"person"},{id:"DeleteAccountsAccountPersonsPerson",method:"delete",path:"/v1/accounts/{account}/persons/{person}",pathParams:["account","person"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_person",list:!1},class:"delete",resource:"person"},{id:"PostAccountsAccountReject",method:"post",path:"/v1/accounts/{account}/reject",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"payouts_action",type:"string",required:!1},{name:"reason",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account",list:!1},class:"action",resource:"account"},{id:"PostAccountsAccountUnreject",method:"post",path:"/v1/accounts/{account}/unreject",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"account",list:!1},class:"action",resource:"account"},{id:"GetApplePayDomains",method:"get",path:"/v1/apple_pay/domains",pathParams:[],query:[{name:"domain_name",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apple_pay_domain",list:!0},class:"list",resource:"apple_pay_domain"},{id:"PostApplePayDomains",method:"post",path:"/v1/apple_pay/domains",pathParams:[],query:[],body:[{name:"domain_name",type:"string",required:!0},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apple_pay_domain",list:!1},class:"create",resource:"apple_pay_domain"},{id:"GetApplePayDomainsDomain",method:"get",path:"/v1/apple_pay/domains/{domain}",pathParams:["domain"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apple_pay_domain",list:!1},class:"retrieve",resource:"apple_pay_domain"},{id:"DeleteApplePayDomainsDomain",method:"delete",path:"/v1/apple_pay/domains/{domain}",pathParams:["domain"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_apple_pay_domain",list:!1},class:"delete",resource:"apple_pay_domain"},{id:"GetApplicationFees",method:"get",path:"/v1/application_fees",pathParams:[],query:[{name:"charge",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"application_fee",list:!0},class:"list",resource:"application_fee"},{id:"GetApplicationFeesFeeRefundsId",method:"get",path:"/v1/application_fees/{fee}/refunds/{id}",pathParams:["fee","id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"fee_refund",list:!1},class:"retrieve",resource:"fee_refund"},{id:"PostApplicationFeesFeeRefundsId",method:"post",path:"/v1/application_fees/{fee}/refunds/{id}",pathParams:["fee","id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"fee_refund",list:!1},class:"update",resource:"fee_refund"},{id:"GetApplicationFeesId",method:"get",path:"/v1/application_fees/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"application_fee",list:!1},class:"retrieve",resource:"application_fee"},{id:"PostApplicationFeesIdRefund",method:"post",path:"/v1/application_fees/{id}/refund",pathParams:["id"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"directive",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"application_fee",list:!1},class:"action",resource:"application_fee"},{id:"GetApplicationFeesIdRefunds",method:"get",path:"/v1/application_fees/{id}/refunds",pathParams:["id"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"fee_refund",list:!0},class:"list",resource:"fee_refund"},{id:"PostApplicationFeesIdRefunds",method:"post",path:"/v1/application_fees/{id}/refunds",pathParams:["id"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"fee_refund",list:!1},class:"create",resource:"fee_refund"},{id:"GetAppsInstalls",method:"get",path:"/v1/apps/installs",pathParams:[],query:[{name:"account",type:"string",required:!1},{name:"app",type:"string",required:!1},{name:"approval_required",type:"boolean",required:!1},{name:"channel",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"created_by",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{approval_required:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.install",list:!0},class:"list",resource:"apps.install"},{id:"PostAppsInstalls",method:"post",path:"/v1/apps/installs",pathParams:[],query:[],body:[{name:"app",type:"string",required:!0},{name:"channel",type:"string",required:!1},{name:"code_challenge",type:"string",required:!1},{name:"code_challenge_method",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.install",list:!1},class:"create",resource:"apps.install"},{id:"GetAppsInstallsId",method:"get",path:"/v1/apps/installs/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.install",list:!1},class:"retrieve",resource:"apps.install"},{id:"PostAppsInstallsId",method:"post",path:"/v1/apps/installs/{id}",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.install",list:!1},class:"update",resource:"apps.install"},{id:"PostAppsInstallsIdUninstall",method:"post",path:"/v1/apps/installs/{id}/uninstall",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.install",list:!1},class:"action",resource:"apps.install"},{id:"GetAppsSecrets",method:"get",path:"/v1/apps/secrets",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"scope",type:"object",required:!0},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.secret",list:!0},class:"list",resource:"apps.secret"},{id:"PostAppsSecrets",method:"post",path:"/v1/apps/secrets",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1},{name:"name",type:"string",required:!0},{name:"payload",type:"string",required:!0},{name:"scope",type:"object",required:!0}],bodyEncoding:"form",scalars:{expires_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.secret",list:!1},class:"create",resource:"apps.secret"},{id:"PostAppsSecretsDelete",method:"post",path:"/v1/apps/secrets/delete",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"name",type:"string",required:!0},{name:"scope",type:"object",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.secret",list:!1},class:"action",resource:"apps.secret"},{id:"GetAppsSecretsFind",method:"get",path:"/v1/apps/secrets/find",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"name",type:"string",required:!0},{name:"scope",type:"object",required:!0}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"apps.secret",list:!1},class:"retrieve",resource:"apps.secret"},{id:"GetBalance",method:"get",path:"/v1/balance",pathParams:[],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"balance",list:!1},class:"retrieve",resource:"balance"},{id:"GetBalanceSettings",method:"get",path:"/v1/balance_settings",pathParams:[],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"balance_settings",list:!1},class:"retrieve",resource:"balance_settings"},{id:"PostBalanceSettings",method:"post",path:"/v1/balance_settings",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"payments",type:"object",required:!1}],bodyEncoding:"form",scalars:{"payments.debit_negative_balances":"boolean","payments.payouts.automatic_transfer_rules_by_currency.*.[].transfer_up_to_amount":"integer","payments.payouts.minimum_balance_by_currency.*":"integer","payments.payouts.schedule.monthly_payout_days.[]":"integer","payments.settlement_timing.delay_days_override":"integer","payments.settlement_timing.start_of_day.hour":"integer","payments.settlement_timing.start_of_day.minutes":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"balance_settings",list:!1},class:"action",resource:"balance_settings"},{id:"GetBalanceTransactions",method:"get",path:"/v1/balance_transactions",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"currency",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payout",type:"string",required:!1},{name:"source",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"balance_transaction",list:!0},class:"list",resource:"balance_transaction"},{id:"GetBalanceTransactionsId",method:"get",path:"/v1/balance_transactions/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"balance_transaction",list:!1},class:"retrieve",resource:"balance_transaction"},{id:"GetBalanceHistory",method:"get",path:"/v1/balance/history",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"currency",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payout",type:"string",required:!1},{name:"source",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"balance_transaction",list:!0},class:"list",resource:"balance_transaction"},{id:"GetBalanceHistoryId",method:"get",path:"/v1/balance/history/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"balance_transaction",list:!1},class:"retrieve",resource:"balance_transaction"},{id:"GetBillingPortalConfigurations",method:"get",path:"/v1/billing_portal/configurations",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"is_default",type:"boolean",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",is_default:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing_portal.configuration",list:!0},class:"list",resource:"billing_portal.configuration"},{id:"PostBillingPortalConfigurations",method:"post",path:"/v1/billing_portal/configurations",pathParams:[],query:[],body:[{name:"business_profile",type:"object",required:!1},{name:"default_return_url",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"features",type:"object",required:!0},{name:"login_page",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"name",type:"union",required:!1}],bodyEncoding:"form",scalars:{"features.customer_update.enabled":"boolean","features.invoice_history.enabled":"boolean","features.payment_method_update.enabled":"boolean","features.subscription_cancel.cancellation_reason.enabled":"boolean","features.subscription_cancel.enabled":"boolean","features.subscription_update.enabled":"boolean","features.subscription_update.products.[].adjustable_quantity.enabled":"boolean","features.subscription_update.products.[].adjustable_quantity.maximum":"integer","features.subscription_update.products.[].adjustable_quantity.minimum":"integer","login_page.enabled":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing_portal.configuration",list:!1},class:"create",resource:"billing_portal.configuration"},{id:"GetBillingPortalConfigurationsConfiguration",method:"get",path:"/v1/billing_portal/configurations/{configuration}",pathParams:["configuration"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing_portal.configuration",list:!1},class:"retrieve",resource:"billing_portal.configuration"},{id:"PostBillingPortalConfigurationsConfiguration",method:"post",path:"/v1/billing_portal/configurations/{configuration}",pathParams:["configuration"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"business_profile",type:"object",required:!1},{name:"default_return_url",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"features",type:"object",required:!1},{name:"login_page",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"union",required:!1}],bodyEncoding:"form",scalars:{active:"boolean","features.customer_update.enabled":"boolean","features.invoice_history.enabled":"boolean","features.payment_method_update.enabled":"boolean","features.subscription_cancel.cancellation_reason.enabled":"boolean","features.subscription_cancel.enabled":"boolean","features.subscription_update.enabled":"boolean","features.subscription_update.products.[].adjustable_quantity.enabled":"boolean","features.subscription_update.products.[].adjustable_quantity.maximum":"integer","features.subscription_update.products.[].adjustable_quantity.minimum":"integer","login_page.enabled":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing_portal.configuration",list:!1},class:"update",resource:"billing_portal.configuration"},{id:"PostBillingPortalSessions",method:"post",path:"/v1/billing_portal/sessions",pathParams:[],query:[],body:[{name:"configuration",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"flow_data",type:"object",required:!1},{name:"locale",type:"string",required:!1},{name:"on_behalf_of",type:"string",required:!1},{name:"return_url",type:"string",required:!1}],bodyEncoding:"form",scalars:{"flow_data.subscription_update_confirm.items.[].quantity":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing_portal.session",list:!1},class:"action",resource:"billing_portal.session"},{id:"GetBillingAlerts",method:"get",path:"/v1/billing/alerts",pathParams:[],query:[{name:"alert_type",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"meter",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.alert",list:!0},class:"list",resource:"billing.alert"},{id:"PostBillingAlerts",method:"post",path:"/v1/billing/alerts",pathParams:[],query:[],body:[{name:"alert_type",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"title",type:"string",required:!0},{name:"usage_threshold",type:"object",required:!1}],bodyEncoding:"form",scalars:{"usage_threshold.gte":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.alert",list:!1},class:"create",resource:"billing.alert"},{id:"GetBillingAlertsId",method:"get",path:"/v1/billing/alerts/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.alert",list:!1},class:"retrieve",resource:"billing.alert"},{id:"PostBillingAlertsIdActivate",method:"post",path:"/v1/billing/alerts/{id}/activate",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.alert",list:!1},class:"action",resource:"billing.alert"},{id:"PostBillingAlertsIdArchive",method:"post",path:"/v1/billing/alerts/{id}/archive",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.alert",list:!1},class:"action",resource:"billing.alert"},{id:"PostBillingAlertsIdDeactivate",method:"post",path:"/v1/billing/alerts/{id}/deactivate",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.alert",list:!1},class:"action",resource:"billing.alert"},{id:"GetBillingCreditBalanceSummary",method:"get",path:"/v1/billing/credit_balance_summary",pathParams:[],query:[{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"filter",type:"object",required:!0}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_balance_summary",list:!1},class:"retrieve",resource:"billing.credit_balance_summary"},{id:"GetBillingCreditBalanceTransactions",method:"get",path:"/v1/billing/credit_balance_transactions",pathParams:[],query:[{name:"credit_grant",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_balance_transaction",list:!0},class:"list",resource:"billing.credit_balance_transaction"},{id:"GetBillingCreditBalanceTransactionsId",method:"get",path:"/v1/billing/credit_balance_transactions/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_balance_transaction",list:!1},class:"retrieve",resource:"billing.credit_balance_transaction"},{id:"GetBillingCreditGrants",method:"get",path:"/v1/billing/credit_grants",pathParams:[],query:[{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_grant",list:!0},class:"list",resource:"billing.credit_grant"},{id:"PostBillingCreditGrants",method:"post",path:"/v1/billing/credit_grants",pathParams:[],query:[],body:[{name:"amount",type:"object",required:!0},{name:"applicability_config",type:"object",required:!0},{name:"category",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"effective_at",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1},{name:"metadata",type:"object",required:!1},{name:"name",type:"string",required:!1},{name:"priority",type:"integer",required:!1}],bodyEncoding:"form",scalars:{"amount.monetary.value":"integer",effective_at:"integer",expires_at:"integer",priority:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_grant",list:!1},class:"create",resource:"billing.credit_grant"},{id:"GetBillingCreditGrantsId",method:"get",path:"/v1/billing/credit_grants/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_grant",list:!1},class:"retrieve",resource:"billing.credit_grant"},{id:"PostBillingCreditGrantsId",method:"post",path:"/v1/billing/credit_grants/{id}",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"expires_at",type:"union",required:!1},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",scalars:{expires_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_grant",list:!1},class:"update",resource:"billing.credit_grant"},{id:"PostBillingCreditGrantsIdExpire",method:"post",path:"/v1/billing/credit_grants/{id}/expire",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_grant",list:!1},class:"action",resource:"billing.credit_grant"},{id:"PostBillingCreditGrantsIdVoid",method:"post",path:"/v1/billing/credit_grants/{id}/void",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.credit_grant",list:!1},class:"action",resource:"billing.credit_grant"},{id:"GetBillingFeedbackOptions",method:"get",path:"/v1/billing/feedback_options",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.feedback_option",list:!0},class:"list",resource:"billing.feedback_option"},{id:"PostBillingFeedbackOptions",method:"post",path:"/v1/billing/feedback_options",pathParams:[],query:[],body:[{name:"description",type:"string",required:!0},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.feedback_option",list:!1},class:"create",resource:"billing.feedback_option"},{id:"GetBillingFeedbackOptionsId",method:"get",path:"/v1/billing/feedback_options/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.feedback_option",list:!1},class:"retrieve",resource:"billing.feedback_option"},{id:"PostBillingFeedbackOptionsId",method:"post",path:"/v1/billing/feedback_options/{id}",pathParams:["id"],query:[],body:[{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.feedback_option",list:!1},class:"update",resource:"billing.feedback_option"},{id:"PostBillingFeedbackOptionsIdDeactivate",method:"post",path:"/v1/billing/feedback_options/{id}/deactivate",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.feedback_option",list:!1},class:"action",resource:"billing.feedback_option"},{id:"PostBillingMeterEventAdjustments",method:"post",path:"/v1/billing/meter_event_adjustments",pathParams:[],query:[],body:[{name:"cancel",type:"object",required:!1},{name:"event_name",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"type",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter_event_adjustment",list:!1},class:"action",resource:"billing.meter_event_adjustment"},{id:"PostBillingMeterEvents",method:"post",path:"/v1/billing/meter_events",pathParams:[],query:[],body:[{name:"event_name",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"identifier",type:"string",required:!1},{name:"payload",type:"object",required:!0},{name:"timestamp",type:"integer",required:!1}],bodyEncoding:"form",scalars:{timestamp:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter_event",list:!1},class:"action",resource:"billing.meter_event"},{id:"GetBillingMeters",method:"get",path:"/v1/billing/meters",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter",list:!0},class:"list",resource:"billing.meter"},{id:"PostBillingMeters",method:"post",path:"/v1/billing/meters",pathParams:[],query:[],body:[{name:"customer_mapping",type:"object",required:!1},{name:"default_aggregation",type:"object",required:!0},{name:"display_name",type:"string",required:!0},{name:"event_name",type:"string",required:!0},{name:"event_time_window",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"value_settings",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter",list:!1},class:"create",resource:"billing.meter"},{id:"GetBillingMetersId",method:"get",path:"/v1/billing/meters/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter",list:!1},class:"retrieve",resource:"billing.meter"},{id:"PostBillingMetersId",method:"post",path:"/v1/billing/meters/{id}",pathParams:["id"],query:[],body:[{name:"display_name",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter",list:!1},class:"update",resource:"billing.meter"},{id:"PostBillingMetersIdDeactivate",method:"post",path:"/v1/billing/meters/{id}/deactivate",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter",list:!1},class:"action",resource:"billing.meter"},{id:"GetBillingMetersIdEventSummaries",method:"get",path:"/v1/billing/meters/{id}/event_summaries",pathParams:["id"],query:[{name:"customer",type:"string",required:!0},{name:"end_time",type:"integer",required:!0},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"start_time",type:"integer",required:!0},{name:"starting_after",type:"string",required:!1},{name:"value_grouping_window",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{end_time:"integer",limit:"integer",start_time:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter_event_summary",list:!0},class:"list",resource:"billing.meter_event_summary"},{id:"PostBillingMetersIdReactivate",method:"post",path:"/v1/billing/meters/{id}/reactivate",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"billing.meter",list:!1},class:"action",resource:"billing.meter"},{id:"GetCharges",method:"get",path:"/v1/charges",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"transfer_group",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"charge",list:!0},class:"list",resource:"charge"},{id:"PostCharges",method:"post",path:"/v1/charges",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"application_fee",type:"integer",required:!1},{name:"application_fee_amount",type:"integer",required:!1},{name:"capture",type:"boolean",required:!1},{name:"card",type:"union",required:!1},{name:"currency",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"destination",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"on_behalf_of",type:"string",required:!1},{name:"radar_options",type:"object",required:!1},{name:"receipt_email",type:"string",required:!1},{name:"shipping",type:"object",required:!1},{name:"source",type:"string",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"statement_descriptor_suffix",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1},{name:"transfer_group",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",application_fee:"integer",application_fee_amount:"integer",capture:"boolean","card.exp_month":"integer","card.exp_year":"integer","destination.amount":"integer","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"charge",list:!1},class:"create",resource:"charge"},{id:"GetChargesCharge",method:"get",path:"/v1/charges/{charge}",pathParams:["charge"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"charge",list:!1},class:"retrieve",resource:"charge"},{id:"PostChargesCharge",method:"post",path:"/v1/charges/{charge}",pathParams:["charge"],query:[],body:[{name:"customer",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"fraud_details",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"receipt_email",type:"string",required:!1},{name:"shipping",type:"object",required:!1},{name:"transfer_group",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"charge",list:!1},class:"update",resource:"charge"},{id:"PostChargesChargeCapture",method:"post",path:"/v1/charges/{charge}/capture",pathParams:["charge"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"application_fee",type:"integer",required:!1},{name:"application_fee_amount",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"receipt_email",type:"string",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"statement_descriptor_suffix",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1},{name:"transfer_group",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",application_fee:"integer",application_fee_amount:"integer","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"charge",list:!1},class:"action",resource:"charge"},{id:"GetChargesChargeDispute",method:"get",path:"/v1/charges/{charge}/dispute",pathParams:["charge"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"dispute",list:!1},class:"retrieve",resource:"dispute"},{id:"PostChargesChargeDispute",method:"post",path:"/v1/charges/{charge}/dispute",pathParams:["charge"],query:[],body:[{name:"evidence",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"submit",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{"evidence.enhanced_evidence.mastercard_compliance.fee_acknowledged":"boolean","evidence.enhanced_evidence.visa_compliance.fee_acknowledged":"boolean",submit:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"dispute",list:!1},class:"action",resource:"charge"},{id:"PostChargesChargeDisputeClose",method:"post",path:"/v1/charges/{charge}/dispute/close",pathParams:["charge"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"dispute",list:!1},class:"action",resource:"dispute"},{id:"PostChargesChargeRefund",method:"post",path:"/v1/charges/{charge}/refund",pathParams:["charge"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"instructions_email",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"reason",type:"string",required:!1},{name:"refund_application_fee",type:"boolean",required:!1},{name:"reverse_transfer",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",refund_application_fee:"boolean",reverse_transfer:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"charge",list:!1},class:"action",resource:"charge"},{id:"GetChargesChargeRefunds",method:"get",path:"/v1/charges/{charge}/refunds",pathParams:["charge"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!0},class:"list",resource:"refund"},{id:"PostChargesChargeRefunds",method:"post",path:"/v1/charges/{charge}/refunds",pathParams:["charge"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"currency",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"instructions_email",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"origin",type:"string",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"reason",type:"string",required:!1},{name:"refund_application_fee",type:"boolean",required:!1},{name:"reverse_transfer",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",refund_application_fee:"boolean",reverse_transfer:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!1},class:"create",resource:"refund"},{id:"GetChargesChargeRefundsRefund",method:"get",path:"/v1/charges/{charge}/refunds/{refund}",pathParams:["charge","refund"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!1},class:"retrieve",resource:"refund"},{id:"PostChargesChargeRefundsRefund",method:"post",path:"/v1/charges/{charge}/refunds/{refund}",pathParams:["charge","refund"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!1},class:"update",resource:"refund"},{id:"GetChargesSearch",method:"get",path:"/v1/charges/search",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"page",type:"string",required:!1},{name:"query",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"charge",list:!0},class:"computed",resource:"charge"},{id:"GetCheckoutSessions",method:"get",path:"/v1/checkout/sessions",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"customer_details",type:"object",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"payment_link",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"subscription",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"checkout.session",list:!0},class:"list",resource:"checkout.session"},{id:"PostCheckoutSessions",method:"post",path:"/v1/checkout/sessions",pathParams:[],query:[],body:[{name:"adaptive_pricing",type:"object",required:!1},{name:"after_expiration",type:"object",required:!1},{name:"allow_promotion_codes",type:"boolean",required:!1},{name:"allowed_payment_method_types",type:"array",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"billing_address_collection",type:"string",required:!1},{name:"branding_settings",type:"object",required:!1},{name:"cancel_url",type:"string",required:!1},{name:"client_reference_id",type:"string",required:!1},{name:"consent_collection",type:"object",required:!1},{name:"currency",type:"string",required:!1},{name:"custom_fields",type:"array",required:!1},{name:"custom_text",type:"object",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"customer_creation",type:"string",required:!1},{name:"customer_email",type:"string",required:!1},{name:"customer_update",type:"object",required:!1},{name:"discounts",type:"array",required:!1},{name:"excluded_payment_method_types",type:"array",required:!1},{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1},{name:"integration_identifier",type:"string",required:!1},{name:"invoice_creation",type:"object",required:!1},{name:"line_items",type:"array",required:!1},{name:"locale",type:"string",required:!1},{name:"managed_payments",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"mode",type:"string",required:!1},{name:"name_collection",type:"object",required:!1},{name:"optional_items",type:"array",required:!1},{name:"origin_context",type:"string",required:!1},{name:"payment_intent_data",type:"object",required:!1},{name:"payment_method_collection",type:"string",required:!1},{name:"payment_method_configuration",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"permissions",type:"object",required:!1},{name:"phone_number_collection",type:"object",required:!1},{name:"redirect_on_completion",type:"string",required:!1},{name:"return_url",type:"string",required:!1},{name:"saved_payment_method_options",type:"object",required:!1},{name:"setup_intent_data",type:"object",required:!1},{name:"shipping_address_collection",type:"object",required:!1},{name:"shipping_options",type:"array",required:!1},{name:"submit_type",type:"string",required:!1},{name:"subscription_data",type:"object",required:!1},{name:"success_url",type:"string",required:!1},{name:"tax_id_collection",type:"object",required:!1},{name:"ui_mode",type:"string",required:!1},{name:"wallet_options",type:"object",required:!1}],bodyEncoding:"form",scalars:{"adaptive_pricing.enabled":"boolean","after_expiration.recovery.allow_promotion_codes":"boolean","after_expiration.recovery.enabled":"boolean",allow_promotion_codes:"boolean","automatic_tax.enabled":"boolean","custom_fields.[].numeric.maximum_length":"integer","custom_fields.[].numeric.minimum_length":"integer","custom_fields.[].optional":"boolean","custom_fields.[].text.maximum_length":"integer","custom_fields.[].text.minimum_length":"integer",expires_at:"integer","invoice_creation.enabled":"boolean","line_items.[].adjustable_quantity.enabled":"boolean","line_items.[].adjustable_quantity.maximum":"integer","line_items.[].adjustable_quantity.minimum":"integer","line_items.[].price_data.recurring.interval_count":"integer","line_items.[].price_data.unit_amount":"integer","line_items.[].quantity":"integer","managed_payments.enabled":"boolean","name_collection.business.enabled":"boolean","name_collection.business.optional":"boolean","name_collection.individual.enabled":"boolean","name_collection.individual.optional":"boolean","optional_items.[].adjustable_quantity.enabled":"boolean","optional_items.[].adjustable_quantity.maximum":"integer","optional_items.[].adjustable_quantity.minimum":"integer","optional_items.[].quantity":"integer","payment_intent_data.application_fee_amount":"integer","payment_intent_data.transfer_data.amount":"integer","payment_method_options.blik.mandate_options.expires_at":"integer","payment_method_options.boleto.expires_after_days":"integer","payment_method_options.card.installments.enabled":"boolean","payment_method_options.klarna.subscriptions.[].interval_count":"integer","payment_method_options.klarna.subscriptions.[].next_billing.amount":"integer","payment_method_options.konbini.expires_after_days":"integer","payment_method_options.oxxo.expires_after_days":"integer","payment_method_options.p24.tos_shown_and_accepted":"boolean","payment_method_options.payto.mandate_options.amount":"integer","payment_method_options.payto.mandate_options.payments_per_period":"integer","payment_method_options.pix.expires_after_seconds":"integer","payment_method_options.pix.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.end_date":"integer","phone_number_collection.enabled":"boolean","shipping_options.[].shipping_rate_data.delivery_estimate.maximum.value":"integer","shipping_options.[].shipping_rate_data.delivery_estimate.minimum.value":"integer","shipping_options.[].shipping_rate_data.fixed_amount.amount":"integer","shipping_options.[].shipping_rate_data.fixed_amount.currency_options.*.amount":"integer","subscription_data.application_fee_percent":"number","subscription_data.billing_cycle_anchor":"integer","subscription_data.billing_cycle_anchor_config.day_of_month":"integer","subscription_data.billing_cycle_anchor_config.hour":"integer","subscription_data.billing_cycle_anchor_config.minute":"integer","subscription_data.billing_cycle_anchor_config.month":"integer","subscription_data.billing_cycle_anchor_config.second":"integer","subscription_data.pending_invoice_item_interval.interval_count":"integer","subscription_data.transfer_data.amount_percent":"number","subscription_data.trial_end":"integer","subscription_data.trial_period_days":"integer","tax_id_collection.enabled":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"checkout.session",list:!1},class:"create",resource:"checkout.session"},{id:"GetCheckoutSessionsSession",method:"get",path:"/v1/checkout/sessions/{session}",pathParams:["session"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"checkout.session",list:!1},class:"retrieve",resource:"checkout.session"},{id:"PostCheckoutSessionsSession",method:"post",path:"/v1/checkout/sessions/{session}",pathParams:["session"],query:[],body:[{name:"collected_information",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"line_items",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"shipping_options",type:"union",required:!1}],bodyEncoding:"form",scalars:{"line_items.[].adjustable_quantity.enabled":"boolean","line_items.[].adjustable_quantity.maximum":"integer","line_items.[].adjustable_quantity.minimum":"integer","line_items.[].price_data.recurring.interval_count":"integer","line_items.[].price_data.unit_amount":"integer","line_items.[].quantity":"integer","shipping_options.[].shipping_rate_data.delivery_estimate.maximum.value":"integer","shipping_options.[].shipping_rate_data.delivery_estimate.minimum.value":"integer","shipping_options.[].shipping_rate_data.fixed_amount.amount":"integer","shipping_options.[].shipping_rate_data.fixed_amount.currency_options.*.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"checkout.session",list:!1},class:"update",resource:"checkout.session"},{id:"PostCheckoutSessionsSessionExpire",method:"post",path:"/v1/checkout/sessions/{session}/expire",pathParams:["session"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"checkout.session",list:!1},class:"action",resource:"checkout.session"},{id:"GetCheckoutSessionsSessionLineItems",method:"get",path:"/v1/checkout/sessions/{session}/line_items",pathParams:["session"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"item",list:!0},class:"list",resource:"item"},{id:"GetClimateOrders",method:"get",path:"/v1/climate/orders",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.order",list:!0},class:"list",resource:"climate.order"},{id:"PostClimateOrders",method:"post",path:"/v1/climate/orders",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"beneficiary",type:"object",required:!1},{name:"currency",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"metric_tons",type:"string",required:!1},{name:"product",type:"string",required:!0}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.order",list:!1},class:"create",resource:"climate.order"},{id:"GetClimateOrdersOrder",method:"get",path:"/v1/climate/orders/{order}",pathParams:["order"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.order",list:!1},class:"retrieve",resource:"climate.order"},{id:"PostClimateOrdersOrder",method:"post",path:"/v1/climate/orders/{order}",pathParams:["order"],query:[],body:[{name:"beneficiary",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.order",list:!1},class:"update",resource:"climate.order"},{id:"PostClimateOrdersOrderCancel",method:"post",path:"/v1/climate/orders/{order}/cancel",pathParams:["order"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.order",list:!1},class:"action",resource:"climate.order"},{id:"GetClimateProducts",method:"get",path:"/v1/climate/products",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.product",list:!0},class:"list",resource:"climate.product"},{id:"GetClimateProductsProduct",method:"get",path:"/v1/climate/products/{product}",pathParams:["product"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.product",list:!1},class:"retrieve",resource:"climate.product"},{id:"GetClimateSuppliers",method:"get",path:"/v1/climate/suppliers",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.supplier",list:!0},class:"list",resource:"climate.supplier"},{id:"GetClimateSuppliersSupplier",method:"get",path:"/v1/climate/suppliers/{supplier}",pathParams:["supplier"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"climate.supplier",list:!1},class:"retrieve",resource:"climate.supplier"},{id:"GetConfirmationTokensConfirmationToken",method:"get",path:"/v1/confirmation_tokens/{confirmation_token}",pathParams:["confirmation_token"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"confirmation_token",list:!1},class:"retrieve",resource:"confirmation_token"},{id:"GetCountrySpecs",method:"get",path:"/v1/country_specs",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"country_spec",list:!0},class:"list",resource:"country_spec"},{id:"GetCountrySpecsCountry",method:"get",path:"/v1/country_specs/{country}",pathParams:["country"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"country_spec",list:!1},class:"retrieve",resource:"country_spec"},{id:"GetCoupons",method:"get",path:"/v1/coupons",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"coupon",list:!0},class:"list",resource:"coupon"},{id:"PostCoupons",method:"post",path:"/v1/coupons",pathParams:[],query:[],body:[{name:"amount_off",type:"integer",required:!1},{name:"applies_to",type:"object",required:!1},{name:"currency",type:"string",required:!1},{name:"currency_options",type:"object",required:!1},{name:"duration",type:"string",required:!1},{name:"duration_in_months",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"id",type:"string",required:!1},{name:"max_redemptions",type:"integer",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1},{name:"percent_off",type:"number",required:!1},{name:"redeem_by",type:"integer",required:!1}],bodyEncoding:"form",scalars:{amount_off:"integer","currency_options.*.amount_off":"integer",duration_in_months:"integer",max_redemptions:"integer",percent_off:"number",redeem_by:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"coupon",list:!1},class:"create",resource:"coupon"},{id:"GetCouponsCoupon",method:"get",path:"/v1/coupons/{coupon}",pathParams:["coupon"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"coupon",list:!1},class:"retrieve",resource:"coupon"},{id:"PostCouponsCoupon",method:"post",path:"/v1/coupons/{coupon}",pathParams:["coupon"],query:[],body:[{name:"currency_options",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1}],bodyEncoding:"form",scalars:{"currency_options.*.amount_off":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"coupon",list:!1},class:"update",resource:"coupon"},{id:"DeleteCouponsCoupon",method:"delete",path:"/v1/coupons/{coupon}",pathParams:["coupon"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_coupon",list:!1},class:"delete",resource:"coupon"},{id:"GetCreditNotes",method:"get",path:"/v1/credit_notes",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice",type:"string",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"credit_note",list:!0},class:"list",resource:"credit_note"},{id:"PostCreditNotes",method:"post",path:"/v1/credit_notes",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"credit_amount",type:"integer",required:!1},{name:"effective_at",type:"integer",required:!1},{name:"email_type",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice",type:"string",required:!0},{name:"lines",type:"array",required:!1},{name:"memo",type:"string",required:!1},{name:"metadata",type:"object",required:!1},{name:"out_of_band_amount",type:"integer",required:!1},{name:"reason",type:"string",required:!1},{name:"refund_amount",type:"integer",required:!1},{name:"refunds",type:"array",required:!1},{name:"shipping_cost",type:"object",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",credit_amount:"integer",effective_at:"integer","lines.[].amount":"integer","lines.[].quantity":"integer","lines.[].tax_amounts.[].amount":"integer","lines.[].tax_amounts.[].taxable_amount":"integer","lines.[].unit_amount":"integer",out_of_band_amount:"integer",refund_amount:"integer","refunds.[].amount_refunded":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"credit_note",list:!1},class:"create",resource:"credit_note"},{id:"GetCreditNotesCreditNoteLines",method:"get",path:"/v1/credit_notes/{credit_note}/lines",pathParams:["credit_note"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"credit_note_line_item",list:!0},class:"list",resource:"credit_note_line_item"},{id:"GetCreditNotesId",method:"get",path:"/v1/credit_notes/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"credit_note",list:!1},class:"retrieve",resource:"credit_note"},{id:"PostCreditNotesId",method:"post",path:"/v1/credit_notes/{id}",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"memo",type:"string",required:!1},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"credit_note",list:!1},class:"update",resource:"credit_note"},{id:"PostCreditNotesIdVoid",method:"post",path:"/v1/credit_notes/{id}/void",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"credit_note",list:!1},class:"action",resource:"credit_note"},{id:"GetCreditNotesPreview",method:"get",path:"/v1/credit_notes/preview",pathParams:[],query:[{name:"amount",type:"integer",required:!1},{name:"credit_amount",type:"integer",required:!1},{name:"effective_at",type:"integer",required:!1},{name:"email_type",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice",type:"string",required:!0},{name:"lines",type:"array",required:!1},{name:"memo",type:"string",required:!1},{name:"metadata",type:"object",required:!1},{name:"out_of_band_amount",type:"integer",required:!1},{name:"reason",type:"string",required:!1},{name:"refund_amount",type:"integer",required:!1},{name:"refunds",type:"array",required:!1},{name:"shipping_cost",type:"object",required:!1}],body:[],bodyEncoding:"form",scalars:{amount:"integer",credit_amount:"integer",effective_at:"integer","lines.[].amount":"integer","lines.[].quantity":"integer","lines.[].tax_amounts.[].amount":"integer","lines.[].tax_amounts.[].taxable_amount":"integer","lines.[].unit_amount":"integer",out_of_band_amount:"integer",refund_amount:"integer","refunds.[].amount_refunded":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"credit_note",list:!1},class:"retrieve",resource:"credit_note"},{id:"GetCreditNotesPreviewLines",method:"get",path:"/v1/credit_notes/preview/lines",pathParams:[],query:[{name:"amount",type:"integer",required:!1},{name:"credit_amount",type:"integer",required:!1},{name:"effective_at",type:"integer",required:!1},{name:"email_type",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"lines",type:"array",required:!1},{name:"memo",type:"string",required:!1},{name:"metadata",type:"object",required:!1},{name:"out_of_band_amount",type:"integer",required:!1},{name:"reason",type:"string",required:!1},{name:"refund_amount",type:"integer",required:!1},{name:"refunds",type:"array",required:!1},{name:"shipping_cost",type:"object",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{amount:"integer",credit_amount:"integer",effective_at:"integer",limit:"integer","lines.[].amount":"integer","lines.[].quantity":"integer","lines.[].tax_amounts.[].amount":"integer","lines.[].tax_amounts.[].taxable_amount":"integer","lines.[].unit_amount":"integer",out_of_band_amount:"integer",refund_amount:"integer","refunds.[].amount_refunded":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"credit_note_line_item",list:!0},class:"list",resource:"credit_note_line_item"},{id:"PostCustomerSessions",method:"post",path:"/v1/customer_sessions",pathParams:[],query:[],body:[{name:"components",type:"object",required:!0},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{"components.active_entitlements.enabled":"boolean","components.buy_button.enabled":"boolean","components.customer_portal.enabled":"boolean","components.customer_sheet.enabled":"boolean","components.mobile_payment_element.enabled":"boolean","components.payment_element.enabled":"boolean","components.payment_element.features.payment_method_redisplay_limit":"integer","components.pricing_table.enabled":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer_session",list:!1},class:"action",resource:"customer_session"},{id:"GetCustomers",method:"get",path:"/v1/customers",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"email",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"test_clock",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer",list:!0},class:"list",resource:"customer"},{id:"PostCustomers",method:"post",path:"/v1/customers",pathParams:[],query:[],body:[{name:"address",type:"union",required:!1},{name:"balance",type:"integer",required:!1},{name:"business_name",type:"union",required:!1},{name:"cash_balance",type:"object",required:!1},{name:"description",type:"string",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"individual_name",type:"union",required:!1},{name:"invoice_prefix",type:"string",required:!1},{name:"invoice_settings",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1},{name:"next_invoice_sequence",type:"integer",required:!1},{name:"payment_method",type:"string",required:!1},{name:"phone",type:"string",required:!1},{name:"preferred_locales",type:"array",required:!1},{name:"shipping",type:"union",required:!1},{name:"source",type:"string",required:!1},{name:"tax",type:"object",required:!1},{name:"tax_exempt",type:"string",required:!1},{name:"tax_id_data",type:"array",required:!1},{name:"test_clock",type:"string",required:!1}],bodyEncoding:"form",scalars:{balance:"integer",next_invoice_sequence:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer",list:!1},class:"create",resource:"customer"},{id:"GetCustomersCustomer",method:"get",path:"/v1/customers/{customer}",pathParams:["customer"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer",list:!1,alternatives:["deleted_customer"]},class:"retrieve",resource:"customer"},{id:"PostCustomersCustomer",method:"post",path:"/v1/customers/{customer}",pathParams:["customer"],query:[],body:[{name:"address",type:"union",required:!1},{name:"balance",type:"integer",required:!1},{name:"bank_account",type:"union",required:!1},{name:"business_name",type:"union",required:!1},{name:"card",type:"union",required:!1},{name:"cash_balance",type:"object",required:!1},{name:"default_alipay_account",type:"string",required:!1},{name:"default_bank_account",type:"string",required:!1},{name:"default_card",type:"string",required:!1},{name:"default_source",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"individual_name",type:"union",required:!1},{name:"invoice_prefix",type:"string",required:!1},{name:"invoice_settings",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1},{name:"next_invoice_sequence",type:"integer",required:!1},{name:"phone",type:"string",required:!1},{name:"preferred_locales",type:"array",required:!1},{name:"shipping",type:"union",required:!1},{name:"source",type:"string",required:!1},{name:"tax",type:"object",required:!1},{name:"tax_exempt",type:"string",required:!1}],bodyEncoding:"form",scalars:{balance:"integer","card.exp_month":"integer","card.exp_year":"integer",next_invoice_sequence:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer",list:!1},class:"update",resource:"customer"},{id:"DeleteCustomersCustomer",method:"delete",path:"/v1/customers/{customer}",pathParams:["customer"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_customer",list:!1},class:"delete",resource:"customer"},{id:"GetCustomersCustomerBalanceTransactions",method:"get",path:"/v1/customers/{customer}/balance_transactions",pathParams:["customer"],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice",type:"string",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer_balance_transaction",list:!0},class:"list",resource:"customer_balance_transaction"},{id:"PostCustomersCustomerBalanceTransactions",method:"post",path:"/v1/customers/{customer}/balance_transactions",pathParams:["customer"],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer_balance_transaction",list:!1},class:"create",resource:"customer_balance_transaction"},{id:"GetCustomersCustomerBalanceTransactionsTransaction",method:"get",path:"/v1/customers/{customer}/balance_transactions/{transaction}",pathParams:["customer","transaction"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer_balance_transaction",list:!1},class:"retrieve",resource:"customer_balance_transaction"},{id:"PostCustomersCustomerBalanceTransactionsTransaction",method:"post",path:"/v1/customers/{customer}/balance_transactions/{transaction}",pathParams:["customer","transaction"],query:[],body:[{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer_balance_transaction",list:!1},class:"update",resource:"customer_balance_transaction"},{id:"GetCustomersCustomerBankAccounts",method:"get",path:"/v1/customers/{customer}/bank_accounts",pathParams:["customer"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"bank_account",list:!0},class:"list",resource:"bank_account"},{id:"PostCustomersCustomerBankAccounts",method:"post",path:"/v1/customers/{customer}/bank_accounts",pathParams:["customer"],query:[],body:[{name:"alipay_account",type:"string",required:!1},{name:"bank_account",type:"union",required:!1},{name:"card",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"source",type:"string",required:!1}],bodyEncoding:"form",scalars:{"card.exp_month":"integer","card.exp_year":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_source",list:!1},class:"action",resource:"customer"},{id:"GetCustomersCustomerBankAccountsId",method:"get",path:"/v1/customers/{customer}/bank_accounts/{id}",pathParams:["customer","id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"bank_account",list:!1},class:"retrieve",resource:"bank_account"},{id:"PostCustomersCustomerBankAccountsId",method:"post",path:"/v1/customers/{customer}/bank_accounts/{id}",pathParams:["customer","id"],query:[],body:[{name:"account_holder_name",type:"string",required:!1},{name:"account_holder_type",type:"string",required:!1},{name:"address_city",type:"string",required:!1},{name:"address_country",type:"string",required:!1},{name:"address_line1",type:"string",required:!1},{name:"address_line2",type:"string",required:!1},{name:"address_state",type:"string",required:!1},{name:"address_zip",type:"string",required:!1},{name:"exp_month",type:"string",required:!1},{name:"exp_year",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1},{name:"owner",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"card",list:!1,alternatives:["bank_account","source"]},class:"action",resource:"card"},{id:"DeleteCustomersCustomerBankAccountsId",method:"delete",path:"/v1/customers/{customer}/bank_accounts/{id}",pathParams:["customer","id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_source",list:!1,alternatives:["deleted_payment_source"]},class:"delete",resource:"bank_account"},{id:"PostCustomersCustomerBankAccountsIdVerify",method:"post",path:"/v1/customers/{customer}/bank_accounts/{id}/verify",pathParams:["customer","id"],query:[],body:[{name:"amounts",type:"array",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{"amounts.[]":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"bank_account",list:!1},class:"action",resource:"bank_account"},{id:"GetCustomersCustomerCards",method:"get",path:"/v1/customers/{customer}/cards",pathParams:["customer"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"card",list:!0},class:"list",resource:"card"},{id:"PostCustomersCustomerCards",method:"post",path:"/v1/customers/{customer}/cards",pathParams:["customer"],query:[],body:[{name:"alipay_account",type:"string",required:!1},{name:"bank_account",type:"union",required:!1},{name:"card",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"source",type:"string",required:!1}],bodyEncoding:"form",scalars:{"card.exp_month":"integer","card.exp_year":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_source",list:!1},class:"action",resource:"customer"},{id:"GetCustomersCustomerCardsId",method:"get",path:"/v1/customers/{customer}/cards/{id}",pathParams:["customer","id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"card",list:!1},class:"retrieve",resource:"card"},{id:"PostCustomersCustomerCardsId",method:"post",path:"/v1/customers/{customer}/cards/{id}",pathParams:["customer","id"],query:[],body:[{name:"account_holder_name",type:"string",required:!1},{name:"account_holder_type",type:"string",required:!1},{name:"address_city",type:"string",required:!1},{name:"address_country",type:"string",required:!1},{name:"address_line1",type:"string",required:!1},{name:"address_line2",type:"string",required:!1},{name:"address_state",type:"string",required:!1},{name:"address_zip",type:"string",required:!1},{name:"exp_month",type:"string",required:!1},{name:"exp_year",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1},{name:"owner",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"card",list:!1,alternatives:["bank_account","source"]},class:"update",resource:"card"},{id:"DeleteCustomersCustomerCardsId",method:"delete",path:"/v1/customers/{customer}/cards/{id}",pathParams:["customer","id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_source",list:!1,alternatives:["deleted_payment_source"]},class:"delete",resource:"card"},{id:"GetCustomersCustomerCashBalance",method:"get",path:"/v1/customers/{customer}/cash_balance",pathParams:["customer"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"cash_balance",list:!1},class:"retrieve",resource:"cash_balance"},{id:"PostCustomersCustomerCashBalance",method:"post",path:"/v1/customers/{customer}/cash_balance",pathParams:["customer"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"settings",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"cash_balance",list:!1},class:"action",resource:"customer"},{id:"GetCustomersCustomerCashBalanceTransactions",method:"get",path:"/v1/customers/{customer}/cash_balance_transactions",pathParams:["customer"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer_cash_balance_transaction",list:!0},class:"list",resource:"customer_cash_balance_transaction"},{id:"GetCustomersCustomerCashBalanceTransactionsTransaction",method:"get",path:"/v1/customers/{customer}/cash_balance_transactions/{transaction}",pathParams:["customer","transaction"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer_cash_balance_transaction",list:!1},class:"retrieve",resource:"customer_cash_balance_transaction"},{id:"GetCustomersCustomerDiscount",method:"get",path:"/v1/customers/{customer}/discount",pathParams:["customer"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"discount",list:!1},class:"retrieve",resource:"discount"},{id:"DeleteCustomersCustomerDiscount",method:"delete",path:"/v1/customers/{customer}/discount",pathParams:["customer"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_discount",list:!1},class:"delete",resource:"discount"},{id:"PostCustomersCustomerFundingInstructions",method:"post",path:"/v1/customers/{customer}/funding_instructions",pathParams:["customer"],query:[],body:[{name:"bank_transfer",type:"object",required:!0},{name:"currency",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"funding_type",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"funding_instructions",list:!1},class:"action",resource:"customer"},{id:"GetCustomersCustomerPaymentMethods",method:"get",path:"/v1/customers/{customer}/payment_methods",pathParams:["customer"],query:[{name:"allow_redisplay",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method",list:!0},class:"list",resource:"payment_method"},{id:"GetCustomersCustomerPaymentMethodsPaymentMethod",method:"get",path:"/v1/customers/{customer}/payment_methods/{payment_method}",pathParams:["customer","payment_method"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method",list:!1},class:"retrieve",resource:"payment_method"},{id:"GetCustomersCustomerSources",method:"get",path:"/v1/customers/{customer}/sources",pathParams:["customer"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"object",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"bank_account",list:!0,alternatives:["card","source"]},class:"list",resource:"bank_account"},{id:"PostCustomersCustomerSources",method:"post",path:"/v1/customers/{customer}/sources",pathParams:["customer"],query:[],body:[{name:"alipay_account",type:"string",required:!1},{name:"bank_account",type:"union",required:!1},{name:"card",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"source",type:"string",required:!1}],bodyEncoding:"form",scalars:{"card.exp_month":"integer","card.exp_year":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_source",list:!1},class:"create",resource:"payment_source"},{id:"GetCustomersCustomerSourcesId",method:"get",path:"/v1/customers/{customer}/sources/{id}",pathParams:["customer","id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_source",list:!1},class:"retrieve",resource:"payment_source"},{id:"PostCustomersCustomerSourcesId",method:"post",path:"/v1/customers/{customer}/sources/{id}",pathParams:["customer","id"],query:[],body:[{name:"account_holder_name",type:"string",required:!1},{name:"account_holder_type",type:"string",required:!1},{name:"address_city",type:"string",required:!1},{name:"address_country",type:"string",required:!1},{name:"address_line1",type:"string",required:!1},{name:"address_line2",type:"string",required:!1},{name:"address_state",type:"string",required:!1},{name:"address_zip",type:"string",required:!1},{name:"exp_month",type:"string",required:!1},{name:"exp_year",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1},{name:"owner",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"card",list:!1,alternatives:["bank_account","source"]},class:"action",resource:"card"},{id:"DeleteCustomersCustomerSourcesId",method:"delete",path:"/v1/customers/{customer}/sources/{id}",pathParams:["customer","id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_source",list:!1,alternatives:["deleted_payment_source"]},class:"delete",resource:"payment_source"},{id:"PostCustomersCustomerSourcesIdVerify",method:"post",path:"/v1/customers/{customer}/sources/{id}/verify",pathParams:["customer","id"],query:[],body:[{name:"amounts",type:"array",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{"amounts.[]":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"bank_account",list:!1},class:"action",resource:"payment_source"},{id:"GetCustomersCustomerSubscriptions",method:"get",path:"/v1/customers/{customer}/subscriptions",pathParams:["customer"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!0},class:"list",resource:"subscription"},{id:"PostCustomersCustomerSubscriptions",method:"post",path:"/v1/customers/{customer}/subscriptions",pathParams:["customer"],query:[],body:[{name:"add_invoice_items",type:"array",required:!1},{name:"application_fee_percent",type:"union",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"backdate_start_date",type:"integer",required:!1},{name:"billing_cycle_anchor",type:"integer",required:!1},{name:"billing_thresholds",type:"union",required:!1},{name:"cancel_at",type:"union",required:!1},{name:"cancel_at_period_end",type:"boolean",required:!1},{name:"collection_method",type:"string",required:!1},{name:"currency",type:"string",required:!1},{name:"days_until_due",type:"integer",required:!1},{name:"default_payment_method",type:"string",required:!1},{name:"default_source",type:"string",required:!1},{name:"default_tax_rates",type:"union",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice_settings",type:"object",required:!1},{name:"items",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"off_session",type:"boolean",required:!1},{name:"payment_behavior",type:"string",required:!1},{name:"payment_settings",type:"object",required:!1},{name:"pending_invoice_item_interval",type:"union",required:!1},{name:"proration_behavior",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1},{name:"trial_end",type:"union",required:!1},{name:"trial_from_plan",type:"boolean",required:!1},{name:"trial_period_days",type:"integer",required:!1},{name:"trial_settings",type:"object",required:!1}],bodyEncoding:"form",scalars:{"add_invoice_items.[].discountable":"boolean","add_invoice_items.[].period.end.timestamp":"integer","add_invoice_items.[].period.start.timestamp":"integer","add_invoice_items.[].price_data.unit_amount":"integer","add_invoice_items.[].quantity":"integer",application_fee_percent:"number","automatic_tax.enabled":"boolean",backdate_start_date:"integer",billing_cycle_anchor:"integer","billing_thresholds.amount_gte":"integer","billing_thresholds.reset_billing_cycle_anchor":"boolean",cancel_at:"integer",cancel_at_period_end:"boolean",days_until_due:"integer","items.[].billing_thresholds.usage_gte":"integer","items.[].price_data.recurring.interval_count":"integer","items.[].price_data.unit_amount":"integer","items.[].quantity":"integer",off_session:"boolean","payment_settings.payment_method_options.blik.mandate_options.expires_at":"integer","payment_settings.payment_method_options.card.mandate_options.amount":"integer","payment_settings.payment_method_options.payto.mandate_options.amount":"integer","payment_settings.payment_method_options.pix.expires_after_seconds":"integer","payment_settings.payment_method_options.pix.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.end_date":"integer","pending_invoice_item_interval.interval_count":"integer","transfer_data.amount_percent":"number",trial_end:"integer",trial_from_plan:"boolean",trial_period_days:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"create",resource:"subscription"},{id:"GetCustomersCustomerSubscriptionsSubscriptionExposedId",method:"get",path:"/v1/customers/{customer}/subscriptions/{subscription_exposed_id}",pathParams:["customer","subscription_exposed_id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"retrieve",resource:"subscription"},{id:"PostCustomersCustomerSubscriptionsSubscriptionExposedId",method:"post",path:"/v1/customers/{customer}/subscriptions/{subscription_exposed_id}",pathParams:["customer","subscription_exposed_id"],query:[],body:[{name:"add_invoice_items",type:"array",required:!1},{name:"application_fee_percent",type:"union",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"billing_cycle_anchor",type:"string",required:!1},{name:"billing_thresholds",type:"union",required:!1},{name:"cancel_at",type:"union",required:!1},{name:"cancel_at_period_end",type:"boolean",required:!1},{name:"cancellation_details",type:"object",required:!1},{name:"collection_method",type:"string",required:!1},{name:"days_until_due",type:"integer",required:!1},{name:"default_payment_method",type:"string",required:!1},{name:"default_source",type:"union",required:!1},{name:"default_tax_rates",type:"union",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice_settings",type:"object",required:!1},{name:"items",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"off_session",type:"boolean",required:!1},{name:"pause_collection",type:"union",required:!1},{name:"payment_behavior",type:"string",required:!1},{name:"payment_settings",type:"object",required:!1},{name:"pending_invoice_item_interval",type:"union",required:!1},{name:"proration_behavior",type:"string",required:!1},{name:"proration_date",type:"integer",required:!1},{name:"transfer_data",type:"union",required:!1},{name:"trial_end",type:"union",required:!1},{name:"trial_from_plan",type:"boolean",required:!1},{name:"trial_settings",type:"object",required:!1}],bodyEncoding:"form",scalars:{"add_invoice_items.[].discountable":"boolean","add_invoice_items.[].period.end.timestamp":"integer","add_invoice_items.[].period.start.timestamp":"integer","add_invoice_items.[].price_data.unit_amount":"integer","add_invoice_items.[].quantity":"integer",application_fee_percent:"number","automatic_tax.enabled":"boolean","billing_thresholds.amount_gte":"integer","billing_thresholds.reset_billing_cycle_anchor":"boolean",cancel_at:"integer",cancel_at_period_end:"boolean",days_until_due:"integer","items.[].billing_thresholds.usage_gte":"integer","items.[].clear_usage":"boolean","items.[].deleted":"boolean","items.[].price_data.recurring.interval_count":"integer","items.[].price_data.unit_amount":"integer","items.[].quantity":"integer",off_session:"boolean","pause_collection.resumes_at":"integer","payment_settings.payment_method_options.blik.mandate_options.expires_at":"integer","payment_settings.payment_method_options.card.mandate_options.amount":"integer","payment_settings.payment_method_options.payto.mandate_options.amount":"integer","payment_settings.payment_method_options.pix.expires_after_seconds":"integer","payment_settings.payment_method_options.pix.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.end_date":"integer","pending_invoice_item_interval.interval_count":"integer",proration_date:"integer","transfer_data.amount_percent":"number",trial_end:"integer",trial_from_plan:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"update",resource:"subscription"},{id:"DeleteCustomersCustomerSubscriptionsSubscriptionExposedId",method:"delete",path:"/v1/customers/{customer}/subscriptions/{subscription_exposed_id}",pathParams:["customer","subscription_exposed_id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"invoice_now",type:"boolean",required:!1},{name:"prorate",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{invoice_now:"boolean",prorate:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"delete",resource:"subscription"},{id:"GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount",method:"get",path:"/v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount",pathParams:["customer","subscription_exposed_id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"discount",list:!1},class:"retrieve",resource:"discount"},{id:"DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscount",method:"delete",path:"/v1/customers/{customer}/subscriptions/{subscription_exposed_id}/discount",pathParams:["customer","subscription_exposed_id"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_discount",list:!1},class:"delete",resource:"discount"},{id:"GetCustomersCustomerTaxIds",method:"get",path:"/v1/customers/{customer}/tax_ids",pathParams:["customer"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_id",list:!0},class:"list",resource:"tax_id"},{id:"PostCustomersCustomerTaxIds",method:"post",path:"/v1/customers/{customer}/tax_ids",pathParams:["customer"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"type",type:"string",required:!0},{name:"value",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_id",list:!1},class:"create",resource:"tax_id"},{id:"GetCustomersCustomerTaxIdsId",method:"get",path:"/v1/customers/{customer}/tax_ids/{id}",pathParams:["customer","id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_id",list:!1},class:"retrieve",resource:"tax_id"},{id:"DeleteCustomersCustomerTaxIdsId",method:"delete",path:"/v1/customers/{customer}/tax_ids/{id}",pathParams:["customer","id"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_tax_id",list:!1},class:"delete",resource:"tax_id"},{id:"GetCustomersSearch",method:"get",path:"/v1/customers/search",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"page",type:"string",required:!1},{name:"query",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer",list:!0},class:"computed",resource:"customer"},{id:"GetDisputes",method:"get",path:"/v1/disputes",pathParams:[],query:[{name:"charge",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"dispute",list:!0},class:"list",resource:"dispute"},{id:"GetDisputesDispute",method:"get",path:"/v1/disputes/{dispute}",pathParams:["dispute"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"dispute",list:!1},class:"retrieve",resource:"dispute"},{id:"PostDisputesDispute",method:"post",path:"/v1/disputes/{dispute}",pathParams:["dispute"],query:[],body:[{name:"evidence",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"submit",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{"evidence.enhanced_evidence.mastercard_compliance.fee_acknowledged":"boolean","evidence.enhanced_evidence.visa_compliance.fee_acknowledged":"boolean",submit:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"dispute",list:!1},class:"update",resource:"dispute"},{id:"PostDisputesDisputeClose",method:"post",path:"/v1/disputes/{dispute}/close",pathParams:["dispute"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"dispute",list:!1},class:"action",resource:"dispute"},{id:"GetEntitlementsActiveEntitlements",method:"get",path:"/v1/entitlements/active_entitlements",pathParams:[],query:[{name:"customer",type:"string",required:!0},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"entitlements.active_entitlement",list:!0},class:"list",resource:"entitlements.active_entitlement"},{id:"GetEntitlementsActiveEntitlementsId",method:"get",path:"/v1/entitlements/active_entitlements/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"entitlements.active_entitlement",list:!1},class:"retrieve",resource:"entitlements.active_entitlement"},{id:"GetEntitlementsFeatures",method:"get",path:"/v1/entitlements/features",pathParams:[],query:[{name:"archived",type:"boolean",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"lookup_key",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{archived:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"entitlements.feature",list:!0},class:"list",resource:"entitlements.feature"},{id:"PostEntitlementsFeatures",method:"post",path:"/v1/entitlements/features",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"lookup_key",type:"string",required:!0},{name:"metadata",type:"object",required:!1},{name:"name",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"entitlements.feature",list:!1},class:"create",resource:"entitlements.feature"},{id:"GetEntitlementsFeaturesId",method:"get",path:"/v1/entitlements/features/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"entitlements.feature",list:!1},class:"retrieve",resource:"entitlements.feature"},{id:"PostEntitlementsFeaturesId",method:"post",path:"/v1/entitlements/features/{id}",pathParams:["id"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1}],bodyEncoding:"form",scalars:{active:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"entitlements.feature",list:!1},class:"update",resource:"entitlements.feature"},{id:"PostEphemeralKeys",method:"post",path:"/v1/ephemeral_keys",pathParams:[],query:[],body:[{name:"customer",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"issuing_card",type:"string",required:!1},{name:"nonce",type:"string",required:!1},{name:"verification_session",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"ephemeral_key",list:!1},class:"action",resource:"ephemeral_key"},{id:"DeleteEphemeralKeysKey",method:"delete",path:"/v1/ephemeral_keys/{key}",pathParams:["key"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"ephemeral_key",list:!1},class:"delete",resource:"ephemeral_key"},{id:"GetEvents",method:"get",path:"/v1/events",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"delivery_success",type:"boolean",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!1},{name:"types",type:"array",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",delivery_success:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"event",list:!0},class:"list",resource:"event"},{id:"GetEventsId",method:"get",path:"/v1/events/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"event",list:!1},class:"retrieve",resource:"event"},{id:"GetExchangeRates",method:"get",path:"/v1/exchange_rates",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"exchange_rate",list:!0},class:"list",resource:"exchange_rate"},{id:"GetExchangeRatesRateId",method:"get",path:"/v1/exchange_rates/{rate_id}",pathParams:["rate_id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"exchange_rate",list:!1},class:"retrieve",resource:"exchange_rate"},{id:"PostExternalAccountsId",method:"post",path:"/v1/external_accounts/{id}",pathParams:["id"],query:[],body:[{name:"account_holder_name",type:"string",required:!1},{name:"account_holder_type",type:"string",required:!1},{name:"account_type",type:"string",required:!1},{name:"address_city",type:"string",required:!1},{name:"address_country",type:"string",required:!1},{name:"address_line1",type:"string",required:!1},{name:"address_line2",type:"string",required:!1},{name:"address_state",type:"string",required:!1},{name:"address_zip",type:"string",required:!1},{name:"default_for_currency",type:"boolean",required:!1},{name:"documents",type:"object",required:!1},{name:"exp_month",type:"string",required:!1},{name:"exp_year",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1}],bodyEncoding:"form",scalars:{default_for_currency:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"external_account",list:!1},class:"action",resource:"external_account"},{id:"GetFileLinks",method:"get",path:"/v1/file_links",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"expired",type:"boolean",required:!1},{name:"file",type:"string",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",expired:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"file_link",list:!0},class:"list",resource:"file_link"},{id:"PostFileLinks",method:"post",path:"/v1/file_links",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1},{name:"file",type:"string",required:!0},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",scalars:{expires_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"file_link",list:!1},class:"create",resource:"file_link"},{id:"GetFileLinksLink",method:"get",path:"/v1/file_links/{link}",pathParams:["link"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"file_link",list:!1},class:"retrieve",resource:"file_link"},{id:"PostFileLinksLink",method:"post",path:"/v1/file_links/{link}",pathParams:["link"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"expires_at",type:"union",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",scalars:{expires_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"file_link",list:!1},class:"update",resource:"file_link"},{id:"GetFiles",method:"get",path:"/v1/files",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"purpose",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"file",list:!0},class:"list",resource:"file"},{id:"PostFiles",method:"post",path:"/v1/files",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"file",type:"string",required:!0},{name:"file_link_data",type:"object",required:!1},{name:"purpose",type:"string",required:!0}],bodyEncoding:"multipart",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"file",list:!1},class:"create",resource:"file"},{id:"GetFilesFile",method:"get",path:"/v1/files/{file}",pathParams:["file"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"file",list:!1},class:"retrieve",resource:"file"},{id:"GetFinancialConnectionsAccounts",method:"get",path:"/v1/financial_connections/accounts",pathParams:[],query:[{name:"account_holder",type:"object",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"session",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!0},class:"list",resource:"financial_connections.account"},{id:"GetFinancialConnectionsAccountsAccount",method:"get",path:"/v1/financial_connections/accounts/{account}",pathParams:["account"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!1},class:"retrieve",resource:"financial_connections.account"},{id:"PostFinancialConnectionsAccountsAccountDisconnect",method:"post",path:"/v1/financial_connections/accounts/{account}/disconnect",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!1},class:"action",resource:"financial_connections.account"},{id:"GetFinancialConnectionsAccountsAccountOwners",method:"get",path:"/v1/financial_connections/accounts/{account}/owners",pathParams:["account"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"ownership",type:"string",required:!0},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account_owner",list:!0},class:"list",resource:"financial_connections.account_owner"},{id:"PostFinancialConnectionsAccountsAccountRefresh",method:"post",path:"/v1/financial_connections/accounts/{account}/refresh",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"features",type:"array",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!1},class:"action",resource:"financial_connections.account"},{id:"PostFinancialConnectionsAccountsAccountSubscribe",method:"post",path:"/v1/financial_connections/accounts/{account}/subscribe",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"features",type:"array",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!1},class:"action",resource:"financial_connections.account"},{id:"PostFinancialConnectionsAccountsAccountUnsubscribe",method:"post",path:"/v1/financial_connections/accounts/{account}/unsubscribe",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"features",type:"array",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!1},class:"action",resource:"financial_connections.account"},{id:"PostFinancialConnectionsSessions",method:"post",path:"/v1/financial_connections/sessions",pathParams:[],query:[],body:[{name:"account_holder",type:"object",required:!0},{name:"expand",type:"array",required:!1},{name:"filters",type:"object",required:!1},{name:"limits",type:"object",required:!1},{name:"manual_entry",type:"object",required:!1},{name:"permissions",type:"array",required:!0},{name:"prefetch",type:"array",required:!1},{name:"return_url",type:"string",required:!1}],bodyEncoding:"form",scalars:{"limits.accounts":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.session",list:!1},class:"create",resource:"financial_connections.session"},{id:"GetFinancialConnectionsSessionsSession",method:"get",path:"/v1/financial_connections/sessions/{session}",pathParams:["session"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.session",list:!1},class:"retrieve",resource:"financial_connections.session"},{id:"GetFinancialConnectionsTransactions",method:"get",path:"/v1/financial_connections/transactions",pathParams:[],query:[{name:"account",type:"string",required:!0},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"transacted_at",type:"union",required:!1},{name:"transaction_refresh",type:"object",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer",transacted_at:"integer","transacted_at.gt":"integer","transacted_at.gte":"integer","transacted_at.lt":"integer","transacted_at.lte":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.transaction",list:!0},class:"list",resource:"financial_connections.transaction"},{id:"GetFinancialConnectionsTransactionsTransaction",method:"get",path:"/v1/financial_connections/transactions/{transaction}",pathParams:["transaction"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.transaction",list:!1},class:"retrieve",resource:"financial_connections.transaction"},{id:"GetForwardingRequests",method:"get",path:"/v1/forwarding/requests",pathParams:[],query:[{name:"created",type:"object",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{"created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"forwarding.request",list:!0},class:"list",resource:"forwarding.request"},{id:"PostForwardingRequests",method:"post",path:"/v1/forwarding/requests",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"payment_method",type:"string",required:!0},{name:"replacements",type:"array",required:!0},{name:"request",type:"object",required:!1},{name:"url",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"forwarding.request",list:!1},class:"create",resource:"forwarding.request"},{id:"GetForwardingRequestsId",method:"get",path:"/v1/forwarding/requests/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"forwarding.request",list:!1},class:"retrieve",resource:"forwarding.request"},{id:"GetIdentityVerificationReports",method:"get",path:"/v1/identity/verification_reports",pathParams:[],query:[{name:"client_reference_id",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!1},{name:"verification_session",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"identity.verification_report",list:!0},class:"list",resource:"identity.verification_report"},{id:"GetIdentityVerificationReportsReport",method:"get",path:"/v1/identity/verification_reports/{report}",pathParams:["report"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"identity.verification_report",list:!1},class:"retrieve",resource:"identity.verification_report"},{id:"GetIdentityVerificationSessions",method:"get",path:"/v1/identity/verification_sessions",pathParams:[],query:[{name:"client_reference_id",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"related_customer",type:"string",required:!1},{name:"related_customer_account",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"identity.verification_session",list:!0},class:"list",resource:"identity.verification_session"},{id:"PostIdentityVerificationSessions",method:"post",path:"/v1/identity/verification_sessions",pathParams:[],query:[],body:[{name:"client_reference_id",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"options",type:"object",required:!1},{name:"provided_details",type:"object",required:!1},{name:"related_customer",type:"string",required:!1},{name:"related_customer_account",type:"string",required:!1},{name:"related_person",type:"object",required:!1},{name:"return_url",type:"string",required:!1},{name:"type",type:"string",required:!1},{name:"verification_flow",type:"string",required:!1}],bodyEncoding:"form",scalars:{"options.document.require_id_number":"boolean","options.document.require_live_capture":"boolean","options.document.require_matching_selfie":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"identity.verification_session",list:!1},class:"create",resource:"identity.verification_session"},{id:"GetIdentityVerificationSessionsSession",method:"get",path:"/v1/identity/verification_sessions/{session}",pathParams:["session"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"identity.verification_session",list:!1},class:"retrieve",resource:"identity.verification_session"},{id:"PostIdentityVerificationSessionsSession",method:"post",path:"/v1/identity/verification_sessions/{session}",pathParams:["session"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"options",type:"object",required:!1},{name:"provided_details",type:"object",required:!1},{name:"type",type:"string",required:!1}],bodyEncoding:"form",scalars:{"options.document.require_id_number":"boolean","options.document.require_live_capture":"boolean","options.document.require_matching_selfie":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"identity.verification_session",list:!1},class:"update",resource:"identity.verification_session"},{id:"PostIdentityVerificationSessionsSessionCancel",method:"post",path:"/v1/identity/verification_sessions/{session}/cancel",pathParams:["session"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"identity.verification_session",list:!1},class:"action",resource:"identity.verification_session"},{id:"PostIdentityVerificationSessionsSessionRedact",method:"post",path:"/v1/identity/verification_sessions/{session}/redact",pathParams:["session"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"identity.verification_session",list:!1},class:"action",resource:"identity.verification_session"},{id:"GetInvoicePayments",method:"get",path:"/v1/invoice_payments",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice",type:"string",required:!1},{name:"limit",type:"integer",required:!1},{name:"payment",type:"object",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice_payment",list:!0},class:"list",resource:"invoice_payment"},{id:"GetInvoicePaymentsInvoicePayment",method:"get",path:"/v1/invoice_payments/{invoice_payment}",pathParams:["invoice_payment"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice_payment",list:!1},class:"retrieve",resource:"invoice_payment"},{id:"GetInvoiceRenderingTemplates",method:"get",path:"/v1/invoice_rendering_templates",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice_rendering_template",list:!0},class:"list",resource:"invoice_rendering_template"},{id:"GetInvoiceRenderingTemplatesTemplate",method:"get",path:"/v1/invoice_rendering_templates/{template}",pathParams:["template"],query:[{name:"expand",type:"array",required:!1},{name:"version",type:"integer",required:!1}],body:[],bodyEncoding:"form",scalars:{version:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice_rendering_template",list:!1},class:"retrieve",resource:"invoice_rendering_template"},{id:"PostInvoiceRenderingTemplatesTemplateArchive",method:"post",path:"/v1/invoice_rendering_templates/{template}/archive",pathParams:["template"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice_rendering_template",list:!1},class:"action",resource:"invoice_rendering_template"},{id:"PostInvoiceRenderingTemplatesTemplateUnarchive",method:"post",path:"/v1/invoice_rendering_templates/{template}/unarchive",pathParams:["template"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice_rendering_template",list:!1},class:"action",resource:"invoice_rendering_template"},{id:"GetInvoiceitems",method:"get",path:"/v1/invoiceitems",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice",type:"string",required:!1},{name:"limit",type:"integer",required:!1},{name:"pending",type:"boolean",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer",pending:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoiceitem",list:!0},class:"list",resource:"invoiceitem"},{id:"PostInvoiceitems",method:"post",path:"/v1/invoiceitems",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"currency",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"discountable",type:"boolean",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"period",type:"object",required:!1},{name:"price_data",type:"object",required:!1},{name:"pricing",type:"object",required:!1},{name:"quantity",type:"integer",required:!1},{name:"quantity_decimal",type:"string",required:!1},{name:"subscription",type:"string",required:!1},{name:"tax_behavior",type:"string",required:!1},{name:"tax_code",type:"union",required:!1},{name:"tax_rates",type:"array",required:!1},{name:"unit_amount_decimal",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",discountable:"boolean","period.end":"integer","period.start":"integer","price_data.unit_amount":"integer",quantity:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoiceitem",list:!1},class:"create",resource:"invoiceitem"},{id:"GetInvoiceitemsInvoiceitem",method:"get",path:"/v1/invoiceitems/{invoiceitem}",pathParams:["invoiceitem"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoiceitem",list:!1},class:"retrieve",resource:"invoiceitem"},{id:"PostInvoiceitemsInvoiceitem",method:"post",path:"/v1/invoiceitems/{invoiceitem}",pathParams:["invoiceitem"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"description",type:"string",required:!1},{name:"discountable",type:"boolean",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"invoicing_rules",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"period",type:"object",required:!1},{name:"price_data",type:"object",required:!1},{name:"pricing",type:"object",required:!1},{name:"quantity",type:"integer",required:!1},{name:"quantity_decimal",type:"string",required:!1},{name:"tax_behavior",type:"string",required:!1},{name:"tax_code",type:"union",required:!1},{name:"tax_rates",type:"union",required:!1},{name:"unit_amount_decimal",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",discountable:"boolean","period.end":"integer","period.start":"integer","price_data.unit_amount":"integer",quantity:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoiceitem",list:!1},class:"update",resource:"invoiceitem"},{id:"DeleteInvoiceitemsInvoiceitem",method:"delete",path:"/v1/invoiceitems/{invoiceitem}",pathParams:["invoiceitem"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_invoiceitem",list:!1},class:"delete",resource:"invoiceitem"},{id:"GetInvoices",method:"get",path:"/v1/invoices",pathParams:[],query:[{name:"collection_method",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"due_date",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"subscription",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",due_date:"integer","due_date.gt":"integer","due_date.gte":"integer","due_date.lt":"integer","due_date.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!0},class:"list",resource:"invoice"},{id:"PostInvoices",method:"post",path:"/v1/invoices",pathParams:[],query:[],body:[{name:"account_tax_ids",type:"union",required:!1},{name:"application_fee_amount",type:"integer",required:!1},{name:"auto_advance",type:"boolean",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"automatically_finalizes_at",type:"integer",required:!1},{name:"collection_method",type:"string",required:!1},{name:"currency",type:"string",required:!1},{name:"custom_fields",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"days_until_due",type:"integer",required:!1},{name:"default_payment_method",type:"string",required:!1},{name:"default_source",type:"string",required:!1},{name:"default_tax_rates",type:"array",required:!1},{name:"description",type:"string",required:!1},{name:"discounts",type:"union",required:!1},{name:"due_date",type:"integer",required:!1},{name:"effective_at",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"footer",type:"string",required:!1},{name:"from_invoice",type:"object",required:!1},{name:"issuer",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"number",type:"string",required:!1},{name:"on_behalf_of",type:"string",required:!1},{name:"payment_settings",type:"object",required:!1},{name:"pending_invoice_items_behavior",type:"string",required:!1},{name:"rendering",type:"object",required:!1},{name:"shipping_cost",type:"object",required:!1},{name:"shipping_details",type:"object",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"subscription",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1}],bodyEncoding:"form",scalars:{application_fee_amount:"integer",auto_advance:"boolean","automatic_tax.enabled":"boolean",automatically_finalizes_at:"integer",days_until_due:"integer",due_date:"integer",effective_at:"integer","payment_settings.payment_method_options.card.installments.enabled":"boolean","payment_settings.payment_method_options.card.installments.plan.count":"integer","payment_settings.payment_method_options.payto.mandate_options.amount":"integer","payment_settings.payment_method_options.pix.expires_after_seconds":"integer","payment_settings.payment_method_options.upi.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.end_date":"integer","rendering.template_version":"integer","shipping_cost.shipping_rate_data.delivery_estimate.maximum.value":"integer","shipping_cost.shipping_rate_data.delivery_estimate.minimum.value":"integer","shipping_cost.shipping_rate_data.fixed_amount.amount":"integer","shipping_cost.shipping_rate_data.fixed_amount.currency_options.*.amount":"integer","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"create",resource:"invoice"},{id:"GetInvoicesInvoice",method:"get",path:"/v1/invoices/{invoice}",pathParams:["invoice"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"retrieve",resource:"invoice"},{id:"PostInvoicesInvoice",method:"post",path:"/v1/invoices/{invoice}",pathParams:["invoice"],query:[],body:[{name:"account_tax_ids",type:"union",required:!1},{name:"application_fee_amount",type:"integer",required:!1},{name:"auto_advance",type:"boolean",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"automatically_finalizes_at",type:"integer",required:!1},{name:"collection_method",type:"string",required:!1},{name:"custom_fields",type:"union",required:!1},{name:"days_until_due",type:"integer",required:!1},{name:"default_payment_method",type:"string",required:!1},{name:"default_source",type:"union",required:!1},{name:"default_tax_rates",type:"union",required:!1},{name:"description",type:"string",required:!1},{name:"discounts",type:"union",required:!1},{name:"due_date",type:"integer",required:!1},{name:"effective_at",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"footer",type:"string",required:!1},{name:"issuer",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"number",type:"union",required:!1},{name:"on_behalf_of",type:"union",required:!1},{name:"payment_settings",type:"object",required:!1},{name:"rendering",type:"object",required:!1},{name:"shipping_cost",type:"union",required:!1},{name:"shipping_details",type:"union",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"transfer_data",type:"union",required:!1}],bodyEncoding:"form",scalars:{application_fee_amount:"integer",auto_advance:"boolean","automatic_tax.enabled":"boolean",automatically_finalizes_at:"integer",days_until_due:"integer",due_date:"integer",effective_at:"integer","payment_settings.payment_method_options.card.installments.enabled":"boolean","payment_settings.payment_method_options.card.installments.plan.count":"integer","payment_settings.payment_method_options.payto.mandate_options.amount":"integer","payment_settings.payment_method_options.pix.expires_after_seconds":"integer","payment_settings.payment_method_options.upi.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.end_date":"integer","rendering.template_version":"integer","shipping_cost.shipping_rate_data.delivery_estimate.maximum.value":"integer","shipping_cost.shipping_rate_data.delivery_estimate.minimum.value":"integer","shipping_cost.shipping_rate_data.fixed_amount.amount":"integer","shipping_cost.shipping_rate_data.fixed_amount.currency_options.*.amount":"integer","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"update",resource:"invoice"},{id:"DeleteInvoicesInvoice",method:"delete",path:"/v1/invoices/{invoice}",pathParams:["invoice"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_invoice",list:!1},class:"delete",resource:"invoice"},{id:"PostInvoicesInvoiceAddLines",method:"post",path:"/v1/invoices/{invoice}/add_lines",pathParams:["invoice"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"invoice_metadata",type:"union",required:!1},{name:"lines",type:"array",required:!0}],bodyEncoding:"form",scalars:{"lines.[].amount":"integer","lines.[].discountable":"boolean","lines.[].period.end":"integer","lines.[].period.start":"integer","lines.[].price_data.unit_amount":"integer","lines.[].quantity":"integer","lines.[].tax_amounts.[].amount":"integer","lines.[].tax_amounts.[].tax_rate_data.inclusive":"boolean","lines.[].tax_amounts.[].tax_rate_data.percentage":"number","lines.[].tax_amounts.[].taxable_amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"PostInvoicesInvoiceAttachPayment",method:"post",path:"/v1/invoices/{invoice}/attach_payment",pathParams:["invoice"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"payment_record",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"PostInvoicesInvoiceFinalize",method:"post",path:"/v1/invoices/{invoice}/finalize",pathParams:["invoice"],query:[],body:[{name:"auto_advance",type:"boolean",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{auto_advance:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"GetInvoicesInvoiceLines",method:"get",path:"/v1/invoices/{invoice}/lines",pathParams:["invoice"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"line_item",list:!0},class:"list",resource:"line_item"},{id:"PostInvoicesInvoiceLinesLineItemId",method:"post",path:"/v1/invoices/{invoice}/lines/{line_item_id}",pathParams:["invoice","line_item_id"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"description",type:"string",required:!1},{name:"discountable",type:"boolean",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"period",type:"object",required:!1},{name:"price_data",type:"object",required:!1},{name:"pricing",type:"object",required:!1},{name:"quantity",type:"integer",required:!1},{name:"quantity_decimal",type:"string",required:!1},{name:"tax_amounts",type:"union",required:!1},{name:"tax_rates",type:"union",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",discountable:"boolean","period.end":"integer","period.start":"integer","price_data.unit_amount":"integer",quantity:"integer","tax_amounts.[].amount":"integer","tax_amounts.[].tax_rate_data.inclusive":"boolean","tax_amounts.[].tax_rate_data.percentage":"number","tax_amounts.[].taxable_amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"line_item",list:!1},class:"action",resource:"line_item"},{id:"PostInvoicesInvoiceMarkUncollectible",method:"post",path:"/v1/invoices/{invoice}/mark_uncollectible",pathParams:["invoice"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"PostInvoicesInvoicePay",method:"post",path:"/v1/invoices/{invoice}/pay",pathParams:["invoice"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"forgive",type:"boolean",required:!1},{name:"mandate",type:"union",required:!1},{name:"off_session",type:"boolean",required:!1},{name:"paid_out_of_band",type:"boolean",required:!1},{name:"payment_method",type:"string",required:!1},{name:"source",type:"string",required:!1}],bodyEncoding:"form",scalars:{forgive:"boolean",off_session:"boolean",paid_out_of_band:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"PostInvoicesInvoiceRemoveLines",method:"post",path:"/v1/invoices/{invoice}/remove_lines",pathParams:["invoice"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"invoice_metadata",type:"union",required:!1},{name:"lines",type:"array",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"PostInvoicesInvoiceSend",method:"post",path:"/v1/invoices/{invoice}/send",pathParams:["invoice"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"PostInvoicesInvoiceUpdateLines",method:"post",path:"/v1/invoices/{invoice}/update_lines",pathParams:["invoice"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"invoice_metadata",type:"union",required:!1},{name:"lines",type:"array",required:!0}],bodyEncoding:"form",scalars:{"lines.[].amount":"integer","lines.[].discountable":"boolean","lines.[].period.end":"integer","lines.[].period.start":"integer","lines.[].price_data.unit_amount":"integer","lines.[].quantity":"integer","lines.[].tax_amounts.[].amount":"integer","lines.[].tax_amounts.[].tax_rate_data.inclusive":"boolean","lines.[].tax_amounts.[].tax_rate_data.percentage":"number","lines.[].tax_amounts.[].taxable_amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"PostInvoicesInvoiceVoid",method:"post",path:"/v1/invoices/{invoice}/void",pathParams:["invoice"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"PostInvoicesCreatePreview",method:"post",path:"/v1/invoices/create_preview",pathParams:[],query:[],body:[{name:"automatic_tax",type:"object",required:!1},{name:"currency",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"customer_details",type:"object",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice_items",type:"array",required:!1},{name:"issuer",type:"object",required:!1},{name:"on_behalf_of",type:"union",required:!1},{name:"preview_mode",type:"string",required:!1},{name:"schedule",type:"string",required:!1},{name:"schedule_details",type:"object",required:!1},{name:"subscription",type:"string",required:!1},{name:"subscription_details",type:"object",required:!1}],bodyEncoding:"form",scalars:{"automatic_tax.enabled":"boolean","invoice_items.[].amount":"integer","invoice_items.[].discountable":"boolean","invoice_items.[].period.end":"integer","invoice_items.[].period.start":"integer","invoice_items.[].price_data.unit_amount":"integer","invoice_items.[].quantity":"integer","invoice_items.[].unit_amount":"integer","schedule_details.phases.[].add_invoice_items.[].discountable":"boolean","schedule_details.phases.[].add_invoice_items.[].period.end.timestamp":"integer","schedule_details.phases.[].add_invoice_items.[].period.start.timestamp":"integer","schedule_details.phases.[].add_invoice_items.[].price_data.unit_amount":"integer","schedule_details.phases.[].add_invoice_items.[].quantity":"integer","schedule_details.phases.[].application_fee_percent":"number","schedule_details.phases.[].automatic_tax.enabled":"boolean","schedule_details.phases.[].billing_thresholds.amount_gte":"integer","schedule_details.phases.[].billing_thresholds.reset_billing_cycle_anchor":"boolean","schedule_details.phases.[].duration.interval_count":"integer","schedule_details.phases.[].end_date":"integer","schedule_details.phases.[].invoice_settings.days_until_due":"integer","schedule_details.phases.[].items.[].billing_thresholds.usage_gte":"integer","schedule_details.phases.[].items.[].price_data.recurring.interval_count":"integer","schedule_details.phases.[].items.[].price_data.unit_amount":"integer","schedule_details.phases.[].items.[].quantity":"integer","schedule_details.phases.[].start_date":"integer","schedule_details.phases.[].transfer_data.amount_percent":"number","schedule_details.phases.[].trial":"boolean","schedule_details.phases.[].trial_end":"integer","subscription_details.billing_cycle_anchor.timestamp":"integer","subscription_details.billing_schedules.[].bill_until.duration.interval_count":"integer","subscription_details.billing_schedules.[].bill_until.timestamp":"integer","subscription_details.cancel_at":"integer","subscription_details.cancel_at_period_end":"boolean","subscription_details.cancel_now":"boolean","subscription_details.items.[].billing_thresholds.usage_gte":"integer","subscription_details.items.[].clear_usage":"boolean","subscription_details.items.[].deleted":"boolean","subscription_details.items.[].price_data.recurring.interval_count":"integer","subscription_details.items.[].price_data.unit_amount":"integer","subscription_details.items.[].quantity":"integer","subscription_details.proration_date":"integer","subscription_details.start_date":"integer","subscription_details.trial_end":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!1},class:"action",resource:"invoice"},{id:"GetInvoicesSearch",method:"get",path:"/v1/invoices/search",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"page",type:"string",required:!1},{name:"query",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"invoice",list:!0},class:"computed",resource:"invoice"},{id:"GetIssuingAuthorizations",method:"get",path:"/v1/issuing/authorizations",pathParams:[],query:[{name:"card",type:"string",required:!1},{name:"cardholder",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!0},class:"list",resource:"issuing.authorization"},{id:"GetIssuingAuthorizationsAuthorization",method:"get",path:"/v1/issuing/authorizations/{authorization}",pathParams:["authorization"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"retrieve",resource:"issuing.authorization"},{id:"PostIssuingAuthorizationsAuthorization",method:"post",path:"/v1/issuing/authorizations/{authorization}",pathParams:["authorization"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"update",resource:"issuing.authorization"},{id:"PostIssuingAuthorizationsAuthorizationApprove",method:"post",path:"/v1/issuing/authorizations/{authorization}/approve",pathParams:["authorization"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"PostIssuingAuthorizationsAuthorizationDecline",method:"post",path:"/v1/issuing/authorizations/{authorization}/decline",pathParams:["authorization"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"GetIssuingCardholders",method:"get",path:"/v1/issuing/cardholders",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"email",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"phone_number",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.cardholder",list:!0},class:"list",resource:"issuing.cardholder"},{id:"PostIssuingCardholders",method:"post",path:"/v1/issuing/cardholders",pathParams:[],query:[],body:[{name:"billing",type:"object",required:!0},{name:"company",type:"object",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"individual",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"name",type:"string",required:!0},{name:"phone_number",type:"string",required:!1},{name:"preferred_locales",type:"array",required:!1},{name:"spending_controls",type:"object",required:!1},{name:"status",type:"string",required:!1},{name:"type",type:"string",required:!1}],bodyEncoding:"form",scalars:{"individual.card_issuing.user_terms_acceptance.date":"integer","individual.dob.day":"integer","individual.dob.month":"integer","individual.dob.year":"integer","spending_controls.spending_limits.[].amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.cardholder",list:!1},class:"create",resource:"issuing.cardholder"},{id:"GetIssuingCardholdersCardholder",method:"get",path:"/v1/issuing/cardholders/{cardholder}",pathParams:["cardholder"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.cardholder",list:!1},class:"retrieve",resource:"issuing.cardholder"},{id:"PostIssuingCardholdersCardholder",method:"post",path:"/v1/issuing/cardholders/{cardholder}",pathParams:["cardholder"],query:[],body:[{name:"billing",type:"object",required:!1},{name:"company",type:"object",required:!1},{name:"email",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"individual",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"phone_number",type:"string",required:!1},{name:"preferred_locales",type:"array",required:!1},{name:"spending_controls",type:"object",required:!1},{name:"status",type:"string",required:!1}],bodyEncoding:"form",scalars:{"individual.card_issuing.user_terms_acceptance.date":"integer","individual.dob.day":"integer","individual.dob.month":"integer","individual.dob.year":"integer","spending_controls.spending_limits.[].amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.cardholder",list:!1},class:"update",resource:"issuing.cardholder"},{id:"GetIssuingCards",method:"get",path:"/v1/issuing/cards",pathParams:[],query:[{name:"cardholder",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"exp_month",type:"integer",required:!1},{name:"exp_year",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"last4",type:"string",required:!1},{name:"limit",type:"integer",required:!1},{name:"personalization_design",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",exp_month:"integer",exp_year:"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!0},class:"list",resource:"issuing.card"},{id:"PostIssuingCards",method:"post",path:"/v1/issuing/cards",pathParams:[],query:[],body:[{name:"cardholder",type:"string",required:!1},{name:"currency",type:"string",required:!0},{name:"exp_month",type:"integer",required:!1},{name:"exp_year",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!1},{name:"lifecycle_controls",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"personalization_design",type:"string",required:!1},{name:"pin",type:"object",required:!1},{name:"replacement_for",type:"string",required:!1},{name:"replacement_reason",type:"string",required:!1},{name:"second_line",type:"union",required:!1},{name:"shipping",type:"object",required:!1},{name:"spending_controls",type:"object",required:!1},{name:"status",type:"string",required:!1},{name:"type",type:"string",required:!0}],bodyEncoding:"form",scalars:{exp_month:"integer",exp_year:"integer","lifecycle_controls.cancel_after.payment_count":"integer","shipping.require_signature":"boolean","spending_controls.spending_limits.[].amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!1},class:"create",resource:"issuing.card"},{id:"GetIssuingCardsCard",method:"get",path:"/v1/issuing/cards/{card}",pathParams:["card"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!1},class:"retrieve",resource:"issuing.card"},{id:"PostIssuingCardsCard",method:"post",path:"/v1/issuing/cards/{card}",pathParams:["card"],query:[],body:[{name:"cancellation_reason",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"personalization_design",type:"string",required:!1},{name:"pin",type:"object",required:!1},{name:"shipping",type:"object",required:!1},{name:"spending_controls",type:"object",required:!1},{name:"status",type:"string",required:!1}],bodyEncoding:"form",scalars:{"shipping.require_signature":"boolean","spending_controls.spending_limits.[].amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!1},class:"update",resource:"issuing.card"},{id:"GetIssuingDisputes",method:"get",path:"/v1/issuing/disputes",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"transaction",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.dispute",list:!0},class:"list",resource:"issuing.dispute"},{id:"PostIssuingDisputes",method:"post",path:"/v1/issuing/disputes",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"evidence",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"transaction",type:"string",required:!1},{name:"treasury",type:"object",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","evidence.canceled.canceled_at":"integer","evidence.canceled.cancellation_policy_provided":"boolean","evidence.canceled.expected_at":"integer","evidence.canceled.returned_at":"integer","evidence.merchandise_not_as_described.received_at":"integer","evidence.merchandise_not_as_described.returned_at":"integer","evidence.not_received.expected_at":"integer","evidence.service_not_as_described.canceled_at":"integer","evidence.service_not_as_described.received_at":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.dispute",list:!1},class:"create",resource:"issuing.dispute"},{id:"GetIssuingDisputesDispute",method:"get",path:"/v1/issuing/disputes/{dispute}",pathParams:["dispute"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.dispute",list:!1},class:"retrieve",resource:"issuing.dispute"},{id:"PostIssuingDisputesDispute",method:"post",path:"/v1/issuing/disputes/{dispute}",pathParams:["dispute"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"evidence",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","evidence.canceled.canceled_at":"integer","evidence.canceled.cancellation_policy_provided":"boolean","evidence.canceled.expected_at":"integer","evidence.canceled.returned_at":"integer","evidence.merchandise_not_as_described.received_at":"integer","evidence.merchandise_not_as_described.returned_at":"integer","evidence.not_received.expected_at":"integer","evidence.service_not_as_described.canceled_at":"integer","evidence.service_not_as_described.received_at":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.dispute",list:!1},class:"update",resource:"issuing.dispute"},{id:"PostIssuingDisputesDisputeSubmit",method:"post",path:"/v1/issuing/disputes/{dispute}/submit",pathParams:["dispute"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.dispute",list:!1},class:"action",resource:"issuing.dispute"},{id:"GetIssuingPersonalizationDesigns",method:"get",path:"/v1/issuing/personalization_designs",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"lookup_keys",type:"array",required:!1},{name:"preferences",type:"object",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer","preferences.is_default":"boolean","preferences.is_platform_default":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.personalization_design",list:!0},class:"list",resource:"issuing.personalization_design"},{id:"PostIssuingPersonalizationDesigns",method:"post",path:"/v1/issuing/personalization_designs",pathParams:[],query:[],body:[{name:"card_logo",type:"string",required:!1},{name:"carrier_text",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"lookup_key",type:"string",required:!1},{name:"metadata",type:"object",required:!1},{name:"name",type:"string",required:!1},{name:"physical_bundle",type:"string",required:!0},{name:"preferences",type:"object",required:!1},{name:"transfer_lookup_key",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{"preferences.is_default":"boolean",transfer_lookup_key:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.personalization_design",list:!1},class:"create",resource:"issuing.personalization_design"},{id:"GetIssuingPersonalizationDesignsPersonalizationDesign",method:"get",path:"/v1/issuing/personalization_designs/{personalization_design}",pathParams:["personalization_design"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.personalization_design",list:!1},class:"retrieve",resource:"issuing.personalization_design"},{id:"PostIssuingPersonalizationDesignsPersonalizationDesign",method:"post",path:"/v1/issuing/personalization_designs/{personalization_design}",pathParams:["personalization_design"],query:[],body:[{name:"card_logo",type:"union",required:!1},{name:"carrier_text",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"lookup_key",type:"union",required:!1},{name:"metadata",type:"object",required:!1},{name:"name",type:"union",required:!1},{name:"physical_bundle",type:"string",required:!1},{name:"preferences",type:"object",required:!1},{name:"transfer_lookup_key",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{"preferences.is_default":"boolean",transfer_lookup_key:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.personalization_design",list:!1},class:"update",resource:"issuing.personalization_design"},{id:"GetIssuingPhysicalBundles",method:"get",path:"/v1/issuing/physical_bundles",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.physical_bundle",list:!0},class:"list",resource:"issuing.physical_bundle"},{id:"GetIssuingPhysicalBundlesPhysicalBundle",method:"get",path:"/v1/issuing/physical_bundles/{physical_bundle}",pathParams:["physical_bundle"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.physical_bundle",list:!1},class:"retrieve",resource:"issuing.physical_bundle"},{id:"GetIssuingSettlementsSettlement",method:"get",path:"/v1/issuing/settlements/{settlement}",pathParams:["settlement"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.settlement",list:!1},class:"retrieve",resource:"issuing.settlement"},{id:"PostIssuingSettlementsSettlement",method:"post",path:"/v1/issuing/settlements/{settlement}",pathParams:["settlement"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.settlement",list:!1},class:"update",resource:"issuing.settlement"},{id:"GetIssuingTokens",method:"get",path:"/v1/issuing/tokens",pathParams:[],query:[{name:"card",type:"string",required:!0},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.token",list:!0},class:"list",resource:"issuing.token"},{id:"GetIssuingTokensToken",method:"get",path:"/v1/issuing/tokens/{token}",pathParams:["token"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.token",list:!1},class:"retrieve",resource:"issuing.token"},{id:"PostIssuingTokensToken",method:"post",path:"/v1/issuing/tokens/{token}",pathParams:["token"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"status",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.token",list:!1},class:"update",resource:"issuing.token"},{id:"GetIssuingTransactions",method:"get",path:"/v1/issuing/transactions",pathParams:[],query:[{name:"card",type:"string",required:!1},{name:"cardholder",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.transaction",list:!0},class:"list",resource:"issuing.transaction"},{id:"GetIssuingTransactionsTransaction",method:"get",path:"/v1/issuing/transactions/{transaction}",pathParams:["transaction"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.transaction",list:!1},class:"retrieve",resource:"issuing.transaction"},{id:"PostIssuingTransactionsTransaction",method:"post",path:"/v1/issuing/transactions/{transaction}",pathParams:["transaction"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.transaction",list:!1},class:"update",resource:"issuing.transaction"},{id:"PostLinkAccountSessions",method:"post",path:"/v1/link_account_sessions",pathParams:[],query:[],body:[{name:"account_holder",type:"object",required:!0},{name:"expand",type:"array",required:!1},{name:"filters",type:"object",required:!1},{name:"limits",type:"object",required:!1},{name:"manual_entry",type:"object",required:!1},{name:"permissions",type:"array",required:!0},{name:"prefetch",type:"array",required:!1},{name:"return_url",type:"string",required:!1}],bodyEncoding:"form",scalars:{"limits.accounts":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.session",list:!1},class:"create",resource:"financial_connections.session"},{id:"GetLinkAccountSessionsSession",method:"get",path:"/v1/link_account_sessions/{session}",pathParams:["session"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.session",list:!1},class:"retrieve",resource:"financial_connections.session"},{id:"GetLinkedAccounts",method:"get",path:"/v1/linked_accounts",pathParams:[],query:[{name:"account_holder",type:"object",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"session",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!0},class:"list",resource:"financial_connections.account"},{id:"GetLinkedAccountsAccount",method:"get",path:"/v1/linked_accounts/{account}",pathParams:["account"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!1},class:"retrieve",resource:"financial_connections.account"},{id:"PostLinkedAccountsAccountDisconnect",method:"post",path:"/v1/linked_accounts/{account}/disconnect",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!1},class:"action",resource:"financial_connections.account"},{id:"GetLinkedAccountsAccountOwners",method:"get",path:"/v1/linked_accounts/{account}/owners",pathParams:["account"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"ownership",type:"string",required:!0},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account_owner",list:!0},class:"list",resource:"financial_connections.account_owner"},{id:"PostLinkedAccountsAccountRefresh",method:"post",path:"/v1/linked_accounts/{account}/refresh",pathParams:["account"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"features",type:"array",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"financial_connections.account",list:!1},class:"action",resource:"financial_connections.account"},{id:"GetMandatesMandate",method:"get",path:"/v1/mandates/{mandate}",pathParams:["mandate"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"mandate",list:!1},class:"retrieve",resource:"mandate"},{id:"GetPaymentAttemptRecords",method:"get",path:"/v1/payment_attempt_records",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payment_record",type:"string",required:!0},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_attempt_record",list:!0},class:"list",resource:"payment_attempt_record"},{id:"GetPaymentAttemptRecordsId",method:"get",path:"/v1/payment_attempt_records/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_attempt_record",list:!1},class:"retrieve",resource:"payment_attempt_record"},{id:"GetPaymentIntents",method:"get",path:"/v1/payment_intents",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!0},class:"list",resource:"payment_intent"},{id:"PostPaymentIntents",method:"post",path:"/v1/payment_intents",pathParams:[],query:[],body:[{name:"allowed_payment_method_types",type:"array",required:!1},{name:"amount",type:"integer",required:!0},{name:"amount_details",type:"object",required:!1},{name:"application_fee_amount",type:"integer",required:!1},{name:"automatic_payment_methods",type:"object",required:!1},{name:"capture_method",type:"string",required:!1},{name:"confirm",type:"boolean",required:!1},{name:"confirmation_method",type:"string",required:!1},{name:"confirmation_token",type:"string",required:!1},{name:"currency",type:"string",required:!0},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"error_on_requires_action",type:"boolean",required:!1},{name:"excluded_payment_method_types",type:"array",required:!1},{name:"expand",type:"array",required:!1},{name:"hooks",type:"object",required:!1},{name:"mandate",type:"string",required:!1},{name:"mandate_data",type:"union",required:!1},{name:"metadata",type:"object",required:!1},{name:"off_session",type:"union",required:!1},{name:"on_behalf_of",type:"string",required:!1},{name:"payment_details",type:"object",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_configuration",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"radar_options",type:"object",required:!1},{name:"receipt_email",type:"string",required:!1},{name:"return_url",type:"string",required:!1},{name:"setup_future_usage",type:"string",required:!1},{name:"shipping",type:"object",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"statement_descriptor_suffix",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1},{name:"transfer_group",type:"string",required:!1},{name:"use_stripe_sdk",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","amount_details.discount_amount":"integer","amount_details.enforce_arithmetic_validation":"boolean","amount_details.line_items.[].discount_amount":"integer","amount_details.line_items.[].quantity":"integer","amount_details.line_items.[].tax.total_tax_amount":"integer","amount_details.line_items.[].unit_cost":"integer","amount_details.shipping.amount":"integer","amount_details.tax.total_tax_amount":"integer",application_fee_amount:"integer","automatic_payment_methods.enabled":"boolean",confirm:"boolean",error_on_requires_action:"boolean","mandate_data.customer_acceptance.accepted_at":"integer",off_session:"boolean","payment_method_data.klarna.dob.day":"integer","payment_method_data.klarna.dob.month":"integer","payment_method_data.klarna.dob.year":"integer","payment_method_data.upi.mandate_options.amount":"integer","payment_method_data.upi.mandate_options.end_date":"integer","payment_method_options.blik.mandate_options.expires_at":"integer","payment_method_options.boleto.expires_after_days":"integer","payment_method_options.card_present.request_extended_authorization":"boolean","payment_method_options.card_present.request_incremental_authorization_support":"boolean","payment_method_options.card.installments.enabled":"boolean","payment_method_options.card.installments.plan.count":"integer","payment_method_options.card.mandate_options.amount":"integer","payment_method_options.card.mandate_options.end_date":"integer","payment_method_options.card.mandate_options.interval_count":"integer","payment_method_options.card.mandate_options.start_date":"integer","payment_method_options.card.require_cvc_recollection":"boolean","payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score":"integer","payment_method_options.klarna.on_demand.average_amount":"integer","payment_method_options.klarna.on_demand.maximum_amount":"integer","payment_method_options.klarna.on_demand.minimum_amount":"integer","payment_method_options.klarna.on_demand.purchase_interval_count":"integer","payment_method_options.klarna.subscriptions.[].interval_count":"integer","payment_method_options.klarna.subscriptions.[].next_billing.amount":"integer","payment_method_options.konbini.expires_after_days":"integer","payment_method_options.konbini.expires_at":"integer","payment_method_options.oxxo.expires_after_days":"integer","payment_method_options.p24.tos_shown_and_accepted":"boolean","payment_method_options.payto.mandate_options.amount":"integer","payment_method_options.payto.mandate_options.payments_per_period":"integer","payment_method_options.pix.expires_after_seconds":"integer","payment_method_options.pix.expires_at":"integer","payment_method_options.pix.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.end_date":"integer","transfer_data.amount":"integer",use_stripe_sdk:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"create",resource:"payment_intent"},{id:"GetPaymentIntentsIntent",method:"get",path:"/v1/payment_intents/{intent}",pathParams:["intent"],query:[{name:"client_secret",type:"string",required:!1},{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"retrieve",resource:"payment_intent"},{id:"PostPaymentIntentsIntent",method:"post",path:"/v1/payment_intents/{intent}",pathParams:["intent"],query:[],body:[{name:"allowed_payment_method_types",type:"array",required:!1},{name:"amount",type:"integer",required:!1},{name:"amount_details",type:"union",required:!1},{name:"application_fee_amount",type:"union",required:!1},{name:"capture_method",type:"string",required:!1},{name:"currency",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"excluded_payment_method_types",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"hooks",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"payment_details",type:"union",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_configuration",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"receipt_email",type:"union",required:!1},{name:"setup_future_usage",type:"string",required:!1},{name:"shipping",type:"union",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"statement_descriptor_suffix",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1},{name:"transfer_group",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","amount_details.discount_amount":"integer","amount_details.enforce_arithmetic_validation":"boolean","amount_details.line_items.[].discount_amount":"integer","amount_details.line_items.[].quantity":"integer","amount_details.line_items.[].tax.total_tax_amount":"integer","amount_details.line_items.[].unit_cost":"integer","amount_details.shipping.amount":"integer","amount_details.tax.total_tax_amount":"integer",application_fee_amount:"integer","payment_method_data.klarna.dob.day":"integer","payment_method_data.klarna.dob.month":"integer","payment_method_data.klarna.dob.year":"integer","payment_method_data.upi.mandate_options.amount":"integer","payment_method_data.upi.mandate_options.end_date":"integer","payment_method_options.blik.mandate_options.expires_at":"integer","payment_method_options.boleto.expires_after_days":"integer","payment_method_options.card_present.request_extended_authorization":"boolean","payment_method_options.card_present.request_incremental_authorization_support":"boolean","payment_method_options.card.installments.enabled":"boolean","payment_method_options.card.installments.plan.count":"integer","payment_method_options.card.mandate_options.amount":"integer","payment_method_options.card.mandate_options.end_date":"integer","payment_method_options.card.mandate_options.interval_count":"integer","payment_method_options.card.mandate_options.start_date":"integer","payment_method_options.card.require_cvc_recollection":"boolean","payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score":"integer","payment_method_options.klarna.on_demand.average_amount":"integer","payment_method_options.klarna.on_demand.maximum_amount":"integer","payment_method_options.klarna.on_demand.minimum_amount":"integer","payment_method_options.klarna.on_demand.purchase_interval_count":"integer","payment_method_options.klarna.subscriptions.[].interval_count":"integer","payment_method_options.klarna.subscriptions.[].next_billing.amount":"integer","payment_method_options.konbini.expires_after_days":"integer","payment_method_options.konbini.expires_at":"integer","payment_method_options.oxxo.expires_after_days":"integer","payment_method_options.p24.tos_shown_and_accepted":"boolean","payment_method_options.payto.mandate_options.amount":"integer","payment_method_options.payto.mandate_options.payments_per_period":"integer","payment_method_options.pix.expires_after_seconds":"integer","payment_method_options.pix.expires_at":"integer","payment_method_options.pix.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.end_date":"integer","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"update",resource:"payment_intent"},{id:"GetPaymentIntentsIntentAmountDetailsLineItems",method:"get",path:"/v1/payment_intents/{intent}/amount_details_line_items",pathParams:["intent"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent_amount_details_line_item",list:!0},class:"list",resource:"payment_intent_amount_details_line_item"},{id:"PostPaymentIntentsIntentApplyCustomerBalance",method:"post",path:"/v1/payment_intents/{intent}/apply_customer_balance",pathParams:["intent"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"currency",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"action",resource:"payment_intent"},{id:"PostPaymentIntentsIntentCancel",method:"post",path:"/v1/payment_intents/{intent}/cancel",pathParams:["intent"],query:[],body:[{name:"cancellation_reason",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"action",resource:"payment_intent"},{id:"PostPaymentIntentsIntentCapture",method:"post",path:"/v1/payment_intents/{intent}/capture",pathParams:["intent"],query:[],body:[{name:"amount_details",type:"object",required:!1},{name:"amount_to_capture",type:"integer",required:!1},{name:"application_fee_amount",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"final_capture",type:"boolean",required:!1},{name:"hooks",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"payment_details",type:"union",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"statement_descriptor_suffix",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1}],bodyEncoding:"form",scalars:{"amount_details.discount_amount":"integer","amount_details.enforce_arithmetic_validation":"boolean","amount_details.line_items.[].discount_amount":"integer","amount_details.line_items.[].quantity":"integer","amount_details.line_items.[].tax.total_tax_amount":"integer","amount_details.line_items.[].unit_cost":"integer","amount_details.shipping.amount":"integer","amount_details.tax.total_tax_amount":"integer",amount_to_capture:"integer",application_fee_amount:"integer",final_capture:"boolean","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"action",resource:"payment_intent"},{id:"PostPaymentIntentsIntentConfirm",method:"post",path:"/v1/payment_intents/{intent}/confirm",pathParams:["intent"],query:[],body:[{name:"allowed_payment_method_types",type:"array",required:!1},{name:"amount_details",type:"union",required:!1},{name:"amount_to_confirm",type:"integer",required:!1},{name:"capture_method",type:"string",required:!1},{name:"client_secret",type:"string",required:!1},{name:"confirmation_token",type:"string",required:!1},{name:"error_on_requires_action",type:"boolean",required:!1},{name:"excluded_payment_method_types",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"hooks",type:"object",required:!1},{name:"mandate",type:"string",required:!1},{name:"mandate_data",type:"union",required:!1},{name:"off_session",type:"union",required:!1},{name:"payment_details",type:"union",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"radar_options",type:"object",required:!1},{name:"receipt_email",type:"union",required:!1},{name:"return_url",type:"string",required:!1},{name:"setup_future_usage",type:"string",required:!1},{name:"shipping",type:"union",required:!1},{name:"use_stripe_sdk",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{"amount_details.discount_amount":"integer","amount_details.enforce_arithmetic_validation":"boolean","amount_details.line_items.[].discount_amount":"integer","amount_details.line_items.[].quantity":"integer","amount_details.line_items.[].tax.total_tax_amount":"integer","amount_details.line_items.[].unit_cost":"integer","amount_details.shipping.amount":"integer","amount_details.tax.total_tax_amount":"integer",amount_to_confirm:"integer",error_on_requires_action:"boolean","mandate_data.customer_acceptance.accepted_at":"integer",off_session:"boolean","payment_method_data.klarna.dob.day":"integer","payment_method_data.klarna.dob.month":"integer","payment_method_data.klarna.dob.year":"integer","payment_method_data.upi.mandate_options.amount":"integer","payment_method_data.upi.mandate_options.end_date":"integer","payment_method_options.blik.mandate_options.expires_at":"integer","payment_method_options.boleto.expires_after_days":"integer","payment_method_options.card_present.request_extended_authorization":"boolean","payment_method_options.card_present.request_incremental_authorization_support":"boolean","payment_method_options.card.installments.enabled":"boolean","payment_method_options.card.installments.plan.count":"integer","payment_method_options.card.mandate_options.amount":"integer","payment_method_options.card.mandate_options.end_date":"integer","payment_method_options.card.mandate_options.interval_count":"integer","payment_method_options.card.mandate_options.start_date":"integer","payment_method_options.card.require_cvc_recollection":"boolean","payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score":"integer","payment_method_options.klarna.on_demand.average_amount":"integer","payment_method_options.klarna.on_demand.maximum_amount":"integer","payment_method_options.klarna.on_demand.minimum_amount":"integer","payment_method_options.klarna.on_demand.purchase_interval_count":"integer","payment_method_options.klarna.subscriptions.[].interval_count":"integer","payment_method_options.klarna.subscriptions.[].next_billing.amount":"integer","payment_method_options.konbini.expires_after_days":"integer","payment_method_options.konbini.expires_at":"integer","payment_method_options.oxxo.expires_after_days":"integer","payment_method_options.p24.tos_shown_and_accepted":"boolean","payment_method_options.payto.mandate_options.amount":"integer","payment_method_options.payto.mandate_options.payments_per_period":"integer","payment_method_options.pix.expires_after_seconds":"integer","payment_method_options.pix.expires_at":"integer","payment_method_options.pix.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.end_date":"integer",use_stripe_sdk:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"action",resource:"payment_intent"},{id:"PostPaymentIntentsIntentIncrementAuthorization",method:"post",path:"/v1/payment_intents/{intent}/increment_authorization",pathParams:["intent"],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"amount_details",type:"object",required:!1},{name:"application_fee_amount",type:"integer",required:!1},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"hooks",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"payment_details",type:"object",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","amount_details.discount_amount":"integer","amount_details.enforce_arithmetic_validation":"boolean","amount_details.line_items.[].discount_amount":"integer","amount_details.line_items.[].quantity":"integer","amount_details.line_items.[].tax.total_tax_amount":"integer","amount_details.line_items.[].unit_cost":"integer","amount_details.shipping.amount":"integer","amount_details.tax.total_tax_amount":"integer",application_fee_amount:"integer","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"action",resource:"payment_intent"},{id:"PostPaymentIntentsIntentVerifyMicrodeposits",method:"post",path:"/v1/payment_intents/{intent}/verify_microdeposits",pathParams:["intent"],query:[],body:[{name:"amounts",type:"array",required:!1},{name:"client_secret",type:"string",required:!1},{name:"descriptor_code",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{"amounts.[]":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!1},class:"action",resource:"payment_intent"},{id:"GetPaymentIntentsSearch",method:"get",path:"/v1/payment_intents/search",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"page",type:"string",required:!1},{name:"query",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_intent",list:!0},class:"computed",resource:"payment_intent"},{id:"GetPaymentLinks",method:"get",path:"/v1/payment_links",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_link",list:!0},class:"list",resource:"payment_link"},{id:"PostPaymentLinks",method:"post",path:"/v1/payment_links",pathParams:[],query:[],body:[{name:"after_completion",type:"object",required:!1},{name:"allow_promotion_codes",type:"boolean",required:!1},{name:"application_fee_amount",type:"integer",required:!1},{name:"application_fee_percent",type:"number",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"billing_address_collection",type:"string",required:!1},{name:"consent_collection",type:"object",required:!1},{name:"currency",type:"string",required:!1},{name:"custom_fields",type:"array",required:!1},{name:"custom_text",type:"object",required:!1},{name:"customer_creation",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"inactive_message",type:"string",required:!1},{name:"invoice_creation",type:"object",required:!1},{name:"line_items",type:"array",required:!0},{name:"managed_payments",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"name_collection",type:"object",required:!1},{name:"on_behalf_of",type:"string",required:!1},{name:"optional_items",type:"array",required:!1},{name:"payment_intent_data",type:"object",required:!1},{name:"payment_method_collection",type:"string",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"payment_method_types",type:"array",required:!1},{name:"phone_number_collection",type:"object",required:!1},{name:"restrictions",type:"object",required:!1},{name:"shipping_address_collection",type:"object",required:!1},{name:"shipping_options",type:"array",required:!1},{name:"submit_type",type:"string",required:!1},{name:"subscription_data",type:"object",required:!1},{name:"tax_id_collection",type:"object",required:!1},{name:"transfer_data",type:"object",required:!1}],bodyEncoding:"form",scalars:{allow_promotion_codes:"boolean",application_fee_amount:"integer",application_fee_percent:"number","automatic_tax.enabled":"boolean","custom_fields.[].numeric.maximum_length":"integer","custom_fields.[].numeric.minimum_length":"integer","custom_fields.[].optional":"boolean","custom_fields.[].text.maximum_length":"integer","custom_fields.[].text.minimum_length":"integer","invoice_creation.enabled":"boolean","line_items.[].adjustable_quantity.enabled":"boolean","line_items.[].adjustable_quantity.maximum":"integer","line_items.[].adjustable_quantity.minimum":"integer","line_items.[].price_data.recurring.interval_count":"integer","line_items.[].price_data.unit_amount":"integer","line_items.[].quantity":"integer","managed_payments.enabled":"boolean","name_collection.business.enabled":"boolean","name_collection.business.optional":"boolean","name_collection.individual.enabled":"boolean","name_collection.individual.optional":"boolean","optional_items.[].adjustable_quantity.enabled":"boolean","optional_items.[].adjustable_quantity.maximum":"integer","optional_items.[].adjustable_quantity.minimum":"integer","optional_items.[].quantity":"integer","phone_number_collection.enabled":"boolean","restrictions.completed_sessions.limit":"integer","subscription_data.trial_period_days":"integer","tax_id_collection.enabled":"boolean","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_link",list:!1},class:"create",resource:"payment_link"},{id:"GetPaymentLinksPaymentLink",method:"get",path:"/v1/payment_links/{payment_link}",pathParams:["payment_link"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_link",list:!1},class:"retrieve",resource:"payment_link"},{id:"PostPaymentLinksPaymentLink",method:"post",path:"/v1/payment_links/{payment_link}",pathParams:["payment_link"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"after_completion",type:"object",required:!1},{name:"allow_promotion_codes",type:"boolean",required:!1},{name:"application_fee_amount",type:"union",required:!1},{name:"application_fee_percent",type:"union",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"billing_address_collection",type:"string",required:!1},{name:"consent_collection",type:"object",required:!1},{name:"custom_fields",type:"union",required:!1},{name:"custom_text",type:"object",required:!1},{name:"customer_creation",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"inactive_message",type:"union",required:!1},{name:"invoice_creation",type:"object",required:!1},{name:"line_items",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"name_collection",type:"union",required:!1},{name:"on_behalf_of",type:"union",required:!1},{name:"optional_items",type:"union",required:!1},{name:"payment_intent_data",type:"object",required:!1},{name:"payment_method_collection",type:"string",required:!1},{name:"payment_method_options",type:"union",required:!1},{name:"payment_method_types",type:"union",required:!1},{name:"phone_number_collection",type:"object",required:!1},{name:"restrictions",type:"union",required:!1},{name:"shipping_address_collection",type:"union",required:!1},{name:"shipping_options",type:"union",required:!1},{name:"submit_type",type:"string",required:!1},{name:"subscription_data",type:"object",required:!1},{name:"tax_id_collection",type:"object",required:!1},{name:"transfer_data",type:"union",required:!1}],bodyEncoding:"form",scalars:{active:"boolean",allow_promotion_codes:"boolean",application_fee_amount:"integer",application_fee_percent:"number","automatic_tax.enabled":"boolean","custom_fields.[].numeric.maximum_length":"integer","custom_fields.[].numeric.minimum_length":"integer","custom_fields.[].optional":"boolean","custom_fields.[].text.maximum_length":"integer","custom_fields.[].text.minimum_length":"integer","invoice_creation.enabled":"boolean","line_items.[].adjustable_quantity.enabled":"boolean","line_items.[].adjustable_quantity.maximum":"integer","line_items.[].adjustable_quantity.minimum":"integer","line_items.[].quantity":"integer","name_collection.business.enabled":"boolean","name_collection.business.optional":"boolean","name_collection.individual.enabled":"boolean","name_collection.individual.optional":"boolean","optional_items.[].adjustable_quantity.enabled":"boolean","optional_items.[].adjustable_quantity.maximum":"integer","optional_items.[].adjustable_quantity.minimum":"integer","optional_items.[].quantity":"integer","phone_number_collection.enabled":"boolean","restrictions.completed_sessions.limit":"integer","subscription_data.trial_period_days":"integer","tax_id_collection.enabled":"boolean","transfer_data.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_link",list:!1},class:"update",resource:"payment_link"},{id:"GetPaymentLinksPaymentLinkLineItems",method:"get",path:"/v1/payment_links/{payment_link}/line_items",pathParams:["payment_link"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"item",list:!0},class:"list",resource:"item"},{id:"GetPaymentMethodConfigurations",method:"get",path:"/v1/payment_method_configurations",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"application",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_configuration",list:!0},class:"list",resource:"payment_method_configuration"},{id:"PostPaymentMethodConfigurations",method:"post",path:"/v1/payment_method_configurations",pathParams:[],query:[],body:[{name:"acss_debit",type:"object",required:!1},{name:"affirm",type:"object",required:!1},{name:"afterpay_clearpay",type:"object",required:!1},{name:"alipay",type:"object",required:!1},{name:"alma",type:"object",required:!1},{name:"amazon_pay",type:"object",required:!1},{name:"apple_pay",type:"object",required:!1},{name:"apple_pay_later",type:"object",required:!1},{name:"au_becs_debit",type:"object",required:!1},{name:"bacs_debit",type:"object",required:!1},{name:"bancontact",type:"object",required:!1},{name:"billie",type:"object",required:!1},{name:"bizum",type:"object",required:!1},{name:"blik",type:"object",required:!1},{name:"boleto",type:"object",required:!1},{name:"card",type:"object",required:!1},{name:"cartes_bancaires",type:"object",required:!1},{name:"cashapp",type:"object",required:!1},{name:"crypto",type:"object",required:!1},{name:"customer_balance",type:"object",required:!1},{name:"eps",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"fpx",type:"object",required:!1},{name:"fr_meal_voucher_conecs",type:"object",required:!1},{name:"giropay",type:"object",required:!1},{name:"google_pay",type:"object",required:!1},{name:"grabpay",type:"object",required:!1},{name:"ideal",type:"object",required:!1},{name:"jcb",type:"object",required:!1},{name:"kakao_pay",type:"object",required:!1},{name:"klarna",type:"object",required:!1},{name:"konbini",type:"object",required:!1},{name:"kr_card",type:"object",required:!1},{name:"link",type:"object",required:!1},{name:"mb_way",type:"object",required:!1},{name:"mobilepay",type:"object",required:!1},{name:"multibanco",type:"object",required:!1},{name:"name",type:"string",required:!1},{name:"naver_pay",type:"object",required:!1},{name:"nz_bank_account",type:"object",required:!1},{name:"oxxo",type:"object",required:!1},{name:"p24",type:"object",required:!1},{name:"parent",type:"string",required:!1},{name:"pay_by_bank",type:"object",required:!1},{name:"payco",type:"object",required:!1},{name:"paynow",type:"object",required:!1},{name:"paypal",type:"object",required:!1},{name:"paypay",type:"object",required:!1},{name:"payto",type:"object",required:!1},{name:"pix",type:"object",required:!1},{name:"promptpay",type:"object",required:!1},{name:"revolut_pay",type:"object",required:!1},{name:"samsung_pay",type:"object",required:!1},{name:"satispay",type:"object",required:!1},{name:"scalapay",type:"object",required:!1},{name:"sepa_debit",type:"object",required:!1},{name:"sequra",type:"object",required:!1},{name:"sofort",type:"object",required:!1},{name:"sunbit",type:"object",required:!1},{name:"swish",type:"object",required:!1},{name:"twint",type:"object",required:!1},{name:"upi",type:"object",required:!1},{name:"us_bank_account",type:"object",required:!1},{name:"wechat_pay",type:"object",required:!1},{name:"zip",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_configuration",list:!1},class:"create",resource:"payment_method_configuration"},{id:"GetPaymentMethodConfigurationsConfiguration",method:"get",path:"/v1/payment_method_configurations/{configuration}",pathParams:["configuration"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_configuration",list:!1},class:"retrieve",resource:"payment_method_configuration"},{id:"PostPaymentMethodConfigurationsConfiguration",method:"post",path:"/v1/payment_method_configurations/{configuration}",pathParams:["configuration"],query:[],body:[{name:"acss_debit",type:"object",required:!1},{name:"active",type:"boolean",required:!1},{name:"affirm",type:"object",required:!1},{name:"afterpay_clearpay",type:"object",required:!1},{name:"alipay",type:"object",required:!1},{name:"alma",type:"object",required:!1},{name:"amazon_pay",type:"object",required:!1},{name:"apple_pay",type:"object",required:!1},{name:"apple_pay_later",type:"object",required:!1},{name:"au_becs_debit",type:"object",required:!1},{name:"bacs_debit",type:"object",required:!1},{name:"bancontact",type:"object",required:!1},{name:"billie",type:"object",required:!1},{name:"bizum",type:"object",required:!1},{name:"blik",type:"object",required:!1},{name:"boleto",type:"object",required:!1},{name:"card",type:"object",required:!1},{name:"cartes_bancaires",type:"object",required:!1},{name:"cashapp",type:"object",required:!1},{name:"crypto",type:"object",required:!1},{name:"customer_balance",type:"object",required:!1},{name:"eps",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"fpx",type:"object",required:!1},{name:"fr_meal_voucher_conecs",type:"object",required:!1},{name:"giropay",type:"object",required:!1},{name:"google_pay",type:"object",required:!1},{name:"grabpay",type:"object",required:!1},{name:"ideal",type:"object",required:!1},{name:"jcb",type:"object",required:!1},{name:"kakao_pay",type:"object",required:!1},{name:"klarna",type:"object",required:!1},{name:"konbini",type:"object",required:!1},{name:"kr_card",type:"object",required:!1},{name:"link",type:"object",required:!1},{name:"mb_way",type:"object",required:!1},{name:"mobilepay",type:"object",required:!1},{name:"multibanco",type:"object",required:!1},{name:"name",type:"string",required:!1},{name:"naver_pay",type:"object",required:!1},{name:"nz_bank_account",type:"object",required:!1},{name:"oxxo",type:"object",required:!1},{name:"p24",type:"object",required:!1},{name:"pay_by_bank",type:"object",required:!1},{name:"payco",type:"object",required:!1},{name:"paynow",type:"object",required:!1},{name:"paypal",type:"object",required:!1},{name:"paypay",type:"object",required:!1},{name:"payto",type:"object",required:!1},{name:"pix",type:"object",required:!1},{name:"promptpay",type:"object",required:!1},{name:"revolut_pay",type:"object",required:!1},{name:"samsung_pay",type:"object",required:!1},{name:"satispay",type:"object",required:!1},{name:"scalapay",type:"object",required:!1},{name:"sepa_debit",type:"object",required:!1},{name:"sequra",type:"object",required:!1},{name:"sofort",type:"object",required:!1},{name:"sunbit",type:"object",required:!1},{name:"swish",type:"object",required:!1},{name:"twint",type:"object",required:!1},{name:"upi",type:"object",required:!1},{name:"us_bank_account",type:"object",required:!1},{name:"wechat_pay",type:"object",required:!1},{name:"zip",type:"object",required:!1}],bodyEncoding:"form",scalars:{active:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_configuration",list:!1},class:"update",resource:"payment_method_configuration"},{id:"GetPaymentMethodDomains",method:"get",path:"/v1/payment_method_domains",pathParams:[],query:[{name:"domain_name",type:"string",required:!1},{name:"enabled",type:"boolean",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{enabled:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_domain",list:!0},class:"list",resource:"payment_method_domain"},{id:"PostPaymentMethodDomains",method:"post",path:"/v1/payment_method_domains",pathParams:[],query:[],body:[{name:"domain_name",type:"string",required:!0},{name:"enabled",type:"boolean",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{enabled:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_domain",list:!1},class:"create",resource:"payment_method_domain"},{id:"GetPaymentMethodDomainsPaymentMethodDomain",method:"get",path:"/v1/payment_method_domains/{payment_method_domain}",pathParams:["payment_method_domain"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_domain",list:!1},class:"retrieve",resource:"payment_method_domain"},{id:"PostPaymentMethodDomainsPaymentMethodDomain",method:"post",path:"/v1/payment_method_domains/{payment_method_domain}",pathParams:["payment_method_domain"],query:[],body:[{name:"enabled",type:"boolean",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{enabled:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_domain",list:!1},class:"update",resource:"payment_method_domain"},{id:"PostPaymentMethodDomainsPaymentMethodDomainValidate",method:"post",path:"/v1/payment_method_domains/{payment_method_domain}/validate",pathParams:["payment_method_domain"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method_domain",list:!1},class:"action",resource:"payment_method_domain"},{id:"GetPaymentMethods",method:"get",path:"/v1/payment_methods",pathParams:[],query:[{name:"allow_redisplay",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method",list:!0},class:"list",resource:"payment_method"},{id:"PostPaymentMethods",method:"post",path:"/v1/payment_methods",pathParams:[],query:[],body:[{name:"acss_debit",type:"object",required:!1},{name:"affirm",type:"object",required:!1},{name:"afterpay_clearpay",type:"object",required:!1},{name:"alipay",type:"object",required:!1},{name:"allow_redisplay",type:"string",required:!1},{name:"alma",type:"object",required:!1},{name:"amazon_pay",type:"object",required:!1},{name:"au_becs_debit",type:"object",required:!1},{name:"bacs_debit",type:"object",required:!1},{name:"bancontact",type:"object",required:!1},{name:"billie",type:"object",required:!1},{name:"billing_details",type:"object",required:!1},{name:"bizum",type:"object",required:!1},{name:"blik",type:"object",required:!1},{name:"boleto",type:"object",required:!1},{name:"card",type:"union",required:!1},{name:"cashapp",type:"object",required:!1},{name:"crypto",type:"object",required:!1},{name:"custom",type:"object",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_balance",type:"object",required:!1},{name:"eps",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"fpx",type:"object",required:!1},{name:"giropay",type:"object",required:!1},{name:"grabpay",type:"object",required:!1},{name:"ideal",type:"object",required:!1},{name:"interac_present",type:"object",required:!1},{name:"kakao_pay",type:"object",required:!1},{name:"klarna",type:"object",required:!1},{name:"konbini",type:"object",required:!1},{name:"kr_card",type:"object",required:!1},{name:"link",type:"object",required:!1},{name:"mb_way",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"mobilepay",type:"object",required:!1},{name:"multibanco",type:"object",required:!1},{name:"naver_pay",type:"object",required:!1},{name:"nz_bank_account",type:"object",required:!1},{name:"oxxo",type:"object",required:!1},{name:"p24",type:"object",required:!1},{name:"pay_by_bank",type:"object",required:!1},{name:"payco",type:"object",required:!1},{name:"payment_method",type:"string",required:!1},{name:"paynow",type:"object",required:!1},{name:"paypal",type:"object",required:!1},{name:"paypay",type:"object",required:!1},{name:"payto",type:"object",required:!1},{name:"pix",type:"object",required:!1},{name:"promptpay",type:"object",required:!1},{name:"radar_options",type:"object",required:!1},{name:"revolut_pay",type:"object",required:!1},{name:"samsung_pay",type:"object",required:!1},{name:"satispay",type:"object",required:!1},{name:"scalapay",type:"object",required:!1},{name:"sepa_debit",type:"object",required:!1},{name:"sequra",type:"object",required:!1},{name:"sofort",type:"object",required:!1},{name:"sunbit",type:"object",required:!1},{name:"swish",type:"object",required:!1},{name:"twint",type:"object",required:!1},{name:"type",type:"string",required:!1},{name:"upi",type:"object",required:!1},{name:"us_bank_account",type:"object",required:!1},{name:"wechat_pay",type:"object",required:!1},{name:"zip",type:"object",required:!1}],bodyEncoding:"form",scalars:{"card.exp_month":"integer","card.exp_year":"integer","klarna.dob.day":"integer","klarna.dob.month":"integer","klarna.dob.year":"integer","upi.mandate_options.amount":"integer","upi.mandate_options.end_date":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method",list:!1},class:"create",resource:"payment_method"},{id:"GetPaymentMethodsPaymentMethod",method:"get",path:"/v1/payment_methods/{payment_method}",pathParams:["payment_method"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method",list:!1},class:"retrieve",resource:"payment_method"},{id:"PostPaymentMethodsPaymentMethod",method:"post",path:"/v1/payment_methods/{payment_method}",pathParams:["payment_method"],query:[],body:[{name:"allow_redisplay",type:"string",required:!1},{name:"billing_details",type:"object",required:!1},{name:"card",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"us_bank_account",type:"object",required:!1}],bodyEncoding:"form",scalars:{"card.exp_month":"integer","card.exp_year":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method",list:!1},class:"update",resource:"payment_method"},{id:"PostPaymentMethodsPaymentMethodAttach",method:"post",path:"/v1/payment_methods/{payment_method}/attach",pathParams:["payment_method"],query:[],body:[{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method",list:!1},class:"action",resource:"payment_method"},{id:"PostPaymentMethodsPaymentMethodDetach",method:"post",path:"/v1/payment_methods/{payment_method}/detach",pathParams:["payment_method"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_method",list:!1},class:"action",resource:"payment_method"},{id:"GetPaymentRecords",method:"get",path:"/v1/payment_records",pathParams:[],query:[{name:"created_after",type:"integer",required:!1},{name:"created_before",type:"integer",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created_after:"integer",created_before:"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!0},class:"list",resource:"payment_record"},{id:"GetPaymentRecordsId",method:"get",path:"/v1/payment_records/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!1},class:"retrieve",resource:"payment_record"},{id:"PostPaymentRecordsIdReportPaymentAttempt",method:"post",path:"/v1/payment_records/{id}/report_payment_attempt",pathParams:["id"],query:[],body:[{name:"canceled",type:"object",required:!1},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"failed",type:"object",required:!1},{name:"guaranteed",type:"object",required:!1},{name:"initiated_at",type:"integer",required:!0},{name:"metadata",type:"union",required:!1},{name:"outcome",type:"string",required:!1},{name:"payment_method_details",type:"object",required:!1},{name:"shipping_details",type:"object",required:!1}],bodyEncoding:"form",scalars:{"canceled.canceled_at":"integer","failed.failed_at":"integer","guaranteed.guaranteed_at":"integer",initiated_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!1},class:"action",resource:"payment_record"},{id:"PostPaymentRecordsIdReportPaymentAttemptCanceled",method:"post",path:"/v1/payment_records/{id}/report_payment_attempt_canceled",pathParams:["id"],query:[],body:[{name:"canceled_at",type:"integer",required:!0},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",scalars:{canceled_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!1},class:"action",resource:"payment_record"},{id:"PostPaymentRecordsIdReportPaymentAttemptFailed",method:"post",path:"/v1/payment_records/{id}/report_payment_attempt_failed",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"failed_at",type:"integer",required:!0},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",scalars:{failed_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!1},class:"action",resource:"payment_record"},{id:"PostPaymentRecordsIdReportPaymentAttemptGuaranteed",method:"post",path:"/v1/payment_records/{id}/report_payment_attempt_guaranteed",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"guaranteed_at",type:"integer",required:!0},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",scalars:{guaranteed_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!1},class:"action",resource:"payment_record"},{id:"PostPaymentRecordsIdReportPaymentAttemptInformational",method:"post",path:"/v1/payment_records/{id}/report_payment_attempt_informational",pathParams:["id"],query:[],body:[{name:"customer_details",type:"object",required:!1},{name:"description",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"shipping_details",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!1},class:"action",resource:"payment_record"},{id:"PostPaymentRecordsIdReportRefund",method:"post",path:"/v1/payment_records/{id}/report_refund",pathParams:["id"],query:[],body:[{name:"amount",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"initiated_at",type:"integer",required:!1},{name:"metadata",type:"union",required:!1},{name:"outcome",type:"string",required:!0},{name:"processor_details",type:"object",required:!0},{name:"refunded",type:"object",required:!1}],bodyEncoding:"form",scalars:{"amount.value":"integer",initiated_at:"integer","refunded.refunded_at":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!1},class:"action",resource:"payment_record"},{id:"PostPaymentRecordsReportPayment",method:"post",path:"/v1/payment_records/report_payment",pathParams:[],query:[],body:[{name:"amount_requested",type:"object",required:!0},{name:"canceled",type:"object",required:!1},{name:"customer_details",type:"object",required:!1},{name:"customer_presence",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"failed",type:"object",required:!1},{name:"guaranteed",type:"object",required:!1},{name:"initiated_at",type:"integer",required:!0},{name:"metadata",type:"union",required:!1},{name:"outcome",type:"string",required:!1},{name:"payment_method_details",type:"object",required:!0},{name:"processor_details",type:"object",required:!1},{name:"shipping_details",type:"object",required:!1}],bodyEncoding:"form",scalars:{"amount_requested.value":"integer","canceled.canceled_at":"integer","failed.failed_at":"integer","guaranteed.guaranteed_at":"integer",initiated_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payment_record",list:!1},class:"action",resource:"payment_record"},{id:"GetPayouts",method:"get",path:"/v1/payouts",pathParams:[],query:[{name:"arrival_date",type:"union",required:!1},{name:"created",type:"union",required:!1},{name:"destination",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{arrival_date:"integer","arrival_date.gt":"integer","arrival_date.gte":"integer","arrival_date.lt":"integer","arrival_date.lte":"integer",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payout",list:!0},class:"list",resource:"payout"},{id:"PostPayouts",method:"post",path:"/v1/payouts",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"description",type:"string",required:!1},{name:"destination",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"method",type:"string",required:!1},{name:"payout_method",type:"string",required:!1},{name:"source_type",type:"string",required:!1},{name:"statement_descriptor",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payout",list:!1},class:"create",resource:"payout"},{id:"GetPayoutsPayout",method:"get",path:"/v1/payouts/{payout}",pathParams:["payout"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payout",list:!1},class:"retrieve",resource:"payout"},{id:"PostPayoutsPayout",method:"post",path:"/v1/payouts/{payout}",pathParams:["payout"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payout",list:!1},class:"update",resource:"payout"},{id:"PostPayoutsPayoutCancel",method:"post",path:"/v1/payouts/{payout}/cancel",pathParams:["payout"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payout",list:!1},class:"action",resource:"payout"},{id:"PostPayoutsPayoutReverse",method:"post",path:"/v1/payouts/{payout}/reverse",pathParams:["payout"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"payout",list:!1},class:"action",resource:"payout"},{id:"GetPlans",method:"get",path:"/v1/plans",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"product",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"plan",list:!0},class:"list",resource:"plan"},{id:"PostPlans",method:"post",path:"/v1/plans",pathParams:[],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"amount",type:"integer",required:!1},{name:"amount_decimal",type:"string",required:!1},{name:"billing_scheme",type:"string",required:!1},{name:"currency",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"id",type:"string",required:!1},{name:"interval",type:"string",required:!0},{name:"interval_count",type:"integer",required:!1},{name:"metadata",type:"union",required:!1},{name:"meter",type:"string",required:!1},{name:"nickname",type:"string",required:!1},{name:"product",type:"union",required:!1},{name:"tiers",type:"array",required:!1},{name:"tiers_mode",type:"string",required:!1},{name:"transform_usage",type:"object",required:!1},{name:"trial_period_days",type:"integer",required:!1},{name:"usage_type",type:"string",required:!1}],bodyEncoding:"form",scalars:{active:"boolean",amount:"integer",interval_count:"integer","product.active":"boolean","tiers.[].flat_amount":"integer","tiers.[].unit_amount":"integer","tiers.[].up_to":"integer","transform_usage.divide_by":"integer",trial_period_days:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"plan",list:!1},class:"create",resource:"plan"},{id:"GetPlansPlan",method:"get",path:"/v1/plans/{plan}",pathParams:["plan"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"plan",list:!1},class:"retrieve",resource:"plan"},{id:"PostPlansPlan",method:"post",path:"/v1/plans/{plan}",pathParams:["plan"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"nickname",type:"string",required:!1},{name:"product",type:"string",required:!1},{name:"trial_period_days",type:"integer",required:!1}],bodyEncoding:"form",scalars:{active:"boolean",trial_period_days:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"plan",list:!1},class:"update",resource:"plan"},{id:"DeletePlansPlan",method:"delete",path:"/v1/plans/{plan}",pathParams:["plan"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_plan",list:!1},class:"delete",resource:"plan"},{id:"GetPrices",method:"get",path:"/v1/prices",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"created",type:"union",required:!1},{name:"currency",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"lookup_keys",type:"array",required:!1},{name:"product",type:"string",required:!1},{name:"recurring",type:"object",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"price",list:!0},class:"list",resource:"price"},{id:"PostPrices",method:"post",path:"/v1/prices",pathParams:[],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"billing_scheme",type:"string",required:!1},{name:"currency",type:"string",required:!0},{name:"currency_options",type:"object",required:!1},{name:"custom_unit_amount",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"lookup_key",type:"string",required:!1},{name:"metadata",type:"object",required:!1},{name:"nickname",type:"string",required:!1},{name:"product",type:"string",required:!1},{name:"product_data",type:"object",required:!1},{name:"recurring",type:"object",required:!1},{name:"tax_behavior",type:"string",required:!1},{name:"tiers",type:"array",required:!1},{name:"tiers_mode",type:"string",required:!1},{name:"transfer_lookup_key",type:"boolean",required:!1},{name:"transform_quantity",type:"object",required:!1},{name:"unit_amount",type:"integer",required:!1},{name:"unit_amount_decimal",type:"string",required:!1}],bodyEncoding:"form",scalars:{active:"boolean","currency_options.*.custom_unit_amount.enabled":"boolean","currency_options.*.custom_unit_amount.maximum":"integer","currency_options.*.custom_unit_amount.minimum":"integer","currency_options.*.custom_unit_amount.preset":"integer","currency_options.*.tiers.[].flat_amount":"integer","currency_options.*.tiers.[].unit_amount":"integer","currency_options.*.tiers.[].up_to":"integer","currency_options.*.unit_amount":"integer","custom_unit_amount.enabled":"boolean","custom_unit_amount.maximum":"integer","custom_unit_amount.minimum":"integer","custom_unit_amount.preset":"integer","product_data.active":"boolean","recurring.interval_count":"integer","tiers.[].flat_amount":"integer","tiers.[].unit_amount":"integer","tiers.[].up_to":"integer",transfer_lookup_key:"boolean","transform_quantity.divide_by":"integer",unit_amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"price",list:!1},class:"create",resource:"price"},{id:"GetPricesPrice",method:"get",path:"/v1/prices/{price}",pathParams:["price"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"price",list:!1},class:"retrieve",resource:"price"},{id:"PostPricesPrice",method:"post",path:"/v1/prices/{price}",pathParams:["price"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"currency_options",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"lookup_key",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"nickname",type:"string",required:!1},{name:"tax_behavior",type:"string",required:!1},{name:"transfer_lookup_key",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{active:"boolean","currency_options.*.custom_unit_amount.enabled":"boolean","currency_options.*.custom_unit_amount.maximum":"integer","currency_options.*.custom_unit_amount.minimum":"integer","currency_options.*.custom_unit_amount.preset":"integer","currency_options.*.tiers.[].flat_amount":"integer","currency_options.*.tiers.[].unit_amount":"integer","currency_options.*.tiers.[].up_to":"integer","currency_options.*.unit_amount":"integer",transfer_lookup_key:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"price",list:!1},class:"update",resource:"price"},{id:"GetPricesSearch",method:"get",path:"/v1/prices/search",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"page",type:"string",required:!1},{name:"query",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"price",list:!0},class:"computed",resource:"price"},{id:"GetProductCatalogTrialOffers",method:"get",path:"/v1/product_catalog/trial_offers",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"prices",type:"array",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product_catalog.trial_offer",list:!0},class:"list",resource:"product_catalog.trial_offer"},{id:"PostProductCatalogTrialOffers",method:"post",path:"/v1/product_catalog/trial_offers",pathParams:[],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"duration",type:"object",required:!0},{name:"end_behavior",type:"object",required:!0},{name:"expand",type:"array",required:!1},{name:"nickname",type:"string",required:!1},{name:"price",type:"string",required:!0}],bodyEncoding:"form",scalars:{active:"boolean","duration.relative.iterations":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product_catalog.trial_offer",list:!1},class:"create",resource:"product_catalog.trial_offer"},{id:"GetProductCatalogTrialOffersId",method:"get",path:"/v1/product_catalog/trial_offers/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product_catalog.trial_offer",list:!1},class:"retrieve",resource:"product_catalog.trial_offer"},{id:"PostProductCatalogTrialOffersId",method:"post",path:"/v1/product_catalog/trial_offers/{id}",pathParams:["id"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{active:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product_catalog.trial_offer",list:!1},class:"update",resource:"product_catalog.trial_offer"},{id:"GetProducts",method:"get",path:"/v1/products",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"ids",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"shippable",type:"boolean",required:!1},{name:"starting_after",type:"string",required:!1},{name:"url",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer",shippable:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product",list:!0},class:"list",resource:"product"},{id:"PostProducts",method:"post",path:"/v1/products",pathParams:[],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"default_price_data",type:"object",required:!1},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"id",type:"string",required:!1},{name:"images",type:"array",required:!1},{name:"marketing_features",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"name",type:"string",required:!0},{name:"package_dimensions",type:"object",required:!1},{name:"shippable",type:"boolean",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"tax_code",type:"string",required:!1},{name:"tax_details",type:"object",required:!1},{name:"unit_label",type:"string",required:!1},{name:"url",type:"string",required:!1}],bodyEncoding:"form",scalars:{active:"boolean","default_price_data.currency_options.*.custom_unit_amount.enabled":"boolean","default_price_data.currency_options.*.custom_unit_amount.maximum":"integer","default_price_data.currency_options.*.custom_unit_amount.minimum":"integer","default_price_data.currency_options.*.custom_unit_amount.preset":"integer","default_price_data.currency_options.*.tiers.[].flat_amount":"integer","default_price_data.currency_options.*.tiers.[].unit_amount":"integer","default_price_data.currency_options.*.tiers.[].up_to":"integer","default_price_data.currency_options.*.unit_amount":"integer","default_price_data.custom_unit_amount.enabled":"boolean","default_price_data.custom_unit_amount.maximum":"integer","default_price_data.custom_unit_amount.minimum":"integer","default_price_data.custom_unit_amount.preset":"integer","default_price_data.recurring.interval_count":"integer","default_price_data.unit_amount":"integer","package_dimensions.height":"number","package_dimensions.length":"number","package_dimensions.weight":"number","package_dimensions.width":"number",shippable:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product",list:!1},class:"create",resource:"product"},{id:"GetProductsId",method:"get",path:"/v1/products/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product",list:!1},class:"retrieve",resource:"product"},{id:"PostProductsId",method:"post",path:"/v1/products/{id}",pathParams:["id"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"default_price",type:"string",required:!1},{name:"description",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"images",type:"union",required:!1},{name:"marketing_features",type:"union",required:!1},{name:"metadata",type:"union",required:!1},{name:"name",type:"string",required:!1},{name:"package_dimensions",type:"union",required:!1},{name:"shippable",type:"boolean",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"tax_code",type:"union",required:!1},{name:"tax_details",type:"union",required:!1},{name:"unit_label",type:"union",required:!1},{name:"url",type:"union",required:!1}],bodyEncoding:"form",scalars:{active:"boolean","package_dimensions.height":"number","package_dimensions.length":"number","package_dimensions.weight":"number","package_dimensions.width":"number",shippable:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product",list:!1},class:"update",resource:"product"},{id:"DeleteProductsId",method:"delete",path:"/v1/products/{id}",pathParams:["id"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_product",list:!1},class:"delete",resource:"product"},{id:"GetProductsProductFeatures",method:"get",path:"/v1/products/{product}/features",pathParams:["product"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product_feature",list:!0},class:"list",resource:"product_feature"},{id:"PostProductsProductFeatures",method:"post",path:"/v1/products/{product}/features",pathParams:["product"],query:[],body:[{name:"entitlement_feature",type:"string",required:!0},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product_feature",list:!1},class:"create",resource:"product_feature"},{id:"GetProductsProductFeaturesId",method:"get",path:"/v1/products/{product}/features/{id}",pathParams:["id","product"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product_feature",list:!1},class:"retrieve",resource:"product_feature"},{id:"DeleteProductsProductFeaturesId",method:"delete",path:"/v1/products/{product}/features/{id}",pathParams:["id","product"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_product_feature",list:!1},class:"delete",resource:"product_feature"},{id:"GetProductsSearch",method:"get",path:"/v1/products/search",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"page",type:"string",required:!1},{name:"query",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"product",list:!0},class:"computed",resource:"product"},{id:"GetPromotionCodes",method:"get",path:"/v1/promotion_codes",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"code",type:"string",required:!1},{name:"coupon",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"promotion_code",list:!0},class:"list",resource:"promotion_code"},{id:"PostPromotionCodes",method:"post",path:"/v1/promotion_codes",pathParams:[],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"code",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1},{name:"max_redemptions",type:"integer",required:!1},{name:"metadata",type:"object",required:!1},{name:"promotion",type:"object",required:!0},{name:"restrictions",type:"object",required:!1}],bodyEncoding:"form",scalars:{active:"boolean",expires_at:"integer",max_redemptions:"integer","restrictions.currency_options.*.minimum_amount":"integer","restrictions.first_time_transaction":"boolean","restrictions.minimum_amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"promotion_code",list:!1},class:"create",resource:"promotion_code"},{id:"GetPromotionCodesPromotionCode",method:"get",path:"/v1/promotion_codes/{promotion_code}",pathParams:["promotion_code"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"promotion_code",list:!1},class:"retrieve",resource:"promotion_code"},{id:"PostPromotionCodesPromotionCode",method:"post",path:"/v1/promotion_codes/{promotion_code}",pathParams:["promotion_code"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"restrictions",type:"object",required:!1}],bodyEncoding:"form",scalars:{active:"boolean","restrictions.currency_options.*.minimum_amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"promotion_code",list:!1},class:"update",resource:"promotion_code"},{id:"GetQuotes",method:"get",path:"/v1/quotes",pathParams:[],query:[{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"test_clock",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"quote",list:!0},class:"list",resource:"quote"},{id:"PostQuotes",method:"post",path:"/v1/quotes",pathParams:[],query:[],body:[{name:"application_fee_amount",type:"union",required:!1},{name:"application_fee_percent",type:"union",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"collection_method",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"default_tax_rates",type:"union",required:!1},{name:"description",type:"union",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1},{name:"footer",type:"union",required:!1},{name:"from_quote",type:"object",required:!1},{name:"header",type:"union",required:!1},{name:"invoice_settings",type:"object",required:!1},{name:"line_items",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"on_behalf_of",type:"union",required:!1},{name:"subscription_data",type:"object",required:!1},{name:"test_clock",type:"string",required:!1},{name:"transfer_data",type:"union",required:!1}],bodyEncoding:"form",scalars:{application_fee_amount:"integer",application_fee_percent:"number","automatic_tax.enabled":"boolean",expires_at:"integer","from_quote.is_revision":"boolean","invoice_settings.days_until_due":"integer","line_items.[].price_data.recurring.interval_count":"integer","line_items.[].price_data.unit_amount":"integer","line_items.[].quantity":"integer","subscription_data.effective_date":"integer","subscription_data.trial_period_days":"integer","transfer_data.amount":"integer","transfer_data.amount_percent":"number"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"quote",list:!1},class:"create",resource:"quote"},{id:"GetQuotesQuote",method:"get",path:"/v1/quotes/{quote}",pathParams:["quote"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"quote",list:!1},class:"retrieve",resource:"quote"},{id:"PostQuotesQuote",method:"post",path:"/v1/quotes/{quote}",pathParams:["quote"],query:[],body:[{name:"application_fee_amount",type:"union",required:!1},{name:"application_fee_percent",type:"union",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"collection_method",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"default_tax_rates",type:"union",required:!1},{name:"description",type:"union",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1},{name:"footer",type:"union",required:!1},{name:"header",type:"union",required:!1},{name:"invoice_settings",type:"object",required:!1},{name:"line_items",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"on_behalf_of",type:"union",required:!1},{name:"subscription_data",type:"object",required:!1},{name:"transfer_data",type:"union",required:!1}],bodyEncoding:"form",scalars:{application_fee_amount:"integer",application_fee_percent:"number","automatic_tax.enabled":"boolean",expires_at:"integer","invoice_settings.days_until_due":"integer","line_items.[].price_data.recurring.interval_count":"integer","line_items.[].price_data.unit_amount":"integer","line_items.[].quantity":"integer","subscription_data.effective_date":"integer","subscription_data.trial_period_days":"integer","transfer_data.amount":"integer","transfer_data.amount_percent":"number"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"quote",list:!1},class:"update",resource:"quote"},{id:"PostQuotesQuoteAccept",method:"post",path:"/v1/quotes/{quote}/accept",pathParams:["quote"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"quote",list:!1},class:"action",resource:"quote"},{id:"PostQuotesQuoteCancel",method:"post",path:"/v1/quotes/{quote}/cancel",pathParams:["quote"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"quote",list:!1},class:"action",resource:"quote"},{id:"GetQuotesQuoteComputedUpfrontLineItems",method:"get",path:"/v1/quotes/{quote}/computed_upfront_line_items",pathParams:["quote"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"item",list:!0},class:"list",resource:"item"},{id:"PostQuotesQuoteFinalize",method:"post",path:"/v1/quotes/{quote}/finalize",pathParams:["quote"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1}],bodyEncoding:"form",scalars:{expires_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"quote",list:!1},class:"action",resource:"quote"},{id:"GetQuotesQuoteLineItems",method:"get",path:"/v1/quotes/{quote}/line_items",pathParams:["quote"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"item",list:!0},class:"list",resource:"item"},{id:"GetQuotesQuotePdf",method:"get",path:"/v1/quotes/{quote}/pdf",pathParams:["quote"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,responseMedia:{"200":["application/pdf"]},defaultResponseMedia:{"200":"application/pdf"},credentials:["basicAuth","bearerAuth"],class:"computed",resource:"quote"},{id:"GetRadarEarlyFraudWarnings",method:"get",path:"/v1/radar/early_fraud_warnings",pathParams:[],query:[{name:"charge",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.early_fraud_warning",list:!0},class:"list",resource:"radar.early_fraud_warning"},{id:"GetRadarEarlyFraudWarningsEarlyFraudWarning",method:"get",path:"/v1/radar/early_fraud_warnings/{early_fraud_warning}",pathParams:["early_fraud_warning"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.early_fraud_warning",list:!1},class:"retrieve",resource:"radar.early_fraud_warning"},{id:"PostRadarPaymentEvaluations",method:"post",path:"/v1/radar/payment_evaluations",pathParams:[],query:[],body:[{name:"client_device_metadata_details",type:"object",required:!1},{name:"customer_details",type:"object",required:!0},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"payment_details",type:"object",required:!0}],bodyEncoding:"form",scalars:{"payment_details.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.payment_evaluation",list:!1},class:"action",resource:"radar.payment_evaluation"},{id:"GetRadarValueListItems",method:"get",path:"/v1/radar/value_list_items",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"value",type:"string",required:!1},{name:"value_list",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.value_list_item",list:!0},class:"list",resource:"radar.value_list_item"},{id:"PostRadarValueListItems",method:"post",path:"/v1/radar/value_list_items",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"value",type:"string",required:!0},{name:"value_list",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.value_list_item",list:!1},class:"create",resource:"radar.value_list_item"},{id:"GetRadarValueListItemsItem",method:"get",path:"/v1/radar/value_list_items/{item}",pathParams:["item"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.value_list_item",list:!1},class:"retrieve",resource:"radar.value_list_item"},{id:"DeleteRadarValueListItemsItem",method:"delete",path:"/v1/radar/value_list_items/{item}",pathParams:["item"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_radar.value_list_item",list:!1},class:"delete",resource:"radar.value_list_item"},{id:"GetRadarValueLists",method:"get",path:"/v1/radar/value_lists",pathParams:[],query:[{name:"alias",type:"string",required:!1},{name:"contains",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.value_list",list:!0},class:"list",resource:"radar.value_list"},{id:"PostRadarValueLists",method:"post",path:"/v1/radar/value_lists",pathParams:[],query:[],body:[{name:"alias",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"item_type",type:"string",required:!1},{name:"metadata",type:"object",required:!1},{name:"name",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.value_list",list:!1},class:"create",resource:"radar.value_list"},{id:"GetRadarValueListsValueList",method:"get",path:"/v1/radar/value_lists/{value_list}",pathParams:["value_list"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.value_list",list:!1},class:"retrieve",resource:"radar.value_list"},{id:"PostRadarValueListsValueList",method:"post",path:"/v1/radar/value_lists/{value_list}",pathParams:["value_list"],query:[],body:[{name:"alias",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"name",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"radar.value_list",list:!1},class:"update",resource:"radar.value_list"},{id:"DeleteRadarValueListsValueList",method:"delete",path:"/v1/radar/value_lists/{value_list}",pathParams:["value_list"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_radar.value_list",list:!1},class:"delete",resource:"radar.value_list"},{id:"GetRefunds",method:"get",path:"/v1/refunds",pathParams:[],query:[{name:"charge",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!0},class:"list",resource:"refund"},{id:"PostRefunds",method:"post",path:"/v1/refunds",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"charge",type:"string",required:!1},{name:"currency",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"instructions_email",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"origin",type:"string",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"reason",type:"string",required:!1},{name:"refund_application_fee",type:"boolean",required:!1},{name:"reverse_transfer",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",refund_application_fee:"boolean",reverse_transfer:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!1},class:"create",resource:"refund"},{id:"GetRefundsRefund",method:"get",path:"/v1/refunds/{refund}",pathParams:["refund"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!1},class:"retrieve",resource:"refund"},{id:"PostRefundsRefund",method:"post",path:"/v1/refunds/{refund}",pathParams:["refund"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!1},class:"update",resource:"refund"},{id:"PostRefundsRefundCancel",method:"post",path:"/v1/refunds/{refund}/cancel",pathParams:["refund"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!1},class:"action",resource:"refund"},{id:"GetReportingReportRuns",method:"get",path:"/v1/reporting/report_runs",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"reporting.report_run",list:!0},class:"list",resource:"reporting.report_run"},{id:"PostReportingReportRuns",method:"post",path:"/v1/reporting/report_runs",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"parameters",type:"object",required:!1},{name:"report_type",type:"string",required:!0}],bodyEncoding:"form",scalars:{"parameters.interval_end":"integer","parameters.interval_start":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"reporting.report_run",list:!1},class:"create",resource:"reporting.report_run"},{id:"GetReportingReportRunsReportRun",method:"get",path:"/v1/reporting/report_runs/{report_run}",pathParams:["report_run"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"reporting.report_run",list:!1},class:"retrieve",resource:"reporting.report_run"},{id:"GetReportingReportTypes",method:"get",path:"/v1/reporting/report_types",pathParams:[],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"reporting.report_type",list:!0},class:"list",resource:"reporting.report_type"},{id:"GetReportingReportTypesReportType",method:"get",path:"/v1/reporting/report_types/{report_type}",pathParams:["report_type"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"reporting.report_type",list:!1},class:"retrieve",resource:"reporting.report_type"},{id:"GetReviews",method:"get",path:"/v1/reviews",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"review",list:!0},class:"list",resource:"review"},{id:"GetReviewsReview",method:"get",path:"/v1/reviews/{review}",pathParams:["review"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"review",list:!1},class:"retrieve",resource:"review"},{id:"PostReviewsReviewApprove",method:"post",path:"/v1/reviews/{review}/approve",pathParams:["review"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"review",list:!1},class:"action",resource:"review"},{id:"GetSetupAttempts",method:"get",path:"/v1/setup_attempts",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"setup_intent",type:"string",required:!0},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"setup_attempt",list:!0},class:"list",resource:"setup_attempt"},{id:"GetSetupIntents",method:"get",path:"/v1/setup_intents",pathParams:[],query:[{name:"attach_to_self",type:"boolean",required:!1},{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"payment_method",type:"string",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{attach_to_self:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"setup_intent",list:!0},class:"list",resource:"setup_intent"},{id:"PostSetupIntents",method:"post",path:"/v1/setup_intents",pathParams:[],query:[],body:[{name:"allowed_payment_method_types",type:"array",required:!1},{name:"attach_to_self",type:"boolean",required:!1},{name:"automatic_payment_methods",type:"object",required:!1},{name:"confirm",type:"boolean",required:!1},{name:"confirmation_token",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"excluded_payment_method_types",type:"array",required:!1},{name:"expand",type:"array",required:!1},{name:"flow_directions",type:"array",required:!1},{name:"mandate_data",type:"union",required:!1},{name:"metadata",type:"object",required:!1},{name:"on_behalf_of",type:"string",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_configuration",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"return_url",type:"string",required:!1},{name:"single_use",type:"object",required:!1},{name:"usage",type:"string",required:!1},{name:"use_stripe_sdk",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{attach_to_self:"boolean","automatic_payment_methods.enabled":"boolean",confirm:"boolean","mandate_data.customer_acceptance.accepted_at":"integer","payment_method_data.klarna.dob.day":"integer","payment_method_data.klarna.dob.month":"integer","payment_method_data.klarna.dob.year":"integer","payment_method_data.upi.mandate_options.amount":"integer","payment_method_data.upi.mandate_options.end_date":"integer","payment_method_options.blik.mandate_options.expires_at":"integer","payment_method_options.card.mandate_options.amount":"integer","payment_method_options.card.mandate_options.end_date":"integer","payment_method_options.card.mandate_options.interval_count":"integer","payment_method_options.card.mandate_options.start_date":"integer","payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score":"integer","payment_method_options.klarna.on_demand.average_amount":"integer","payment_method_options.klarna.on_demand.maximum_amount":"integer","payment_method_options.klarna.on_demand.minimum_amount":"integer","payment_method_options.klarna.on_demand.purchase_interval_count":"integer","payment_method_options.klarna.subscriptions.[].interval_count":"integer","payment_method_options.klarna.subscriptions.[].next_billing.amount":"integer","payment_method_options.payto.mandate_options.amount":"integer","payment_method_options.payto.mandate_options.payments_per_period":"integer","payment_method_options.pix.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.end_date":"integer","single_use.amount":"integer",use_stripe_sdk:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"setup_intent",list:!1},class:"create",resource:"setup_intent"},{id:"GetSetupIntentsIntent",method:"get",path:"/v1/setup_intents/{intent}",pathParams:["intent"],query:[{name:"client_secret",type:"string",required:!1},{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"setup_intent",list:!1},class:"retrieve",resource:"setup_intent"},{id:"PostSetupIntentsIntent",method:"post",path:"/v1/setup_intents/{intent}",pathParams:["intent"],query:[],body:[{name:"allowed_payment_method_types",type:"union",required:!1},{name:"attach_to_self",type:"boolean",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"excluded_payment_method_types",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"flow_directions",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_configuration",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"payment_method_options",type:"object",required:!1}],bodyEncoding:"form",scalars:{attach_to_self:"boolean","payment_method_data.klarna.dob.day":"integer","payment_method_data.klarna.dob.month":"integer","payment_method_data.klarna.dob.year":"integer","payment_method_data.upi.mandate_options.amount":"integer","payment_method_data.upi.mandate_options.end_date":"integer","payment_method_options.blik.mandate_options.expires_at":"integer","payment_method_options.card.mandate_options.amount":"integer","payment_method_options.card.mandate_options.end_date":"integer","payment_method_options.card.mandate_options.interval_count":"integer","payment_method_options.card.mandate_options.start_date":"integer","payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score":"integer","payment_method_options.klarna.on_demand.average_amount":"integer","payment_method_options.klarna.on_demand.maximum_amount":"integer","payment_method_options.klarna.on_demand.minimum_amount":"integer","payment_method_options.klarna.on_demand.purchase_interval_count":"integer","payment_method_options.klarna.subscriptions.[].interval_count":"integer","payment_method_options.klarna.subscriptions.[].next_billing.amount":"integer","payment_method_options.payto.mandate_options.amount":"integer","payment_method_options.payto.mandate_options.payments_per_period":"integer","payment_method_options.pix.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.end_date":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"setup_intent",list:!1},class:"update",resource:"setup_intent"},{id:"PostSetupIntentsIntentCancel",method:"post",path:"/v1/setup_intents/{intent}/cancel",pathParams:["intent"],query:[],body:[{name:"cancellation_reason",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"setup_intent",list:!1},class:"action",resource:"setup_intent"},{id:"PostSetupIntentsIntentConfirm",method:"post",path:"/v1/setup_intents/{intent}/confirm",pathParams:["intent"],query:[],body:[{name:"allowed_payment_method_types",type:"array",required:!1},{name:"client_secret",type:"string",required:!1},{name:"confirmation_token",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"mandate_data",type:"union",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"return_url",type:"string",required:!1},{name:"use_stripe_sdk",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{"mandate_data.customer_acceptance.accepted_at":"integer","payment_method_data.klarna.dob.day":"integer","payment_method_data.klarna.dob.month":"integer","payment_method_data.klarna.dob.year":"integer","payment_method_data.upi.mandate_options.amount":"integer","payment_method_data.upi.mandate_options.end_date":"integer","payment_method_options.blik.mandate_options.expires_at":"integer","payment_method_options.card.mandate_options.amount":"integer","payment_method_options.card.mandate_options.end_date":"integer","payment_method_options.card.mandate_options.interval_count":"integer","payment_method_options.card.mandate_options.start_date":"integer","payment_method_options.card.three_d_secure.network_options.cartes_bancaires.cb_score":"integer","payment_method_options.klarna.on_demand.average_amount":"integer","payment_method_options.klarna.on_demand.maximum_amount":"integer","payment_method_options.klarna.on_demand.minimum_amount":"integer","payment_method_options.klarna.on_demand.purchase_interval_count":"integer","payment_method_options.klarna.subscriptions.[].interval_count":"integer","payment_method_options.klarna.subscriptions.[].next_billing.amount":"integer","payment_method_options.payto.mandate_options.amount":"integer","payment_method_options.payto.mandate_options.payments_per_period":"integer","payment_method_options.pix.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.amount":"integer","payment_method_options.upi.mandate_options.end_date":"integer",use_stripe_sdk:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"setup_intent",list:!1},class:"action",resource:"setup_intent"},{id:"PostSetupIntentsIntentVerifyMicrodeposits",method:"post",path:"/v1/setup_intents/{intent}/verify_microdeposits",pathParams:["intent"],query:[],body:[{name:"amounts",type:"array",required:!1},{name:"client_secret",type:"string",required:!1},{name:"descriptor_code",type:"string",required:!1},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{"amounts.[]":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"setup_intent",list:!1},class:"action",resource:"setup_intent"},{id:"GetShippingRates",method:"get",path:"/v1/shipping_rates",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"created",type:"union",required:!1},{name:"currency",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"shipping_rate",list:!0},class:"list",resource:"shipping_rate"},{id:"PostShippingRates",method:"post",path:"/v1/shipping_rates",pathParams:[],query:[],body:[{name:"delivery_estimate",type:"object",required:!1},{name:"display_name",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"fixed_amount",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"tax_behavior",type:"string",required:!1},{name:"tax_code",type:"string",required:!1},{name:"type",type:"string",required:!1}],bodyEncoding:"form",scalars:{"delivery_estimate.maximum.value":"integer","delivery_estimate.minimum.value":"integer","fixed_amount.amount":"integer","fixed_amount.currency_options.*.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"shipping_rate",list:!1},class:"create",resource:"shipping_rate"},{id:"GetShippingRatesShippingRateToken",method:"get",path:"/v1/shipping_rates/{shipping_rate_token}",pathParams:["shipping_rate_token"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"shipping_rate",list:!1},class:"retrieve",resource:"shipping_rate"},{id:"PostShippingRatesShippingRateToken",method:"post",path:"/v1/shipping_rates/{shipping_rate_token}",pathParams:["shipping_rate_token"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"expand",type:"array",required:!1},{name:"fixed_amount",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"tax_behavior",type:"string",required:!1}],bodyEncoding:"form",scalars:{active:"boolean","fixed_amount.currency_options.*.amount":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"shipping_rate",list:!1},class:"update",resource:"shipping_rate"},{id:"PostSigmaSavedQueriesId",method:"post",path:"/v1/sigma/saved_queries/{id}",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"name",type:"string",required:!1},{name:"sql",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"sigma.sigma_api_query",list:!1},class:"action",resource:"sigma.sigma_api_query"},{id:"GetSigmaScheduledQueryRuns",method:"get",path:"/v1/sigma/scheduled_query_runs",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"scheduled_query_run",list:!0},class:"list",resource:"scheduled_query_run"},{id:"GetSigmaScheduledQueryRunsScheduledQueryRun",method:"get",path:"/v1/sigma/scheduled_query_runs/{scheduled_query_run}",pathParams:["scheduled_query_run"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"scheduled_query_run",list:!1},class:"retrieve",resource:"scheduled_query_run"},{id:"PostSources",method:"post",path:"/v1/sources",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"currency",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"flow",type:"string",required:!1},{name:"mandate",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"original_source",type:"string",required:!1},{name:"owner",type:"object",required:!1},{name:"receiver",type:"object",required:!1},{name:"redirect",type:"object",required:!1},{name:"source_order",type:"object",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"token",type:"string",required:!1},{name:"type",type:"string",required:!1},{name:"usage",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","mandate.acceptance.date":"integer","mandate.acceptance.online.date":"integer","mandate.amount":"integer","source_order.items.[].amount":"integer","source_order.items.[].quantity":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"source",list:!1},class:"create",resource:"source"},{id:"GetSourcesSource",method:"get",path:"/v1/sources/{source}",pathParams:["source"],query:[{name:"client_secret",type:"string",required:!1},{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"source",list:!1},class:"retrieve",resource:"source"},{id:"PostSourcesSource",method:"post",path:"/v1/sources/{source}",pathParams:["source"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"expand",type:"array",required:!1},{name:"mandate",type:"object",required:!1},{name:"metadata",type:"union",required:!1},{name:"owner",type:"object",required:!1},{name:"source_order",type:"object",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","mandate.acceptance.date":"integer","mandate.acceptance.online.date":"integer","mandate.amount":"integer","source_order.items.[].amount":"integer","source_order.items.[].quantity":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"source",list:!1},class:"update",resource:"source"},{id:"GetSourcesSourceMandateNotificationsMandateNotification",method:"get",path:"/v1/sources/{source}/mandate_notifications/{mandate_notification}",pathParams:["mandate_notification","source"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"source_mandate_notification",list:!1},class:"retrieve",resource:"source_mandate_notification"},{id:"GetSourcesSourceSourceTransactions",method:"get",path:"/v1/sources/{source}/source_transactions",pathParams:["source"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"source_transaction",list:!0},class:"list",resource:"source_transaction"},{id:"GetSourcesSourceSourceTransactionsSourceTransaction",method:"get",path:"/v1/sources/{source}/source_transactions/{source_transaction}",pathParams:["source","source_transaction"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"source_transaction",list:!1},class:"retrieve",resource:"source_transaction"},{id:"PostSourcesSourceVerify",method:"post",path:"/v1/sources/{source}/verify",pathParams:["source"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"values",type:"array",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"source",list:!1},class:"action",resource:"source"},{id:"GetSubscriptionItems",method:"get",path:"/v1/subscription_items",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"subscription",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_item",list:!0},class:"list",resource:"subscription_item"},{id:"PostSubscriptionItems",method:"post",path:"/v1/subscription_items",pathParams:[],query:[],body:[{name:"billing_thresholds",type:"union",required:!1},{name:"current_trial",type:"object",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"payment_behavior",type:"string",required:!1},{name:"price",type:"string",required:!1},{name:"price_data",type:"object",required:!1},{name:"proration_behavior",type:"string",required:!1},{name:"proration_date",type:"integer",required:!1},{name:"quantity",type:"integer",required:!1},{name:"subscription",type:"string",required:!0},{name:"tax_rates",type:"union",required:!1}],bodyEncoding:"form",scalars:{"billing_thresholds.usage_gte":"integer","price_data.recurring.interval_count":"integer","price_data.unit_amount":"integer",proration_date:"integer",quantity:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_item",list:!1},class:"create",resource:"subscription_item"},{id:"GetSubscriptionItemsItem",method:"get",path:"/v1/subscription_items/{item}",pathParams:["item"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_item",list:!1},class:"retrieve",resource:"subscription_item"},{id:"PostSubscriptionItemsItem",method:"post",path:"/v1/subscription_items/{item}",pathParams:["item"],query:[],body:[{name:"billing_thresholds",type:"union",required:!1},{name:"current_trial",type:"object",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"off_session",type:"boolean",required:!1},{name:"payment_behavior",type:"string",required:!1},{name:"price",type:"string",required:!1},{name:"price_data",type:"object",required:!1},{name:"proration_behavior",type:"string",required:!1},{name:"proration_date",type:"integer",required:!1},{name:"quantity",type:"integer",required:!1},{name:"tax_rates",type:"union",required:!1}],bodyEncoding:"form",scalars:{"billing_thresholds.usage_gte":"integer",off_session:"boolean","price_data.recurring.interval_count":"integer","price_data.unit_amount":"integer",proration_date:"integer",quantity:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_item",list:!1},class:"update",resource:"subscription_item"},{id:"DeleteSubscriptionItemsItem",method:"delete",path:"/v1/subscription_items/{item}",pathParams:["item"],query:[],body:[{name:"clear_usage",type:"boolean",required:!1},{name:"payment_behavior",type:"string",required:!1},{name:"proration_behavior",type:"string",required:!1},{name:"proration_date",type:"integer",required:!1}],bodyEncoding:"form",scalars:{clear_usage:"boolean",proration_date:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_subscription_item",list:!1},class:"delete",resource:"subscription_item"},{id:"GetSubscriptionSchedules",method:"get",path:"/v1/subscription_schedules",pathParams:[],query:[{name:"canceled_at",type:"union",required:!1},{name:"completed_at",type:"union",required:!1},{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"released_at",type:"union",required:!1},{name:"scheduled",type:"boolean",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{canceled_at:"integer","canceled_at.gt":"integer","canceled_at.gte":"integer","canceled_at.lt":"integer","canceled_at.lte":"integer",completed_at:"integer","completed_at.gt":"integer","completed_at.gte":"integer","completed_at.lt":"integer","completed_at.lte":"integer",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer",released_at:"integer","released_at.gt":"integer","released_at.gte":"integer","released_at.lt":"integer","released_at.lte":"integer",scheduled:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_schedule",list:!0},class:"list",resource:"subscription_schedule"},{id:"PostSubscriptionSchedules",method:"post",path:"/v1/subscription_schedules",pathParams:[],query:[],body:[{name:"billing_mode",type:"object",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"default_settings",type:"object",required:!1},{name:"end_behavior",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"from_subscription",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"pause_schedules",type:"array",required:!1},{name:"phases",type:"array",required:!1},{name:"start_date",type:"union",required:!1}],bodyEncoding:"form",scalars:{"default_settings.application_fee_percent":"number","default_settings.automatic_tax.enabled":"boolean","default_settings.billing_thresholds.amount_gte":"integer","default_settings.billing_thresholds.reset_billing_cycle_anchor":"boolean","default_settings.invoice_settings.days_until_due":"integer","default_settings.transfer_data.amount_percent":"number","pause_schedules.[].pause.pause_at.timestamp":"integer","pause_schedules.[].resume.resume_at.duration.interval_count":"integer","pause_schedules.[].resume.resume_at.timestamp":"integer","phases.[].add_invoice_items.[].discountable":"boolean","phases.[].add_invoice_items.[].period.end.timestamp":"integer","phases.[].add_invoice_items.[].period.start.timestamp":"integer","phases.[].add_invoice_items.[].price_data.unit_amount":"integer","phases.[].add_invoice_items.[].quantity":"integer","phases.[].application_fee_percent":"number","phases.[].automatic_tax.enabled":"boolean","phases.[].billing_thresholds.amount_gte":"integer","phases.[].billing_thresholds.reset_billing_cycle_anchor":"boolean","phases.[].duration.interval_count":"integer","phases.[].end_date":"integer","phases.[].invoice_settings.days_until_due":"integer","phases.[].items.[].billing_thresholds.usage_gte":"integer","phases.[].items.[].price_data.recurring.interval_count":"integer","phases.[].items.[].price_data.unit_amount":"integer","phases.[].items.[].quantity":"integer","phases.[].transfer_data.amount_percent":"number","phases.[].trial":"boolean","phases.[].trial_end":"integer",start_date:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_schedule",list:!1},class:"create",resource:"subscription_schedule"},{id:"GetSubscriptionSchedulesSchedule",method:"get",path:"/v1/subscription_schedules/{schedule}",pathParams:["schedule"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_schedule",list:!1},class:"retrieve",resource:"subscription_schedule"},{id:"PostSubscriptionSchedulesSchedule",method:"post",path:"/v1/subscription_schedules/{schedule}",pathParams:["schedule"],query:[],body:[{name:"default_settings",type:"object",required:!1},{name:"end_behavior",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"pause_schedules",type:"union",required:!1},{name:"phases",type:"array",required:!1},{name:"proration_behavior",type:"string",required:!1}],bodyEncoding:"form",scalars:{"default_settings.application_fee_percent":"number","default_settings.automatic_tax.enabled":"boolean","default_settings.billing_thresholds.amount_gte":"integer","default_settings.billing_thresholds.reset_billing_cycle_anchor":"boolean","default_settings.invoice_settings.days_until_due":"integer","default_settings.transfer_data.amount_percent":"number","pause_schedules.[].pause.pause_at.timestamp":"integer","pause_schedules.[].resume.resume_at.duration.interval_count":"integer","pause_schedules.[].resume.resume_at.timestamp":"integer","phases.[].add_invoice_items.[].discountable":"boolean","phases.[].add_invoice_items.[].period.end.timestamp":"integer","phases.[].add_invoice_items.[].period.start.timestamp":"integer","phases.[].add_invoice_items.[].price_data.unit_amount":"integer","phases.[].add_invoice_items.[].quantity":"integer","phases.[].application_fee_percent":"number","phases.[].automatic_tax.enabled":"boolean","phases.[].billing_thresholds.amount_gte":"integer","phases.[].billing_thresholds.reset_billing_cycle_anchor":"boolean","phases.[].duration.interval_count":"integer","phases.[].end_date":"integer","phases.[].invoice_settings.days_until_due":"integer","phases.[].items.[].billing_thresholds.usage_gte":"integer","phases.[].items.[].price_data.recurring.interval_count":"integer","phases.[].items.[].price_data.unit_amount":"integer","phases.[].items.[].quantity":"integer","phases.[].start_date":"integer","phases.[].transfer_data.amount_percent":"number","phases.[].trial":"boolean","phases.[].trial_end":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_schedule",list:!1},class:"update",resource:"subscription_schedule"},{id:"PostSubscriptionSchedulesScheduleCancel",method:"post",path:"/v1/subscription_schedules/{schedule}/cancel",pathParams:["schedule"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"invoice_now",type:"boolean",required:!1},{name:"prorate",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{invoice_now:"boolean",prorate:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_schedule",list:!1},class:"action",resource:"subscription_schedule"},{id:"PostSubscriptionSchedulesScheduleRelease",method:"post",path:"/v1/subscription_schedules/{schedule}/release",pathParams:["schedule"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"preserve_cancel_date",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{preserve_cancel_date:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription_schedule",list:!1},class:"action",resource:"subscription_schedule"},{id:"GetSubscriptions",method:"get",path:"/v1/subscriptions",pathParams:[],query:[{name:"automatic_tax",type:"object",required:!1},{name:"collection_method",type:"string",required:!1},{name:"created",type:"union",required:!1},{name:"current_period_end",type:"union",required:!1},{name:"current_period_start",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"price",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"test_clock",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{"automatic_tax.enabled":"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",current_period_end:"integer","current_period_end.gt":"integer","current_period_end.gte":"integer","current_period_end.lt":"integer","current_period_end.lte":"integer",current_period_start:"integer","current_period_start.gt":"integer","current_period_start.gte":"integer","current_period_start.lt":"integer","current_period_start.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!0},class:"list",resource:"subscription"},{id:"PostSubscriptions",method:"post",path:"/v1/subscriptions",pathParams:[],query:[],body:[{name:"add_invoice_items",type:"array",required:!1},{name:"application_fee_percent",type:"union",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"backdate_start_date",type:"integer",required:!1},{name:"billing_cycle_anchor",type:"integer",required:!1},{name:"billing_cycle_anchor_config",type:"object",required:!1},{name:"billing_mode",type:"object",required:!1},{name:"billing_schedules",type:"array",required:!1},{name:"billing_thresholds",type:"union",required:!1},{name:"cancel_at",type:"union",required:!1},{name:"cancel_at_period_end",type:"boolean",required:!1},{name:"collection_method",type:"string",required:!1},{name:"currency",type:"string",required:!1},{name:"customer",type:"string",required:!1},{name:"customer_account",type:"string",required:!1},{name:"days_until_due",type:"integer",required:!1},{name:"default_payment_method",type:"string",required:!1},{name:"default_source",type:"string",required:!1},{name:"default_tax_rates",type:"union",required:!1},{name:"description",type:"string",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice_settings",type:"object",required:!1},{name:"items",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"off_session",type:"boolean",required:!1},{name:"on_behalf_of",type:"union",required:!1},{name:"payment_behavior",type:"string",required:!1},{name:"payment_settings",type:"object",required:!1},{name:"pending_invoice_item_interval",type:"union",required:!1},{name:"proration_behavior",type:"string",required:!1},{name:"transfer_data",type:"object",required:!1},{name:"trial_end",type:"union",required:!1},{name:"trial_from_plan",type:"boolean",required:!1},{name:"trial_period_days",type:"integer",required:!1},{name:"trial_settings",type:"object",required:!1}],bodyEncoding:"form",scalars:{"add_invoice_items.[].discountable":"boolean","add_invoice_items.[].period.end.timestamp":"integer","add_invoice_items.[].period.start.timestamp":"integer","add_invoice_items.[].price_data.unit_amount":"integer","add_invoice_items.[].quantity":"integer",application_fee_percent:"number","automatic_tax.enabled":"boolean",backdate_start_date:"integer",billing_cycle_anchor:"integer","billing_cycle_anchor_config.day_of_month":"integer","billing_cycle_anchor_config.hour":"integer","billing_cycle_anchor_config.minute":"integer","billing_cycle_anchor_config.month":"integer","billing_cycle_anchor_config.second":"integer","billing_schedules.[].bill_until.duration.interval_count":"integer","billing_schedules.[].bill_until.timestamp":"integer","billing_thresholds.amount_gte":"integer","billing_thresholds.reset_billing_cycle_anchor":"boolean",cancel_at:"integer",cancel_at_period_end:"boolean",days_until_due:"integer","items.[].billing_thresholds.usage_gte":"integer","items.[].price_data.recurring.interval_count":"integer","items.[].price_data.unit_amount":"integer","items.[].quantity":"integer",off_session:"boolean","payment_settings.payment_method_options.blik.mandate_options.expires_at":"integer","payment_settings.payment_method_options.card.mandate_options.amount":"integer","payment_settings.payment_method_options.payto.mandate_options.amount":"integer","payment_settings.payment_method_options.pix.expires_after_seconds":"integer","payment_settings.payment_method_options.pix.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.end_date":"integer","pending_invoice_item_interval.interval_count":"integer","transfer_data.amount_percent":"number",trial_end:"integer",trial_from_plan:"boolean",trial_period_days:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"create",resource:"subscription"},{id:"GetSubscriptionsSubscriptionExposedId",method:"get",path:"/v1/subscriptions/{subscription_exposed_id}",pathParams:["subscription_exposed_id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"retrieve",resource:"subscription"},{id:"PostSubscriptionsSubscriptionExposedId",method:"post",path:"/v1/subscriptions/{subscription_exposed_id}",pathParams:["subscription_exposed_id"],query:[],body:[{name:"add_invoice_items",type:"array",required:!1},{name:"application_fee_percent",type:"union",required:!1},{name:"automatic_tax",type:"object",required:!1},{name:"billing_cycle_anchor",type:"object",required:!1},{name:"billing_schedules",type:"union",required:!1},{name:"billing_thresholds",type:"union",required:!1},{name:"cancel_at",type:"union",required:!1},{name:"cancel_at_period_end",type:"boolean",required:!1},{name:"cancellation_details",type:"object",required:!1},{name:"collection_method",type:"string",required:!1},{name:"days_until_due",type:"integer",required:!1},{name:"default_payment_method",type:"string",required:!1},{name:"default_source",type:"union",required:!1},{name:"default_tax_rates",type:"union",required:!1},{name:"description",type:"union",required:!1},{name:"discounts",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice_settings",type:"object",required:!1},{name:"items",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"off_session",type:"boolean",required:!1},{name:"on_behalf_of",type:"union",required:!1},{name:"pause_collection",type:"union",required:!1},{name:"payment_behavior",type:"string",required:!1},{name:"payment_settings",type:"object",required:!1},{name:"pending_invoice_item_interval",type:"union",required:!1},{name:"proration_behavior",type:"string",required:!1},{name:"proration_date",type:"integer",required:!1},{name:"transfer_data",type:"union",required:!1},{name:"trial_end",type:"union",required:!1},{name:"trial_from_plan",type:"boolean",required:!1},{name:"trial_settings",type:"object",required:!1}],bodyEncoding:"form",scalars:{"add_invoice_items.[].discountable":"boolean","add_invoice_items.[].period.end.timestamp":"integer","add_invoice_items.[].period.start.timestamp":"integer","add_invoice_items.[].price_data.unit_amount":"integer","add_invoice_items.[].quantity":"integer",application_fee_percent:"number","automatic_tax.enabled":"boolean","billing_schedules.[].bill_until.duration.interval_count":"integer","billing_schedules.[].bill_until.timestamp":"integer","billing_thresholds.amount_gte":"integer","billing_thresholds.reset_billing_cycle_anchor":"boolean",cancel_at:"integer",cancel_at_period_end:"boolean",days_until_due:"integer","items.[].billing_thresholds.usage_gte":"integer","items.[].clear_usage":"boolean","items.[].deleted":"boolean","items.[].price_data.recurring.interval_count":"integer","items.[].price_data.unit_amount":"integer","items.[].quantity":"integer",off_session:"boolean","pause_collection.resumes_at":"integer","payment_settings.payment_method_options.blik.mandate_options.expires_at":"integer","payment_settings.payment_method_options.card.mandate_options.amount":"integer","payment_settings.payment_method_options.payto.mandate_options.amount":"integer","payment_settings.payment_method_options.pix.expires_after_seconds":"integer","payment_settings.payment_method_options.pix.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.amount":"integer","payment_settings.payment_method_options.upi.mandate_options.end_date":"integer","pending_invoice_item_interval.interval_count":"integer",proration_date:"integer","transfer_data.amount_percent":"number",trial_end:"integer",trial_from_plan:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"update",resource:"subscription"},{id:"DeleteSubscriptionsSubscriptionExposedId",method:"delete",path:"/v1/subscriptions/{subscription_exposed_id}",pathParams:["subscription_exposed_id"],query:[],body:[{name:"cancellation_details",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"invoice_now",type:"boolean",required:!1},{name:"prorate",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{invoice_now:"boolean",prorate:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"delete",resource:"subscription"},{id:"DeleteSubscriptionsSubscriptionExposedIdDiscount",method:"delete",path:"/v1/subscriptions/{subscription_exposed_id}/discount",pathParams:["subscription_exposed_id"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_discount",list:!1},class:"action",resource:"subscription"},{id:"PostSubscriptionsSubscriptionMigrate",method:"post",path:"/v1/subscriptions/{subscription}/migrate",pathParams:["subscription"],query:[],body:[{name:"billing_mode",type:"object",required:!0},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"action",resource:"subscription"},{id:"PostSubscriptionsSubscriptionPause",method:"post",path:"/v1/subscriptions/{subscription}/pause",pathParams:["subscription"],query:[],body:[{name:"bill_for",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"invoicing_behavior",type:"string",required:!1},{name:"type",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"action",resource:"subscription"},{id:"PostSubscriptionsSubscriptionResume",method:"post",path:"/v1/subscriptions/{subscription}/resume",pathParams:["subscription"],query:[],body:[{name:"billing_cycle_anchor",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"payment_behavior",type:"string",required:!1},{name:"proration_behavior",type:"string",required:!1},{name:"proration_date",type:"integer",required:!1}],bodyEncoding:"form",scalars:{proration_date:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!1},class:"action",resource:"subscription"},{id:"GetSubscriptionsSearch",method:"get",path:"/v1/subscriptions/search",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"page",type:"string",required:!1},{name:"query",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"subscription",list:!0},class:"computed",resource:"subscription"},{id:"GetTaxCodes",method:"get",path:"/v1/tax_codes",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_code",list:!0},class:"list",resource:"tax_code"},{id:"GetTaxCodesId",method:"get",path:"/v1/tax_codes/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_code",list:!1},class:"retrieve",resource:"tax_code"},{id:"GetTaxIds",method:"get",path:"/v1/tax_ids",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"owner",type:"object",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_id",list:!0},class:"list",resource:"tax_id"},{id:"PostTaxIds",method:"post",path:"/v1/tax_ids",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"owner",type:"object",required:!1},{name:"type",type:"string",required:!0},{name:"value",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_id",list:!1},class:"create",resource:"tax_id"},{id:"GetTaxIdsId",method:"get",path:"/v1/tax_ids/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_id",list:!1},class:"retrieve",resource:"tax_id"},{id:"DeleteTaxIdsId",method:"delete",path:"/v1/tax_ids/{id}",pathParams:["id"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_tax_id",list:!1},class:"delete",resource:"tax_id"},{id:"GetTaxRates",method:"get",path:"/v1/tax_rates",pathParams:[],query:[{name:"active",type:"boolean",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"inclusive",type:"boolean",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{active:"boolean",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",inclusive:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_rate",list:!0},class:"list",resource:"tax_rate"},{id:"PostTaxRates",method:"post",path:"/v1/tax_rates",pathParams:[],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"country",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"display_name",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"inclusive",type:"boolean",required:!0},{name:"jurisdiction",type:"string",required:!1},{name:"metadata",type:"object",required:!1},{name:"percentage",type:"number",required:!0},{name:"state",type:"string",required:!1},{name:"tax_type",type:"string",required:!1}],bodyEncoding:"form",scalars:{active:"boolean",inclusive:"boolean",percentage:"number"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_rate",list:!1},class:"create",resource:"tax_rate"},{id:"GetTaxRatesTaxRate",method:"get",path:"/v1/tax_rates/{tax_rate}",pathParams:["tax_rate"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_rate",list:!1},class:"retrieve",resource:"tax_rate"},{id:"PostTaxRatesTaxRate",method:"post",path:"/v1/tax_rates/{tax_rate}",pathParams:["tax_rate"],query:[],body:[{name:"active",type:"boolean",required:!1},{name:"country",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"display_name",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"jurisdiction",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"state",type:"string",required:!1},{name:"tax_type",type:"string",required:!1}],bodyEncoding:"form",scalars:{active:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax_rate",list:!1},class:"update",resource:"tax_rate"},{id:"GetTaxAssociationsFind",method:"get",path:"/v1/tax/associations/find",pathParams:[],query:[{name:"expand",type:"array",required:!1},{name:"payment_intent",type:"string",required:!0}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.association",list:!1},class:"retrieve",resource:"tax.association"},{id:"PostTaxCalculations",method:"post",path:"/v1/tax/calculations",pathParams:[],query:[],body:[{name:"currency",type:"string",required:!0},{name:"customer",type:"string",required:!1},{name:"customer_details",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"line_items",type:"array",required:!0},{name:"ship_from_details",type:"object",required:!1},{name:"shipping_cost",type:"object",required:!1},{name:"tax_date",type:"integer",required:!1}],bodyEncoding:"form",scalars:{"line_items.[].amount":"integer","line_items.[].quantity":"integer","shipping_cost.amount":"integer",tax_date:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.calculation",list:!1},class:"create",resource:"tax.calculation"},{id:"GetTaxCalculationsCalculation",method:"get",path:"/v1/tax/calculations/{calculation}",pathParams:["calculation"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.calculation",list:!1},class:"retrieve",resource:"tax.calculation"},{id:"GetTaxCalculationsCalculationLineItems",method:"get",path:"/v1/tax/calculations/{calculation}/line_items",pathParams:["calculation"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.calculation_line_item",list:!0},class:"list",resource:"tax.calculation_line_item"},{id:"GetTaxLocations",method:"get",path:"/v1/tax/locations",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"type",type:"string",required:!0}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.location",list:!0},class:"list",resource:"tax.location"},{id:"PostTaxLocations",method:"post",path:"/v1/tax/locations",pathParams:[],query:[],body:[{name:"address",type:"object",required:!0},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"type",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.location",list:!1},class:"create",resource:"tax.location"},{id:"GetTaxLocationsLocation",method:"get",path:"/v1/tax/locations/{location}",pathParams:["location"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.location",list:!1},class:"retrieve",resource:"tax.location"},{id:"GetTaxRegistrations",method:"get",path:"/v1/tax/registrations",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.registration",list:!0},class:"list",resource:"tax.registration"},{id:"PostTaxRegistrations",method:"post",path:"/v1/tax/registrations",pathParams:[],query:[],body:[{name:"active_from",type:"union",required:!0},{name:"country",type:"string",required:!0},{name:"country_options",type:"object",required:!0},{name:"expand",type:"array",required:!1},{name:"expires_at",type:"integer",required:!1}],bodyEncoding:"form",scalars:{active_from:"integer",expires_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.registration",list:!1},class:"create",resource:"tax.registration"},{id:"GetTaxRegistrationsId",method:"get",path:"/v1/tax/registrations/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.registration",list:!1},class:"retrieve",resource:"tax.registration"},{id:"PostTaxRegistrationsId",method:"post",path:"/v1/tax/registrations/{id}",pathParams:["id"],query:[],body:[{name:"active_from",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"expires_at",type:"union",required:!1}],bodyEncoding:"form",scalars:{active_from:"integer",expires_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.registration",list:!1},class:"update",resource:"tax.registration"},{id:"GetTaxSettings",method:"get",path:"/v1/tax/settings",pathParams:[],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.settings",list:!1},class:"retrieve",resource:"tax.settings"},{id:"PostTaxSettings",method:"post",path:"/v1/tax/settings",pathParams:[],query:[],body:[{name:"defaults",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"head_office",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.settings",list:!1},class:"action",resource:"tax.settings"},{id:"GetTaxTransactionsTransaction",method:"get",path:"/v1/tax/transactions/{transaction}",pathParams:["transaction"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.transaction",list:!1},class:"retrieve",resource:"tax.transaction"},{id:"GetTaxTransactionsTransactionLineItems",method:"get",path:"/v1/tax/transactions/{transaction}/line_items",pathParams:["transaction"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.transaction_line_item",list:!0},class:"list",resource:"tax.transaction_line_item"},{id:"PostTaxTransactionsCreateFromCalculation",method:"post",path:"/v1/tax/transactions/create_from_calculation",pathParams:[],query:[],body:[{name:"calculation",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"posted_at",type:"integer",required:!1},{name:"reference",type:"string",required:!0}],bodyEncoding:"form",scalars:{posted_at:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.transaction",list:!1},class:"action",resource:"tax.transaction"},{id:"PostTaxTransactionsCreateReversal",method:"post",path:"/v1/tax/transactions/create_reversal",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"flat_amount",type:"integer",required:!1},{name:"line_items",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"mode",type:"string",required:!0},{name:"original_transaction",type:"string",required:!0},{name:"reference",type:"string",required:!0},{name:"shipping_cost",type:"object",required:!1}],bodyEncoding:"form",scalars:{flat_amount:"integer","line_items.[].amount":"integer","line_items.[].amount_tax":"integer","line_items.[].quantity":"integer","shipping_cost.amount":"integer","shipping_cost.amount_tax":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"tax.transaction",list:!1},class:"action",resource:"tax.transaction"},{id:"GetTerminalConfigurations",method:"get",path:"/v1/terminal/configurations",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"is_account_default",type:"boolean",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{is_account_default:"boolean",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.configuration",list:!0},class:"list",resource:"terminal.configuration"},{id:"PostTerminalConfigurations",method:"post",path:"/v1/terminal/configurations",pathParams:[],query:[],body:[{name:"bbpos_wisepad3",type:"object",required:!1},{name:"bbpos_wisepos_e",type:"object",required:!1},{name:"cellular",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"name",type:"string",required:!1},{name:"offline",type:"union",required:!1},{name:"reboot_window",type:"object",required:!1},{name:"stripe_s700",type:"object",required:!1},{name:"stripe_s710",type:"object",required:!1},{name:"tipping",type:"union",required:!1},{name:"verifone_m425",type:"object",required:!1},{name:"verifone_p400",type:"object",required:!1},{name:"verifone_p630",type:"object",required:!1},{name:"verifone_ux700",type:"object",required:!1},{name:"verifone_v660p",type:"object",required:!1},{name:"wifi",type:"union",required:!1}],bodyEncoding:"form",scalars:{"cellular.enabled":"boolean","offline.enabled":"boolean","reboot_window.end_hour":"integer","reboot_window.start_hour":"integer","tipping.aed.fixed_amounts.[]":"integer","tipping.aed.percentages.[]":"integer","tipping.aed.smart_tip_threshold":"integer","tipping.aud.fixed_amounts.[]":"integer","tipping.aud.percentages.[]":"integer","tipping.aud.smart_tip_threshold":"integer","tipping.cad.fixed_amounts.[]":"integer","tipping.cad.percentages.[]":"integer","tipping.cad.smart_tip_threshold":"integer","tipping.chf.fixed_amounts.[]":"integer","tipping.chf.percentages.[]":"integer","tipping.chf.smart_tip_threshold":"integer","tipping.czk.fixed_amounts.[]":"integer","tipping.czk.percentages.[]":"integer","tipping.czk.smart_tip_threshold":"integer","tipping.dkk.fixed_amounts.[]":"integer","tipping.dkk.percentages.[]":"integer","tipping.dkk.smart_tip_threshold":"integer","tipping.eur.fixed_amounts.[]":"integer","tipping.eur.percentages.[]":"integer","tipping.eur.smart_tip_threshold":"integer","tipping.gbp.fixed_amounts.[]":"integer","tipping.gbp.percentages.[]":"integer","tipping.gbp.smart_tip_threshold":"integer","tipping.gip.fixed_amounts.[]":"integer","tipping.gip.percentages.[]":"integer","tipping.gip.smart_tip_threshold":"integer","tipping.hkd.fixed_amounts.[]":"integer","tipping.hkd.percentages.[]":"integer","tipping.hkd.smart_tip_threshold":"integer","tipping.huf.fixed_amounts.[]":"integer","tipping.huf.percentages.[]":"integer","tipping.huf.smart_tip_threshold":"integer","tipping.jpy.fixed_amounts.[]":"integer","tipping.jpy.percentages.[]":"integer","tipping.jpy.smart_tip_threshold":"integer","tipping.mxn.fixed_amounts.[]":"integer","tipping.mxn.percentages.[]":"integer","tipping.mxn.smart_tip_threshold":"integer","tipping.myr.fixed_amounts.[]":"integer","tipping.myr.percentages.[]":"integer","tipping.myr.smart_tip_threshold":"integer","tipping.nok.fixed_amounts.[]":"integer","tipping.nok.percentages.[]":"integer","tipping.nok.smart_tip_threshold":"integer","tipping.nzd.fixed_amounts.[]":"integer","tipping.nzd.percentages.[]":"integer","tipping.nzd.smart_tip_threshold":"integer","tipping.pln.fixed_amounts.[]":"integer","tipping.pln.percentages.[]":"integer","tipping.pln.smart_tip_threshold":"integer","tipping.ron.fixed_amounts.[]":"integer","tipping.ron.percentages.[]":"integer","tipping.ron.smart_tip_threshold":"integer","tipping.sek.fixed_amounts.[]":"integer","tipping.sek.percentages.[]":"integer","tipping.sek.smart_tip_threshold":"integer","tipping.sgd.fixed_amounts.[]":"integer","tipping.sgd.percentages.[]":"integer","tipping.sgd.smart_tip_threshold":"integer","tipping.usd.fixed_amounts.[]":"integer","tipping.usd.percentages.[]":"integer","tipping.usd.smart_tip_threshold":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.configuration",list:!1},class:"create",resource:"terminal.configuration"},{id:"GetTerminalConfigurationsConfiguration",method:"get",path:"/v1/terminal/configurations/{configuration}",pathParams:["configuration"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.configuration",list:!1,alternatives:["deleted_terminal.configuration"]},class:"retrieve",resource:"terminal.configuration"},{id:"PostTerminalConfigurationsConfiguration",method:"post",path:"/v1/terminal/configurations/{configuration}",pathParams:["configuration"],query:[],body:[{name:"bbpos_wisepad3",type:"union",required:!1},{name:"bbpos_wisepos_e",type:"union",required:!1},{name:"cellular",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"name",type:"string",required:!1},{name:"offline",type:"union",required:!1},{name:"reboot_window",type:"union",required:!1},{name:"stripe_s700",type:"union",required:!1},{name:"stripe_s710",type:"union",required:!1},{name:"tipping",type:"union",required:!1},{name:"verifone_m425",type:"union",required:!1},{name:"verifone_p400",type:"union",required:!1},{name:"verifone_p630",type:"union",required:!1},{name:"verifone_ux700",type:"union",required:!1},{name:"verifone_v660p",type:"union",required:!1},{name:"wifi",type:"union",required:!1}],bodyEncoding:"form",scalars:{"cellular.enabled":"boolean","offline.enabled":"boolean","reboot_window.end_hour":"integer","reboot_window.start_hour":"integer","tipping.aed.fixed_amounts.[]":"integer","tipping.aed.percentages.[]":"integer","tipping.aed.smart_tip_threshold":"integer","tipping.aud.fixed_amounts.[]":"integer","tipping.aud.percentages.[]":"integer","tipping.aud.smart_tip_threshold":"integer","tipping.cad.fixed_amounts.[]":"integer","tipping.cad.percentages.[]":"integer","tipping.cad.smart_tip_threshold":"integer","tipping.chf.fixed_amounts.[]":"integer","tipping.chf.percentages.[]":"integer","tipping.chf.smart_tip_threshold":"integer","tipping.czk.fixed_amounts.[]":"integer","tipping.czk.percentages.[]":"integer","tipping.czk.smart_tip_threshold":"integer","tipping.dkk.fixed_amounts.[]":"integer","tipping.dkk.percentages.[]":"integer","tipping.dkk.smart_tip_threshold":"integer","tipping.eur.fixed_amounts.[]":"integer","tipping.eur.percentages.[]":"integer","tipping.eur.smart_tip_threshold":"integer","tipping.gbp.fixed_amounts.[]":"integer","tipping.gbp.percentages.[]":"integer","tipping.gbp.smart_tip_threshold":"integer","tipping.gip.fixed_amounts.[]":"integer","tipping.gip.percentages.[]":"integer","tipping.gip.smart_tip_threshold":"integer","tipping.hkd.fixed_amounts.[]":"integer","tipping.hkd.percentages.[]":"integer","tipping.hkd.smart_tip_threshold":"integer","tipping.huf.fixed_amounts.[]":"integer","tipping.huf.percentages.[]":"integer","tipping.huf.smart_tip_threshold":"integer","tipping.jpy.fixed_amounts.[]":"integer","tipping.jpy.percentages.[]":"integer","tipping.jpy.smart_tip_threshold":"integer","tipping.mxn.fixed_amounts.[]":"integer","tipping.mxn.percentages.[]":"integer","tipping.mxn.smart_tip_threshold":"integer","tipping.myr.fixed_amounts.[]":"integer","tipping.myr.percentages.[]":"integer","tipping.myr.smart_tip_threshold":"integer","tipping.nok.fixed_amounts.[]":"integer","tipping.nok.percentages.[]":"integer","tipping.nok.smart_tip_threshold":"integer","tipping.nzd.fixed_amounts.[]":"integer","tipping.nzd.percentages.[]":"integer","tipping.nzd.smart_tip_threshold":"integer","tipping.pln.fixed_amounts.[]":"integer","tipping.pln.percentages.[]":"integer","tipping.pln.smart_tip_threshold":"integer","tipping.ron.fixed_amounts.[]":"integer","tipping.ron.percentages.[]":"integer","tipping.ron.smart_tip_threshold":"integer","tipping.sek.fixed_amounts.[]":"integer","tipping.sek.percentages.[]":"integer","tipping.sek.smart_tip_threshold":"integer","tipping.sgd.fixed_amounts.[]":"integer","tipping.sgd.percentages.[]":"integer","tipping.sgd.smart_tip_threshold":"integer","tipping.usd.fixed_amounts.[]":"integer","tipping.usd.percentages.[]":"integer","tipping.usd.smart_tip_threshold":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.configuration",list:!1,alternatives:["deleted_terminal.configuration"]},class:"update",resource:"terminal.configuration"},{id:"DeleteTerminalConfigurationsConfiguration",method:"delete",path:"/v1/terminal/configurations/{configuration}",pathParams:["configuration"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_terminal.configuration",list:!1},class:"delete",resource:"terminal.configuration"},{id:"PostTerminalConnectionTokens",method:"post",path:"/v1/terminal/connection_tokens",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"location",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.connection_token",list:!1},class:"action",resource:"terminal.connection_token"},{id:"GetTerminalLocations",method:"get",path:"/v1/terminal/locations",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.location",list:!0},class:"list",resource:"terminal.location"},{id:"PostTerminalLocations",method:"post",path:"/v1/terminal/locations",pathParams:[],query:[],body:[{name:"address",type:"object",required:!1},{name:"address_kana",type:"object",required:!1},{name:"address_kanji",type:"object",required:!1},{name:"configuration_overrides",type:"string",required:!1},{name:"display_name",type:"string",required:!1},{name:"display_name_kana",type:"string",required:!1},{name:"display_name_kanji",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"phone",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.location",list:!1},class:"create",resource:"terminal.location"},{id:"GetTerminalLocationsLocation",method:"get",path:"/v1/terminal/locations/{location}",pathParams:["location"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.location",list:!1,alternatives:["deleted_terminal.location"]},class:"retrieve",resource:"terminal.location"},{id:"PostTerminalLocationsLocation",method:"post",path:"/v1/terminal/locations/{location}",pathParams:["location"],query:[],body:[{name:"address",type:"object",required:!1},{name:"address_kana",type:"object",required:!1},{name:"address_kanji",type:"object",required:!1},{name:"configuration_overrides",type:"union",required:!1},{name:"display_name",type:"union",required:!1},{name:"display_name_kana",type:"union",required:!1},{name:"display_name_kanji",type:"union",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"phone",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.location",list:!1,alternatives:["deleted_terminal.location"]},class:"update",resource:"terminal.location"},{id:"DeleteTerminalLocationsLocation",method:"delete",path:"/v1/terminal/locations/{location}",pathParams:["location"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_terminal.location",list:!1},class:"delete",resource:"terminal.location"},{id:"PostTerminalOnboardingLinks",method:"post",path:"/v1/terminal/onboarding_links",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"link_options",type:"object",required:!0},{name:"link_type",type:"string",required:!0},{name:"on_behalf_of",type:"string",required:!1}],bodyEncoding:"form",scalars:{"link_options.apple_terms_and_conditions.allow_relinking":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.onboarding_link",list:!1},class:"action",resource:"terminal.onboarding_link"},{id:"GetTerminalReaders",method:"get",path:"/v1/terminal/readers",pathParams:[],query:[{name:"device_type",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"location",type:"string",required:!1},{name:"serial_number",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!0},class:"list",resource:"terminal.reader"},{id:"PostTerminalReaders",method:"post",path:"/v1/terminal/readers",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"label",type:"string",required:!1},{name:"location",type:"string",required:!1},{name:"metadata",type:"union",required:!1},{name:"registration_code",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"create",resource:"terminal.reader"},{id:"GetTerminalReadersReader",method:"get",path:"/v1/terminal/readers/{reader}",pathParams:["reader"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1,alternatives:["deleted_terminal.reader"]},class:"retrieve",resource:"terminal.reader"},{id:"PostTerminalReadersReader",method:"post",path:"/v1/terminal/readers/{reader}",pathParams:["reader"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"label",type:"union",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1,alternatives:["deleted_terminal.reader"]},class:"update",resource:"terminal.reader"},{id:"DeleteTerminalReadersReader",method:"delete",path:"/v1/terminal/readers/{reader}",pathParams:["reader"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_terminal.reader",list:!1},class:"delete",resource:"terminal.reader"},{id:"PostTerminalReadersReaderCancelAction",method:"post",path:"/v1/terminal/readers/{reader}/cancel_action",pathParams:["reader"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1,alternatives:["deleted_terminal.reader"]},class:"action",resource:"terminal.reader"},{id:"PostTerminalReadersReaderCollectInputs",method:"post",path:"/v1/terminal/readers/{reader}/collect_inputs",pathParams:["reader"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"inputs",type:"array",required:!0},{name:"metadata",type:"object",required:!1}],bodyEncoding:"form",scalars:{"inputs.[].required":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTerminalReadersReaderCollectPaymentMethod",method:"post",path:"/v1/terminal/readers/{reader}/collect_payment_method",pathParams:["reader"],query:[],body:[{name:"collect_config",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"payment_intent",type:"string",required:!0}],bodyEncoding:"form",scalars:{"collect_config.enable_customer_cancellation":"boolean","collect_config.skip_tipping":"boolean","collect_config.tipping.amount_eligible":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTerminalReadersReaderConfirmPaymentIntent",method:"post",path:"/v1/terminal/readers/{reader}/confirm_payment_intent",pathParams:["reader"],query:[],body:[{name:"confirm_config",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"payment_intent",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTerminalReadersReaderProcessPaymentIntent",method:"post",path:"/v1/terminal/readers/{reader}/process_payment_intent",pathParams:["reader"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"payment_intent",type:"string",required:!0},{name:"process_config",type:"object",required:!1}],bodyEncoding:"form",scalars:{"process_config.enable_customer_cancellation":"boolean","process_config.skip_tipping":"boolean","process_config.tipping.amount_eligible":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTerminalReadersReaderProcessSetupIntent",method:"post",path:"/v1/terminal/readers/{reader}/process_setup_intent",pathParams:["reader"],query:[],body:[{name:"allow_redisplay",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"process_config",type:"object",required:!1},{name:"setup_intent",type:"string",required:!0}],bodyEncoding:"form",scalars:{"process_config.enable_customer_cancellation":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTerminalReadersReaderRefundPayment",method:"post",path:"/v1/terminal/readers/{reader}/refund_payment",pathParams:["reader"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"charge",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"payment_intent",type:"string",required:!1},{name:"refund_application_fee",type:"boolean",required:!1},{name:"refund_payment_config",type:"object",required:!1},{name:"reverse_transfer",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",refund_application_fee:"boolean","refund_payment_config.enable_customer_cancellation":"boolean",reverse_transfer:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTerminalReadersReaderSetReaderDisplay",method:"post",path:"/v1/terminal/readers/{reader}/set_reader_display",pathParams:["reader"],query:[],body:[{name:"cart",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"type",type:"string",required:!0}],bodyEncoding:"form",scalars:{"cart.line_items.[].amount":"integer","cart.line_items.[].quantity":"integer","cart.tax":"integer","cart.total":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTerminalRefunds",method:"post",path:"/v1/terminal/refunds",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.refund",list:!1},class:"action",resource:"terminal.refund"},{id:"PostTestHelpersConfirmationTokens",method:"post",path:"/v1/test_helpers/confirmation_tokens",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"return_url",type:"string",required:!1},{name:"setup_future_usage",type:"string",required:!1},{name:"shipping",type:"object",required:!1}],bodyEncoding:"form",scalars:{"payment_method_data.klarna.dob.day":"integer","payment_method_data.klarna.dob.month":"integer","payment_method_data.klarna.dob.year":"integer","payment_method_data.upi.mandate_options.amount":"integer","payment_method_data.upi.mandate_options.end_date":"integer","payment_method_options.card.installments.plan.count":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"confirmation_token",list:!1},class:"action",resource:"confirmation_token"},{id:"PostTestHelpersCustomersCustomerFundCashBalance",method:"post",path:"/v1/test_helpers/customers/{customer}/fund_cash_balance",pathParams:["customer"],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"reference",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"customer_cash_balance_transaction",list:!1},class:"action",resource:"customer_cash_balance_transaction"},{id:"PostTestHelpersIssuingAuthorizations",method:"post",path:"/v1/test_helpers/issuing/authorizations",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"amount_details",type:"object",required:!1},{name:"authorization_method",type:"string",required:!1},{name:"card",type:"string",required:!0},{name:"currency",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"fleet",type:"object",required:!1},{name:"fraud_disputability_likelihood",type:"string",required:!1},{name:"fuel",type:"object",required:!1},{name:"is_amount_controllable",type:"boolean",required:!1},{name:"merchant_amount",type:"integer",required:!1},{name:"merchant_currency",type:"string",required:!1},{name:"merchant_data",type:"object",required:!1},{name:"network_data",type:"object",required:!1},{name:"risk_assessment",type:"object",required:!1},{name:"verification_data",type:"object",required:!1},{name:"wallet",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","amount_details.atm_fee":"integer","amount_details.cashback_amount":"integer","fleet.cardholder_prompt_data.odometer":"integer",is_amount_controllable:"boolean",merchant_amount:"integer","risk_assessment.card_testing_risk.invalid_account_number_decline_rate_past_hour":"integer","risk_assessment.card_testing_risk.invalid_credentials_decline_rate_past_hour":"integer","risk_assessment.fraud_risk.score":"number","risk_assessment.merchant_dispute_risk.dispute_rate":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"PostTestHelpersIssuingAuthorizationsAuthorizationCapture",method:"post",path:"/v1/test_helpers/issuing/authorizations/{authorization}/capture",pathParams:["authorization"],query:[],body:[{name:"capture_amount",type:"integer",required:!1},{name:"close_authorization",type:"boolean",required:!1},{name:"expand",type:"array",required:!1},{name:"purchase_details",type:"object",required:!1}],bodyEncoding:"form",scalars:{capture_amount:"integer",close_authorization:"boolean","purchase_details.fleet.cardholder_prompt_data.odometer":"integer","purchase_details.flight.departure_at":"integer","purchase_details.flight.refundable":"boolean","purchase_details.flight.segments.[].stopover_allowed":"boolean","purchase_details.lodging.check_in_at":"integer","purchase_details.lodging.nights":"integer","purchase_details.receipt.[].total":"integer","purchase_details.receipt.[].unit_cost":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"PostTestHelpersIssuingAuthorizationsAuthorizationExpire",method:"post",path:"/v1/test_helpers/issuing/authorizations/{authorization}/expire",pathParams:["authorization"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"PostTestHelpersIssuingAuthorizationsAuthorizationFinalizeAmount",method:"post",path:"/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount",pathParams:["authorization"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"final_amount",type:"integer",required:!0},{name:"fleet",type:"object",required:!1},{name:"fuel",type:"object",required:!1}],bodyEncoding:"form",scalars:{final_amount:"integer","fleet.cardholder_prompt_data.odometer":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"PostTestHelpersIssuingAuthorizationsAuthorizationFraudChallengesRespond",method:"post",path:"/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond",pathParams:["authorization"],query:[],body:[{name:"confirmed",type:"boolean",required:!0},{name:"expand",type:"array",required:!1}],bodyEncoding:"form",scalars:{confirmed:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"PostTestHelpersIssuingAuthorizationsAuthorizationIncrement",method:"post",path:"/v1/test_helpers/issuing/authorizations/{authorization}/increment",pathParams:["authorization"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"increment_amount",type:"integer",required:!0},{name:"is_amount_controllable",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{increment_amount:"integer",is_amount_controllable:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"PostTestHelpersIssuingAuthorizationsAuthorizationReverse",method:"post",path:"/v1/test_helpers/issuing/authorizations/{authorization}/reverse",pathParams:["authorization"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"reverse_amount",type:"integer",required:!1}],bodyEncoding:"form",scalars:{reverse_amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.authorization",list:!1},class:"action",resource:"issuing.authorization"},{id:"PostTestHelpersIssuingCardsCardShippingDeliver",method:"post",path:"/v1/test_helpers/issuing/cards/{card}/shipping/deliver",pathParams:["card"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!1},class:"action",resource:"issuing.card"},{id:"PostTestHelpersIssuingCardsCardShippingFail",method:"post",path:"/v1/test_helpers/issuing/cards/{card}/shipping/fail",pathParams:["card"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!1},class:"action",resource:"issuing.card"},{id:"PostTestHelpersIssuingCardsCardShippingReturn",method:"post",path:"/v1/test_helpers/issuing/cards/{card}/shipping/return",pathParams:["card"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!1},class:"action",resource:"issuing.card"},{id:"PostTestHelpersIssuingCardsCardShippingShip",method:"post",path:"/v1/test_helpers/issuing/cards/{card}/shipping/ship",pathParams:["card"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!1},class:"action",resource:"issuing.card"},{id:"PostTestHelpersIssuingCardsCardShippingSubmit",method:"post",path:"/v1/test_helpers/issuing/cards/{card}/shipping/submit",pathParams:["card"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.card",list:!1},class:"action",resource:"issuing.card"},{id:"PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate",method:"post",path:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate",pathParams:["personalization_design"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.personalization_design",list:!1},class:"action",resource:"issuing.personalization_design"},{id:"PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate",method:"post",path:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate",pathParams:["personalization_design"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.personalization_design",list:!1},class:"action",resource:"issuing.personalization_design"},{id:"PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject",method:"post",path:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject",pathParams:["personalization_design"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"rejection_reasons",type:"object",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.personalization_design",list:!1},class:"action",resource:"issuing.personalization_design"},{id:"PostTestHelpersIssuingSettlements",method:"post",path:"/v1/test_helpers/issuing/settlements",pathParams:[],query:[],body:[{name:"bin",type:"string",required:!0},{name:"clearing_date",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"interchange_fees_amount",type:"integer",required:!1},{name:"net_total_amount",type:"integer",required:!0},{name:"network",type:"string",required:!1},{name:"network_settlement_identifier",type:"string",required:!1},{name:"transaction_amount",type:"integer",required:!1},{name:"transaction_count",type:"integer",required:!1}],bodyEncoding:"form",scalars:{clearing_date:"integer",interchange_fees_amount:"integer",net_total_amount:"integer",transaction_amount:"integer",transaction_count:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.settlement",list:!1},class:"action",resource:"issuing.settlement"},{id:"PostTestHelpersIssuingSettlementsSettlementComplete",method:"post",path:"/v1/test_helpers/issuing/settlements/{settlement}/complete",pathParams:["settlement"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.settlement",list:!1},class:"action",resource:"issuing.settlement"},{id:"PostTestHelpersIssuingTransactionsTransactionRefund",method:"post",path:"/v1/test_helpers/issuing/transactions/{transaction}/refund",pathParams:["transaction"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"refund_amount",type:"integer",required:!1}],bodyEncoding:"form",scalars:{refund_amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.transaction",list:!1},class:"action",resource:"issuing.transaction"},{id:"PostTestHelpersIssuingTransactionsCreateForceCapture",method:"post",path:"/v1/test_helpers/issuing/transactions/create_force_capture",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"card",type:"string",required:!0},{name:"currency",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"merchant_data",type:"object",required:!1},{name:"purchase_details",type:"object",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","purchase_details.fleet.cardholder_prompt_data.odometer":"integer","purchase_details.flight.departure_at":"integer","purchase_details.flight.refundable":"boolean","purchase_details.flight.segments.[].stopover_allowed":"boolean","purchase_details.lodging.check_in_at":"integer","purchase_details.lodging.nights":"integer","purchase_details.receipt.[].total":"integer","purchase_details.receipt.[].unit_cost":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.transaction",list:!1},class:"action",resource:"issuing.transaction"},{id:"PostTestHelpersIssuingTransactionsCreateUnlinkedRefund",method:"post",path:"/v1/test_helpers/issuing/transactions/create_unlinked_refund",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"card",type:"string",required:!0},{name:"currency",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"merchant_data",type:"object",required:!1},{name:"purchase_details",type:"object",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","purchase_details.fleet.cardholder_prompt_data.odometer":"integer","purchase_details.flight.departure_at":"integer","purchase_details.flight.refundable":"boolean","purchase_details.flight.segments.[].stopover_allowed":"boolean","purchase_details.lodging.check_in_at":"integer","purchase_details.lodging.nights":"integer","purchase_details.receipt.[].total":"integer","purchase_details.receipt.[].unit_cost":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"issuing.transaction",list:!1},class:"action",resource:"issuing.transaction"},{id:"PostTestHelpersRefundsRefundExpire",method:"post",path:"/v1/test_helpers/refunds/{refund}/expire",pathParams:["refund"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"refund",list:!1},class:"action",resource:"refund"},{id:"PostTestHelpersTerminalReadersReaderPresentPaymentMethod",method:"post",path:"/v1/test_helpers/terminal/readers/{reader}/present_payment_method",pathParams:["reader"],query:[],body:[{name:"amount_tip",type:"integer",required:!1},{name:"card",type:"object",required:!1},{name:"card_present",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"interac_present",type:"object",required:!1},{name:"type",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount_tip:"integer","card.exp_month":"integer","card.exp_year":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTestHelpersTerminalReadersReaderSucceedInputCollection",method:"post",path:"/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection",pathParams:["reader"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"skip_non_required_inputs",type:"string",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"PostTestHelpersTerminalReadersReaderTimeoutInputCollection",method:"post",path:"/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection",pathParams:["reader"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"terminal.reader",list:!1},class:"action",resource:"terminal.reader"},{id:"GetTestHelpersTestClocks",method:"get",path:"/v1/test_helpers/test_clocks",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"test_helpers.test_clock",list:!0},class:"list",resource:"test_helpers.test_clock"},{id:"PostTestHelpersTestClocks",method:"post",path:"/v1/test_helpers/test_clocks",pathParams:[],query:[],body:[{name:"customer",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"frozen_time",type:"integer",required:!0},{name:"name",type:"string",required:!1}],bodyEncoding:"form",scalars:{frozen_time:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"test_helpers.test_clock",list:!1},class:"create",resource:"test_helpers.test_clock"},{id:"GetTestHelpersTestClocksTestClock",method:"get",path:"/v1/test_helpers/test_clocks/{test_clock}",pathParams:["test_clock"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"test_helpers.test_clock",list:!1},class:"retrieve",resource:"test_helpers.test_clock"},{id:"DeleteTestHelpersTestClocksTestClock",method:"delete",path:"/v1/test_helpers/test_clocks/{test_clock}",pathParams:["test_clock"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_test_helpers.test_clock",list:!1},class:"delete",resource:"test_helpers.test_clock"},{id:"PostTestHelpersTestClocksTestClockAdvance",method:"post",path:"/v1/test_helpers/test_clocks/{test_clock}/advance",pathParams:["test_clock"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"frozen_time",type:"integer",required:!0}],bodyEncoding:"form",scalars:{frozen_time:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"test_helpers.test_clock",list:!1},class:"action",resource:"test_helpers.test_clock"},{id:"PostTestHelpersTreasuryInboundTransfersIdFail",method:"post",path:"/v1/test_helpers/treasury/inbound_transfers/{id}/fail",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"failure_details",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.inbound_transfer",list:!1},class:"action",resource:"treasury.inbound_transfer"},{id:"PostTestHelpersTreasuryInboundTransfersIdReturn",method:"post",path:"/v1/test_helpers/treasury/inbound_transfers/{id}/return",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.inbound_transfer",list:!1},class:"action",resource:"treasury.inbound_transfer"},{id:"PostTestHelpersTreasuryInboundTransfersIdSucceed",method:"post",path:"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.inbound_transfer",list:!1},class:"action",resource:"treasury.inbound_transfer"},{id:"PostTestHelpersTreasuryOutboundPaymentsId",method:"post",path:"/v1/test_helpers/treasury/outbound_payments/{id}",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"tracking_details",type:"object",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_payment",list:!1},class:"action",resource:"treasury.outbound_payment"},{id:"PostTestHelpersTreasuryOutboundPaymentsIdFail",method:"post",path:"/v1/test_helpers/treasury/outbound_payments/{id}/fail",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_payment",list:!1},class:"action",resource:"treasury.outbound_payment"},{id:"PostTestHelpersTreasuryOutboundPaymentsIdPost",method:"post",path:"/v1/test_helpers/treasury/outbound_payments/{id}/post",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_payment",list:!1},class:"action",resource:"treasury.outbound_payment"},{id:"PostTestHelpersTreasuryOutboundPaymentsIdReturn",method:"post",path:"/v1/test_helpers/treasury/outbound_payments/{id}/return",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"returned_details",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_payment",list:!1},class:"action",resource:"treasury.outbound_payment"},{id:"PostTestHelpersTreasuryOutboundTransfersOutboundTransfer",method:"post",path:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}",pathParams:["outbound_transfer"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"tracking_details",type:"object",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_transfer",list:!1},class:"action",resource:"treasury.outbound_transfer"},{id:"PostTestHelpersTreasuryOutboundTransfersOutboundTransferFail",method:"post",path:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail",pathParams:["outbound_transfer"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_transfer",list:!1},class:"action",resource:"treasury.outbound_transfer"},{id:"PostTestHelpersTreasuryOutboundTransfersOutboundTransferPost",method:"post",path:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post",pathParams:["outbound_transfer"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_transfer",list:!1},class:"action",resource:"treasury.outbound_transfer"},{id:"PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturn",method:"post",path:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return",pathParams:["outbound_transfer"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"returned_details",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_transfer",list:!1},class:"action",resource:"treasury.outbound_transfer"},{id:"PostTestHelpersTreasuryReceivedCredits",method:"post",path:"/v1/test_helpers/treasury/received_credits",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"initiating_payment_method_details",type:"object",required:!1},{name:"network",type:"string",required:!0}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.received_credit",list:!1},class:"action",resource:"treasury.received_credit"},{id:"PostTestHelpersTreasuryReceivedDebits",method:"post",path:"/v1/test_helpers/treasury/received_debits",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"initiating_payment_method_details",type:"object",required:!1},{name:"network",type:"string",required:!0}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.received_debit",list:!1},class:"action",resource:"treasury.received_debit"},{id:"GetThreeDSecureAuthentications",method:"get",path:"/v1/three_d_secure/authentications",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"three_d_secure.authentication",list:!0},class:"list",resource:"three_d_secure.authentication"},{id:"PostThreeDSecureAuthentications",method:"post",path:"/v1/three_d_secure/authentications",pathParams:[],query:[],body:[{name:"acquirer_details",type:"object",required:!1},{name:"amount",type:"integer",required:!1},{name:"channel",type:"object",required:!0},{name:"currency",type:"string",required:!1},{name:"directory_server",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"flow_preference",type:"object",required:!1},{name:"future_usage",type:"object",required:!1},{name:"message_category",type:"string",required:!0},{name:"metadata",type:"union",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_data",type:"object",required:!1},{name:"reason",type:"string",required:!1},{name:"shipping_address",type:"object",required:!1},{name:"submit",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","channel.browser.color_depth":"integer","channel.browser.java_enabled":"boolean","channel.browser.javascript_enabled":"boolean","channel.browser.screen_height":"integer","channel.browser.screen_width":"integer","channel.browser.timezone_offset":"integer","future_usage.installment.amount":"integer","future_usage.installment.interval_count":"integer","future_usage.installment.number":"integer","future_usage.recurring.amount":"integer","future_usage.recurring.interval_count":"integer","payment_method_data.card.exp_month":"integer","payment_method_data.card.exp_year":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"three_d_secure.authentication",list:!1},class:"create",resource:"three_d_secure.authentication"},{id:"GetThreeDSecureAuthenticationsAuthentication",method:"get",path:"/v1/three_d_secure/authentications/{authentication}",pathParams:["authentication"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"three_d_secure.authentication",list:!1},class:"retrieve",resource:"three_d_secure.authentication"},{id:"PostThreeDSecureAuthenticationsAuthenticationCancel",method:"post",path:"/v1/three_d_secure/authentications/{authentication}/cancel",pathParams:["authentication"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"three_d_secure.authentication",list:!1},class:"action",resource:"three_d_secure.authentication"},{id:"PostThreeDSecureAuthenticationsAuthenticationSubmit",method:"post",path:"/v1/three_d_secure/authentications/{authentication}/submit",pathParams:["authentication"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"fingerprinting_result",type:"string",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"three_d_secure.authentication",list:!1},class:"action",resource:"three_d_secure.authentication"},{id:"PostTokens",method:"post",path:"/v1/tokens",pathParams:[],query:[],body:[{name:"account",type:"object",required:!1},{name:"bank_account",type:"object",required:!1},{name:"card",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"cvc_update",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"person",type:"object",required:!1},{name:"pii",type:"object",required:!1}],bodyEncoding:"form",scalars:{"account.company.directors_provided":"boolean","account.company.directorship_declaration.date":"integer","account.company.executives_provided":"boolean","account.company.owners_provided":"boolean","account.company.ownership_declaration_shown_and_signed":"boolean","account.company.ownership_declaration.date":"integer","account.company.registration_date.day":"integer","account.company.registration_date.month":"integer","account.company.registration_date.year":"integer","account.company.representative_declaration.date":"integer","account.individual.dob.day":"integer","account.individual.dob.month":"integer","account.individual.dob.year":"integer","account.individual.relationship.director":"boolean","account.individual.relationship.executive":"boolean","account.individual.relationship.owner":"boolean","account.individual.relationship.percent_ownership":"number","account.tos_shown_and_accepted":"boolean","person.additional_tos_acceptances.account.date":"integer","person.dob.day":"integer","person.dob.month":"integer","person.dob.year":"integer","person.relationship.authorizer":"boolean","person.relationship.director":"boolean","person.relationship.executive":"boolean","person.relationship.legal_guardian":"boolean","person.relationship.owner":"boolean","person.relationship.percent_ownership":"number","person.relationship.representative":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"token",list:!1},class:"create",resource:"token"},{id:"GetTokensToken",method:"get",path:"/v1/tokens/{token}",pathParams:["token"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"token",list:!1},class:"retrieve",resource:"token"},{id:"GetTopups",method:"get",path:"/v1/topups",pathParams:[],query:[{name:"amount",type:"union",required:!1},{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{amount:"integer","amount.gt":"integer","amount.gte":"integer","amount.lt":"integer","amount.lte":"integer",created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"topup",list:!0},class:"list",resource:"topup"},{id:"PostTopups",method:"post",path:"/v1/topups",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"payment_method",type:"string",required:!1},{name:"payment_method_options",type:"object",required:!1},{name:"source",type:"string",required:!1},{name:"statement_descriptor",type:"string",required:!1},{name:"transfer_group",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"topup",list:!1},class:"create",resource:"topup"},{id:"GetTopupsTopup",method:"get",path:"/v1/topups/{topup}",pathParams:["topup"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"topup",list:!1},class:"retrieve",resource:"topup"},{id:"PostTopupsTopup",method:"post",path:"/v1/topups/{topup}",pathParams:["topup"],query:[],body:[{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"topup",list:!1},class:"update",resource:"topup"},{id:"PostTopupsTopupCancel",method:"post",path:"/v1/topups/{topup}/cancel",pathParams:["topup"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"topup",list:!1},class:"action",resource:"topup"},{id:"GetTransfers",method:"get",path:"/v1/transfers",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"destination",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"transfer_group",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"transfer",list:!0},class:"list",resource:"transfer"},{id:"PostTransfers",method:"post",path:"/v1/transfers",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"currency",type:"string",required:!0},{name:"description",type:"string",required:!1},{name:"destination",type:"string",required:!0},{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"source_transaction",type:"string",required:!1},{name:"source_type",type:"string",required:!1},{name:"transfer_group",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"transfer",list:!1},class:"create",resource:"transfer"},{id:"GetTransfersIdReversals",method:"get",path:"/v1/transfers/{id}/reversals",pathParams:["id"],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"transfer_reversal",list:!0},class:"list",resource:"transfer_reversal"},{id:"PostTransfersIdReversals",method:"post",path:"/v1/transfers/{id}/reversals",pathParams:["id"],query:[],body:[{name:"amount",type:"integer",required:!1},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"refund_application_fee",type:"boolean",required:!1}],bodyEncoding:"form",scalars:{amount:"integer",refund_application_fee:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"transfer_reversal",list:!1},class:"create",resource:"transfer_reversal"},{id:"GetTransfersTransfer",method:"get",path:"/v1/transfers/{transfer}",pathParams:["transfer"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"transfer",list:!1},class:"retrieve",resource:"transfer"},{id:"PostTransfersTransfer",method:"post",path:"/v1/transfers/{transfer}",pathParams:["transfer"],query:[],body:[{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"transfer",list:!1},class:"update",resource:"transfer"},{id:"GetTransfersTransferReversalsId",method:"get",path:"/v1/transfers/{transfer}/reversals/{id}",pathParams:["id","transfer"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"transfer_reversal",list:!1},class:"retrieve",resource:"transfer_reversal"},{id:"PostTransfersTransferReversalsId",method:"post",path:"/v1/transfers/{transfer}/reversals/{id}",pathParams:["id","transfer"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"transfer_reversal",list:!1},class:"update",resource:"transfer_reversal"},{id:"GetTreasuryCreditReversals",method:"get",path:"/v1/treasury/credit_reversals",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"received_credit",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.credit_reversal",list:!0},class:"list",resource:"treasury.credit_reversal"},{id:"PostTreasuryCreditReversals",method:"post",path:"/v1/treasury/credit_reversals",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"received_credit",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.credit_reversal",list:!1},class:"create",resource:"treasury.credit_reversal"},{id:"GetTreasuryCreditReversalsCreditReversal",method:"get",path:"/v1/treasury/credit_reversals/{credit_reversal}",pathParams:["credit_reversal"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.credit_reversal",list:!1},class:"retrieve",resource:"treasury.credit_reversal"},{id:"GetTreasuryDebitReversals",method:"get",path:"/v1/treasury/debit_reversals",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"received_debit",type:"string",required:!1},{name:"resolution",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.debit_reversal",list:!0},class:"list",resource:"treasury.debit_reversal"},{id:"PostTreasuryDebitReversals",method:"post",path:"/v1/treasury/debit_reversals",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"metadata",type:"object",required:!1},{name:"received_debit",type:"string",required:!0}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.debit_reversal",list:!1},class:"create",resource:"treasury.debit_reversal"},{id:"GetTreasuryDebitReversalsDebitReversal",method:"get",path:"/v1/treasury/debit_reversals/{debit_reversal}",pathParams:["debit_reversal"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.debit_reversal",list:!1},class:"retrieve",resource:"treasury.debit_reversal"},{id:"GetTreasuryFinancialAccounts",method:"get",path:"/v1/treasury/financial_accounts",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.financial_account",list:!0},class:"list",resource:"treasury.financial_account"},{id:"PostTreasuryFinancialAccounts",method:"post",path:"/v1/treasury/financial_accounts",pathParams:[],query:[],body:[{name:"expand",type:"array",required:!1},{name:"features",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"nickname",type:"union",required:!1},{name:"platform_restrictions",type:"object",required:!1},{name:"supported_currencies",type:"array",required:!0}],bodyEncoding:"form",scalars:{"features.card_issuing.requested":"boolean","features.deposit_insurance.requested":"boolean","features.financial_addresses.aba.requested":"boolean","features.inbound_transfers.ach.requested":"boolean","features.intra_stripe_flows.requested":"boolean","features.outbound_payments.ach.requested":"boolean","features.outbound_payments.us_domestic_wire.requested":"boolean","features.outbound_transfers.ach.requested":"boolean","features.outbound_transfers.us_domestic_wire.requested":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.financial_account",list:!1},class:"create",resource:"treasury.financial_account"},{id:"GetTreasuryFinancialAccountsFinancialAccount",method:"get",path:"/v1/treasury/financial_accounts/{financial_account}",pathParams:["financial_account"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.financial_account",list:!1},class:"retrieve",resource:"treasury.financial_account"},{id:"PostTreasuryFinancialAccountsFinancialAccount",method:"post",path:"/v1/treasury/financial_accounts/{financial_account}",pathParams:["financial_account"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"features",type:"object",required:!1},{name:"forwarding_settings",type:"object",required:!1},{name:"metadata",type:"object",required:!1},{name:"nickname",type:"union",required:!1},{name:"platform_restrictions",type:"object",required:!1}],bodyEncoding:"form",scalars:{"features.card_issuing.requested":"boolean","features.deposit_insurance.requested":"boolean","features.financial_addresses.aba.requested":"boolean","features.inbound_transfers.ach.requested":"boolean","features.intra_stripe_flows.requested":"boolean","features.outbound_payments.ach.requested":"boolean","features.outbound_payments.us_domestic_wire.requested":"boolean","features.outbound_transfers.ach.requested":"boolean","features.outbound_transfers.us_domestic_wire.requested":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.financial_account",list:!1},class:"update",resource:"treasury.financial_account"},{id:"PostTreasuryFinancialAccountsFinancialAccountClose",method:"post",path:"/v1/treasury/financial_accounts/{financial_account}/close",pathParams:["financial_account"],query:[],body:[{name:"expand",type:"array",required:!1},{name:"forwarding_settings",type:"object",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.financial_account",list:!1},class:"action",resource:"treasury.financial_account"},{id:"GetTreasuryFinancialAccountsFinancialAccountFeatures",method:"get",path:"/v1/treasury/financial_accounts/{financial_account}/features",pathParams:["financial_account"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.financial_account_features",list:!1},class:"retrieve",resource:"treasury.financial_account_features"},{id:"PostTreasuryFinancialAccountsFinancialAccountFeatures",method:"post",path:"/v1/treasury/financial_accounts/{financial_account}/features",pathParams:["financial_account"],query:[],body:[{name:"card_issuing",type:"object",required:!1},{name:"deposit_insurance",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_addresses",type:"object",required:!1},{name:"inbound_transfers",type:"object",required:!1},{name:"intra_stripe_flows",type:"object",required:!1},{name:"outbound_payments",type:"object",required:!1},{name:"outbound_transfers",type:"object",required:!1}],bodyEncoding:"form",scalars:{"card_issuing.requested":"boolean","deposit_insurance.requested":"boolean","financial_addresses.aba.requested":"boolean","inbound_transfers.ach.requested":"boolean","intra_stripe_flows.requested":"boolean","outbound_payments.ach.requested":"boolean","outbound_payments.us_domestic_wire.requested":"boolean","outbound_transfers.ach.requested":"boolean","outbound_transfers.us_domestic_wire.requested":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.financial_account_features",list:!1},class:"action",resource:"treasury.financial_account"},{id:"GetTreasuryInboundTransfers",method:"get",path:"/v1/treasury/inbound_transfers",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.inbound_transfer",list:!0},class:"list",resource:"treasury.inbound_transfer"},{id:"PostTreasuryInboundTransfers",method:"post",path:"/v1/treasury/inbound_transfers",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"description",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"metadata",type:"object",required:!1},{name:"origin_payment_method",type:"string",required:!0},{name:"statement_descriptor",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.inbound_transfer",list:!1},class:"create",resource:"treasury.inbound_transfer"},{id:"GetTreasuryInboundTransfersId",method:"get",path:"/v1/treasury/inbound_transfers/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.inbound_transfer",list:!1},class:"retrieve",resource:"treasury.inbound_transfer"},{id:"PostTreasuryInboundTransfersInboundTransferCancel",method:"post",path:"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel",pathParams:["inbound_transfer"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.inbound_transfer",list:!1},class:"action",resource:"treasury.inbound_transfer"},{id:"GetTreasuryOutboundPayments",method:"get",path:"/v1/treasury/outbound_payments",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"customer",type:"string",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_payment",list:!0},class:"list",resource:"treasury.outbound_payment"},{id:"PostTreasuryOutboundPayments",method:"post",path:"/v1/treasury/outbound_payments",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"customer",type:"string",required:!1},{name:"description",type:"string",required:!1},{name:"destination_payment_method",type:"string",required:!1},{name:"destination_payment_method_data",type:"object",required:!1},{name:"destination_payment_method_options",type:"object",required:!1},{name:"end_user_details",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"metadata",type:"object",required:!1},{name:"statement_descriptor",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer","end_user_details.present":"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_payment",list:!1},class:"create",resource:"treasury.outbound_payment"},{id:"GetTreasuryOutboundPaymentsId",method:"get",path:"/v1/treasury/outbound_payments/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_payment",list:!1},class:"retrieve",resource:"treasury.outbound_payment"},{id:"PostTreasuryOutboundPaymentsIdCancel",method:"post",path:"/v1/treasury/outbound_payments/{id}/cancel",pathParams:["id"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_payment",list:!1},class:"action",resource:"treasury.outbound_payment"},{id:"GetTreasuryOutboundTransfers",method:"get",path:"/v1/treasury/outbound_transfers",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_transfer",list:!0},class:"list",resource:"treasury.outbound_transfer"},{id:"PostTreasuryOutboundTransfers",method:"post",path:"/v1/treasury/outbound_transfers",pathParams:[],query:[],body:[{name:"amount",type:"integer",required:!0},{name:"currency",type:"string",required:!0},{name:"description",type:"string",required:!1},{name:"destination_payment_method",type:"string",required:!1},{name:"destination_payment_method_data",type:"object",required:!1},{name:"destination_payment_method_options",type:"object",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"metadata",type:"object",required:!1},{name:"statement_descriptor",type:"string",required:!1}],bodyEncoding:"form",scalars:{amount:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_transfer",list:!1},class:"create",resource:"treasury.outbound_transfer"},{id:"GetTreasuryOutboundTransfersOutboundTransfer",method:"get",path:"/v1/treasury/outbound_transfers/{outbound_transfer}",pathParams:["outbound_transfer"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_transfer",list:!1},class:"retrieve",resource:"treasury.outbound_transfer"},{id:"PostTreasuryOutboundTransfersOutboundTransferCancel",method:"post",path:"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel",pathParams:["outbound_transfer"],query:[],body:[{name:"expand",type:"array",required:!1}],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.outbound_transfer",list:!1},class:"action",resource:"treasury.outbound_transfer"},{id:"GetTreasuryReceivedCredits",method:"get",path:"/v1/treasury/received_credits",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"linked_flows",type:"object",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.received_credit",list:!0},class:"list",resource:"treasury.received_credit"},{id:"GetTreasuryReceivedCreditsId",method:"get",path:"/v1/treasury/received_credits/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.received_credit",list:!1},class:"retrieve",resource:"treasury.received_credit"},{id:"GetTreasuryReceivedDebits",method:"get",path:"/v1/treasury/received_debits",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.received_debit",list:!0},class:"list",resource:"treasury.received_debit"},{id:"GetTreasuryReceivedDebitsId",method:"get",path:"/v1/treasury/received_debits/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.received_debit",list:!1},class:"retrieve",resource:"treasury.received_debit"},{id:"GetTreasuryTransactionEntries",method:"get",path:"/v1/treasury/transaction_entries",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"effective_at",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"order_by",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"transaction",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",effective_at:"integer","effective_at.gt":"integer","effective_at.gte":"integer","effective_at.lt":"integer","effective_at.lte":"integer",limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.transaction_entry",list:!0},class:"list",resource:"treasury.transaction_entry"},{id:"GetTreasuryTransactionEntriesId",method:"get",path:"/v1/treasury/transaction_entries/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.transaction_entry",list:!1},class:"retrieve",resource:"treasury.transaction_entry"},{id:"GetTreasuryTransactions",method:"get",path:"/v1/treasury/transactions",pathParams:[],query:[{name:"created",type:"union",required:!1},{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"financial_account",type:"string",required:!0},{name:"limit",type:"integer",required:!1},{name:"order_by",type:"string",required:!1},{name:"starting_after",type:"string",required:!1},{name:"status",type:"string",required:!1},{name:"status_transitions",type:"object",required:!1}],body:[],bodyEncoding:"form",scalars:{created:"integer","created.gt":"integer","created.gte":"integer","created.lt":"integer","created.lte":"integer",limit:"integer","status_transitions.posted_at":"integer","status_transitions.posted_at.gt":"integer","status_transitions.posted_at.gte":"integer","status_transitions.posted_at.lt":"integer","status_transitions.posted_at.lte":"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.transaction",list:!0},class:"list",resource:"treasury.transaction"},{id:"GetTreasuryTransactionsId",method:"get",path:"/v1/treasury/transactions/{id}",pathParams:["id"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"treasury.transaction",list:!1},class:"retrieve",resource:"treasury.transaction"},{id:"GetWebhookEndpoints",method:"get",path:"/v1/webhook_endpoints",pathParams:[],query:[{name:"ending_before",type:"string",required:!1},{name:"expand",type:"array",required:!1},{name:"limit",type:"integer",required:!1},{name:"starting_after",type:"string",required:!1}],body:[],bodyEncoding:"form",scalars:{limit:"integer"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"webhook_endpoint",list:!0},class:"list",resource:"webhook_endpoint"},{id:"PostWebhookEndpoints",method:"post",path:"/v1/webhook_endpoints",pathParams:[],query:[],body:[{name:"api_version",type:"string",required:!1},{name:"connect",type:"boolean",required:!1},{name:"description",type:"union",required:!1},{name:"enabled_events",type:"array",required:!0},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"url",type:"string",required:!0}],bodyEncoding:"form",scalars:{connect:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"webhook_endpoint",list:!1},class:"create",resource:"webhook_endpoint"},{id:"GetWebhookEndpointsWebhookEndpoint",method:"get",path:"/v1/webhook_endpoints/{webhook_endpoint}",pathParams:["webhook_endpoint"],query:[{name:"expand",type:"array",required:!1}],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"webhook_endpoint",list:!1},class:"retrieve",resource:"webhook_endpoint"},{id:"PostWebhookEndpointsWebhookEndpoint",method:"post",path:"/v1/webhook_endpoints/{webhook_endpoint}",pathParams:["webhook_endpoint"],query:[],body:[{name:"description",type:"union",required:!1},{name:"disabled",type:"boolean",required:!1},{name:"enabled_events",type:"array",required:!1},{name:"expand",type:"array",required:!1},{name:"metadata",type:"union",required:!1},{name:"url",type:"string",required:!1}],bodyEncoding:"form",scalars:{disabled:"boolean"},successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"webhook_endpoint",list:!1},class:"update",resource:"webhook_endpoint"},{id:"DeleteWebhookEndpointsWebhookEndpoint",method:"delete",path:"/v1/webhook_endpoints/{webhook_endpoint}",pathParams:["webhook_endpoint"],query:[],body:[],bodyEncoding:"form",successStatus:200,credentials:["basicAuth","bearerAuth"],answers:{resource:"deleted_webhook_endpoint",list:!1},class:"delete",resource:"webhook_endpoint"}]};var tt=String(ie.version),Io="2025-03-31",To="2025-09-30",vt=e=>!e||e>=Io,dn={account:["livemode"],webhook_endpoint:["connect"],"billing.meter_event":["id"],card:["created"],charge:["capture","capture_before"],dispute:["submit"],ephemeral_key:["associated_objects"],"financial_connections.account":["session"],"identity.verification_session":["return_url"],invoice:["days_until_due","pending_invoice_items_behavior"],"issuing.token":["cardholder"],payment_intent:["mandate","off_session"],subscription:["payment_behavior"],subscription_item:["livemode"],subscription_schedule:["from_subscription","renewal_interval","proration_behavior"],"tax.transaction":["calculation"],"terminal.reader":["registration_code"],topup:["destination_balance"],"treasury.outbound_payment":["destination_payment_method_data"],"treasury.transaction_entry":["amount"]},ce=(e,t)=>Object.fromEntries(Object.entries(e).filter(([a])=>!t.includes(a))),Pe=e=>typeof e=="string"?e:e&&typeof e=="object"&&typeof e.id=="string"?String(e.id):null;function cn(e,t,a){let n=Pe(e);if(!n)return null;let r=e&&typeof e=="object"?Pe(e.product):null,s=e&&typeof e=="object"&&e.unit_amount!==void 0?e.unit_amount:Number(t)/(Number(a)||1);return{type:"price_details",price_details:{price:n,product:r??""},unit_amount_decimal:String(s??0)}}var pn={invoice:e=>{let t=Pe(e.subscription),a=e.parent!==void 0?e.parent:t?{type:"subscription_details",quote_details:null,subscription_details:{metadata:{},subscription:t}}:null,n=e.confirmation_secret??null;return{...ce(e,["payment_intent","charge","paid","paid_out_of_band","subscription"]),parent:a,confirmation_secret:n}},charge:e=>ce(e,["invoice","source"]),payment_intent:e=>ce(e,["invoice"]),subscription:e=>{let t={current_period_start:e.current_period_start,current_period_end:e.current_period_end},a=e.items&&typeof e.items=="object"?e.items:void 0,n=Array.isArray(a?.data)?a.data.map(r=>({...r,current_period_start:r.current_period_start??t.current_period_start,current_period_end:r.current_period_end??t.current_period_end})):void 0;return{...ce(e,["current_period_start","current_period_end"]),...a&&n?{items:{...a,data:n}}:{}}},subscription_item:e=>({...ce(e,["plan"]),discounts:e.discounts??[]}),invoiceitem:e=>({...ce(e,["price"]),pricing:e.pricing??cn(e.price,e.amount,e.quantity)}),line_item:e=>{let t=e.proration===!0,a=e.type==="invoiceitem"||e.invoice_item!==void 0&&e.invoice_item!==null&&e.type!=="subscription",n=e.parent!==void 0?e.parent:a?{type:"invoice_item_details",invoice_item_details:{invoice_item:Pe(e.invoice_item)??String(e.id).replace(/^il_/,""),proration:t,proration_details:null,subscription:Pe(e.subscription)},subscription_item_details:null}:{type:"subscription_item_details",subscription_item_details:{subscription_item:Pe(e.subscription_item)??"",proration:t,proration_details:null,subscription:Pe(e.subscription),invoice_item:null},invoice_item_details:null},r=Array.isArray(e.tax_amounts)?e.tax_amounts.map(s=>({amount:s.amount,tax_behavior:"exclusive",taxability_reason:s.taxability_reason??"standard_rated",taxable_amount:s.taxable_amount??null,type:"tax_rate_details",tax_rate_details:{tax_rate:Pe(s.tax_rate)}})):[];return{...ce(e,["price","invoice_item","proration","tax_amounts","tax_rates","type","subscription_item"]),parent:n,pricing:e.pricing??cn(e.price,e.amount,e.quantity),taxes:r,discountable:e.discountable??!t,discounts:e.discounts??[],livemode:e.livemode??!1,metadata:e.metadata??{},period:e.period??{start:0,end:0},subtotal:e.subtotal??e.amount}},promotion_code:e=>({...ce(e,["coupon"]),promotion:e.promotion??{type:"coupon",coupon:e.coupon??null}})},No=new Map(ie.resources.map(e=>[e.schema,e.fields.filter(t=>t.nullable).map(t=>t.name)])),Ro={"checkout.session":{customer_details:["business_name","individual_name"]},subscription:{automatic_tax:["disabled_reason"],billing_mode:["flexible"],invoice_settings:["account_tax_ids","custom_fields","description","footer"],cancellation_details:["comment","feedback","feedback_option","reason"]},invoice:{automatic_tax:["disabled_reason","provider"]},customer:{invoice_settings:["custom_fields","default_payment_method","footer","rendering_options"]},account:{business_profile:["annual_revenue","estimated_worker_count","mcc","minority_owned_business_designation","name","product_description","specified_commercial_transactions_act_url","support_address","support_email","support_phone","support_url","url"]},charge:{billing_details:["tax_id"],"payment_method_details.card":["amount_authorized","authorization_code","electronic_commerce_indicator","network_token","network_transaction_id","regulated_status","transaction_link_id"]},payment_method:{billing_details:["tax_id"],card:["fingerprint","generated_from","regulated_status"]},person:{relationship:["legal_guardian","authorizer"]},source:{owner:["address","email","name","phone","verified_address","verified_email","verified_name","verified_phone"]},"terminal.location":{address:["city","country","line1","line2","postal_code","state"]},"issuing.cardholder":{"billing.address":["city","country","line1","line2","postal_code","state"],individual:["dob","verification","card_issuing"],spending_controls:["allowed_card_presences","blocked_card_presences","spending_limits_currency"]},"issuing.card":{spending_controls:["allowed_card_presences","blocked_card_presences","spending_limits_currency"]},"issuing.dispute":{"evidence.fraudulent":["additional_documentation","explanation"]},"issuing.personalization_design":{carrier_text:["footer_body","footer_title","header_body","header_title"]},"treasury.received_credit":{"initiating_payment_method_details.billing_details.address":["city","country","line1","line2","postal_code","state"],linked_flows:["credit_reversal","issuing_authorization","issuing_transaction","source_flow","source_flow_details","source_flow_type"]},"treasury.received_debit":{"initiating_payment_method_details.billing_details.address":["city","country","line1","line2","postal_code","state"],linked_flows:["debit_reversal","inbound_transfer","issuing_authorization","issuing_transaction","payout","topup"]},"treasury.inbound_transfer":{"origin_payment_method_details.billing_details.address":["city","country","line1","line2","postal_code","state"]}},Go={amex:"american_express",diners:"diners_club",eftpos_au:"eftpos_australia",unionpay:"union_pay"},mn={payment_method:e=>{let t=e.card&&typeof e.card=="object"?e.card:void 0,a=typeof t?.brand=="string"?t.brand:void 0;return{...e.allow_redisplay===void 0?{allow_redisplay:"unspecified"}:{},...t&&a&&t.display_brand===void 0?{card:{...t,display_brand:Go[a]??(a==="unknown"?"other":a)}}:{}}},invoice:e=>{let t=e.lines&&typeof e.lines=="object"?e.lines:void 0;return!Array.isArray(t?.data)||typeof e.id!="string"?{}:{lines:{...t,data:t.data.map(a=>a&&typeof a=="object"&&(a.invoice===void 0||a.invoice===null)?{...a,invoice:e.id}:a)}}},invoiceitem:e=>e.net_amount===void 0?{net_amount:e.discountable===!1&&typeof e.amount=="number"?e.amount:null}:{},payment_intent:e=>({...e.confirmation_method===void 0?{confirmation_method:"automatic"}:{},...e.amount_details===void 0?{amount_details:{tip:{}}}:{}})},_n=(e,t)=>t.some(a=>!(a in e))?{...e,...Object.fromEntries(t.filter(a=>!(a in e)).map(a=>[a,null]))}:e,zo=new Set(ie.resources.filter(e=>e.fields.some(t=>t.name==="metadata"&&!t.nullable)).map(e=>e.schema)),Do=(e,t)=>{let a=_n(mn[t]?{...e,...mn[t](e)}:e,No.get(t)??[]);zo.has(t)&&(a.metadata===void 0||a.metadata===null)&&(a={...a,metadata:{}});let n=(r,s,i)=>{let[o,...u]=s,l=r[o];return!l||typeof l!="object"||Array.isArray(l)?r:{...r,[o]:u.length?n(l,u,i):_n(l,i)}};for(let[r,s]of Object.entries(Ro[t]??{}))a=n(a,r.split("."),s);return a},Mo={"checkout.session":["line_items"],charge:["refunds"],payment_link:["line_items"],quote:["line_items"],"apps.secret":["payload"],"tax.calculation":["line_items"],"tax.transaction":["line_items"],invoice:["confirmation_secret"]};async function yn(e){let a=[...new URL(e.url).searchParams.entries()].filter(([r])=>/^expand(\[\d*\])?$/.test(r)).map(([,r])=>r);if(e.method==="GET"||e.method==="HEAD")return a;let n=await e.text().catch(()=>"");if(!n)return a;if((e.headers.get("content-type")??"").includes("json")||n.trim().startsWith("{")){try{let r=JSON.parse(n).expand;Array.isArray(r)&&a.push(...r.map(String))}catch{}return a}for(let[r,s]of new URLSearchParams(n))/^expand(\[\d*\])?$/.test(r)&&a.push(s);return a}function qt(e){if(Array.isArray(e))return e.map(qt);if(!e||typeof e!="object")return e;let t=e;return Object.fromEntries(Object.entries(t).filter(([n])=>!(n==="secret"&&t.object==="webhook_endpoint")).map(([n,r])=>[n,qt(r)]))}function at(e,t,a=[]){if(!vt(t))return e;let n=s=>a.some(i=>i===s||i.startsWith(`${s}.`)),r=(s,i="")=>{if(Array.isArray(s))return s.map(_=>r(_,i));if(!s||typeof s!="object")return s;let o=typeof s.object=="string"?String(s.object):void 0,u=[...(o?Mo[o]?.filter(_=>!n(i?`${i}.${_}`:_)):void 0)??[],...o?["expand"]:[]],l=Object.fromEntries(Object.entries(s).filter(([_])=>!u.includes(_)).map(([_,m])=>[_,r(m,i?`${i}.${_}`:_)])),p=typeof l.object=="string"?l.object:void 0;if(!p||l.deleted===!0)return l;l.metadata&&typeof l.metadata=="object"&&!Array.isArray(l.metadata)&&(l.metadata=Object.fromEntries(Object.entries(l.metadata).filter(([,_])=>_!=="").map(([_,m])=>[_,typeof m=="number"||typeof m=="boolean"?String(m):m]))),p==="checkout.session"&&(!t||t>="2026-09-30")&&(l.ui_mode==="hosted"&&(l.ui_mode="hosted_page"),l.ui_mode==="custom"&&(l.ui_mode="elements"));let c=dn[p]?ce(l,dn[p]):l,d=p==="promotion_code"&&t&&t<To?ce(c,["promotion"]):pn[p]?pn[p](c):c;return ce(Do(d,p),u)};return r(e)}function pe(e,t=404,a){return{status:t,body:{error:{type:"invalid_request_error",message:e,...a?{code:a}:{}}}}}var wt=tt,$o=/^\d{4}-\d{2}-\d{2}(\.[a-z_]+)?$/;function At(e){return $o.test(e)}function $e(e){let t=e.amount;return t===void 0?pe("Missing required param: amount.",400,"parameter_missing"):typeof t!="number"||!Number.isInteger(t)||t<=0?pe("Invalid integer: amount must be a positive integer.",400,"parameter_invalid_integer"):e.currency===void 0||e.currency===""?pe("Missing required param: currency.",400,"parameter_missing"):null}var U={"4242424242424242":null,"4000000000000002":{code:"card_declined",decline_code:"generic_decline",message:"Your card was declined."},"4000000000009995":{code:"card_declined",decline_code:"insufficient_funds",message:"Your card has insufficient funds."},"4000000000000069":{code:"expired_card",message:"Your card has expired."},"4000000000000127":{code:"incorrect_cvc",message:"Your card's security code is incorrect."},"4000000000000119":{code:"processing_error",message:"An error occurred while processing your card. Try again in a little bit."},"4000000000000341":{code:"card_declined",decline_code:"generic_decline",message:"Your card was declined."}},nt={pm_card_visa:null,tok_visa:null,pm_card_mastercard:null,tok_mastercard:null,pm_card_amex:null,tok_amex:null,pm_card_discover:null,tok_discover:null,pm_card_chargeDeclined:U["4000000000000002"],tok_chargeDeclined:U["4000000000000002"],pm_card_chargeDeclinedInsufficientFunds:U["4000000000009995"],tok_chargeDeclinedInsufficientFunds:U["4000000000009995"],pm_card_visa_chargeDeclined:U["4000000000000002"],tok_visa_chargeDeclined:U["4000000000000002"],pm_card_visa_chargeDeclinedInsufficientFunds:U["4000000000009995"],tok_visa_chargeDeclinedInsufficientFunds:U["4000000000009995"],pm_card_chargeDeclinedExpiredCard:U["4000000000000069"],tok_chargeDeclinedExpiredCard:U["4000000000000069"],pm_card_chargeDeclinedIncorrectCvc:U["4000000000000127"],tok_chargeDeclinedIncorrectCvc:U["4000000000000127"],pm_card_chargeDeclinedProcessingError:U["4000000000000119"],tok_chargeDeclinedProcessingError:U["4000000000000119"],pm_card_chargeCustomerFail:U["4000000000000341"],tok_chargeCustomerFail:U["4000000000000341"]};function ua(e){let t=r=>{let s=r&&typeof r=="object"?r.number:void 0;if(typeof s=="string"||typeof s=="number")return String(s).replace(/\D/g,"")},a=t(e.card)??t(e.source);if(a)return a;let n=r=>typeof r=="string"&&r?r:r&&typeof r=="object"?t(r.card):void 0;return["payment_method","source","card","payment_method_data"].map(r=>n(e[r])).find(r=>r!==void 0)}function me(e,...t){for(let a of t){let n=ua(a);if(n===void 0)continue;if(n in U)return U[n];if(n in nt)return nt[n];let r=e("payment_method",n);if(r&&Object.prototype.hasOwnProperty.call(r,"_declineOutcome"))return r._declineOutcome}}var Lo=new Set(["4000002500003155","4000002760003184","4000003800000446","4000000000003220"]),Fo=new Set(["pm_card_authenticationRequired","pm_card_authenticationRequiredOnSetup","pm_card_threeDSecure2Required","tok_threeDSecure2Required"]);function la(...e){for(let t of e){let a=ua(t);if(a!==void 0&&(Lo.has(a)||Fo.has(a)))return!0}return!1}function hn(){return{type:"use_stripe_sdk",use_stripe_sdk:{type:"three_d_secure_redirect",stripe_js:"https://js.stripe.com/v3"}}}var Uo=new Set(["pm_usBankAccount_requiresVerification","pm_us_bank_account"]);function qn(...e){for(let t of e){let a=ua(t);if(a!==void 0&&Uo.has(a))return!0}return!1}function vn(){return{type:"verify_with_microdeposits",verify_with_microdeposits:{arrival_date:0,hosted_verification_url:"https://payments.twin.local/microdeposit",microdeposit_type:"amounts"}}}function rt(e,t={}){return{status:402,body:{error:{type:"card_error",code:e.code,...e.decline_code?{decline_code:e.decline_code}:{},message:e.message,param:"card",...t.charge?{charge:t.charge}:{},...t.payment_intent?{payment_intent:t.payment_intent}:{}}}}}function g(e){return Math.floor((e?Date.parse(e):0)/1e3)}function Ce(e,t){return`${e}_secret_${t.replace(/[^A-Za-z0-9]/g,"").slice(0,24)}`}var da={checkout_session:"checkout.session",billing_portal_session:"billing_portal.session",billing_portal_configuration:"billing_portal.configuration",tax_calculation:"tax.calculation",tax_registration:"tax.registration",billing_meter:"billing.meter",test_clock:"test_helpers.test_clock",external_account:"bank_account",tax_transaction:"tax.transaction",radar_review:"review",radar_value_list:"radar.value_list",radar_value_list_item:"radar.value_list_item",radar_rule:"radar.rule",issuing_cardholder:"issuing.cardholder",issuing_card:"issuing.card",issuing_authorization:"issuing.authorization",issuing_transaction:"issuing.transaction",issuing_dispute:"issuing.dispute",terminal_location:"terminal.location",terminal_reader:"terminal.reader",terminal_configuration:"terminal.configuration",verification_report:"identity.verification_report",report_run:"reporting.report_run",cash_balance_transaction:"customer_cash_balance_transaction",credit_grant:"billing.credit_grant",billing_alert:"billing.alert",entitlements_feature:"entitlements.feature",active_entitlement:"entitlements.active_entitlement",account_session:"account_session",apps_secret:"apps.secret",issuing_token:"issuing.token",personalization_design:"issuing.personalization_design",financial_account:"treasury.financial_account",outbound_payment:"treasury.outbound_payment",outbound_transfer:"treasury.outbound_transfer",inbound_transfer:"treasury.inbound_transfer",received_credit:"treasury.received_credit",received_debit:"treasury.received_debit",treasury_transaction:"treasury.transaction",treasury_transaction_entry:"treasury.transaction_entry",climate_order:"climate.order",verification_session:"identity.verification_session",fc_session:"financial_connections.session",fc_account:"financial_connections.account",fc_transaction:"financial_connections.transaction",forwarding_request:"forwarding.request",onramp_session:"crypto.onramp_session"};function wn(e,t){let a=Object.fromEntries(Object.entries(Bo(t)).filter(([n])=>!n.startsWith("_")&&n!=="updatedAt"));return{object:da[e]??e,...a,id:t.id}}function Ho(e,t,a){let n=e.findIndex(i=>i.id===t),r=n===-1?e.length:n,s=Math.max(0,r-a);return{page:e.slice(s,r),hasMore:s>0}}function Vo(e,t){let a=e.findIndex(n=>n.id===t);return a===-1?0:a+1}function st(e,t){let a=10;if(t.limit!==void 0){let o=Number(t.limit);Number.isFinite(o)&&(a=Math.min(100,Math.max(1,Math.trunc(o))))}let n=typeof t.starting_after=="string"?t.starting_after:void 0,r=typeof t.ending_before=="string"?t.ending_before:void 0;if(r)return Ho(e,r,a);let s=n?Vo(e,n):0;return{page:e.slice(s,s+a),hasMore:s+a<e.length}}function E(e){return e===!0||e==="true"||e===1||e==="1"}function Wo(e){let t=e.trim();if(!t)return null;let a=/ OR /i.test(t)&&!/ AND /i.test(t),n=t.split(a?/ OR /i:/ AND /i),r=[],s=/^\s*([A-Za-z0-9_]+(?:\[[^\]]+\])?)\s*(>=|<=|>|<|:|~)\s*(.+?)\s*$/;for(let i of n){let o=s.exec(i);if(!o)return null;let u=o[3].trim();if((u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'"))&&(u=u.slice(1,-1)),o[2]==="~"&&(!["email","name"].includes(o[1])||u.length<3))return null;r.push({field:o[1],op:o[2],value:u})}return{clauses:r,disjunction:a}}function Yo(e,t){let a=/^metadata\[["']?([^"'\]]+)["']?\]$/.exec(t);if(a){let n=e.metadata;return n&&typeof n=="object"?n[a[1]]:void 0}return e[t]}function Ko(e,t,a){return e===">"?t>a:e==="<"?t<a:t<=a}function fn(e,t){let a=Yo(e,t.field);if(t.op==="~")return a!=null&&String(a).toLowerCase().includes(t.value.toLowerCase());if(t.op===":")return t.value==="null"?a==null:typeof a=="number"&&/^-?\d+(\.\d+)?$/.test(t.value)?a===Number(t.value):String(a).toLowerCase()===t.value.toLowerCase();let n=Number(t.value),r=Number(a);return!Number.isFinite(n)||!Number.isFinite(r)?!1:t.op===">="?r>=n:Ko(t.op,r,n)}function An(e,t,a){let n=typeof t.query=="string"?t.query:"";if(!n)return pe("Missing required param: query.",400,"parameter_missing");let r=Wo(n);if(!r)return pe(`Invalid search query: '${n}'.`,400,"parameter_invalid");let s=e.filter(u=>r.disjunction?r.clauses.some(l=>fn(u,l)):r.clauses.every(l=>fn(u,l))),{page:i,hasMore:o}=st(s,t);return{status:200,body:{object:"search_result",url:a,has_more:o,data:i,next_page:null,total_count:null}}}function Pn(e,t){if(e.price===t)return!0;let a=e.items;return(Array.isArray(a?.data)?a.data:Array.isArray(e.items)?e.items:[]).some(r=>r?.price===t||!!r?.price&&typeof r.price=="object"&&r.price.id===t)}function Sn(e){if("coupon"in e)return typeof e.coupon=="string"?e.coupon:"";let t=e.discounts;return Array.isArray(t)&&t[0]&&typeof t[0]=="object"?Qo(t[0]):void 0}function Qo(e){return typeof e.coupon=="string"?e.coupon:void 0}function ca(e,t,a,n={}){return{id:`di_twin_${e.id}`,object:"discount",coupon:e,customer:t||null,start:a,end:null,subscription:n.subscription??null,subscription_item:null,invoice:null,invoice_item:null,promotion_code:null,checkout_session:null}}function it(e){return Array.isArray(e)?e.filter(t=>t&&typeof t=="object"):[]}var Jo=new Set(["day","week","month","year"]);function Pt(e,t){let a=e.map(n=>{let r=n.price,s=typeof r=="string"?r:r&&typeof r=="object"?String(r.id??""):"";return s?t("price",s)?.recurring:void 0}).find(n=>n&&typeof n=="object"&&typeof n.interval=="string"&&Jo.has(n.interval));return a?{interval:a.interval,interval_count:Math.max(1,Math.trunc(Number(a.interval_count)||1)),resolved:!0}:{interval:"month",interval_count:1,resolved:!1}}function Le(e,t,a){let n=Math.max(1,Math.trunc(a)||1);if(t==="day")return e+n*24*3600;if(t==="week")return e+n*7*24*3600;let r=t==="year"?n*12:n,s=new Date(e*1e3),i=s.getUTCDate(),o=new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+r,1,s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds())),u=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth()+1,0)).getUTCDate();return o.setUTCDate(Math.min(i,u)),Math.floor(o.getTime()/1e3)}function pa(e,t){let a=typeof e=="string"?e:e&&typeof e=="object"?String(e.id??""):"",n=a?t("price",a):void 0,r=n?ou(n):null;return{price:n??(a||null),plan:r}}function xn(e,t,a,n){let r=e.map((s,i)=>{let o=s.quantity!==void 0?Math.max(1,Math.trunc(Number(s.quantity)||1)):1,{price:u,plan:l}=pa(s.price,n);return{id:`si_twin_${t}_${i+1}`,object:"subscription_item",price:u,plan:l,quantity:o,subscription:t,created:a,metadata:{},discounts:[],billing_thresholds:null,tax_rates:[]}});return{object:"list",data:r,has_more:!1,total_count:r.length,url:`/v1/subscription_items?subscription=${t}`}}function ve(e,t){if(!e)return 0;if(typeof e.unit_amount=="number")return e.unit_amount*t;let a=Number(e.unit_amount_decimal);return Number.isFinite(a)?Math.round(a*t):0}function oe(e,t){return t?typeof t.percent_off=="number"?Math.round(e*t.percent_off/100):typeof t.amount_off=="number"?Zo(e,t.amount_off):0:0}function Zo(e,t){return Math.min(e,Math.trunc(t))}function Ee(e,t){if(e.trial_period_days!==void 0){let a=Math.trunc(Number(e.trial_period_days)||0);if(a>0)return{start:t,end:t+a*24*3600}}if(e.trial_end!==void 0&&e.trial_end!=="now"){let a=Math.trunc(Number(e.trial_end)||0);if(a>t)return{start:t,end:a}}}var Xo=new Set(["all_time","daily","monthly","per_authorization","weekly","yearly"]);function ma(){return{allowed_categories:null,allowed_merchant_countries:null,blocked_categories:null,blocked_merchant_countries:null,spending_limits:[],spending_limits_currency:null}}function Be(e,t=0){switch(e){case"dictionary":return{error:pe("Invalid spending_controls: must be a dictionary.",400,"parameter_invalid_dictionary")};case"categories":return{error:pe("spending_controls[allowed_categories] cannot be set with spending_controls[blocked_categories].",400)};case"countries":return{error:pe("spending_controls[allowed_merchant_countries] cannot be set with spending_controls[blocked_merchant_countries].",400)};case"limit":return{error:pe(`Invalid spending_controls[spending_limits][${t}]: must be a dictionary.`,400,"parameter_invalid_dictionary")};case"amount":return{error:pe(`Invalid integer: spending_controls[spending_limits][${t}][amount] must be a positive integer.`,400,"parameter_invalid_integer")};case"interval":return{error:pe(`Invalid spending_controls[spending_limits][${t}][interval]: must be one of 'all_time', 'daily', 'monthly', 'per_authorization', 'weekly', or 'yearly'.`,400,"parameter_invalid_string_enum")}}}function _a(e,t,a){if(e===void 0)return{};if(!e||typeof e!="object"||Array.isArray(e))return Be("dictionary");let n={...a,...e},r=_=>Array.isArray(_)?_.map(String):void 0,s=r(n.allowed_categories),i=r(n.blocked_categories);if(s?.length&&i?.length)return Be("categories");let o=r(n.allowed_merchant_countries),u=r(n.blocked_merchant_countries);if(o?.length&&u?.length)return Be("countries");let l=[],p=Array.isArray(n.spending_limits)?n.spending_limits:[];for(let _=0;_<p.length;_++){let m=p[_];if(!m||typeof m!="object"||Array.isArray(m))return Be("limit",_);let{amount:y,interval:w,categories:v}=m;if(typeof y!="number"||!Number.isInteger(y)||y<=0)return Be("amount",_);if(typeof w!="string"||!Xo.has(w))return Be("interval",_);let P=r(v);l.push({amount:y,categories:P?.length?P:null,interval:w})}let c=_=>_===void 0?void 0:_.length?_:null,d={...ma(),...n,spending_limits:l,...l.length?{spending_limits_currency:typeof n.spending_limits_currency=="string"?n.spending_limits_currency:t}:{}};for(let[_,m]of[["allowed_categories",c(s)],["blocked_categories",c(i)],["allowed_merchant_countries",c(o)],["blocked_merchant_countries",c(u)]])m!==void 0&&(d[_]=m);return{controls:d}}function eu(e,t){if(e==="all_time")return 0;let a=new Date(t*1e3);if(e==="daily")return Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate())/1e3;if(e==="weekly"){let n=(a.getUTCDay()+6)%7;return Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()-n)/1e3}return e==="monthly"?Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)/1e3:e==="yearly"?Date.UTC(a.getUTCFullYear(),0,1)/1e3:0}function ya(e,t){if(!e||typeof e!="object")return null;let a=e,n=u=>Array.isArray(u)&&u.length?u.map(String):null,r=n(a.allowed_categories);if(r&&!r.includes(t.category))return`merchant category ${t.category} is not in allowed_categories`;if(n(a.blocked_categories)?.includes(t.category))return`merchant category ${t.category} is in blocked_categories`;let i=n(a.allowed_merchant_countries);if(i&&(!t.country||!i.includes(t.country)))return`merchant country ${t.country??"(none)"} is not in allowed_merchant_countries`;let o=n(a.blocked_merchant_countries);if(o&&t.country&&o.includes(t.country))return`merchant country ${t.country} is in blocked_merchant_countries`;for(let u of Array.isArray(a.spending_limits)?a.spending_limits:[]){if(!u||typeof u!="object")continue;let l=u,p=Number(l.amount)||0;if(p<=0)continue;let c=n(l.categories);if(c&&!c.includes(t.category))continue;let d=String(l.interval??"");if(d==="per_authorization"){if(t.amount>p)return`amount exceeds the per_authorization spending limit of ${p}`;continue}let _=eu(d,t.nowSec);if(t.priorApproved.filter(y=>y.created>=_&&(!c||c.includes(y.category))).reduce((y,w)=>y+w.amount,0)+t.amount>p)return`amount exceeds the ${d} spending limit of ${p}`}return null}function kn(){return{access_activity_log:null,billing_address:null,cancellation_policy:null,cancellation_policy_disclosure:null,cancellation_rebuttal:null,customer_communication:null,customer_email_address:null,customer_name:null,customer_purchase_ip:null,customer_signature:null,duplicate_charge_documentation:null,duplicate_charge_explanation:null,duplicate_charge_id:null,product_description:null,receipt:null,refund_policy:null,refund_policy_disclosure:null,refund_refusal_explanation:null,service_date:null,service_documentation:null,shipping_address:null,shipping_carrier:null,shipping_date:null,shipping_documentation:null,shipping_tracking_number:null,uncategorized_file:null,uncategorized_text:null,enhanced_evidence:{}}}var fa=(e,t)=>e[t]&&typeof e[t]=="object"?e[t]:{},tu={"4000056655665556":{brand:"visa",funding:"debit"},"5555555555554444":{brand:"mastercard",funding:"credit"},"2223003122003222":{brand:"mastercard",funding:"credit"},"5200828282828210":{brand:"mastercard",funding:"debit"},"5105105105105100":{brand:"mastercard",funding:"prepaid"},"378282246310005":{brand:"amex",funding:"credit"},"371449635398431":{brand:"amex",funding:"credit"},"6011111111111117":{brand:"discover",funding:"credit"},"6011000990139424":{brand:"discover",funding:"credit"},"6011981111111113":{brand:"discover",funding:"debit"},"3056930009020004":{brand:"diners",funding:"credit"},"36227206271667":{brand:"diners",funding:"credit"},"3566002020360505":{brand:"jcb",funding:"credit"},"6200000000000005":{brand:"unionpay",funding:"credit"},"6200000000000047":{brand:"unionpay",funding:"debit"},"6205500000000000004":{brand:"unionpay",funding:"credit"}};function au(e){let t=fa(e,"card"),a=typeof t.number=="string"?t.number.replace(/\D/g,""):typeof t.number=="number"?String(t.number).replace(/\D/g,""):"",n=tu[a]??{brand:"visa",funding:"credit"};return{card:{brand:n.brand,last4:a?a.slice(-4):"4242",exp_month:Number(t.exp_month)||12,exp_year:Number(t.exp_year)||2034,funding:n.funding,country:"US",fingerprint:Oo("sha256",a||"4242424242424242").slice(0,16),checks:{address_line1_check:null,address_postal_code_check:null,cvc_check:"pass"},networks:{available:[n.brand],preferred:null},three_d_secure_usage:{supported:!0},wallet:null}}}function nu(e){let t=fa(e,"sepa_debit"),a=typeof t.iban=="string"?t.iban.replace(/\s/g,""):"";return{sepa_debit:{bank_code:"37040044",branch_code:"",country:a?a.slice(0,2).toUpperCase():"DE",fingerprint:"twin_sepa_fp",last4:a?a.slice(-4):"3000",generated_from:{charge:null,setup_attempt:null},mandate:null}}}function ru(e){let t=fa(e,"us_bank_account"),a=typeof t.account_number=="string"?t.account_number.replace(/\D/g,""):"";return{us_bank_account:{account_holder_type:t.account_holder_type??"individual",account_type:t.account_type??"checking",bank_name:"STRIPE TEST BANK",financial_connections_account:null,fingerprint:"twin_ach_fp",last4:a?a.slice(-4):"6789",networks:{preferred:"ach",supported:["ach"]},routing_number:typeof t.routing_number=="string"?t.routing_number:"110000000",status_details:{}}}}function bn(e){return e==="link"?{link:{email:null,persistent_token:null}}:{cashapp:{buyer_id:null,cashtag:null}}}function su(e){return{[e]:{}}}var gn={card:au,sepa_debit:nu,us_bank_account:ru,link:(e,t)=>bn(t),cashapp:(e,t)=>bn(t)};function be(e,t){return gn[e]?gn[e](t,e):su(e)}var jn=new Set(["express","standard","custom"]),R="acct_twin_self";function St(){return{alternatives:[],current_deadline:null,currently_due:["business_profile.mcc","business_profile.url","external_account","tos_acceptance.date","tos_acceptance.ip"],disabled_reason:"requirements.past_due",errors:[],eventually_due:["business_profile.mcc","business_profile.url","external_account","tos_acceptance.date","tos_acceptance.ip"],past_due:[],pending_verification:[]}}function Cn(e){let t=e.capabilities,a={};if(t&&typeof t=="object")for(let n of Object.keys(t))a[n]="inactive";return a}function Se(e,t){let a=t??{},n=a.payouts&&typeof a.payouts=="object"?a.payouts:{},r=n.schedule&&typeof n.schedule=="object"?n.schedule:{},s=e&&typeof e=="object"?e:{},i=s.payouts&&typeof s.payouts=="object"?s.payouts:{},o=i.schedule&&typeof i.schedule=="object"?i.schedule:{},u=typeof o.interval=="string"?o.interval:typeof r.interval=="string"?r.interval:"daily",l={interval:u,delay_days:o.delay_days!==void 0?Math.trunc(Number(o.delay_days)||0):r.delay_days??2,weekly_anchor:u==="weekly"?o.weekly_anchor??r.weekly_anchor??"monday":null,monthly_anchor:u==="monthly"?o.monthly_anchor!==void 0?Math.trunc(Number(o.monthly_anchor)):r.monthly_anchor??1:null},c=Object.fromEntries(Object.entries({bacs_debit_payments:{display_name:null,service_user_number:null},branding:{icon:null,logo:null,primary_color:null,secondary_color:null},card_issuing:{tos_acceptance:{date:null,ip:null}},card_payments:{decline_on:{avs_failure:!1,cvc_failure:!1},statement_descriptor_prefix:null,statement_descriptor_prefix_kanji:null,statement_descriptor_prefix_kana:null},dashboard:{display_name:null,timezone:"Etc/UTC"},invoices:{default_account_tax_ids:null,hosted_payment_method_save:null},payments:{statement_descriptor:null,statement_descriptor_kana:null,statement_descriptor_kanji:null},sepa_debit_payments:{}}).map(([d,_])=>[d,a[d]&&typeof a[d]=="object"?{..._,...a[d]}:_]));return{...a,...c,payouts:{...n,schedule:l,statement_descriptor:i.statement_descriptor??n.statement_descriptor??null,debit_negative_balances:i.debit_negative_balances??n.debit_negative_balances??!0}}}function En(e,t,a,n){let r=e.quantity===void 0?1:Math.max(0,Math.trunc(Number(e.quantity)||0)),s,i=a,o=null,u,l=null,p=typeof e.price=="string"?e.price:void 0,c=e.price_data&&typeof e.price_data=="object"?e.price_data:void 0;if(p){let m=n("price",p);if(!m)u=p;else{s=m,i=typeof m.currency=="string"?m.currency:i,o=m;let y=typeof m.product=="string"?n("product",m.product):void 0;l=typeof y?.name=="string"?y.name:null}}else if(c){s={unit_amount:c.unit_amount_decimal!==void 0?void 0:Number(c.unit_amount)||0,unit_amount_decimal:c.unit_amount_decimal},i=typeof c.currency=="string"?c.currency:i,o=null;let m=c.product_data,y=typeof c.product=="string"?n("product",c.product):void 0;l=typeof m?.name=="string"?m.name:typeof y?.name=="string"?y.name:null}let d=ve(s,r);return{item:{object:"item",id:`li_twin_${t+1}`,amount_discount:0,amount_subtotal:d,amount_tax:0,amount_total:d,currency:i,description:l,price:o,quantity:r},priceMissing:u}}function In(e){let t=e.line_items;return Array.isArray(t)?t.filter(a=>a&&typeof a=="object"):[]}function iu(e){return{object:"list",data:[],has_more:!1,total_count:0,url:`/v1/charges/${e}/refunds`}}function xt(e,t,a,n){return{status:"succeeded",paid:!0,captured:a,refunded:!1,disputed:!1,amount_captured:a?t:0,amount_refunded:0,metadata:{},refunds:iu(e),...a?{}:{capture_before:g(n)+168*3600},billing_details:{address:null,email:null,name:null,phone:null},livemode:!1}}function ou(e){let t=e.recurring;return{id:e.id,object:"plan",active:e.active??!0,amount:e.unit_amount??null,amount_decimal:e.unit_amount_decimal??(e.unit_amount==null?null:String(e.unit_amount)),billing_scheme:e.billing_scheme??"per_unit",created:e.created,currency:e.currency,interval:t?.interval??null,interval_count:t?.interval_count??1,livemode:e.livemode??!1,metadata:e.metadata??{},nickname:e.nickname??null,product:e.product??null,tiers_mode:e.tiers_mode??null,meter:t?.meter??null,trial_period_days:t?.trial_period_days??null,transform_usage:e.transform_quantity??null,usage_type:t?.usage_type??"licensed"}}function Tn(e,t){let a=t.storedType==="_balance_notice"?t.body.balance:t.storedType==="issuing_authorization"?e.expand("issuing.authorization",t.body):t.storedType==="issuing_card"?e.expand("issuing.card",t.body):e.expand(String(t.body.object??t.storedType),t.body);return{object:at(a,Rn(t))}}function Nn(e,t,a){let n=t.body.id,r=typeof n=="string"?e.rowsRaw(t.storedType,{withDeleted:!0}).find(i=>i.id===n)?._account:void 0;return{$account:t.request?.headers.get("stripe-account")??(t.storedType==="account"&&typeof n=="string"&&n!==R?n:void 0)??(t.storedType==="_balance_notice"&&typeof t.body.account=="string"?t.body.account:void 0)??(typeof r=="string"?r:void 0),$version:Rn(t)}}var Rn=e=>{let t=e.request?.headers.get("stripe-version");return t&&At(t)?t:wt};import{hmac as lu}from"../../engine/v3/volter_world-core.mjs";var Gn={generatedBy:"scripts/derive-pack.ts",spec:"openapi.json.gz",types:["account.application.authorized","account.application.deauthorized","account.external_account.created","account.external_account.deleted","account.external_account.updated","account.updated","application_fee.created","application_fee.refund.updated","application_fee.refunded","apps.install.created","apps.install.deleted","apps.install.updated","balance.available","balance_settings.updated","billing.alert.triggered","billing.credit_balance_transaction.created","billing.credit_grant.created","billing.credit_grant.updated","billing.meter.created","billing.meter.deactivated","billing.meter.reactivated","billing.meter.updated","billing_portal.configuration.created","billing_portal.configuration.updated","billing_portal.session.created","capability.updated","cash_balance.funds_available","charge.captured","charge.dispute.closed","charge.dispute.created","charge.dispute.funds_reinstated","charge.dispute.funds_withdrawn","charge.dispute.updated","charge.expired","charge.failed","charge.pending","charge.refund.updated","charge.refunded","charge.succeeded","charge.updated","checkout.session.async_payment_failed","checkout.session.async_payment_succeeded","checkout.session.completed","checkout.session.expired","climate.order.canceled","climate.order.created","climate.order.delayed","climate.order.delivered","climate.order.product_substituted","climate.product.created","climate.product.pricing_updated","coupon.created","coupon.deleted","coupon.updated","credit_note.created","credit_note.updated","credit_note.voided","customer.created","customer.deleted","customer.discount.created","customer.discount.deleted","customer.discount.updated","customer.source.created","customer.source.deleted","customer.source.expiring","customer.source.updated","customer.subscription.created","customer.subscription.deleted","customer.subscription.paused","customer.subscription.pending_update_applied","customer.subscription.pending_update_expired","customer.subscription.resumed","customer.subscription.trial_will_end","customer.subscription.updated","customer.tax_id.created","customer.tax_id.deleted","customer.tax_id.updated","customer.updated","customer_cash_balance_transaction.created","entitlements.active_entitlement_summary.updated","file.created","financial_connections.account.account_numbers_updated","financial_connections.account.created","financial_connections.account.deactivated","financial_connections.account.disconnected","financial_connections.account.expected_deactivation_date_updated","financial_connections.account.reactivated","financial_connections.account.refreshed_balance","financial_connections.account.refreshed_ownership","financial_connections.account.refreshed_transactions","financial_connections.account.supported_payment_method_types_updated","financial_connections.account.upcoming_account_number_expiry","financial_connections.account.upcoming_deactivation","financial_connections.authorization.expected_deactivation_date_updated","financial_connections.authorization.upcoming_deactivation","identity.verification_session.canceled","identity.verification_session.created","identity.verification_session.processing","identity.verification_session.redacted","identity.verification_session.requires_input","identity.verification_session.verified","invoice.created","invoice.deleted","invoice.finalization_failed","invoice.finalized","invoice.marked_uncollectible","invoice.overdue","invoice.overpaid","invoice.paid","invoice.payment_action_required","invoice.payment_attempt_required","invoice.payment_failed","invoice.payment_succeeded","invoice.sent","invoice.upcoming","invoice.updated","invoice.voided","invoice.will_be_due","invoice_payment.paid","invoiceitem.created","invoiceitem.deleted","issuing_authorization.created","issuing_authorization.request","issuing_authorization.updated","issuing_card.created","issuing_card.updated","issuing_cardholder.created","issuing_cardholder.updated","issuing_dispute.closed","issuing_dispute.created","issuing_dispute.funds_reinstated","issuing_dispute.funds_rescinded","issuing_dispute.submitted","issuing_dispute.updated","issuing_personalization_design.activated","issuing_personalization_design.deactivated","issuing_personalization_design.rejected","issuing_personalization_design.updated","issuing_token.created","issuing_token.updated","issuing_transaction.created","issuing_transaction.purchase_details_receipt_updated","issuing_transaction.updated","mandate.updated","payment_intent.amount_capturable_updated","payment_intent.canceled","payment_intent.created","payment_intent.partially_funded","payment_intent.payment_failed","payment_intent.processing","payment_intent.requires_action","payment_intent.succeeded","payment_link.created","payment_link.updated","payment_method.attached","payment_method.automatically_updated","payment_method.detached","payment_method.updated","payout.canceled","payout.created","payout.failed","payout.paid","payout.reconciliation_completed","payout.updated","person.created","person.deleted","person.updated","plan.created","plan.deleted","plan.updated","price.created","price.deleted","price.updated","product.created","product.deleted","product.updated","promotion_code.created","promotion_code.updated","quote.accepted","quote.canceled","quote.created","quote.finalized","radar.early_fraud_warning.created","radar.early_fraud_warning.updated","refund.created","refund.failed","refund.updated","reporting.report_run.failed","reporting.report_run.succeeded","reporting.report_type.updated","reserve.hold.created","reserve.hold.updated","reserve.plan.created","reserve.plan.disabled","reserve.plan.expired","reserve.plan.updated","reserve.release.created","review.closed","review.opened","setup_intent.canceled","setup_intent.created","setup_intent.requires_action","setup_intent.setup_failed","setup_intent.succeeded","sigma.scheduled_query_run.created","source.canceled","source.chargeable","source.failed","source.mandate_notification","source.refund_attributes_required","source.transaction.created","source.transaction.updated","subscription_schedule.aborted","subscription_schedule.canceled","subscription_schedule.completed","subscription_schedule.created","subscription_schedule.expiring","subscription_schedule.released","subscription_schedule.updated","tax.settings.updated","tax_rate.created","tax_rate.updated","terminal.reader.action_failed","terminal.reader.action_succeeded","terminal.reader.action_updated","test_helpers.test_clock.advancing","test_helpers.test_clock.created","test_helpers.test_clock.deleted","test_helpers.test_clock.internal_failure","test_helpers.test_clock.ready","topup.canceled","topup.created","topup.failed","topup.reversed","topup.succeeded","transfer.created","transfer.reversed","transfer.updated","treasury.credit_reversal.created","treasury.credit_reversal.posted","treasury.debit_reversal.completed","treasury.debit_reversal.created","treasury.debit_reversal.initial_credit_granted","treasury.financial_account.closed","treasury.financial_account.created","treasury.financial_account.features_status_updated","treasury.inbound_transfer.canceled","treasury.inbound_transfer.created","treasury.inbound_transfer.failed","treasury.inbound_transfer.succeeded","treasury.outbound_payment.canceled","treasury.outbound_payment.created","treasury.outbound_payment.expected_arrival_date_updated","treasury.outbound_payment.failed","treasury.outbound_payment.posted","treasury.outbound_payment.returned","treasury.outbound_payment.tracking_details_updated","treasury.outbound_transfer.canceled","treasury.outbound_transfer.created","treasury.outbound_transfer.expected_arrival_date_updated","treasury.outbound_transfer.failed","treasury.outbound_transfer.posted","treasury.outbound_transfer.returned","treasury.outbound_transfer.tracking_details_updated","treasury.received_credit.created","treasury.received_credit.failed","treasury.received_credit.succeeded","treasury.received_debit.created"]};var zn=Gn.types,Dn={"payment_intent.confirm":"payment_intent.succeeded","payment_method.attach":"payment_method.attached","payment_method.detach":"payment_method.detached","setup_intent.confirm":"setup_intent.succeeded","subscription.create":"customer.subscription.created","subscription.update":"customer.subscription.updated","subscription.cancel":"customer.subscription.deleted","invoice.finalize":"invoice.finalized","invoice.pay":"invoice.paid","invoice.void":"invoice.voided","dispute.create":"charge.dispute.created"};function Mn(e,t){return Array.isArray(e)?e.some(a=>{let n=String(a);return n==="*"||n.endsWith(".*")&&t.startsWith(n.slice(0,-1))||n===t}):!1}var On=(e,t,a)=>`t=${a},v1=${lu(t,`${a}.${e}`)}`,Bn=2e3;function $n(e){if(e.status<200||e.status>=300)return{kind:"error",message:`Webhook endpoint responded with HTTP status ${e.status}.`};let t;try{t=JSON.parse(e.body)}catch{return{kind:"error",message:"Webhook response body was not valid JSON."}}let a=t?.approved;if(typeof a!="boolean")return{kind:"error",message:"Webhook response is missing the required `approved` parameter."};if(!a)return{kind:"declined"};let n=t.amount;return{kind:"approved",...typeof n=="number"&&Number.isInteger(n)&&n>0?{amount:n}:{}}}var Ln=e=>{let t=/^(sk|rk|pk)_(test|live)_/.exec(e)?.[0]??"",a=e.slice(t.length);return a.length>4?`${t}${"*".repeat(a.length-4)}${a.slice(-4)}`:`${t}${"*".repeat(a.length)}`};function ba(e){let t=e.headers.get("authorization")??"",a=/^bearer\s+(\S+)/i.exec(t)?.[1];if(a)return a;let n=/^basic\s+(\S+)/i.exec(t)?.[1];if(n)try{return atob(n).split(":")[0]??""}catch{return""}return""}var D="subscription",M="invoice",Un=3600,Hn=["trialing","active","past_due"],ga=e=>e.items?.data??[];function kt(e){return e.quantity===void 0||e.quantity===null?1:Math.max(0,Math.trunc(Number(e.quantity)||0))}function du(e){return(e??[]).filter(t=>!(t&&typeof t=="object"&&t.coupon?.duration==="once"))}var Fn=e=>new Set((e??[]).map(t=>{let a=t&&typeof t=="object"?t.coupon:void 0;return typeof a=="string"?a:a&&typeof a=="object"?String(a.id??""):""}).filter(Boolean));function jt(e,t){let a=Fn(t.discounts);return e.filter(n=>!(du([n]).length===0&&[...Fn([n])].some(r=>a.has(r))))}function Vn(e,t,a,n,r,s){return a.map((i,o)=>{let u=i.price&&typeof i.price=="object"?i.price:null,l=kt(i);return{id:`il_twin_${e}_${n+o+1}`,object:"line_item",type:"subscription",amount:ve(u??void 0,l),currency:s,quantity:l,proration:!1,price:u,subscription:t.id,subscription_item:null,invoice_item:null,period:{start:r,end:r},description:typeof i.description=="string"?i.description:null}})}var cu=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];function Wn(e,t){let a=Math.ceil(e/86400)*86400,n=r=>{let s=new Date(r*1e3);return t.interval==="weekly"?cu[s.getUTCDay()]===String(t.weekly_anchor??"monday"):t.interval==="monthly"?s.getUTCDate()===Math.min(Number(t.monthly_anchor??1),new Date(Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,0)).getUTCDate()):!0};return Array.from({length:62},(r,s)=>a+s*86400).find(n)??a}var Fe={pm_card_bypassPending:{brand:"visa",number:"4000000000000077"},pm_card_bypassPendingInternational:{brand:"visa",number:"4000003720000278"}};var Ie={pm_card_createDispute:{brand:"visa",number:"4000000000000259",outcome:"dispute"},pm_card_createDisputeProductNotReceived:{brand:"visa",number:"4000000000002685",outcome:"dispute_not_received"},pm_card_createDisputeInquiry:{brand:"visa",number:"4000000000001976",outcome:"inquiry"},pm_card_riskLevelElevated:{brand:"visa",number:"4000000000009235",outcome:"review"},...Object.fromEntries(Object.entries(Fe).map(([e,t])=>[e,{...t,outcome:"available"}]))},ha=Object.fromEntries(Object.values(Ie).map(e=>[e.number,e.outcome]));var Te="apps.secret";var Y="invoice",Yn=e=>e.status==="draft"&&(Number(e.amount_due)||0)>0,ot=e=>e.status_transitions??{},Ct=e=>e.replace(/[^a-z0-9]/gi,"").slice(-8).toUpperCase()||"TWIN";function Kn(e){if(typeof e.payment_intent!="string")return;let t=e.status==="paid",a=e.status_transitions??{};return{id:`inpay_${String(e.id).replace(/^in_/,"")}`,object:"invoice_payment",invoice:e.id,is_default:!0,livemode:!1,amount_requested:Number(e.amount_due??0),amount_paid:t?Number(e.amount_paid??e.amount_due??0):null,currency:e.currency,created:e.created,payment:{type:"payment_intent",payment_intent:e.payment_intent},status:t?"paid":e.status==="void"?"canceled":"open",status_transitions:{paid_at:t?a.paid_at??null:null,canceled_at:e.status==="void"?a.voided_at??null:null}}}var Qn=e=>e.lines?.data??[],Ue=e=>e.reduce((t,a)=>t+(Number(a.amount)||0),0);function Jn(e,t,a,n,r,s){let i=[],o=(p,c)=>{let d=Ue(c);return Number(p.amount)-(d>0?oe(d,s)*Number(p.amount)/d:0)},u=p=>typeof p.price=="object"?p.price.id:p.price,l=(p,c,d)=>{let _=p.period,m=Number(_.start??n),y=Number(_.end??r),w=Math.max(0,Math.min(1,(y-a)/Math.max(1,y-m))),v=Math.round(o(p,c)*w)*(d?-1:1);v&&i.push({...p,id:`${p.id}_${d?"unused":"remaining"}`,amount:v,proration:!0,discountable:!1,period:{start:a,end:y},description:`${d?"Unused":"Remaining"} time on ${String(p.price?.nickname??u(p))}`})};for(let p of e){let c=t.find(d=>d.subscription_item===p.subscription_item);c&&u(c)===u(p)&&c.quantity===p.quantity||l(p,e,!0)}for(let p of t){let c=e.find(d=>d.subscription_item&&d.subscription_item===p.subscription_item);c&&u(c)===u(p)&&c.quantity===p.quantity||l(p,t,!1)}return i}var qa=e=>({status:"draft",livemode:!1,currency:"usd",collection_method:"charge_automatically",auto_advance:!1,attempt_count:0,attempted:!1,amount_due:0,amount_paid:0,amount_remaining:0,amount_overpaid:0,amount_paid_off_stripe:0,amount_shipping:0,subtotal:0,total:0,starting_balance:0,post_payment_credit_notes_amount:0,pre_payment_credit_notes_amount:0,period_start:e,period_end:e,default_tax_rates:[],discounts:[],lines:{object:"list",data:[],has_more:!1,total_count:0},automatic_tax:{enabled:!1,liability:null,status:null},status_transitions:{finalized_at:null,marked_uncollectible_at:null,paid_at:null,voided_at:null},issuer:{type:"self"},payment_settings:{default_mandate:null,payment_method_options:null,payment_method_types:null},payment_intent:null});var L="checkout.session";function Zn(e){let t=Array.isArray(e.payment_method_types)?e.payment_method_types:e.allowed_payment_method_types;return Array.isArray(t)&&t.length?t.map(String):["card"]}function Et(e){if(e==="")return{};if(!(!e||typeof e!="object"||Array.isArray(e)))return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==""))}function He(e,t){return t?!t.recurring:!!e.price&&typeof e.price=="object"&&!e.price.recurring}function Xn(e,t){let a=Number(e),n=t&&typeof t=="object"?t:{gte:t,lte:t};return(n.gt===void 0||a>Number(n.gt))&&(n.gte===void 0||a>=Number(n.gte))&&(n.lt===void 0||a<Number(n.lt))&&(n.lte===void 0||a<=Number(n.lte))}var er=new Map(ie.resources.map(e=>[e.name,new Set(e.fields.map(t=>t.name))])),Ve=(e,t)=>({object:"list",data:t,has_more:!1,total_count:t.length,url:`/v1/accounts/${e}/external_accounts`});function tr(e,t){let a=e.coupon&&typeof e.coupon=="object"?String(e.coupon.id):typeof e.coupon=="string"?e.coupon:null;return{id:e.id??`di_${a??"twin"}`,object:"discount",deleted:!0,checkout_session:e.checkout_session??null,customer:e.customer??null,invoice:e.invoice??null,invoice_item:e.invoice_item??null,promotion_code:e.promotion_code??null,subscription:e.subscription??null,subscription_item:e.subscription_item??null,source:e.source??{type:"coupon",coupon:a},start:e.start??t}}function va(e,t){let a=e.payment_method_details;return a&&a.type!=="card"?{}:{destination_details:{type:"card",card:{reference:null,reference_status:null,reference_type:null,type:t}}}}var ae="payment_method",wa={address:null,email:null,name:null,phone:null},Aa={...Ie,pm_card_mastercard:{brand:"mastercard",number:"5555555555554444"},pm_card_amex:{brand:"amex",number:"378282246310005"},pm_card_discover:{brand:"discover",number:"6011111111111117"}};function ar(e){let t=e.replace(/^tok_/,"pm_card_");if(!t.startsWith("pm_card_"))return;let a=Aa[t]??{brand:"visa",number:"4242424242424242"};return{...be("card",{card:{number:a.number}}).card,brand:a.brand}}var I="payment_intent",It="_payment_intent_types_given";function Tt(e){return{...typeof e.transfer_group=="string"?{transfer_group:e.transfer_group}:{},...typeof e.description=="string"?{description:e.description}:{},...e.metadata&&typeof e.metadata=="object"?{metadata:{...e.metadata}}:{}}}var J="balance_transaction",Nt="_availableUnsent",nr=new Set(Object.values(Fe).map(e=>e.number)),rr=e=>e>0?Math.round(e*.029)+30:0,Ne=(e,t)=>(typeof e._account=="string"?e._account:void 0)===t;var ne="subscription";function sr(e,t){if(e===""||e===null||typeof e=="object"&&e!==null&&Object.keys(e).length===0)return t.pause_collection=null,"customer.subscription.resumed";if(!e||typeof e!="object")return;let n=e;return t.pause_collection={behavior:typeof n.behavior=="string"?n.behavior:"void",resumes_at:n.resumes_at!==void 0?Number(n.resumes_at):null},"customer.subscription.paused"}var ir=730*86400;function or(e,t,a,n){Object.assign(t,{status:"trialing",trial_end:a,trial_start:e.trial_start??n,billing_cycle_anchor:a,current_period_end:a,...e.status!=="trialing"?{current_period_start:n}:{}})}var xe="radar.value_list",Rt="radar.value_list_item";var Gt="issuing.cardholder",ur=e=>typeof e.cardholder=="string"?e.cardholder:String(e.cardholder?.id??""),de="issuing.card",K="issuing.authorization",zt="issuing.transaction";function ut(e){return{amount:e.amount,amount_details:null,approved:e.approved,authorization_code:e.approved?`S${String(1e5+e.createdSec%9e5)}`:null,created:e.createdSec,currency:e.currency,merchant_amount:e.merchantAmount,merchant_currency:e.merchantCurrency,network_risk_score:null,reason:e.reason,reason_message:e.reasonMessage,requested_at:e.createdSec}}function Dt(e){let t={category:"general",category_code:"5399",city:"San Francisco",country:"US",name:"Twin Test Merchant",network_id:"1234567890",postal_code:"94103",state:"CA",tax_id:null,terminal_id:null,url:null};return e&&typeof e=="object"&&!Array.isArray(e)&&Object.assign(t,e),t}var lr=e=>e.card&&typeof e.card=="object"?e.card.id:e.card,dr=2;function Pa(e){let t=`4${[...e].map(n=>String(n.charCodeAt(0)%10)).join("").padEnd(14,"0").slice(0,14)}`,a=0;for(let n=0;n<t.length;n++){let r=Number(t[t.length-1-n]);n%2===0&&(r*=2,r>9&&(r-=9)),a+=r}return`${t}${(10-a%10)%10}`}var cr=e=>[...e].map(t=>String(t.charCodeAt(0)%10)).join("").padEnd(3,"0").slice(0,3);var Mt=[["7623","A/C, Refrigeration Repair"],["8931","Accounting/Bookkeeping Services"],["7311","Advertising Services"],["0763","Agricultural Cooperative"],["4582","Airports, Flying Fields"],["4119","Ambulance Services"],["5937","Antique Reproductions"],["5932","Antique Shops"],["7998","Aquariums"],["8911","Architectural/Surveying Services"],["5971","Art Dealers and Galleries"],["5970","Artists Supply and Craft Shops"],["7531","Auto Body Repair Shops"],["7535","Auto Paint Shops"],["7538","Auto Service Shops"],["5531","Auto and Home Supply Stores"],["5542","Automated Fuel Dispensers"],["8675","Automobile Associations"],["5533","Automotive Parts and Accessories Stores"],["5532","Automotive Tire Stores"],["5462","Bakeries"],["7929","Bands, Orchestras"],["7230","Barber and Beauty Shops"],["5940","Bicycle Shops"],["7932","Billiard/Pool Establishments"],["5551","Boat Dealers"],["4457","Boat Rentals and Leases"],["5942","Book Stores"],["5192","Books, Periodicals, and Newspapers"],["7933","Bowling Alleys"],["4131","Bus Lines"],["8244","Business/Secretarial Schools"],["7278","Buying/Shopping Services"],["4899","Cable, Satellite, and Other Pay Television and Radio"],["5946","Camera and Photographic Supply Stores"],["5441","Candy, Nut, and Confectionery Stores"],["7512","Car Rental Agencies"],["7542","Car Washes"],["5511","Car and Truck Dealers (New & Used) Sales, Service, Repairs Parts and Leasing"],["5521","Car and Truck Dealers (Used Only) Sales, Service, Repairs Parts and Leasing"],["1750","Carpentry Services"],["7217","Carpet/Upholstery Cleaning"],["5811","Caterers"],["5169","Chemicals and Allied Products (Not Elsewhere Classified)"],["8351","Child Care Services"],["5641","Childrens and Infants Wear Stores"],["8049","Chiropodists, Podiatrists"],["8041","Chiropractors"],["8641","Civic, Social, Fraternal Associations"],["7349","Cleaning and Maintenance"],["7296","Clothing Rental"],["8220","Colleges, Universities"],["5046","Commercial Equipment (Not Elsewhere Classified)"],["5139","Commercial Footwear"],["7333","Commercial Photography, Art and Graphics"],["4111","Commuter Transport, Ferries"],["4816","Computer Network Services"],["7372","Computer Programming"],["7379","Computer Repair"],["5734","Computer Software Stores"],["5045","Computers, Peripherals, and Software"],["1771","Concrete Work Services"],["5039","Construction Materials (Not Elsewhere Classified)"],["7392","Consulting, Public Relations"],["8241","Correspondence Schools"],["5977","Cosmetic Stores"],["7277","Counseling Services"],["7997","Country Clubs"],["4215","Courier Services"],["7321","Credit Reporting Agencies"],["5451","Dairy Products Stores"],["7911","Dance Hall, Studios, Schools"],["8021","Dentists, Orthodontists"],["5311","Department Stores"],["7393","Detective Agencies"],["5815","Digital Goods Media \u2013 Books, Movies, Music"],["5817","Digital Goods \u2013 Applications (Excludes Games)"],["5816","Digital Goods \u2013 Games"],["5818","Digital Goods \u2013 Large Digital Goods Merchant"],["5964","Direct Marketing - Catalog Merchant"],["5965","Direct Marketing - Combination Catalog and Retail Merchant"],["5960","Direct Marketing - Insurance Services"],["5969","Direct Marketing - Other"],["5968","Direct Marketing - Subscription"],["5310","Discount Stores"],["8011","Doctors"],["5714","Drapery, Window Covering, and Upholstery Stores"],["5813","Drinking Places"],["7216","Dry Cleaners"],["5099","Durable Goods (Not Elsewhere Classified)"],["5309","Duty Free Stores"],["5812","Eating Places, Restaurants"],["8299","Educational Services"],["5997","Electric Razor Stores"],["5552","Electric Vehicle Charging"],["5065","Electrical Parts and Equipment"],["1731","Electrical Services"],["7622","Electronics Repair Shops"],["5732","Electronics Stores"],["8211","Elementary, Secondary Schools"],["9702","Emergency Services (GCAS) (Visa use only)"],["7361","Employment/Temp Agencies"],["7394","Equipment Rental"],["7342","Exterminating Services"],["5651","Family Clothing Stores"],["5814","Fast Food Restaurants"],["5718","Fireplace, Fireplace Screens, and Accessories Stores"],["5713","Floor Covering Stores"],["5992","Florists"],["5193","Florists Supplies, Nursery Stock, and Flowers"],["5422","Freezer and Locker Meat Provisioners"],["5983","Fuel Dealers (Non Automotive)"],["7261","Funeral Services, Crematories"],["7641","Furniture Repair, Refinishing"],["5712","Furniture, Home Furnishings, and Equipment Stores, Except Appliances"],["5681","Furriers and Fur Shops"],["1520","General Services"],["5947","Gift, Card, Novelty, and Souvenir Shops"],["5231","Glass, Paint, and Wallpaper Stores"],["5950","Glassware, Crystal Stores"],["7992","Golf Courses - Public"],["9406","Government-Owned Lotteries (Non-US region)"],["5411","Grocery Stores, Supermarkets"],["5251","Hardware Stores"],["5072","Hardware, Equipment, and Supplies"],["7298","Health and Beauty Spas"],["5975","Hearing Aids Sales and Supplies"],["1711","Heating, Plumbing, A/C"],["5945","Hobby, Toy, and Game Shops"],["5200","Home Supply Warehouse Stores"],["8062","Hospitals"],["7011","Hotels, Motels, and Resorts"],["5722","Household Appliance Stores"],["5085","Industrial Supplies (Not Elsewhere Classified)"],["7375","Information Retrieval Services"],["9950","Intra-Company Purchases"],["5944","Jewelry Stores, Watches, Clocks, and Silverware Stores"],["0780","Landscaping Services"],["7211","Laundries"],["7210","Laundry, Cleaning Services"],["8111","Legal Services, Attorneys"],["5948","Luggage and Leather Goods Stores"],["5211","Lumber, Building Materials Stores"],["4468","Marinas, Service and Supplies"],["1740","Masonry, Stonework, and Plaster"],["7297","Massage Parlors"],["8099","Medical Services"],["8071","Medical and Dental Labs"],["5047","Medical, Dental, Ophthalmic, and Hospital Equipment and Supplies"],["8699","Membership Organizations"],["5611","Mens and Boys Clothing and Accessories Stores"],["5691","Mens, Womens Clothing Stores"],["5051","Metal Service Centers"],["5699","Miscellaneous Apparel and Accessory Shops"],["5599","Miscellaneous Auto Dealers"],["7399","Miscellaneous Business Services"],["5499","Miscellaneous Food Stores - Convenience Stores and Specialty Markets"],["5399","Miscellaneous General Merchandise"],["7299","Miscellaneous General Services"],["5719","Miscellaneous Home Furnishing Specialty Stores"],["2741","Miscellaneous Publishing and Printing"],["7999","Miscellaneous Recreation Services"],["7699","Miscellaneous Repair Shops"],["5999","Miscellaneous Specialty Retail"],["5271","Mobile Home Dealers"],["7832","Motion Picture Theaters"],["4214","Motor Freight Carriers and Trucking - Local and Long Distance, Moving and Storage Companies, and Local Delivery Services"],["5592","Motor Homes Dealers"],["5013","Motor Vehicle Supplies and New Parts"],["5571","Motorcycle Shops and Dealers"],["5561","Motorcycle Shops, Dealers"],["5733","Music Stores-Musical Instruments, Pianos, and Sheet Music"],["5994","News Dealers and Newsstands"],["5199","Nondurable Goods (Not Elsewhere Classified)"],["5261","Nurseries, Lawn and Garden Supply Stores"],["8050","Nursing/Personal Care"],["5021","Office and Commercial Furniture"],["8043","Opticians, Eyeglasses"],["8042","Optometrists, Ophthalmologist"],["5976","Orthopedic Goods - Prosthetic Devices"],["8031","Osteopaths"],["5921","Package Stores-Beer, Wine, and Liquor"],["5198","Paints, Varnishes, and Supplies"],["7523","Parking Lots, Garages"],["4112","Passenger Railways"],["5933","Pawn Shops"],["5995","Pet Shops, Pet Food, and Supplies"],["5172","Petroleum and Petroleum Products"],["7395","Photo Developing"],["7221","Photographic Studios"],["5044","Photographic, Photocopy, Microfilm Equipment, and Supplies"],["7829","Picture/Video Production"],["5131","Piece Goods, Notions, and Other Dry Goods"],["5074","Plumbing, Heating Equipment, and Supplies"],["5094","Precious Stones and Metals, Watches and Jewelry"],["8999","Professional Services"],["4225","Public Warehousing and Storage - Farm Products, Refrigerated Goods, Household Goods, and Storage"],["7338","Quick Copy, Repro, and Blueprint"],["4011","Railroads"],["6513","Real Estate Agents and Managers - Rentals"],["5735","Record Stores"],["7519","Recreational Vehicle Rentals"],["5973","Religious Goods Stores"],["1761","Roofing/Siding, Sheet Metal"],["7339","Secretarial Support Services"],["5541","Service Stations"],["5949","Sewing, Needlework, Fabric, and Piece Goods Stores"],["7251","Shoe Repair/Hat Cleaning"],["5661","Shoe Stores"],["7629","Small Appliance Repair"],["5598","Snowmobile Dealers"],["1799","Special Trade Services"],["2842","Specialty Cleaning"],["5941","Sporting Goods Stores"],["7032","Sporting/Recreation Camps"],["7941","Sports Clubs/Fields"],["5655","Sports and Riding Apparel Stores"],["5972","Stamp and Coin Stores"],["5943","Stationery Stores, Office, and School Supply Stores"],["5111","Stationery, Office Supplies, Printing and Writing Paper"],["5996","Swimming Pools Sales"],["4723","TUI Travel - Germany"],["5697","Tailors, Alterations"],["7276","Tax Preparation Services"],["4121","Taxicabs/Limousines"],["4812","Telecommunication Equipment and Telephone Sales"],["4821","Telegraph Services"],["5998","Tent and Awning Shops"],["8734","Testing Laboratories"],["7922","Theatrical Ticket Agencies"],["7534","Tire Retreading and Repair"],["4784","Tolls/Bridge Fees"],["7991","Tourist Attractions and Exhibits"],["7549","Towing Services"],["7033","Trailer Parks, Campgrounds"],["4789","Transportation Services (Not Elsewhere Classified)"],["4722","Travel Agencies, Tour Operators"],["7513","Truck/Utility Trailer Rentals"],["2791","Typesetting, Plate Making, and Related Services"],["5978","Typewriter Stores"],["5137","Uniforms, Commercial Clothing"],["5931","Used Merchandise and Secondhand Stores"],["4900","Utilities"],["5331","Variety Stores"],["0742","Veterinary Services"],["7993","Video Amusement Game Supplies"],["7994","Video Game Arcades"],["7841","Video Tape Rental Stores"],["8249","Vocational/Trade Schools"],["7631","Watch/Jewelry Repair"],["7692","Welding Repair"],["5300","Wholesale Clubs"],["5698","Wig and Toupee Stores"],["5631","Womens Accessory and Specialty Shops"],["5621","Womens Ready-To-Wear Stores"],["5935","Wrecking and Salvage Yards"]];var Sa=new Set(Mt.map(([e])=>e)),F=(e,t)=>(e[t]??"").trim()!=="",pr=(e,t)=>/^\d{4}-\d{2}-\d{2}$/.test(e.dob??"")&&Number((e.dob??"").split("-")[t])>0,pu=[["business_profile.mcc",e=>Sa.has((e.mcc??"").trim()),["company","individual"]],["business_profile.url",e=>F(e,"url"),["company","individual"]],["settings.payments.statement_descriptor",e=>F(e,"statement_descriptor"),["company","individual"]],["company.name",e=>F(e,"company_name"),["company"]],["company.tax_id",e=>F(e,"company_tax_id"),["company"]],["company.phone",e=>F(e,"company_phone"),["company"]],["company.address.line1",e=>F(e,"company_line1"),["company"]],["company.address.city",e=>F(e,"company_city"),["company"]],["company.address.state",e=>F(e,"company_state"),["company"]],["company.address.postal_code",e=>F(e,"company_postal_code"),["company"]],["company.owners_provided",e=>e.owners_provided==="provided",["company"]],["owners.first_name",e=>F(e,"owner_first_name"),["company"]],["owners.last_name",e=>F(e,"owner_last_name"),["company"]],["owners.email",e=>F(e,"owner_email"),["company"]],...["first_name","last_name","email","phone"].flatMap(e=>[[`representative.${e}`,t=>F(t,e),["company"]],[`individual.${e}`,t=>F(t,e),["individual"]]]),...["day","month","year"].flatMap((e,t)=>[[`representative.dob.${e}`,a=>pr(a,2-t),["company"]],[`individual.dob.${e}`,a=>pr(a,2-t),["individual"]]]),...["line1","city","state","postal_code"].flatMap(e=>[[`representative.address.${e}`,t=>F(t,e),["company"]],[`individual.address.${e}`,t=>F(t,e),["individual"]]]),["representative.relationship.title",e=>F(e,"title"),["company"]],["representative.ssn_last_4",e=>/^\d{4}$/.test(e.ssn_last_4??""),["company"]],["individual.ssn_last_4",e=>/^\d{4}$/.test(e.ssn_last_4??""),["individual"]],["tos_acceptance.date",e=>e.tos==="accepted",["company","individual"]],["tos_acceptance.ip",e=>e.tos==="accepted",["company","individual"]],["external_account",e=>F(e,"routing_number")&&F(e,"account_number"),["company","individual"]]];function Ot(e){let t=e.business_type??"individual";return(e.country??"US")==="US"&&(t==="company"||t==="individual")?t:void 0}function We(e,t={}){return pu.filter(([,a,n])=>n.includes(e)&&!a(t)).map(([a])=>a)}var mu=1767225600,lt=()=>({object:"account",id:R,type:"standard",country:"US",default_currency:"usd",created:mu,charges_enabled:!0,payouts_enabled:!0,details_submitted:!0,email:null,metadata:{},capabilities:{card_payments:"active",transfers:"active"},controller:{type:"account"},requirements:{alternatives:[],current_deadline:null,currently_due:[],disabled_reason:null,errors:[],eventually_due:[],past_due:[],pending_verification:[]},future_requirements:{alternatives:[],current_deadline:null,currently_due:[],disabled_reason:null,errors:[],eventually_due:[],past_due:[],pending_verification:[]},external_accounts:Ve(R,[]),tos_acceptance:{date:null,ip:null,user_agent:null},business_profile:{},settings:Se(void 0),livemode:!1});function yr(e){let t=Ot({country:e.country??"US",business_type:e.business_type??"individual"}),a=St();return t?{...a,currently_due:We(t),eventually_due:We(t)}:a}function fr(e){let[t,a,n,r]=e==="express"?["application","application_express","stripe","express"]:e==="custom"?["application","application_custom","application","none"]:["stripe","account","stripe","full"];return{type:"application",is_controller:!0,losses:{payments:t},fees:{payer:a},requirement_collection:n,stripe_dashboard:{type:r}}}var Bt=(e,t)=>t.split(".").reduce((a,n)=>a&&typeof a=="object"?a[n]:void 0,e),_u=["business_profile.mcc","company.address.line1","company.address.city","company.address.state","company.address.postal_code","company.owners_provided","owners.first_name","owners.last_name","owners.email","representative.first_name","representative.last_name","representative.email","representative.address.line1","representative.address.city","representative.address.state","representative.address.postal_code","representative.relationship.title","representative.ssn_last_4"],yu=["company.phone","settings.payments.statement_descriptor","representative.dob.day","representative.dob.month","representative.dob.year","representative.phone"],fu=["business_profile.mcc","individual.address.line1","individual.address.city","individual.address.state","individual.address.postal_code","individual.email","individual.ssn_last_4"],mr=(e,t)=>{if(t==="ssn_last_4")return e.ssn_last_4_provided===!0;let a=Bt(e,t);return a!=null&&a!==""},_r=(e,t,a,n=[])=>{if(a==="external_account")return t;if(a.startsWith("representative.")){let s=n.find(i=>i.relationship?.representative===!0);return!!s&&mr(s,a.slice(15))}if(a.startsWith("owners."))return n.filter(s=>s.relationship?.owner===!0).every(s=>mr(s,a.slice(7)));if(a==="company.tax_id")return Bt(e,"company.tax_id_provided")===!0;if(a==="individual.ssn_last_4")return Bt(e,"individual.ssn_last_4_provided")===!0;let r=Bt(e,a);return r!=null&&r!==""};function br(e,t,a=[]){let n=e.business_type==="company",r=Object.keys(e.capabilities??{}).includes("card_payments"),s=["business_profile.url",...n?["company.name"]:["individual.first_name","individual.last_name"],"external_account","tos_acceptance.date","tos_acceptance.ip"];r&&s.push(...n?_u:fu);let i=[...n?["company.tax_id"]:["individual.dob.day","individual.dob.month","individual.dob.year","individual.ssn_last_4"],...r&&n?yu:[]].filter(o=>!s.includes(o));return{now:s.filter(o=>!_r(e,t,o,a)),later:i.filter(o=>!_r(e,t,o,a))}}function gr(e){let t={...e};if(e.company&&typeof e.company=="object"){let{tax_id:a,...n}=e.company;t.company={...n,...a!==void 0&&a!==""?{tax_id_provided:!0}:{}}}if(e.individual&&typeof e.individual=="object"){let{ssn_last_4:a,id_number:n,...r}=e.individual;t.individual={...r,...a!==void 0&&a!==""?{ssn_last_4_provided:!0}:{},...n!==void 0&&n!==""?{id_number_provided:!0}:{}}}return t}var hr=new Map(ie.operations.map(e=>[e.id,e])),qr={PostTopups:["destination_balance"]},bu="2026-08-26.preview",vr=e=>e.slice(0,10)>=bu.slice(0,10),$t=new Set(["PostPaymentIntents","PostPaymentIntentsIntent","PostPaymentIntentsIntentConfirm","PostSetupIntents","PostSetupIntentsIntent"]),wr=new Set([...$t,"PostCheckoutSessions"]),Ar=ie.resources.find(e=>e.name==="payment_method")?.fields.find(e=>e.name==="type")?.enum??[],Pr=["acss_debit","affirm","afterpay_clearpay","alipay","alma","amazon_pay","au_becs_debit","bacs_debit","bancontact","billie","bizum","blik","boleto","card","cashapp","crypto","customer_balance","eps","fpx","giropay","grabpay","ideal","kakao_pay","klarna","konbini","kr_card","link","mb_way","mobilepay","multibanco","naver_pay","nz_bank_account","oxxo","p24","pay_by_bank","payco","paynow","paypal","paypay","payto","pix","promptpay","revolut_pay","samsung_pay","satispay","scalapay","sepa_debit","sequra","sofort","sunbit","swish","twint","upi","us_bank_account","wechat_pay","zip"],Sr={payment_intents:"https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types",setup_intents:"https://stripe.com/docs/api/setup_intents/create#create_setup_intent-payment_method_types"},xr=e=>e.length>1?`${e.slice(0,-1).join(", ")}, or ${e.at(-1)}`:e.join("");var xa=new Set(["duplicate","fraudulent","requested_by_customer"]);var jr={scheme:{kind:"timestamp-v1",header:"Stripe-Signature"},types:Dn,known:zn,store:"event",envelope:{id:"$id",object:"event",account:"$account",api_version:"$version",created:"$time.s",data:"$data",livemode:!1,pending_webhooks:0,request:{id:null,idempotency_key:null},type:"$type"},endpoints:{storedAs:"webhook_endpoint",url:"url",secret:"secret",filter:"enabled_events",status:{field:"status",live:"enabled"},scope:{field:"connect",value:"$account"}}};function Lt(e,t){let a=typeof t=="string"?e.get("customer",t)?.test_clock:void 0,n=typeof a=="string"?e.get("test_helpers.test_clock",a)?.frozen_time:void 0;return Number(n!==void 0?n:g(e.occurredAt))}function dt(e,t){return typeof t.default_payment_method=="string"&&t.default_payment_method?t.default_payment_method:gu(e,t)}function gu(e,t){let n=(typeof t.customer=="string"?e.get("customer",t.customer):void 0)?.invoice_settings;return typeof n?.default_payment_method=="string"&&n.default_payment_method?n.default_payment_method:void 0}async function ka(e,t){let a=typeof t.subscription=="string"?t.subscription:void 0,n=a?O(e,D,a):void 0;if(!n||!a)return;let r=n.discounts??[],s=jt(r,t);s.length!==r.length&&await e.write(D,a,{discounts:s},"subscription.discount_spent")}async function ja(e,t,a){let n=a.id??e.mint(M),r=String(t.currency??"usd"),s=ga(t).map((c,d)=>{let _=c.price&&typeof c.price=="object"?c.price:e.get("price",String(c.price??"")),m=kt(c);return{id:`il_twin_${n}_${d+1}`,object:"line_item",type:"subscription",amount:a.trial?0:ve(_,m),currency:r,quantity:m,proration:!1,price:_??null,subscription:t.id,subscription_item:c.id??null,invoice_item:null,period:{start:a.start,end:a.end},description:a.trial?`Trial period for ${String(e.get("product",String(_?.product??""))?.name??"the plan")}`:null}});a.once?.length&&s.push(...Vn(n,t,a.once,s.length,a.start,r));let i=s.reduce((c,d)=>c+d.amount,0),o=(t.discounts??[])[0],u=o&&typeof o=="object"?o.coupon:void 0,l=u?oe(i,u):0,p=Math.max(0,i-l);return await h(e,M,{id:n,customer:t.customer,subscription:t.id},{created:a.start,status:"draft",livemode:!1,currency:r,collection_method:"charge_automatically",billing_reason:a.reason,auto_advance:!0,attempt_count:0,attempted:!1,next_payment_attempt:null,amount_due:p,amount_paid:0,amount_remaining:p,amount_overpaid:0,amount_paid_off_stripe:0,amount_shipping:0,subtotal:i,total:p,starting_balance:0,post_payment_credit_notes_amount:0,pre_payment_credit_notes_amount:0,period_start:a.start,period_end:a.end,default_tax_rates:[],discounts:u&&o?[o]:[],lines:{object:"list",data:s,has_more:!1,total_count:s.length,url:`/v1/invoices/${n}/lines`},automatic_tax:{enabled:!1,liability:null,status:null},status_transitions:{finalized_at:null,marked_uncollectible_at:null,paid_at:null,voided_at:null},issuer:{type:"self"},payment_settings:{default_mandate:null,payment_method_options:null,payment_method_types:null},payment_intent:null,charge:null}),n}async function Ut(e,t,a,n,r={}){let s=e.get(M,t),i=s&&typeof s.subscription=="string"?O(e,D,s.subscription):void 0;if(!s||!i||s.status!=="draft")return!1;let o=Number(s.total)||0,u={...Lr(e,s,a),status_transitions:{...s.status_transitions,finalized_at:a}},l=e.call.operation.id;if(o<=0)return e.legal(M,"status",l,"draft","paid",t,n)?!1:(await ka(e,s),await e.write(M,t,{...u,status:"paid",paid:!0,auto_advance:!1,status_transitions:{...u.status_transitions,paid_at:a}},"invoice.paid"),!0);let p=n==="api"?r.payer:dt(e,i),c=r.attempt!==!1,d=p&&c?me(le(e),{payment_method:p}):void 0,_=c&&!!p&&!d;if(e.legal(M,"status",l,"draft",_?"paid":"open",t,n))return!1;await ka(e,s);let m=e.mint("payment_intent"),y=String(s.currency??"usd"),w=_?await ke(e,m,{currency:y,customer:s.customer,payment_method:p,invoice:t},o):null,v=await h(e,"payment_intent",{id:m,amount:o,currency:y,customer:s.customer,invoice:t,payment_method:_?p:null},{status:_?"succeeded":"requires_payment_method",client_secret:Ce(m,await e.secret(`client-secret:${m}`)),livemode:!1,capture_method:"automatic",amount_capturable:0,amount_received:_?o:0,next_action:null,latest_charge:w,last_payment_error:d?{type:"card_error",code:d.code,decline_code:d.decline_code??null,message:d.message,payment_method:{id:p}}:null,automatic_payment_methods:null,payment_method_types:["card"],payment_method_options:{}});return await e.write(M,t,{...u,status:_?"paid":"open",paid:_,attempt_count:c?1:0,attempted:c,payment_intent:m,charge:w,confirmation_secret:{type:"payment_intent",client_secret:v.client_secret},amount_paid:_?o:0,amount_remaining:_?0:o,auto_advance:c&&!_,next_payment_attempt:null,status_transitions:{...u.status_transitions,paid_at:_?a:null}},_?"invoice.paid":c?"invoice.payment_failed":"invoice.finalized"),n!=="api"&&!_&&i.status!=="past_due"&&!e.legal(D,"status",l,i.status,"past_due",String(i.id),"time")&&await e.write(D,String(i.id),{status:"past_due"},"customer.subscription.updated"),_}async function Cr(e,t,a){let n=e.get(M,t);if(!n||n.status!=="open")return{code:"invoice_not_open",message:"This invoice is no longer open."};let r=me(le(e),{payment_method:a});if(r)return r;let s=e.call.operation.id,i=e.legal(M,"status",s,"open","paid",t,"external");if(i)return{code:String(i.code??"invoice_not_open"),message:i.message};let o=Number(n.amount_remaining??n.total)||0,u=Number(g(e.occurredAt)),l=typeof n.payment_intent=="string"?n.payment_intent:void 0,p=null,c=l?e.get("payment_intent",l):void 0;l&&c&&!e.legal("payment_intent","status",s,c.status,"succeeded",l,"external")&&(p=await ke(e,l,{...c,payment_method:a,invoice:t},o),await e.write("payment_intent",l,{status:"succeeded",payment_method:a,amount_received:o,last_payment_error:null,latest_charge:p},"payment_intent.succeeded")),await e.write(M,t,{status:"paid",paid:!0,amount_paid:o,amount_remaining:0,charge:p,auto_advance:!1,attempt_count:(Number(n.attempt_count)||0)+1,attempted:!0,status_transitions:{...n.status_transitions,paid_at:u}},"invoice.paid");let d=typeof n.subscription=="string"?O(e,D,n.subscription):void 0;d&&d.status==="past_due"&&!e.legal(D,"status",s,"past_due","active",String(d.id),"external")&&await e.write(D,String(d.id),{status:"active"},"customer.subscription.updated")}async function Ye(e,t){await e.asVendor(async()=>{let a=pt(e);for(let n=0;n<1e4&&await hu(e,a,t);n++);})}async function hu(e,t,a){let n;for(let m of e.rows(D).map(y=>e.expand(D,y)))a&&!a(m)||!Hn.includes(String(m.status))||typeof m.current_period_end!="number"||m.pause_collection||m.current_period_end<=Lt(e,m.customer)&&(!n||m.current_period_end<n.t)&&(n={t:m.current_period_end,kind:"period",id:String(m.id)});for(let m of e.rows(M)){if(m.status!=="draft"||m.billing_reason!=="subscription_cycle"||m.auto_advance!==!0)continue;let y=typeof m.subscription=="string"?O(e,D,m.subscription):void 0;if(!y||a&&!a(y))continue;let w=Number(m.created)+Un;w<=Lt(e,y.customer)&&(!n||w<n.t)&&(n={t:w,kind:"collect",id:String(m.id)})}if(!n)return!1;let r=await t(n.t);if(n.kind==="collect")return await Ut(r,n.id,n.t,"time"),!0;let s=n.id,i=O(r,D,s),o=r.call.operation.id;if(i.cancel_at_period_end===!0)return r.legal(D,"status",o,i.status,"canceled",s,"time")?!1:(await r.write(D,s,{status:"canceled",ended_at:n.t,canceled_at:i.canceled_at??n.t},"customer.subscription.deleted"),!0);let u=n.t,{interval:l,interval_count:p}=Pt(ga(i),le(r)),c=Le(u,l,p),d=i.status==="trialing";if(d&&r.legal(D,"status",o,"trialing","active",s,"time"))return!1;let _=await ja(r,i,{start:u,end:c,reason:"subscription_cycle"});return await r.write(D,s,{current_period_start:u,current_period_end:c,latest_invoice:_,...d?{status:"active"}:{}},"customer.subscription.updated"),!0}var ct=e=>H(e);function Ht(e,t=ct(e)){let{available:a,pending:n,issuing:r}=Zt(e,t),s=o=>{let u=[...o.entries()].map(([l,p])=>({amount:p,currency:l,source_types:{card:p}}));return u.length?u:[{amount:0,currency:"usd",source_types:{card:0}}]},i=t?{}:{connect_reserved:s(a).map(o=>({amount:0,currency:o.currency}))};return{object:"balance",available:s(a),pending:s(n),...i,livemode:!1,...r.size?{issuing:{available:[...r.entries()].map(([o,u])=>({amount:u,currency:o,source_types:{card:u}}))}}:{}}}async function Er(e,t=ct(e)){let a=Number(g(e.occurredAt)),n=[];for(let r of T(e,"payout"))(t?Re(e,"payout",r,"_account")!==t:Re(e,"payout",r,"_account"))||r.status!=="pending"||Number(r.arrival_date)>a||e.legal("payout","status",e.call.operation.id,"pending","paid",String(r.id),"time")||(await e.write("payout",String(r.id),{status:"paid"},"payout.paid"),n.push(String(r.id)));return n}function Ca(e,t,a){let n=T(e,"external_account").filter(r=>r.account===t&&String(r.currency??a)===a);return String((n.find(r=>r.default_for_currency===!0)??n[0])?.id??"")||null}var Ea=e=>({method:"standard",type:"bank_account",source_type:"card",automatic:!1,reconciliation_status:"not_applicable",arrival_date:Number(g(e.occurredAt))+2*86400,livemode:!1,metadata:{}});function Ir(e,t){return t.status!=="pending"||Number(t.arrival_date)>Number(g(e.occurredAt))?t:(e.legal("payout","status",e.call.operation.id,"pending","paid",String(t.id),"time"),{...t,status:"paid"})}function Tr(e,t){return b(e,`Sorry, you don't have any external accounts in that currency (${t}).`,400)}async function Nr(e){let t=Number(g(e.occurredAt)),n=[{id:void 0,settings:e.get("account",R)?.settings}];for(let r of e.rows("account"))r.id===R||r.payouts_enabled!==!0||e.rows("external_account").some(s=>s.account===r.id)&&n.push({id:String(r.id),settings:r.settings});for(let r of n){let s=Se(r.settings,r.settings??void 0).payouts.schedule??{};if(s.interval==="manual")continue;let i=Fu(e,r.id),o=[...new Set(i.map(l=>Wn(Number(l.available_on)||0,s)))].filter(l=>l<=t).sort((l,p)=>l-p),u=new Set;for(let l of o){let p=i.filter(d=>!u.has(d.id)&&(Number(d.available_on)||0)<=l),c=new Map;for(let d of p)c.set(String(d.currency??"usd"),[...c.get(String(d.currency??"usd"))??[],d]);for(let[d,_]of c){let m=_.reduce((P,x)=>P+(Number(x.net)||0),0);if(m<=0)continue;let y=await pt(e)(l),w=y.mint("payout"),v=await Uu(y,w,m,d,r.id,l,_);await h(y,"payout",{id:w,amount:m,currency:d},{status:"pending",...Ea(y),arrival_date:l+2*86400,automatic:!0,balance_transaction:v,destination:r.id?Ca(y,String(r.id),d):null,description:"STRIPE PAYOUT",...r.id?{_account:r.id}:{}});for(let P of _)u.add(P.id)}}}}function we(e,t){if(t&&typeof t=="object"&&typeof t.token=="string")return we(e,t.token);if(t&&typeof t=="object")return ha[String(t.number??"").replace(/\D/g,"")];if(typeof t!="string"||!t)return;let a=e.row("payment_method",t);return a?a._afterSuccess??void 0:Ie[t.replace(/^tok_/,"pm_card_")]?.outcome??ha[t.replace(/\D/g,"")]}async function qu(e,t,a,n){let r=we(e,n),s=a.payment_intent?{payment_intent:a.payment_intent}:{payment_intent:null},i=Number(g(e.occurredAt));if(r==="dispute"||r==="dispute_not_received"||r==="inquiry"){let c=await h(e,"dispute",{charge:t,...s,amount:a.amount,currency:a.currency},{reason:r==="dispute_not_received"?"product_not_received":"fraudulent",status:r==="inquiry"?"warning_needs_response":"needs_response",is_charge_refundable:!1,evidence:kn(),evidence_details:{due_by:i+7*86400,has_evidence:!1,past_due:!1,submission_count:0,enhanced_eligibility:{}},balance_transactions:[],livemode:!1,metadata:{},enhanced_eligibility_types:[]});if(r!=="inquiry"){let d=await Lu(e,String(c.id),a.amount,a.currency);await e.write("dispute",String(c.id),{balance_transactions:[e.get("balance_transaction",d)??d]},"dispute.funds_withdrawn")}await e.write("charge",t,{disputed:!0},"charge.dispute.created")}r==="review"&&await vu(e,t,s);let o=Math.trunc(Number(a.application_fee_amount)||0),u=typeof a.destination=="string"&&a.destination?a.destination:void 0,l=H(e),p=u??l;if(u){let c=a.amount-o,d=e.get("charge",t)?.balance_transaction,_=Number(e.get("balance_transaction",String(d))?.available_on??g(e.occurredAt)),m=await h(e,"transfer",{amount:c,currency:a.currency,destination:u},{amount_reversed:0,balance_transaction:null,livemode:!1,metadata:{},reversed:!1,source_type:"card",source_transaction:t,reversals:{object:"list",data:[],has_more:!1,total_count:0,url:""}}),y=await Da(e,String(m.id),c,a.currency,u,_);await e.write("transfer",String(m.id),{balance_transaction:y,destination_payment:`py_${String(m.id).replace(/^tr_/,"")}`,reversals:{object:"list",data:[],has_more:!1,total_count:0,url:`/v1/transfers/${String(m.id)}/reversals`}},"transfer.created"),await e.write("charge",t,{transfer:m.id},"charge.updated")}if(o>0&&p){let c=await h(e,"application_fee",{account:p,amount:o,charge:t,currency:a.currency},{amount_refunded:0,application:"ca_twin",balance_transaction:null,originating_transaction:null,refunded:!1,livemode:!1}),d=!u&&l?await Hu(e,String(c.id),o,a.currency,l):null;await e.write("application_fee",String(c.id),{balance_transaction:d,refunds:{object:"list",data:[],has_more:!1,total_count:0,url:`/v1/application_fees/${String(c.id)}/refunds`}},"application_fee.created"),await e.write("charge",t,{application_fee:c.id,application_fee_amount:o},"charge.updated")}}async function vu(e,t,a){let n=await h(e,"review",{charge:t,...a},{open:!0,opened_reason:"rule",reason:"rule",closed_reason:null,billing_zip:null,ip_address:null,ip_address_location:null,session:null,livemode:!1}),r=e.get("charge",t)?.outcome??{};await e.write("charge",t,{review:n.id,outcome:{...r,type:"manual_review",risk_level:"elevated",risk_score:67,seller_message:"Stripe evaluated this payment as having elevated risk, and placed it in review."}},"review.opened")}var Ia=(e,t)=>b(e,`No such customer: '${t}'`,404,"resource_missing");async function Rr(e,t,a,n){let r=JSON.stringify(at(a,typeof a.api_version=="string"?a.api_version:void 0)),s=On(r,n,Math.floor(Date.parse(e.occurredAt)/1e3)),i=await e.ask(t,{method:"POST",headers:{"content-type":"application/json","stripe-signature":s},body:r},Bn);return i.missed==="timeout"?{kind:"timeout",message:"Webhook endpoint did not respond within the real-time authorization window."}:i.missed==="unreachable"?{kind:"timeout",message:"Webhook endpoint was unreachable within the real-time authorization window."}:$n(i)}function Gr(e){if(ba(e.call.request).startsWith("pk_"))return e.refuse({status:403,code:"secret_key_required",message:"The API key provided is a publishable key, but a secret key is required."})}function zr(e,t){let a=ba(t);return a?e.rowsRaw("_platform_key").some(r=>r._sha256===e.crypto.sha256(a)&&r.deleted!==!0)?void 0:e.refuse({status:401,message:`Invalid API Key provided: ${Ln(a)}`}):e.refuse({status:401,message:"You did not provide an API key. You need to provide your API key in the Authorization header, using Bearer auth (e.g. 'Authorization: Bearer YOUR_SECRET_KEY'). See https://stripe.com/docs/api#authentication for details, or we can help at https://support.stripe.com/."})}function Dr(e,t){if(t.method!=="POST"||(t.headers.get("content-type")??"").includes("multipart")||!("metadata"in e.params))return t;let a=e.call.operation,n=e.params.metadata,r;if(a.class==="create")if(n==="")r={};else if(n&&typeof n=="object"&&!Array.isArray(n)&&Object.values(n).includes(""))r=Object.fromEntries(Object.entries(n).filter(([,i])=>i!==""));else return t;else if(a.class==="update"&&a.resource){let i=a.resource,o=Object.values(e.call.params).at(-1)??"",u=e.get(i,o)?.metadata,l=u&&typeof u=="object"?u:{};if(n==="")r=Object.fromEntries(Object.keys(l).map(p=>[p,""]));else if(n&&typeof n=="object"&&!Array.isArray(n))r={...l,...n};else return t}else return t;let s=new Headers(t.headers);return s.set("content-type","application/json"),new Request(t.url,{method:t.method,headers:s,body:JSON.stringify({...e.params,metadata:r})})}function Ta(e){let t=e.params.scope&&typeof e.params.scope=="object"?e.params.scope:void 0;return(t&&typeof t.type=="string"?t.type:"account")==="user"?`user:${String(t.user)}`:"account"}var Vt=(e,t)=>e.rows(Te).find(a=>a.name===t&&Re(e,Te,a,"_scope_key")===Ta(e)),Wt=(e,t)=>b(e,`No such invoice: '${t}'`,404,"resource_missing");function Mr(e){return b(e,"This customer has no attached payment source or default payment method. Please consider adding a default payment method.",400,"missing")}async function Or(e,t){await e.write("subscription",t,{status:"active"},"subscription.update")}function Br(e,t){let a=k(e,"invoice"),n=e.get(M,a);if(!n)return{answer:Wt(e,a)};let r=e.legal(M,"status",t,n.status,void 0,a);return r?{answer:e.refuse(r)}:{inv:n}}async function $r(e,t,a){let n=Yn(t)?e.mint("payment_intent"):null,r=g(e.occurredAt);e.legal(M,"status","PostInvoicesInvoicePay","draft","open",a);let s=await e.write(M,a,{...Lr(e,t,Number(r)),status:"open",status_transitions:{...ot(t),finalized_at:r},payment_intent:n},"invoice.finalize");return n&&await wu(e,n,t,a),await ka(e,t),e.get(M,a)??s}async function wu(e,t,a,n){let r=typeof a.default_payment_method=="string"?a.default_payment_method:void 0,s=await h(e,"payment_intent",{id:t,amount:Number(a.amount_due)||0,currency:String(a.currency??"usd"),customer:a.customer,invoice:n,...r?{payment_method:r}:{}},{status:r?"requires_confirmation":"requires_payment_method",client_secret:Ce(t,await e.secret(`client-secret:${t}`)),livemode:!1,capture_method:"automatic",amount_capturable:0,amount_received:0,next_action:null,automatic_payment_methods:null,payment_method_types:["card","link"],payment_method_options:{}});await e.write(M,n,{confirmation_secret:{type:"payment_intent",client_secret:s.client_secret}},"invoice.updated")}function Lr(e,t,a){let n=typeof t.customer=="string"?t.customer:"",r=n?e.get("customer",n):void 0,s=typeof r?.invoice_prefix=="string"&&r.invoice_prefix?r.invoice_prefix:Ct(n),i=e.rows(M).filter(l=>l.customer===n&&typeof l.number=="string"&&l.id!==t.id).length,o={number:typeof t.number=="string"&&t.number?t.number:`${s}-${String(i+1).padStart(4,"0")}`},u=Number(t.days_until_due);return t.collection_method==="send_invoice"&&t.due_date==null&&Number.isFinite(u)&&u>0&&(o.due_date=a+u*86400),o}function Fr(e,t){let a=Number(t.amount_off);return!Number.isInteger(a)||a<=0?b(e,"Invalid integer: amount_off must be a positive integer.",400,"parameter_invalid_integer"):t.currency===void 0||t.currency===""?b(e,"Missing required param: currency.",400,"parameter_missing"):a}async function Ur(e){let t=Number(g(e.occurredAt));for(let a of e.rowsRaw("coupon")){if(a.valid!==!0||typeof a.redeem_by!="number"||a.redeem_by>t)continue;let n=await pt(e)(a.redeem_by);n.legal("coupon","valid",e.call.operation.id,"true","false",String(a.id),"time"),await n.write("coupon",String(a.id),{valid:!1},"coupon.lapsed")}}var Hr=(e,t)=>b(e,`No such checkout.session: '${t}'`,404,"resource_missing");function Yt(e,t,a){let n=Array.isArray(t.discounts)?t.discounts[0]:void 0;if(!n||typeof n!="object")return;let r=u=>e.refuse({status:400,code:"coupon_expired",param:"discounts",message:`This ${u} has expired.`}),s,i=typeof n.coupon=="string"?n.coupon:void 0;if(typeof n.promotion_code=="string"){let u=e.get("promotion_code",n.promotion_code);if(!u)return e.refuse({status:400,code:"resource_missing",param:"discounts[0][promotion_code]",message:`No such promotion code: '${n.promotion_code}'`});if(typeof u.expires_at=="number"&&u.expires_at<=a)return r("promotion code");if(u.active===!1)return e.refuse({status:400,param:"discounts[0][promotion_code]",message:"This promotion code is inactive."});s=String(u.id),i=typeof u.coupon=="string"?u.coupon:String(u.coupon?.id??"")}let o=i?e.get("coupon",i):void 0;return o?o.valid===!1||typeof o.redeem_by=="number"&&o.redeem_by<=a?r("coupon"):{coupon:o,...s?{promotion:s}:{}}:e.refuse({status:400,code:"resource_missing",param:"discounts[0][coupon]",message:`No such coupon: '${i??""}'`})}function Vr(e){return b(e,"You must provide at least one recurring price in `subscription` mode when not using `line_items[].price_data` or a Price with `recurring`, and at least one `line_items` for `payment` mode.",400,"parameter_missing")}function Wr(e,t){return e.refuse({status:400,code:"resource_missing",param:"payment_intent_data[transfer_data][destination]",message:`No such destination: '${String(t)}'`})}function Yr(e,t,a){if(!t||typeof t!="object")return;let{trial_end:n,trial_period_days:r}=t,s=n!==void 0&&!(Number.isInteger(Number(n))&&Number(n)>=a+48*3600),i=r!==void 0&&!(Number.isInteger(Number(r))&&Number(r)>=1);return s||i?Au(e,s?"trial_end":"trial_period_days"):void 0}function Au(e,t){let a=t==="trial_end"?"The `subscription_data[trial_end]` timestamp has to be at least 48 hours in the future.":"The `subscription_data[trial_period_days]` has to be at least 1.";return e.refuse({status:400,param:`subscription_data[${t}]`,message:a})}async function Pu(e,t,a,n){let r={status:"complete"},s=typeof a.customer=="string"?a.customer:void 0,i=typeof a.currency=="string"?a.currency:"usd",o=n?await h(e,"payment_method",{},{type:"card",customer:null,livemode:!1,billing_details:{address:null,email:null,name:null,phone:null},...be("card",{card:n}),_declineOutcome:me(()=>{},{card:n})??null,...we(e,n)?{_afterSuccess:we(e,n)}:{}}):void 0,u=a.mode!=="payment"||!!(e.row(L,t)?._payment_intent_data??{}).setup_future_usage,l=o&&s&&u?await e.write("payment_method",String(o.id),{customer:s},"payment_method.attach"):o;if(a.mode==="payment"){let p=Number(a.amount_total)||0,c=e.mint("payment_intent"),d=e.row(L,t)?._payment_intent_data??{},_={...d.application_fee_amount!==void 0?{application_fee_amount:Math.trunc(Number(d.application_fee_amount)||0)}:{},...d.transfer_data&&typeof d.transfer_data=="object"?{transfer_data:{destination:d.transfer_data.destination}}:{},...typeof d.description=="string"?{description:d.description}:{},...typeof d.setup_future_usage=="string"?{setup_future_usage:d.setup_future_usage}:{},...Et(d.metadata)?{metadata:Et(d.metadata)}:{}},m={amount:p,currency:i,id:c,...s?{customer:s}:{},...l?{payment_method:l.id}:{},..._};await h(e,"payment_intent",m,{status:"succeeded",amount_received:p,client_secret:Ce(c,await e.secret(`client-secret:${c}`)),livemode:!1,payment_method_types:Array.isArray(a.payment_method_types)?a.payment_method_types:["card"]});let y=await ke(e,c,m,p);await e.write("payment_intent",c,{latest_charge:y},"payment_intent.succeeded"),r.payment_intent=c,r.payment_status="paid"}else if(a.mode==="subscription"){if(s){let p=Number(g(e.occurredAt)),c=e.row(L,t)?._price_data??[],d=a.line_items?.data??[],_=c.some(Boolean)?await Su(e,d,c):d,m=_.filter(N=>!He(N)),y=_.filter(N=>He(N)),{interval:w,interval_count:v}=Pt(m,le(e)),P=e.mint("subscription"),x=e.row(L,t)?._subscription_data,C=x&&typeof x=="object"?x:{},Z=Et(C.metadata)??{},q=Ee(C,p)?.end??null,j=await h(e,"subscription",{customer:s,id:P},{status:q===null?"active":"trialing",livemode:!1,currency:i,collection_method:"charge_automatically",cancel_at_period_end:!1,start_date:p,billing_cycle_anchor:q??p,metadata:Z,description:typeof C.description=="string"?C.description:null,discounts:ku(e,t,s,p),billing_schedules:[],trial_start:q===null?null:p,trial_end:q,current_period_start:p,current_period_end:q??Le(p,w,v),default_payment_method:l?.id??null,items:xn(m,P,p,le(e)),automatic_tax:{enabled:!1,liability:null},billing_mode:{type:"classic"},invoice_settings:{issuer:{type:"self"}}});await vs(e,P,j.items?.data??[]);let G=await ja(e,j,{start:p,end:Number(j.current_period_end),reason:"subscription_create",trial:q!==null,once:y});await Ut(e,G,p,"external"),await e.write("subscription",P,{latest_invoice:G},"subscription.update"),r.subscription=j.id,r.invoice=G}r.payment_status="paid"}else r.setup_intent=await xu(e,s,l);return r}async function Su(e,t,a){let n=[];for(let[r,s]of t.entries()){let i=a[r];if(!i){n.push(s);continue}let o=i.product_data&&typeof i.product_data=="object"?i.product_data:void 0,u=typeof i.product=="string"?i.product:String((await h(e,"product",{name:o?.name??"Item"},{active:!0,livemode:!1,images:[],marketing_features:[],metadata:{},updated:g(e.occurredAt)})).id),l=i.recurring&&typeof i.recurring=="object"?i.recurring:void 0,p=await h(e,"price",{product:u,currency:String(i.currency??s.currency??"usd").toLowerCase(),unit_amount:i.unit_amount_decimal!==void 0?null:Math.trunc(Number(i.unit_amount)||0),unit_amount_decimal:i.unit_amount_decimal!==void 0?String(i.unit_amount_decimal):String(Math.trunc(Number(i.unit_amount)||0)),...l?{recurring:{interval:l.interval,interval_count:Math.max(1,Math.trunc(Number(l.interval_count??1))||1),usage_type:"licensed",trial_period_days:null,meter:null}}:{recurring:null}},{active:!1,livemode:!1,billing_scheme:"per_unit",type:l?"recurring":"one_time",metadata:{},lookup_key:null,nickname:null,tax_behavior:"unspecified"});n.push({...s,price:p})}return n}async function xu(e,t,a){let n=e.mint("setup_intent");return(await h(e,"setup_intent",{id:n,...t?{customer:t}:{},...a?{payment_method:a.id}:{}},{status:"succeeded",usage:"off_session",client_secret:Ce(n,await e.secret(`client-secret:${n}`)),payment_method_types:["card"],livemode:!1})).id}function ku(e,t,a,n){let r=e.row(L,t)?._discount,s=r&&typeof r.coupon=="string"?e.get("coupon",r.coupon):void 0;return s?[{...ca(s,a,n),promotion_code:r?.promotion_code??null,checkout_session:t}]:[]}async function Kt(e,t,a,n={},r){let s=e.legal(L,"status","PostCheckoutSessionsSession",a.status,"complete",t,"external");if(s)return e.refuse(s);let i=await Pu(e,t,a,r),o=e.row(L,t)?._discount;return o&&await Na(e,o.coupon,o.promotion_code),i.payment_status!==void 0&&e.legal(L,"payment_status","PostCheckoutSessionsSession",a.payment_status,String(i.payment_status),t,"external"),e.write(L,t,{...n,...i,url:null},"checkout.session.completed")}var ye=(e,t)=>e.reply(t.body,t.status),b=(e,t,a=404,n)=>e.refuse({status:a,message:t,...n?{code:n}:{}}),Qt=e=>new URL(e.call.request.url).pathname.replace(/\/+$/,"")||"/",k=(e,t)=>e.call.params[t]??"",Re=(e,t,a,n)=>e.row(t,String(a.id),{withDeleted:!0})?.[n];function Kr(e,t,a){let n=a?void 0:t.find(r=>e.params[r]!==void 0);return n?b(e,`\`${n}\` can only be used when \`confirm\` is set to \`true\`.`,400,"parameter_invalid"):void 0}async function Na(e,t,a){let n=typeof t=="string"?e.get("coupon",t):void 0;n&&await e.write("coupon",t,{times_redeemed:(Number(n.times_redeemed)||0)+1},"coupon.redeemed");let r=typeof a=="string"?e.get("promotion_code",a):void 0;r&&await e.write("promotion_code",a,{times_redeemed:(Number(r.times_redeemed)||0)+1},"promotion_code.redeemed")}function T(e,t,a="created"){let n=new Map(e.rowsRaw(t).map(o=>[String(o.id),o])),r=o=>Number(o[a]??n.get(String(o.id))?._created??0),s=e.rows(t),i=new Map(s.map((o,u)=>[o,u]));return s.sort((o,u)=>{let l=r(o),p=r(u);return p!==l?p-l:i.get(u)-i.get(o)}).map(o=>e.expand(t,o))}function pt(e){return t=>e.at(new Date(t*1e3).toISOString())}function re(e,t,a){let n=t;for(let[r,s]of Object.entries(a)){let i=e.params[r];i!==void 0&&(n=n.filter(o=>s(o,i)))}return n}function Qr(e){let t=e.params.expand;return Array.isArray(t)?t.map(a=>String(a).split(".")):[]}function Jt(e,t){let a=Number(t.available_on);return t.status!=="pending"||!Number.isFinite(a)||a>Number(g(e.occurredAt))?t:(e.legal("balance_transaction","status",e.call.operation.id,"pending","available",String(t.id),"time"),{...t,status:"available"})}function Jr(e,t,a,n){let r=i=>{if(Array.isArray(i))return i.map(r);if(!i||typeof i!="object")return i;let o=Object.fromEntries(Object.entries(i).map(([u,l])=>[u,r(l)]));return o.object==="balance_transaction"?Jt(e,o):o},s=e.expand(t,a,n.map(i=>i.join(".")));return Object.fromEntries(Object.entries(s).map(([i,o])=>[i,r(o)]))}var ge=(e,t,a)=>Jr(e,t,a,Qr(e)),O=(e,t,a)=>{let n=e.get(t,a);return n?e.expand(t,n):void 0};function B(e,t,a){let{page:n,hasMore:r}=st(a,e.params),s=Qr(e).filter(i=>i[0]==="data").map(i=>i.slice(1)).filter(i=>i.length>0);return e.reply({object:"list",url:Qt(e),has_more:r,data:n.map(i=>Jr(e,t,i,s))})}var Zr=(e,t,a="created")=>ye(e,An(T(e,t,a),e.params,Qt(e)));async function h(e,t,a,n,r={}){let{id:s,...i}=a,o=e.storedType(t),u=typeof s=="string"&&s?s:e.mint(t),l=er.get(t),p=r.timeField??"created",c=!l||l.has(p)||p in n||p in i?p:"_created",d={object:da[o]??o,[c]:g(e.occurredAt),...n,...i},_=t===D?d.items?.data??[]:[];if(t===D&&delete d.items,t==="subscription_item"){let y=d;y.price&&typeof y.price=="object"&&(y.price=y.price.id),delete y.plan}if(t==="account"&&d.individual&&typeof d.individual=="object"){let y=await h(e,"person",{...d.individual,account:u},{metadata:{},relationship:{representative:!0}});d.individual=y.id}let m=await e.write(t,u,d,r.operation??`${o}.create`);return _.length&&await vs(e,u,_),e.expand(t,m)}var le=e=>(t,a)=>{let n=e.rowsRaw(t,{withDeleted:!0}).find(r=>r.id===a);return n?{...wn(t,n),...n._declineOutcome!==void 0?{_declineOutcome:n._declineOutcome}:{}}:void 0};async function Xr(e,t){e.get("account",t)&&await e.write("account",t,{external_accounts:Ve(t,T(e,"external_account").filter(a=>a.account===t))},"account.external_accounts")}var Ra=(e,t)=>b(e,`No such payment_method: '${t}'`,404,"resource_missing");function Ga(e,t){let a,r=(typeof t=="string"&&t?e.get(ae,t):void 0)??(typeof t=="string"&&/^pm_us_?bank_?account/i.test(t)?{type:"us_bank_account",...be("us_bank_account",{})}:void 0);if(r&&typeof r.type=="string"&&r.type!=="card"){let s=r[r.type]??{},i=["account_holder_type","account_type","bank_name","fingerprint","last4","routing_number"];return{type:r.type,[r.type]:Object.fromEntries(i.filter(o=>s[o]!==void 0).map(o=>[o,s[o]]))}}if(typeof t=="string"&&t){let s=e.get(ae,t)?.card;s?a=s:a=ar(t)}else t&&typeof t=="object"&&(a=be("card",{card:t}).card);if(a)return{type:"card",card:{brand:a.brand,last4:a.last4,exp_month:a.exp_month,exp_year:a.exp_year,funding:a.funding??"credit",country:a.country??"US",network:a.brand,fingerprint:a.fingerprint??null,checks:a.checks??{address_line1_check:null,address_postal_code_check:null,cvc_check:"pass"},three_d_secure:null,wallet:null,installments:null,mandate:null}}}var es=(e,t)=>!!e.get(ae,t)||t.startsWith("pm_card_")&&(t in nt||t in Ie);async function ts(e,t,a){return e.get(ae,t)?e.write(ae,t,{customer:a},"payment_method.attach"):as(e,t,a)}async function as(e,t,a){let n=Aa[t]??{brand:"visa",number:"4242424242424242"},r=be("card",{card:{number:n.number}});r.card.brand=n.brand;let s=Ie[t]?.outcome;return h(e,ae,{type:"card",customer:a,livemode:!1,billing_details:wa,...r,_declineOutcome:nt[t]??null,...s?{_afterSuccess:s}:{}},{})}async function ns(e,t){if(!t||typeof t!="object")return;let a=t,n=typeof a.type=="string"?a.type:"card",r=await h(e,ae,{},{type:n,customer:null,livemode:!1,metadata:a.metadata&&typeof a.metadata=="object"?a.metadata:{},billing_details:{...wa,...a.billing_details??{}},...be(n,a),...n==="card"&&we(e,a.card)?{_afterSuccess:we(e,a.card)}:{},...n==="card"?{_declineOutcome:me(()=>{},{card:a.card})??null,...la({card:a.card})?{_requiresAuthentication:!0}:{}}:{}});return String(r.id)}function ju(e,t,a,n){return(t.payment_method_options??a.payment_method_options)?.us_bank_account?.verification_method==="microdeposits"&&!!n&&e.get(ae,n)?.type==="us_bank_account"}async function rs(e,t){let a=typeof t.tiers_mode=="string"?t.tiers_mode:"";if(a!=="graduated"&&a!=="volume")return b(e,"Missing required param: tiers_mode (graduated or volume).",400,"parameter_missing");let n=Array.isArray(t.tiers)?t.tiers:[];if(n.length===0)return b(e,"Missing required param: tiers.",400,"parameter_missing");let r=n.map(o=>{let u=o.up_to;return{up_to:u==="inf"||u===void 0||u===null?null:Math.trunc(Number(u)),unit_amount:o.unit_amount!==void 0?Math.trunc(Number(o.unit_amount)):null,unit_amount_decimal:o.unit_amount!==void 0?String(Math.trunc(Number(o.unit_amount))):null,flat_amount:o.flat_amount!==void 0?Math.trunc(Number(o.flat_amount)):null,flat_amount_decimal:o.flat_amount!==void 0?String(Math.trunc(Number(o.flat_amount))):null}});if(r.some(o=>o.unit_amount===null&&o.flat_amount===null))return b(e,"Each tier must specify a unit_amount or flat_amount.",400,"parameter_invalid_empty");let{tiers:s,...i}=t;return e.reply(await h(e,"price",{...i,billing_scheme:"tiered",tiers_mode:a,tiers:r,unit_amount:null},{active:!0,livemode:!1,type:i.recurring?"recurring":"one_time",metadata:{}}))}var Cu=(e,t)=>e.rowsRaw(It).some(a=>a.id===t)||e.history(I,t).some(a=>a.operation!=="payment_intent.create"&&Array.isArray(a.fields?.payment_method_types)),za=(e,t)=>e.reply(t.body,t.status);async function ke(e,t,a,n){let r=e.get(I,t)?.latest_charge;if(typeof r=="string"&&e.get("charge",r)?.status==="succeeded")return r;let s=e.mint("charge"),i=await Bu(e,s,n,String(a.currency??"usd"),typeof a.payment_method=="string"?a.payment_method:void 0);return await h(e,"charge",{id:s,amount:n,currency:a.currency??"usd",payment_intent:t,...typeof a.customer=="string"?{customer:a.customer}:{},...typeof a.payment_method=="string"?{payment_method:a.payment_method}:{},...typeof a.invoice=="string"?{invoice:a.invoice}:{},...Tt(a)},{...xt(s,n,!0,e.occurredAt),balance_transaction:i,payment_method_details:Ga(e,a.payment_method)??null},{operation:"charge.succeeded"}),await qu(e,s,{amount:n,currency:String(a.currency??"usd"),payment_intent:t,application_fee_amount:a.application_fee_amount,destination:a.transfer_data?.destination},a.payment_method),s}async function Eu(e,t,a,n){let r=e.mint("charge");return await h(e,"charge",{id:r,amount:n,currency:a.currency??"usd",payment_intent:t,...typeof a.customer=="string"?{customer:a.customer}:{},...typeof a.payment_method=="string"?{payment_method:a.payment_method}:{},...typeof a.invoice=="string"?{invoice:a.invoice}:{},...Tt(a)},{...xt(r,n,!1,e.occurredAt),balance_transaction:null,payment_method_details:Ga(e,a.payment_method)??null},{operation:"charge.succeeded"}),r}async function ss(e,t,a,n){let r=typeof t.invoice=="string"?t.invoice:void 0,s=r?e.get("invoice",r):void 0;!r||!s||s.status==="paid"||s.status==="void"||await Iu(e,s,r,a,n)}async function Iu(e,t,a,n,r){if(e.legal("invoice","status",n,t.status,"paid",a,r))return;let s=Number(t.total??t.amount_due)||0;await e.write("invoice",a,{status:"paid",paid:!0,amount_paid:s,amount_remaining:0,status_transitions:{...t.status_transitions??{},paid_at:g(e.occurredAt)}},"invoice.pay");let i=typeof t.subscription=="string"?t.subscription:void 0,o=i?O(e,"subscription",i):void 0;i&&o&&o.status==="incomplete"&&!e.legal("subscription","status",n,o.status,"active",i,r)&&await e.write("subscription",i,{status:"active"},"subscription.update")}function Tu(e,t){if(typeof t!="string"||!t)return;let a=e.get("payment_method",t);if(a)return typeof a.type=="string"?a.type:void 0;if(/^pm_us_?bank_?account/i.test(t))return"us_bank_account";if(/^(pm_card_|tok_)/.test(t))return"card"}function Nu(e,t,a){let n=Array.isArray(a.payment_method_types)?a.payment_method_types.map(String):Array.isArray(a.allowed_payment_method_types)?a.allowed_payment_method_types.map(String):Cu(e,String(t.id))&&Array.isArray(t.payment_method_types)?t.payment_method_types.map(String):void 0;if(!n)return;let r=Tu(e,a.payment_method??t.payment_method);if(!(!r||n.includes(r)))return e.refuse({status:400,code:"payment_intent_invalid_parameter",param:"payment_method",message:`The PaymentMethod provided (${r}) is not allowed for this PaymentIntent. Please attach a PaymentMethod of one of the following types: ${n.join(", ")}. Alternatively, update the allowed payment_method_types for this PaymentIntent to include "${r}"`})}function ue(e){let{confirm:t,amount_to_confirm:a,confirmation_token:n,error_on_requires_action:r,expand:s,mandate:i,mandate_data:o,off_session:u,payment_method_data:l,radar_options:p,return_url:c,use_stripe_sdk:d,..._}=e;return _}async function is(e,t,a){let n=String(t.id),r=typeof a.mandate=="string"?a.mandate:typeof t.mandate=="string"?t.mandate:void 0;if(r&&e.get("mandate",r)?.status!=="active")return b(e,"The provided mandate is invalid and can't be used for the payment intent.",400,"payment_intent_mandate_invalid");let s=Nu(e,t,a);if(s)return s;let i=me(le(e),a,t);if(i){let c=a.payment_method??t.payment_method,d=typeof c=="string"?c:void 0;d&&!e.get("payment_method",d)&&d.startsWith("pm_card_")&&(d=String((await as(e,d,typeof t.customer=="string"?t.customer:null)).id));let _=d?e.get("payment_method",d):void 0,m=Number(a.amount??t.amount)||0,y=e.mint("charge");await h(e,"charge",{id:y,amount:m,currency:t.currency??"usd",payment_intent:n,...typeof t.customer=="string"?{customer:t.customer}:{},...d?{payment_method:d}:{},...Tt({...t,...ue(a)})},{...xt(y,m,!1,e.occurredAt),status:"failed",paid:!1,captured:!1,capture_before:null,failure_code:i.code,failure_message:i.message,balance_transaction:null,outcome:{type:"issuer_declined",network_status:"declined_by_network",reason:i.decline_code??i.code,risk_level:"normal",seller_message:"The bank did not return any further details with this decline."},payment_method_details:d?Ga(e,d)??null:null},{operation:"charge.failed"});let{payment_method:w,...v}=a,P={type:"card_error",code:i.code,...i.decline_code?{decline_code:i.decline_code}:{},message:i.message,param:"card",charge:y,payment_method:_??null},x=await e.write(I,n,{...ue(v),payment_method:null,latest_charge:y,status:"requires_payment_method",last_payment_error:P},"payment_intent.payment_failed");return za(e,rt(i,{payment_intent:x,charge:y}))}let o=typeof a.payment_method=="string"?a.payment_method:typeof t.payment_method=="string"?t.payment_method:void 0;if(o&&e.get("payment_method",o)?.type==="customer_balance")return e.reply(e.expand(I,await Du(e,{...t,...ue(a)},ue(a))));if(qn(a,t)||ju(e,a,t,o))return e.reply(e.expand(I,await e.write(I,n,{...ue(a),status:"requires_action",next_action:vn(),last_payment_error:null},"payment_intent.requires_action")));if(t.status!=="requires_action"&&(la(a,t)||o&&e.row(ae,o)?._requiresAuthentication===!0))return e.reply(e.expand(I,await e.write(I,n,{...ue(a),status:"requires_action",next_action:hn(),last_payment_error:null},"payment_intent.requires_action")));if((a.capture_method??t.capture_method)==="manual"){let c=Number(t.amount??a.amount??0),d=await Eu(e,n,{...t,...ue(a)},c);return e.reply(e.expand(I,await e.write(I,n,{...ue(a),status:"requires_capture",amount_capturable:c,amount_received:0,next_action:null,last_payment_error:null,latest_charge:d},"payment_intent.amount_capturable_updated")))}if(Ru(e,o))return e.reply(e.expand(I,await zu(e,n,ue(a))));let u=Number(t.amount??a.amount??0),l=await ke(e,n,{...t,...ue(a)},u),p=await e.write(I,n,{...ue(a),status:"succeeded",amount_received:u,next_action:null,last_payment_error:null,latest_charge:l},"payment_intent.confirm");return await ss(e,p,"PostPaymentIntentsIntentConfirm"),e.reply(e.expand(I,p))}function Ru(e,t){return typeof t!="string"?!1:e.get("payment_method",t)?.type==="us_bank_account"||/^pm_us_?bank_?account/i.test(t)}function Gu(e,t){return t==="pm_usBankAccount_processing"?!0:(typeof t=="string"?e.get("payment_method",t)?.us_bank_account:void 0)?.last4==="0009"}async function zu(e,t,a){let n=a.payment_method??e.get(I,t)?.payment_method;return e.write(I,t,{...a,status:"processing",amount_received:0,next_action:null,last_payment_error:null,_settles_at:Gu(e,n)?null:Number(g(e.occurredAt))},"payment_intent.processing")}async function os(e){let t=Number(g(e.occurredAt)),a=e.rowsRaw(I).filter(n=>n.status==="processing"&&typeof n._settles_at=="number"&&n._settles_at<=t).sort((n,r)=>Number(n._settles_at)-Number(r._settles_at));for(let n of a){let r=String(n.id),s=await pt(e)(Number(n._settles_at));s.legal(I,"status",e.call.operation.id,"processing","succeeded",r,"vendor");let i=Number(n.amount)||0,o=await ke(s,r,n,i),u=await s.write(I,r,{status:"succeeded",amount_received:i,latest_charge:o,_settles_at:null},"payment_intent.succeeded");await ss(s,u,e.call.operation.id,"vendor")}}async function Du(e,t,a={}){let n=typeof t.customer=="string"?t.customer:"",r=String(t.currency??"usd"),s=n?e.rows("customer_cash_balance_transaction").filter(u=>u.customer===n&&String(u.currency)===r).reduce((u,l)=>u+(Number(l.net_amount)||0),0):0,i=Number(t.amount)||0;if(s>=i)return Mu(e,t,a,{customer:n,currency:r,available:s,amount:i});let o={type:"display_bank_transfer_instructions",display_bank_transfer_instructions:{amount_remaining:i-s,currency:r,type:"us_bank_transfer"}};return e.write(I,String(t.id),{...a,status:"requires_action",next_action:o},"payment_intent.requires_action")}async function Mu(e,t,a,n){await h(e,"customer_cash_balance_transaction",{customer:n.customer},{currency:n.currency,type:"applied_to_payment",net_amount:-n.amount,ending_balance:n.available-n.amount,applied_to_payment:{payment_intent:String(t.id)},livemode:!1});let r=await ke(e,String(t.id),{...t,...a},n.amount);return e.write(I,String(t.id),{...a,status:"succeeded",next_action:null,amount_received:n.amount,last_payment_error:null,latest_charge:r},"payment_intent.succeeded")}function Ou(e,t){if(!t)return!1;let a=e.row("payment_method",t);return a?a._afterSuccess==="available"||e.get("payment_method",t)?.type==="us_bank_account":/^pm_us_?bank_?account/i.test(t)?!0:nr.has(t.replace(/\D/g,""))||t.replace(/^tok_/,"pm_card_")in Fe}var H=e=>{let t=e.call.request.headers.get("stripe-account");return t&&t!==R?t:void 0};async function _e(e,t,a=H(e)){let n=(t.status??"available")==="available"&&Number(t.net)>0?{[Nt]:!0}:{},r=await h(e,J,{},{status:"available",fee_details:[],description:null,exchange_rate:null,balance_type:"payments",...t,...n,...a?{_account:a}:{}});return String(r.id)}async function Bu(e,t,a,n,r){let s=Number(g(e.occurredAt)),i=rr(a),o=Ou(e,r);return await _e(e,{amount:a,currency:n,fee:i,net:a-i,type:"charge",reporting_category:"charge",source:t,...o?{status:"available",available_on:s}:{status:"pending",available_on:s+2*86400},fee_details:i?[{amount:i,application:null,currency:n,description:"Stripe processing fees",type:"stripe_fee"}]:[]})}async function us(e,t,a,n,r=H(e)){return _e(e,{amount:-a,currency:n,fee:0,net:-a,type:"refund",reporting_category:"refund",source:t,available_on:Number(g(e.occurredAt))},r)}function ls(e,t,a,n){let r=0;for(let s of e.rowsRaw(J)){if(!Ne(s,t)||s.balance_type==="issuing"||String(s.currency??"usd")!==a)continue;let i=Number(s.available_on??s.created);Number.isFinite(i)&&i<=n&&(r+=Number(s.net??0))}return r}function $u(e,t,a,n,r){let s=e.rowsRaw(J).filter(i=>Ne(i,t)&&String(i.currency??"usd")===a).map(i=>Number(i.available_on??i.created)).filter(i=>Number.isFinite(i)&&i>n&&i<=r);return[...new Set(s)].sort((i,o)=>i-o)}async function Lu(e,t,a,n){return _e(e,{amount:-a,currency:n,fee:1500,net:-a-1500,type:"adjustment",reporting_category:"dispute",source:t,available_on:Number(g(e.occurredAt)),fee_details:[{amount:1500,application:null,currency:n,description:"Dispute fee",type:"stripe_fee"}]})}function Fu(e,t){let a=new Set(e.rowsRaw("payout").filter(n=>n.automatic===!0).map(n=>n.id));return e.rowsRaw(J).filter(n=>Ne(n,t)&&n.balance_type!=="issuing"&&!n._payout&&!a.has(n.source))}async function Uu(e,t,a,n,r,s,i){for(let o of i)await e.write(J,String(o.id),{_payout:t},"balance_transaction.paid_out");return _e(e,{amount:-a,currency:n,fee:0,net:-a,type:"payout",reporting_category:"payout",source:t,available_on:s,_payout:t},r??null)}async function ds(e,t,a,n,r=H(e)){let s=a<0?"payout":"payout_cancel";return _e(e,{amount:a,currency:n,fee:0,net:a,type:s,reporting_category:s==="payout"?"payout":"payout_reversal",source:t,available_on:Number(g(e.occurredAt))},r)}async function Da(e,t,a,n,r,s,i=!1){let o=s??Number(g(e.occurredAt)),u=o<=Number(g(e.occurredAt)),l=await _e(e,{amount:-a,currency:n,fee:0,net:-a,type:"transfer",reporting_category:"transfer",source:t,...i?{status:u?"available":"pending",available_on:o}:{available_on:Number(g(e.occurredAt))}},null);return await _e(e,{amount:a,currency:n,fee:0,net:a,type:"payment",reporting_category:"charge",source:t,status:u?"available":"pending",available_on:o},r),l}async function Hu(e,t,a,n,r){return await _e(e,{amount:-a,currency:n,fee:0,net:-a,type:"application_fee",reporting_category:"platform_earning",source:t,available_on:Number(g(e.occurredAt))},r),_e(e,{amount:a,currency:n,fee:0,net:a,type:"application_fee",reporting_category:"platform_earning",source:t,available_on:Number(g(e.occurredAt))},null)}async function cs(e,t=H(e)){let a=Number(g(e.occurredAt)),n=[];for(let r of e.rowsRaw(J))if(Ne(r,t)){if(r.status==="available"&&r[Nt]===!0){await e.write(J,String(r.id),{[Nt]:!1},"balance_transaction.available_sent"),n.push(r);continue}r.status!=="pending"||!(Number(r.available_on)<=a)||e.legal(J,"status",e.call.operation.id,"pending","available",String(r.id),"time")||(await e.write(J,String(r.id),{status:"available"},"balance_transaction.available"),n.push(r))}return n}function Zt(e,t=H(e)){let a=new Map,n=new Map,r=new Map;for(let s of e.rowsRaw(J)){if(!Ne(s,t))continue;let i=Jt(e,s),o=String(i.currency??"usd"),u=Number(i.net??0),l=i.balance_type==="issuing"?r:i.status==="available"?a:n;l.set(o,(l.get(o)??0)+u)}return{available:a,pending:n,issuing:r}}function mt(e,t,a,n=H(e)){let r=Zt(e,n).available.get(a)??0;if(!(t<=r))return b(e,"The transfer or payout couldn't be completed because the associated account doesn't have a sufficient balance available.",400,"balance_insufficient")}var ps=e=>new Set(e.rowsRaw(J).filter(t=>Ne(t,H(e))).map(t=>t.id)),ms=(e,t)=>b(e,`No such charge: '${t}'`,404,"resource_missing");function Ma(e,t){let a=T(e,"refund").filter(n=>n.charge===t.id);return{...t,refunds:{object:"list",data:a,has_more:!1,total_count:a.length,url:`/v1/charges/${String(t.id)}/refunds`}}}var _t=(e,t)=>b(e,`No such subscription: '${t}'`,404,"resource_missing");function _s(e,t,a){if(t==="")return[];let n=e.get("coupon",t);return n?[ca(n,String(a.customer??""),Number(g(e.occurredAt)),{subscription:String(a.id)})]:b(e,`No such coupon: '${t}'`,400,"resource_missing")}function ys(e,t,a){let n=typeof t=="number"?t:typeof t=="string"&&/^\d+$/.test(t.trim())?Number(t):NaN;return t===void 0||t==="now"||Number.isInteger(n)&&n>a&&n<=a+ir?void 0:Vu(e)}function Vu(e){return e.refuse({status:400,param:"trial_end",message:"Invalid timestamp: must be an integer Unix timestamp in the future."})}async function fs(e,t,a,n){let r=e.params.trial_end;delete a.trial_end;let s=String(t.id);if(r!=="now"||t.status!=="trialing")return r==="now"?void 0:or(t,a,Number(r),n);let i={...t,...a,items:O(e,D,s)?.items??t.items},{interval:o,interval_count:u}=Pt(i.items?.data??[],le(e)),l={start:n,end:Le(n,o,u)},p=await ja(e,i,{...l,reason:"subscription_update"});Object.assign(a,{trial_end:n,billing_cycle_anchor:n,current_period_start:l.start,current_period_end:l.end,latest_invoice:p});let c=bs(e,t);return{invoice:p,...c?{payer:c}:{},attempt:e.params.payment_behavior!=="default_incomplete"}}function bs(e,t){let a=e.params.default_payment_method;return typeof a=="string"&&a?a:dt(e,t)}function gs(e,t,a){if(e.params.trial_end!=="now")return Ku(e,t);if(t.status!=="trialing")return;let n=Qu(e,t,a);if(e.params.payment_behavior==="error_if_incomplete"&&n.due>0&&!n.pays)return Zu(e,n.declined);let r=e.legal(D,"status",e.call.operation.id,"trialing",n.due<=0||n.pays?"active":"past_due",String(t.id));return r?e.refuse(r):void 0}function hs(e,t){return typeof t=="string"?e.get("price",t):t&&typeof t=="object"?t:void 0}function Wu(e,t,a){let n=new Map;for(let r of t.items?.data??[])n.set(String(r.id),{price:hs(e,r.price),quantity:kt(r)});return a.forEach((r,s)=>Yu(e,n,r,s)),[...n.values()].reduce((r,s)=>r+ve(s.price,s.quantity),0)}function Yu(e,t,a,n){let r=a.price_data&&typeof a.price_data=="object"?a.price_data:void 0,s=r?r.unit_amount_decimal!==void 0?{unit_amount_decimal:String(r.unit_amount_decimal)}:{unit_amount:Math.trunc(Number(r.unit_amount)||0)}:void 0,i=typeof a.price=="string"&&a.price?hs(e,a.price):s,o=typeof a.id=="string"&&a.id,u=o?String(a.id):`new_${n}`;if(o&&E(a.deleted)){t.delete(u);return}let l=t.get(u),p=a.quantity!==void 0?Math.max(0,Math.trunc(Number(a.quantity)||0)):i&&l&&i.id!==l.price?.id?1:l?.quantity??1;t.set(u,{price:i??l?.price,quantity:p})}function Ku(e,t){let a=t.status==="trialing"?void 0:e.legal(D,"status",e.call.operation.id,t.status,"trialing",String(t.id));return a?e.refuse(a):void 0}function Qu(e,t,a){let n=Wu(e,t,it(e.params.items)),r=(a??t.discounts??[])[0],s=r&&typeof r=="object"?r.coupon:void 0,i=n-(s?oe(n,s):0),o=bs(e,t),u=e.params.payment_behavior!=="default_incomplete",l=o&&u?me(le(e),{payment_method:o}):void 0;return{due:i,pays:u&&!!o&&!l,...l?{declined:l}:{}}}function Ju(e){return b(e,"Missing required param: items[price].",400,"parameter_missing")}function Zu(e,t){return t?ye(e,rt(t)):b(e,"This customer has no attached payment source or default payment method.",400,"resource_missing")}async function qs(e,t,a){let n=Oa(e,t,a);return n||Xu(e,t,a)}function Oa(e,t,a){for(let n of a){let r=typeof n.price=="string"&&n.price?n.price:void 0;if(r&&!e.get("price",r))return b(e,`No such price: '${r}'`,400,"resource_missing");let s=!r&&n.price_data&&typeof n.price_data=="object"?n.price_data:void 0;if(s){let i=el(e,s);if(i)return i}if(typeof n.id=="string"&&n.id){let i=e.get("subscription_item",n.id);if(!i||i.subscription!==t)return b(e,`No such subscription_item: '${n.id}'`,400,"resource_missing")}else if(!r&&!s)return Ju(e)}}async function Xu(e,t,a){for(let n of a){let r=typeof n.price=="string"&&n.price?void 0:n.price_data&&typeof n.price_data=="object"?n.price_data:void 0,s=typeof n.price=="string"&&n.price?n.price:r?await tl(e,r):void 0,i=typeof n.id=="string"&&n.id?e.get("subscription_item",n.id)?.price:void 0,o=typeof i=="string"?i:i&&typeof i=="object"?String(i.id??""):void 0,u=n.quantity!==void 0?{quantity:Math.max(0,Math.trunc(Number(n.quantity)||0))}:s&&s!==o?{quantity:1}:{},l=n.metadata&&typeof n.metadata=="object"?{metadata:n.metadata}:{};if(typeof n.id=="string"&&n.id){if(E(n.deleted)){await e.write("subscription_item",n.id,{deleted:!0},"subscription_item.delete");continue}await e.write("subscription_item",n.id,{...s?{price:s}:{},...u,...l},"subscription_item.update")}else await h(e,"subscription_item",{subscription:t,...pa(s,le(e)),quantity:1,...u,...l},{livemode:!1,metadata:{},discounts:[],tax_rates:[],billing_thresholds:null})}await al(e,t)}function el(e,t){for(let n of["currency","product"])if(typeof t[n]!="string"||!t[n])return b(e,`Missing required param: items[price_data][${n}].`,400,"parameter_missing");if(!e.get("product",String(t.product)))return b(e,`No such product: '${String(t.product)}'`,400,"resource_missing");let a=t.recurring?.interval;if(!["day","week","month","year"].includes(String(a)))return b(e,"Missing required param: items[price_data][recurring][interval].",400,"parameter_missing");if(t.unit_amount!==void 0&&t.unit_amount_decimal!==void 0)return b(e,"Only one of `unit_amount` and `unit_amount_decimal` can be set.",400,"parameter_invalid")}async function tl(e,t){let a=t.recurring,n=t.unit_amount_decimal!==void 0?String(t.unit_amount_decimal):String(Math.trunc(Number(t.unit_amount)||0)),r=await h(e,"price",{product:t.product,currency:String(t.currency).toLowerCase(),unit_amount:t.unit_amount_decimal!==void 0?Number.isInteger(Number(t.unit_amount_decimal))?Number(t.unit_amount_decimal):null:Math.trunc(Number(t.unit_amount)||0),unit_amount_decimal:n,recurring:{interval:a.interval,interval_count:Math.max(1,Math.trunc(Number(a.interval_count??1))||1),usage_type:"licensed",trial_period_days:null,meter:null},tax_behavior:typeof t.tax_behavior=="string"?t.tax_behavior:"unspecified"},{active:!1,livemode:!1,billing_scheme:"per_unit",type:"recurring",metadata:{},lookup_key:null,nickname:null});return String(r.id)}async function vs(e,t,a){for(let n of a){if(typeof n.id!="string"||e.get("subscription_item",n.id))continue;let{plan:r,price:s,...i}=n;await e.write("subscription_item",n.id,{...i,price:typeof s=="object"&&s?s.id:s,subscription:t},"subscription_item.create")}}async function al(e,t){t&&await e.write(D,t,{},"subscription.items_synced")}var ws=(e,t,a=404)=>b(e,`No such radar value list: '${t}'`,a,"resource_missing");async function As(e,t){let a=T(e,Rt).filter(n=>n.value_list===t);await e.write(xe,t,{list_items:{object:"list",data:a,has_more:!1,url:`/v1/radar/value_list_items?value_list=${t}`}},"radar.value_list.items_synced")}function Ge(e,t){return e.expand(K,t)}var Ba=(e,t)=>b(e,`No such authorization: '${t}'`,404,"resource_missing");async function Ps(e,t,a,n){let r=typeof a.currency=="string"?a.currency:"usd",s=await h(e,"balance_transaction",{},{amount:-n,currency:r,fee:0,net:-n,type:"issuing_transaction",status:"available",balance_type:"issuing",reporting_category:"issuing_transaction",available_on:g(e.occurredAt),fee_details:[]}),i=await h(e,zt,{authorization:t,card:a.card,cardholder:a.cardholder},{type:"capture",amount:-n,currency:r,merchant_amount:-n,merchant_currency:typeof a.merchant_currency=="string"?a.merchant_currency:r,merchant_data:a.merchant_data??Dt(void 0),livemode:!1,metadata:{},dispute:null,wallet:null,network_data:null,amount_details:null,purchase_details:null,balance_transaction:s.id});return{txnId:String(i.id),btId:String(s.id)}}function yt(e,t,a){switch(t){case"card_status":return b(e,"Invalid status: must be one of 'active', 'inactive', or 'canceled'.",400,"parameter_invalid_string_enum");case"authorization_method":return b(e,"Invalid authorization_method: must be one of 'chip', 'contactless', 'keyed_in', 'online', or 'swipe'.",400,"parameter_invalid_string_enum");case"not_capturable":return b(e,`This authorization cannot be captured because it is not an approved pending authorization (status: ${String(a?.status)}, approved: ${a?.approved===!0}).`,400)}}function nl(e,t){if(Math.trunc(Number(e.params.amount)||0)<=0)return b(e,"Invalid integer: amount must be a positive integer.",400,"parameter_invalid_integer");if(t.pending_request?.is_amount_controllable!==!0)return b(e,"amount may only be provided when the authorization was presented with is_amount_controllable.",400)}function $a(e){return async t=>{let a=k(t,"authorization"),n=t.get(K,a);if(!n)return Ba(t,a);let r={status:400,code:"authorization_already_finalized",message:`This authorization has already been finalized (status ${String(n.status)}).`};if(n.approved===!0&&n.status==="pending")return t.refuse(r);let s=t.legal(K,"status",e?"PostIssuingAuthorizationsAuthorizationApprove":"PostIssuingAuthorizationsAuthorizationDecline",n.status,void 0,a);if(s)return t.refuse(s);let i=e&&t.params.amount!==void 0?nl(t,n):void 0;if(i)return i;let o=e&&t.params.amount!==void 0?Math.trunc(Number(t.params.amount)||0):Number(n.amount)||0,u=typeof n.currency=="string"?n.currency:"usd",l=Array.isArray(n.request_history)?n.request_history:[],p=e?await xs(t,a,o,u):null;return t.reply(Ge(t,await t.write(K,a,{status:e?"pending":"closed",approved:e,pending_request:null,...e&&t.params.amount!==void 0?{amount:o}:{},request_history:[...l,ut({amount:o,currency:u,approved:e,reason:e?"webhook_approved":"webhook_declined",reasonMessage:null,createdSec:Number(g(t.occurredAt)),merchantAmount:Number(n.merchant_amount)||o,merchantCurrency:typeof n.merchant_currency=="string"?n.merchant_currency:u})],...p?{balance_transactions:[...Array.isArray(n.balance_transactions)?n.balance_transactions:[],p.id]}:{}},"issuing_authorization.updated")))}}async function Ss(e){let t=Number(g(e.occurredAt)),a=new Set(e.rows("event").filter(n=>n.type==="issuing_authorization.request").map(n=>String(n.data?.object?.id??"")));for(let n of e.rowsRaw(K)){if(n.status!=="pending"||n.approved===!0||!n.pending_request||!a.has(String(n.id)))continue;let r=Number(n.created)+dr;if(t<r)continue;let s=String(n.id),i=typeof n.currency=="string"?n.currency:"usd",o=Number(n.amount)||0;e.legal(K,"status",e.call.operation.id,"pending","closed",s,"time"),await e.write(K,s,{status:"closed",approved:!1,pending_request:null,request_history:[...Array.isArray(n.request_history)?n.request_history:[],ut({amount:o,currency:i,approved:!1,reason:"webhook_timeout",reasonMessage:null,createdSec:r,merchantAmount:Number(n.merchant_amount)||o,merchantCurrency:typeof n.merchant_currency=="string"?n.merchant_currency:i})]},"issuing_authorization.updated")}}async function xs(e,t,a,n){return h(e,"balance_transaction",{},{amount:-a,currency:n,fee:0,net:-a,type:"issuing_authorization_hold",status:"available",balance_type:"issuing",reporting_category:"issuing_authorization_hold",available_on:g(e.occurredAt),fee_details:[],source:t})}async function La(e,t,a,n,r){let s=await xs(e,String(t.id),n,String(a.currency??"usd"));return e.reply(Ge(e,await h(e,K,t,{...a,amount:n,status:"pending",approved:!0,pending_request:null,request_history:[r],balance_transactions:[s.id]})))}async function ks(e,t,a){if(t.kind==="approved"){let n=a.controllable&&t.amount!==void 0?t.amount:a.amount;return La(e,a.subject,a.fields,n,a.entry({amount:n,approved:!0,reason:"webhook_approved",reasonMessage:null}))}return t.kind==="declined"?a.decline("webhook_declined",null):a.decline("webhook_error",t.message)}async function js(e){let t=Number(g(e.occurredAt)),a=e.rowsRaw("refund").filter(n=>n.status==="pending"&&n.pending_reason==="insufficient_funds").sort((n,r)=>Number(n.created)-Number(r.created));for(let n of a)await rl(e,n,t)}async function rl(e,t,a){let n=typeof t._account=="string"?t._account:void 0,r=String(t.currency??"usd"),s=Number(t.amount)||0,i=[Number(t.created),...$u(e,n,r,Number(t.created),a)].find(l=>ls(e,n,r,l)>=s);if(i===void 0)return;let o=await pt(e)(i);o.legal("refund","status",e.call.operation.id,"pending","succeeded",String(t.id),"vendor");let u=await us(o,String(t.id),s,r,n??null);await o.write("refund",String(t.id),{status:"succeeded",pending_reason:null,balance_transaction:u},"refund.updated")}var ze=(e,t,a=404)=>b(e,`No such account: '${t}'`,a,"resource_missing"),Cs=(e,t)=>e.row("account",t,{withDeleted:!0});async function Es(e,t){let a=O(e,"account",t);a&&a.type==="custom"&&await sl(e,t,a)}async function sl(e,t,a){let n=e.rows("external_account").some(p=>p.account===t),r=e.rows("person").filter(p=>p.account===t),{now:s,later:i}=br(a,n,r),o=s.length===0,u={};for(let[p,c]of Object.entries(a.capabilities??{})){let d=o?"active":"inactive";u[p]=d}let l={...a.requirements??{},currently_due:s,eventually_due:[...s,...i],past_due:[],disabled_reason:o?null:"requirements.past_due",current_deadline:null};await e.write("account",t,{capabilities:u,requirements:l,charges_enabled:o,payouts_enabled:o,details_submitted:o},o?"account.updated":"account.update")}function Is(e){return e.refuse({status:400,code:"insufficient_capabilities_for_transfer",param:"destination",message:"Your destination account needs to have at least one of the following capabilities enabled: transfers, crypto_transfers, legacy_payments"})}function Ts(e,t,a){return mt(e,t,a,void 0)}function il(e,t,a){let n=Array.isArray(a)?a:a&&typeof a=="object"?Object.values(a):[a],r=t==="PostCheckoutSessions",s=r?Pr:Ar,i=n.findIndex(u=>!s.includes(String(u)));if(i<0)return;if(r){let u=`payment_method_types[${i}]`;return e.refuse({status:400,param:u,message:`Invalid ${u}: must be one of ${xr(s)}`})}let o=Sr[t.startsWith("PostSetupIntents")?"setup_intents":"payment_intents"];return e.refuse({status:400,param:"payment_method_types",message:`The payment method type "${String(n[i])}" is invalid. See ${o} for the full list of supported payment method types.`})}var kr=(e,t)=>e.refuse({status:400,code:"payment_method_types_no_longer_supported",param:"payment_method_types",message:`payment_method_types is no longer supported in API version ${t}. Use allowed_payment_method_types, or dynamic payment methods, instead.`});function Ns(e){let t=hr.get(e.call.operation.id);if(!t)return;let a=e.call.request.headers.get("stripe-version"),n=e.params;if(a&&a<tt)return!wr.has(t.id)||n.payment_method_types===void 0?void 0:$t.has(t.id)&&vr(a)?kr(e,a):il(e,t.id,n.payment_method_types);let r=e.call.request.method.toUpperCase(),s=new Set([...t.query??[],...t.body??[]].map(o=>o.name).concat(qr[t.id]??[]));if($t.has(t.id)&&n.payment_method_types!==void 0)return kr(e,a??tt);for(let o of Object.keys(n))if(!s.has(o))return e.refuse({status:400,code:"parameter_unknown",param:o,message:`Received unknown parameter: ${o}`});let i=r==="GET"||r==="DELETE"?t.query??[]:t.body??[];for(let o of i)if(o.required&&n[o.name]===void 0)return e.refuse({status:400,code:"parameter_missing",param:o.name,message:`Missing required param: ${o.name}.`})}async function Rs(e,t){let a=e.method==="POST"&&new URL(e.url).pathname.replace(/\/+$/,"")==="/v1/webhook_endpoints",n=e.headers.get("stripe-version");if(!(t.headers.get("content-type")??"").includes("json")||!vt(n)&&a)return t;let r=await yn(e.clone()),s=await t.json(),i=a?s:qt(s);return new Response(JSON.stringify(vt(n)?at(i,n,r):i),{status:t.status,statusText:t.statusText,headers:t.headers})}async function ol(e,t,a){let n=Ue(a),r={object:"list",data:a,has_more:!1,total_count:a.length,url:`/v1/invoices/${t}/lines`};return e.write(M,t,{lines:r,subtotal:n,total:n,amount_due:n,amount_remaining:n},"invoice.update")}async function Gs(e,t,a,n,r){let s=e.get(M,t)??a;await ol(e,t,[...Qn(s),{id:`il_${String(n.id)}`,object:"line_item",type:"invoiceitem",amount:Number(n.amount)||0,currency:String(s.currency??n.currency??"usd"),quantity:Number(n.quantity)||1,proration:!1,invoice_item:n.id,price:n.price??null,period:n.period??{start:r,end:r},description:n.description??null,discountable:n.discountable??!0,discounts:[],livemode:!1,metadata:n.metadata??{},tax_amounts:[],tax_rates:[]}]),await e.write("invoiceitem",String(n.id),{invoice:t},"invoiceitem.update")}function zs(e,t){let a=e.id?e.get(I,e.id):void 0;if(!a)return{answer:e.notFound(I,String(e.id))};let n=e.legal(I,"status",t,a.status);return n?{answer:e.refuse(n)}:{pi:a}}async function ul(e,t,a,n,r){let s=await _e(e,{amount:a,currency:n,fee:0,net:a,type:"transfer_refund",reporting_category:"transfer_reversal",source:t,available_on:Number(g(e.occurredAt))},null);return await _e(e,{amount:-a,currency:n,fee:0,net:-a,type:"payment_refund",reporting_category:"refund",source:t,available_on:Number(g(e.occurredAt))},r),s}async function ll(e,t,a,n={}){let r=String(t.id),s=Number(t.amount)||0;t.refunded!==!0&&e.legal("charge","refunded",a,"false","true",r);let i=await h(e,"refund",{...n,charge:r,amount:s-(Number(t.amount_refunded)||0),currency:String(t.currency??"usd")},{status:"succeeded",metadata:{},reason:null,receipt_number:null,balance_transaction:null,source_transfer_reversal:null,transfer_reversal:null,...va(t,"reversal"),...typeof t.payment_intent=="string"?{payment_intent:t.payment_intent}:{}});return await e.write("charge",r,{amount_refunded:s,refunded:!0},"charge.refunded"),i}async function Ds(e,t){return e.write("charge",String(t.id),{amount_captured:0},"charge.authorization_released")}function dl(e){return b(e,`Invalid refund reason: must be one of ${[...xa].join(", ")}.`,400,"parameter_invalid_string_enum")}async function cl(e,t,a,n,r){let s=e.rows("customer_cash_balance_transaction").filter(i=>i.customer===t&&String(i.currency)===a).reduce((i,o)=>i+(Number(o.net_amount)||0),0);await h(e,"customer_cash_balance_transaction",{customer:t},{currency:a,type:"refunded_from_payment",net_amount:n,ending_balance:s+n,refunded_from_payment:{refund:r},livemode:!1})}async function pl(e,t,a,n,r){if(a<n)return b(e,`Charge ${String(t.id)} is uncaptured: refunding it releases the whole authorization (${n}).`,400,"amount_too_small");let{reason:s,metadata:i}=r;return e.reply(await ll(e,t,e.call.operation.id,{...s!==void 0?{reason:s}:{},...i!==void 0?{metadata:i}:{}}))}async function Ms(e,t,a){let n=String(t.id),r=Number(t.amount)||0,s=Number(t.amount_refunded)||0,i=Math.max(0,r-s),o=a.amount===void 0?i:Math.trunc(Number(a.amount));if(!Number.isFinite(o)||o<=0)return b(e,"Invalid integer: amount must be a positive integer.",400,"parameter_invalid_integer");if(o>i)return b(e,`Refund amount (${o}) is greater than unrefunded amount on charge (${i}).`,400,"amount_too_large");if(a.reason!==void 0&&!xa.has(String(a.reason)))return dl(e);if(t.captured===!1&&typeof t.payment_intent=="string")return b(e,`Charge ${n} is uncaptured and can't be refunded directly; cancel its PaymentIntent (${t.payment_intent}) to release the authorization.`,400,"payment_intent_unexpected_state");if(t.captured===!1)return pl(e,t,o,i,a);let u=s+o;if(u>=r&&t.refunded!==!0){let se=e.legal("charge","refunded",e.call.operation.id,"false","true",n);if(se)return e.refuse(se)}let l=e.mint("refund"),p=String(t.currency??"usd"),c=typeof t.payment_intent=="string"?e.get("payment_intent",t.payment_intent):void 0,d=(c?.payment_method_types??[]).includes("customer_balance"),_=d&&a.origin==="customer_balance",m=d&&!_,y=Number(g(e.occurredAt)),w=typeof t.customer=="string"?t.customer:typeof c?.customer=="string"?c.customer:void 0,v=typeof a.instructions_email=="string"?a.instructions_email:(w?e.get("customer",w)?.email:void 0)??null,P=H(e),x=t.payment_method_details?.type==="card",C=!m&&!_&&x&&ls(e,P,p,y)<o;C&&e.legal("refund","status",e.call.operation.id,"succeeded","pending",l);let Z=m||C?null:await us(e,l,o,p);_&&w&&await cl(e,w,p,o,l);let{reverse_transfer:q,refund_application_fee:j,instructions_email:G,origin:N,...X}=a,te=se=>Math.round(se*o/(r||1)),Q=null,V=typeof t.transfer=="string"?e.get("transfer",t.transfer):void 0;if(q!==void 0&&E(q)&&V){let se=Math.min(te(Number(V.amount)||0),(Number(V.amount)||0)-(Number(V.amount_reversed)||0)),Oe=await h(e,"transfer_reversal",{amount:se,currency:p,transfer:V.id},{balance_transaction:null,destination_payment_refund:null,source_refund:l,metadata:{}}),Ze=await ul(e,String(Oe.id),se,p,String(V.destination)),oa=await e.write("transfer_reversal",String(Oe.id),{balance_transaction:Ze},"transfer_reversal.updated"),Xe=(Number(V.amount_reversed)||0)+se,et=V.reversals??{object:"list",data:[],has_more:!1,total_count:0},ln=[...et.data??[],oa];await e.write("transfer",String(V.id),{amount_reversed:Xe,reversed:Xe>=(Number(V.amount)||0),reversals:{...et,data:ln,total_count:ln.length,url:`/v1/transfers/${String(V.id)}/reversals`}},"transfer.reversed"),Q=String(Oe.id)}let W=typeof t.application_fee=="string"?e.get("application_fee",t.application_fee):void 0;if(j!==void 0&&E(j)&&W){let se=Number(W.amount)||0,Oe=Math.min(te(se),se-(Number(W.amount_refunded)||0)),Ze=(Number(W.amount_refunded)||0)+Oe;if(!(Ze>=se&&W.refunded!==!0&&e.legal("application_fee","refunded",e.call.operation.id,"false","true",String(W.id)))){let oa=await h(e,"fee_refund",{amount:Oe,currency:p,fee:W.id},{balance_transaction:null,metadata:{}}),Xe=W.refunds??{object:"list",data:[],has_more:!1,total_count:0},et=[...Xe.data??[],oa];await e.write("application_fee",String(W.id),{amount_refunded:Ze,refunded:Ze>=se,refunds:{...Xe,data:et,total_count:et.length,url:`/v1/application_fees/${String(W.id)}/refunds`}},"application_fee.refunded")}}let ko=await h(e,"refund",{...X,id:l,charge:n,amount:o,currency:p,transfer_reversal:Q,...typeof t.payment_intent=="string"?{payment_intent:t.payment_intent}:{}},{status:m?"requires_action":C?"pending":"succeeded",metadata:{},reason:null,receipt_number:null,...C?{pending_reason:"insufficient_funds",_account:P??null}:{},balance_transaction:Z,source_transfer_reversal:null,...d?{destination_details:_?{type:"customer_cash_balance",customer_cash_balance:{}}:{type:"us_bank_transfer",us_bank_transfer:{reference:null,reference_status:null}}}:va(t,"refund"),...m?{next_action:{type:"display_details",display_details:{email_sent:{email_sent_at:y,email_sent_to:v},expires_at:y+30*86400}}}:{}});return await e.write("charge",n,{amount_refunded:u,refunded:u>=r},"charge.refunded"),e.reply(ko)}function Os(e){let t=typeof e.params.charge=="string"?e.params.charge:"",a=typeof e.params.payment_intent=="string"?e.params.payment_intent:"";if(!t&&!a)return b(e,"One of `charge` or `payment_intent` is required.",400,"parameter_missing");if(t)return e.get("charge",t)??b(e,`No such charge: '${t}'`,404,"resource_missing");let n=e.get("payment_intent",a);if(!n)return b(e,`No such payment_intent: '${a}'`,404,"resource_missing");let r=typeof n.latest_charge=="string"?n.latest_charge:void 0;return(r?e.get("charge",r):void 0)??T(e,"charge").find(i=>i.payment_intent===a)??b(e,`This PaymentIntent does not have a successful charge to refund. Its status is ${String(n.status)}.`,400,"payment_intent_unexpected_state")}function ml(e,t,a,n){if(!(e.customer!==t||e.invoice))return{id:`il_${String(e.id)}`,object:"line_item",type:"invoiceitem",amount:Number(e.amount)||0,currency:a,quantity:Number(e.quantity)||1,proration:!1,invoice_item:e.id,period:e.period??{start:n,end:n},description:e.description??null}}function Bs(e,t,a,n){return T(e,"invoiceitem","date").flatMap(r=>{let s=ml(r,t,a,n);return s?[s]:[]})}var $s=["requires_payment_method","requires_confirmation","requires_action","requires_capture","processing"],$=(e,t,a,n)=>({actor:e,from:t,to:a,source:n}),Ls=e=>({initial:"new",transitions:[]}),_l=(e,t)=>["true","false"].map(a=>({operation:e,from:"*",to:a,source:t})),yl={initial:"requires_payment_method",transitions:[{operation:"PostPaymentIntents",from:["requires_payment_method"],to:"requires_confirmation",source:"https://docs.stripe.com/payments/paymentintents/lifecycle"},...["PostPaymentIntents"].map(e=>({operation:e,from:["requires_payment_method","requires_confirmation","requires_action"],to:"processing",source:"https://docs.stripe.com/payments/ach-direct-debit/accept-a-payment?payment-ui=direct-api"})),$("vendor",["processing"],"succeeded","https://docs.stripe.com/payments/ach-direct-debit/accept-a-payment?payment-ui=direct-api"),...["requires_payment_method","requires_action","requires_capture","succeeded"].map(e=>({operation:"PostPaymentIntents",from:["requires_payment_method","requires_confirmation"],to:e,source:'spec:PostPaymentIntents "Set to `true` to attempt to [confirm this PaymentIntent](https://docs.stripe.com/api/payment_intents/confirm) immediately."'})),{operation:"PostPaymentIntentsIntentCancel",from:$s,to:"canceled",refusal:{status:400,code:"payment_intent_unexpected_state",message:"You cannot cancel this PaymentIntent because it has a status of {from}. Only a PaymentIntent with one of the following statuses may be canceled: requires_payment_method, requires_capture, requires_confirmation, requires_action, processing."},source:"https://docs.stripe.com/api/payment_intents/cancel"},{operation:"PostInvoicesInvoicePay",from:$s,to:"succeeded",source:"https://docs.stripe.com/api/invoices/pay"},$("external",["requires_payment_method"],"succeeded","https://docs.stripe.com/customer-management")]},fl={initial:!0,transitions:[]},bl={initial:!1,transitions:[{operation:"PostRefunds",from:["false"],to:"true",source:"https://docs.stripe.com/api/charges/object#charge_object-refunded"}]},gl={initial:"succeeded",transitions:[]},hl={initial:!0,transitions:[]},ql={initial:"succeeded",transitions:[{operation:"PostRefunds",from:["succeeded"],to:"pending",source:"https://docs.stripe.com/refunds"},$("vendor",["pending"],"succeeded","https://docs.stripe.com/refunds")]},vl={initial:"requires_payment_method",transitions:[]},Fs=e=>({status:400,code:"invoice_not_editable",message:e}),wl={initial:"draft",transitions:[{operation:"PostInvoicesInvoicePay",from:["draft"],to:"open",source:"https://docs.stripe.com/invoicing/integration"},{operation:"PostInvoicesInvoicePay",from:["draft","open","uncollectible"],to:"paid",refusal:Fs("This invoice cannot be paid because it has status {from}."),refusals:{paid:{status:400,code:"invoice_payment_intent_requires_action",message:"This invoice has already been paid."}},source:"https://docs.stripe.com/api/invoices/pay"},{operation:"PostInvoicesInvoiceVoid",from:["open","uncollectible"],to:"void",refusal:Fs("This invoice cannot be voided because it has status {from}."),source:"https://docs.stripe.com/api/invoices/void"},$("vendor",["draft","open","uncollectible"],"paid","https://docs.stripe.com/billing/subscriptions/build-subscriptions"),$("external",["draft"],"paid","https://docs.stripe.com/payments/checkout/how-checkout-works"),$("time",["draft"],"paid","https://docs.stripe.com/invoicing/integration/workflow-transitions#finalized"),$("time",["draft"],"open","https://docs.stripe.com/billing/subscriptions/overview#payment-status"),{operation:"PostSubscriptionsSubscriptionExposedId",from:["draft"],to:"paid",source:"https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment"},{operation:"PostSubscriptionsSubscriptionExposedId",from:["draft"],to:"open",source:"https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment"},$("external",["open"],"paid","https://docs.stripe.com/customer-management")]},Al={initial:"active",transitions:[{operation:"DeleteSubscriptionsSubscriptionExposedId",from:"*",to:"canceled",source:"https://docs.stripe.com/api/subscriptions/cancel"},$("vendor",["incomplete"],"active","https://docs.stripe.com/billing/subscriptions/build-subscriptions"),{operation:"PostInvoicesInvoicePay",from:["incomplete","past_due"],to:"active",source:"https://docs.stripe.com/billing/subscriptions/overview#payment-status"},{operation:"PostSubscriptionsSubscriptionExposedId",from:["trialing"],to:"active",source:"https://docs.stripe.com/api/subscriptions/update#update_subscription-trial_end"},{operation:"PostSubscriptionsSubscriptionExposedId",from:["trialing"],to:"past_due",source:"https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment"},{operation:"PostSubscriptionsSubscriptionExposedId",from:["active","past_due"],to:"trialing",refusal:{status:400,message:"A trial can only be added to an active or past_due subscription; this one is {from}."},refusals:{canceled:{status:400,message:"A canceled subscription can only update its cancellation_details and metadata."}},source:"https://docs.stripe.com/billing/subscriptions/trials/free-trials#adding-a-new-trial-to-a-subscription-previously-in-a-trial"},$("time",["trialing"],"active","https://docs.stripe.com/billing/subscriptions/trials"),$("time",["active"],"past_due","https://docs.stripe.com/billing/subscriptions/overview#payment-status"),$("time",["active","trialing","past_due"],"canceled","https://docs.stripe.com/billing/subscriptions/cancel#cancel-at-end-of-cycle"),$("external",["past_due"],"active","https://docs.stripe.com/customer-management"),$("external",["active","trialing","past_due","unpaid","paused"],"canceled",'spec:/components/schemas/portal_subscription_cancel "Whether to cancel subscriptions immediately or at the end of the billing period."')]},Pl=e=>({status:400,code:"checkout_session_not_open",message:`You may only ${e} a Checkout Session that is currently in the \`open\` state.`}),Sl={initial:"open",transitions:[{actor:"external",from:["open"],to:"complete",refusal:Pl("complete"),source:"https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-status"}]},xl={initial:"unpaid",transitions:[{actor:"external",from:"*",to:"paid",source:"https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-payment_status"}]},kl={initial:"warning_needs_response",transitions:[]},jl={initial:"pending",transitions:[$("time",["pending"],"paid","https://docs.stripe.com/payouts#payout-statuses")]},Cl={initial:"issued",transitions:[]},El={initial:"active",transitions:[]},Il={initial:"draft",transitions:[]},Tl=(e,t,a)=>t.map(n=>({operation:e,from:"*",to:n,source:a})),Nl={initial:"pending",transitions:[{operation:"PostIssuingAuthorizationsAuthorizationApprove",from:["pending"],source:"https://docs.stripe.com/issuing/purchases/authorizations"},{operation:"PostIssuingAuthorizationsAuthorizationApprove",from:"*",refusal:{status:400,code:"authorization_already_finalized",message:"This authorization has already been finalized (status {from})."},source:"https://docs.stripe.com/issuing/purchases/authorizations"},{operation:"PostIssuingAuthorizationsAuthorizationDecline",from:["pending"],to:"closed",refusal:{status:400,code:"authorization_already_finalized",message:"This authorization has already been finalized (status {from})."},source:"https://docs.stripe.com/api/issuing/authorizations/decline"},{operation:"PostTestHelpersIssuingAuthorizationsAuthorizationCapture",from:["pending"],to:"closed",source:"https://docs.stripe.com/api/issuing/authorizations/test_mode_capture"},{operation:"PostTestHelpersIssuingAuthorizationsAuthorizationCapture",from:["pending"],source:"https://docs.stripe.com/api/issuing/authorizations/test_mode_capture"},$("time",["pending"],"closed","https://docs.stripe.com/issuing/controls/real-time-authorizations")]},Fa={initial:"processing",transitions:[]},S={"billing.meter":{notState:["event_time_window"],state:{status:{initial:"active",transitions:[]}}},"billing.credit_grant":{notState:["category"]},"billing.alert":{state:{status:{initial:"active",transitions:[]}}},payment_intent:{state:{status:yl},notState:["cancellation_reason","capture_method","confirmation_method","setup_future_usage"]},customer:{notState:["tax_exempt"]},tax_id:{notState:["type"]},customer_balance_transaction:{notState:["type"]},customer_cash_balance_transaction:{notState:["type"]},payment_source:{state:{status:Ls("https://docs.stripe.com/api/customer_bank_accounts/object#customer_bank_account_object-status")},notState:["allow_redisplay","business_type","regulated_status","type"]},source:{state:{status:{initial:"chargeable",transitions:[]}},notState:["allow_redisplay","type"]},charge:{state:{status:gl,captured:fl,paid:hl,refunded:bl}},refund:{state:{status:ql},notState:["pending_reason","reason"]},setup_intent:{state:{status:vl},notState:["cancellation_reason"]},payment_method:{notState:["allow_redisplay","type"]},subscription:{state:{status:Al},notState:["collection_method"]},invoice:{state:{status:wl},notState:["billing_reason","collection_method","customer_tax_exempt"]},"checkout.session":{state:{status:Sl,payment_status:xl},notState:["billing_address_collection","customer_creation","locale","mode","origin_context","payment_method_collection","redirect_on_completion","submit_type","ui_mode"]},mandate:{state:{status:{initial:"active",transitions:[]}},notState:["type"]},dispute:{state:{status:kl},notState:["is_charge_refundable"]},payout:{state:{status:jl},notState:["reconciliation_status","type"]},balance_transaction:{state:{status:{initial:"available",vendorInitial:"pending",transitions:[$("time",["pending"],"available","https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-status")]}},notState:["balance_type","type"]},coupon:{notState:["duration"],state:{valid:{initial:!0,transitions:[$("time",["true"],"false",'spec:/components/schemas/coupon/properties/redeem_by "Date after which the coupon can no longer be redeemed."')]}}},promotion_code:{state:{active:{initial:!0,transitions:[..._l("PostPromotionCodesPromotionCode","https://docs.stripe.com/api/promotion_codes/update")]}}},credit_note:{state:{status:Cl},notState:["reason","type"]},subscription_schedule:{state:{status:El},notState:["end_behavior"]},"entitlements.feature":{state:{active:{initial:!0,transitions:[]}}},"test_helpers.test_clock":{state:{status:{initial:"ready",transitions:[$("vendor",["advancing"],"ready","https://docs.stripe.com/billing/testing/test-clocks/api-advanced-usage")]}}},webhook_endpoint:{state:{status:{initial:"enabled",transitions:[]}}},account:{notState:["business_type","type"]},person:{notState:["political_exposure"]},capability:{state:{status:{initial:"unrequested",transitions:[]}}},external_account:{state:{status:Ls("https://docs.stripe.com/api/external_account_bank_accounts/object#account_bank_account_object-status")},notState:["allow_redisplay","regulated_status"]},application_fee:{state:{refunded:{initial:!1,transitions:[{operation:"PostRefunds",from:["false"],to:"true",source:"https://docs.stripe.com/connect/destination-charges#issue-refunds"}]}}},file:{notState:["purpose"]},"identity.verification_session":{state:{status:{initial:"requires_input",transitions:[]}},notState:["type"]},"identity.verification_report":{notState:["type"]},"billing_portal.session":{notState:["locale"]},"billing_portal.configuration":{state:{active:{initial:!0,transitions:[]}},notState:["is_default"]},tax_rate:{state:{active:{initial:!0,transitions:[]}},notState:["jurisdiction_level","rate_type","state","tax_type"]},"tax.settings":{notState:["status"]},"tax.registration":{state:{status:{initial:"active",transitions:[]}}},"tax.transaction":{notState:["type"]},payment_link:{state:{active:{initial:!0,transitions:[]}},notState:["billing_address_collection","customer_creation","payment_method_collection","submit_type"]},quote:{state:{status:Il},notState:["collection_method"]},review:{state:{open:{initial:!0,transitions:[]}},notState:["closed_reason","opened_reason"]},"radar.value_list":{notState:["item_type"]},"issuing.cardholder":{state:{status:{initial:"active",transitions:[]}},notState:["type"]},"issuing.card":{state:{status:{initial:"inactive",transitions:Tl("PostIssuingCardsCard",["active","inactive","canceled"],"https://docs.stripe.com/api/issuing/cards/update")}},notState:["cancellation_reason","replacement_reason","type"]},"issuing.authorization":{state:{status:Nl},notState:["authorization_method","card_presence"]},"issuing.transaction":{notState:["type","wallet"]},"issuing.dispute":{state:{status:{initial:"unsubmitted",transitions:[]}},notState:["loss_reason"]},"issuing.personalization_design":{state:{status:{initial:"review",transitions:[]}}},"terminal.reader":{notState:["device_type"],state:{status:{initial:"online",transitions:[]}}},"terminal.configuration":{notState:["is_account_default"]},topup:{state:{status:{initial:"pending",transitions:[$("vendor",["pending"],"succeeded","https://docs.stripe.com/connect/top-ups")]}},notState:["initiated_by"]},"treasury.financial_account":{state:{status:{initial:"open",transitions:[]}},notState:["is_default"]},"treasury.outbound_payment":{state:{status:Fa}},"treasury.outbound_transfer":{state:{status:Fa}},"treasury.inbound_transfer":{state:{status:Fa}},"treasury.received_credit":{state:{status:{initial:"succeeded",transitions:[]}},notState:["failure_code","network"]},"treasury.received_debit":{state:{status:{initial:"succeeded",transitions:[]}},notState:["failure_code","network"]},"treasury.transaction":{notState:["flow_type"],state:{status:{initial:"open",transitions:[]}}},"treasury.transaction_entry":{notState:["flow_type","type"]},"climate.order":{state:{status:{initial:"confirmed",transitions:[]}},notState:["cancellation_reason"]},"financial_connections.account":{state:{status:{initial:"active",transitions:[]}},notState:["category","subcategory"]},"financial_connections.transaction":{state:{status:{initial:"posted",transitions:[]}}},"reporting.report_run":{state:{status:{initial:"pending",transitions:[]}}},product:{state:{active:{initial:!0,transitions:[]}}},price:{notState:["billing_scheme","tax_behavior","tiers_mode","type"],state:{active:{initial:!0,transitions:[]}}}};var Xt={vendor:"stripe",service:"stripe",body:{form:{coerce:!0}},ids:{template:"{prefix}_twin_{n}",acceptProvided:!0},unmodeled:["DeleteAccountsAccountBankAccountsId","DeleteAccountsAccountExternalAccountsId","DeleteAccountsAccountPeoplePerson","DeleteAccountsAccountPersonsPerson","DeleteCouponsCoupon","DeleteCustomersCustomerSourcesId","DeleteCustomersCustomerSubscriptionsSubscriptionExposedId","DeleteCustomersCustomerTaxIdsId","DeleteEphemeralKeysKey","DeleteInvoiceitemsInvoiceitem","DeleteInvoicesInvoice","DeleteProductsId","DeleteProductsProductFeaturesId","DeleteRadarValueListItemsItem","DeleteRadarValueListsValueList","DeleteSubscriptionItemsItem","DeleteTaxIdsId","DeleteTerminalConfigurationsConfiguration","DeleteTerminalLocationsLocation","DeleteTerminalReadersReader","DeleteTestHelpersTestClocksTestClock","DeleteWebhookEndpointsWebhookEndpoint","GetAccountsAccountBankAccountsId","GetAccountsAccountCapabilities","GetAccountsAccountCapabilitiesCapability","GetAccountsAccountExternalAccountsId","GetAccountsAccountPeople","GetAccountsAccountPeoplePerson","GetAccountsAccountPersonsPerson","GetApplicationFeesFeeRefundsId","GetApplicationFeesId","GetAppsSecrets","GetBalanceHistory","GetBalanceHistoryId","GetBalanceTransactionsId","GetBillingAlertsId","GetBillingCreditGrantsId","GetBillingMetersId","GetBillingPortalConfigurationsConfiguration","GetChargesChargeDispute","GetChargesChargeRefunds","GetChargesChargeRefundsRefund","GetClimateOrdersOrder","GetCreditNotesId","GetCreditNotesPreview","GetCustomersCustomerBalanceTransactionsTransaction","GetCustomersCustomerCashBalanceTransactionsTransaction","GetCustomersCustomerPaymentMethods","GetCustomersCustomerPaymentMethodsPaymentMethod","GetCustomersCustomerSourcesId","GetCustomersCustomerSubscriptions","GetCustomersCustomerSubscriptionsSubscriptionExposedId","GetCustomersCustomerTaxIds","GetCustomersCustomerTaxIdsId","GetDisputesDispute","GetEntitlementsActiveEntitlements","GetEntitlementsFeaturesId","GetEventsId","GetFileLinksLink","GetFilesFile","GetFinancialConnectionsAccountsAccount","GetFinancialConnectionsSessionsSession","GetFinancialConnectionsTransactions","GetFinancialConnectionsTransactionsTransaction","GetIdentityVerificationReportsReport","GetIdentityVerificationSessionsSession","GetInvoiceitemsInvoiceitem","GetInvoicesInvoiceLines","GetIssuingAuthorizationsAuthorization","GetIssuingCardholdersCardholder","GetIssuingDisputesDispute","GetIssuingPersonalizationDesignsPersonalizationDesign","GetIssuingTransactionsTransaction","GetLinkAccountSessionsSession","GetLinkedAccounts","GetLinkedAccountsAccount","GetMandatesMandate","GetPaymentIntentsSearch","GetPaymentLinksPaymentLink","GetPayoutsPayout","GetProductsId","GetProductsProductFeaturesId","GetProductsSearch","GetQuotesQuote","GetRadarValueListItems","GetRadarValueListItemsItem","GetRadarValueListsValueList","GetRefundsRefund","GetReportingReportRunsReportRun","GetReviewsReview","GetSetupIntentsIntent","GetSourcesSource","GetSubscriptionItems","GetSubscriptionItemsItem","GetSubscriptionSchedulesSchedule","GetSubscriptionsSearch","GetTaxCalculationsCalculation","GetTaxIdsId","GetTaxRatesTaxRate","GetTaxRegistrationsId","GetTaxTransactionsTransaction","GetTerminalConfigurationsConfiguration","GetTerminalLocationsLocation","GetTerminalReadersReader","GetTestHelpersTestClocks","GetTestHelpersTestClocksTestClock","GetTokensToken","GetTopups","GetTopupsTopup","GetTransfersTransfer","GetTransfersTransferReversalsId","GetTreasuryFinancialAccountsFinancialAccount","GetTreasuryInboundTransfers","GetTreasuryInboundTransfersId","GetTreasuryOutboundPayments","GetTreasuryOutboundPaymentsId","GetTreasuryOutboundTransfers","GetTreasuryOutboundTransfersOutboundTransfer","GetTreasuryReceivedCredits","GetTreasuryReceivedCreditsId","GetTreasuryReceivedDebits","GetTreasuryReceivedDebitsId","GetTreasuryTransactionEntries","GetTreasuryTransactionEntriesId","GetTreasuryTransactions","GetTreasuryTransactionsId","GetWebhookEndpointsWebhookEndpoint","PostAccountsAccount","PostAccountsAccountBankAccounts","PostAccountsAccountBankAccountsId","PostAccountsAccountCapabilitiesCapability","PostAccountsAccountExternalAccounts","PostAccountsAccountExternalAccountsId","PostAccountsAccountPeople","PostAccountsAccountPeoplePerson","PostAccountsAccountPersons","PostAccountsAccountPersonsPerson","PostApplicationFeesFeeRefundsId","PostApplicationFeesIdRefunds","PostBillingAlerts","PostBillingAlertsIdActivate","PostBillingAlertsIdArchive","PostBillingAlertsIdDeactivate","PostBillingCreditGrants","PostBillingCreditGrantsId","PostBillingMeters","PostBillingMetersId","PostBillingMetersIdDeactivate","PostBillingMetersIdReactivate","PostBillingPortalConfigurationsConfiguration","PostCharges","PostChargesCharge","PostChargesChargeCapture","PostChargesChargeRefunds","PostChargesChargeRefundsRefund","PostCheckoutSessionsSession","PostCheckoutSessionsSessionExpire","PostClimateOrders","PostClimateOrdersOrder","PostClimateOrdersOrderCancel","PostCouponsCoupon","PostCreditNotes","PostCreditNotesId","PostCreditNotesIdVoid","PostCustomersCustomerBalanceTransactions","PostCustomersCustomerBalanceTransactionsTransaction","PostCustomersCustomerSources","PostCustomersCustomerSubscriptions","PostCustomersCustomerSubscriptionsSubscriptionExposedId","PostCustomersCustomerTaxIds","PostDisputesDispute","PostDisputesDisputeClose","PostEntitlementsFeatures","PostEntitlementsFeaturesId","PostFileLinks","PostFileLinksLink","PostFiles","PostFinancialConnectionsAccountsAccountDisconnect","PostFinancialConnectionsSessions","PostIdentityVerificationSessions","PostIdentityVerificationSessionsSession","PostInvoiceitems","PostInvoiceitemsInvoiceitem","PostInvoicesInvoice","PostInvoicesInvoiceFinalize","PostInvoicesInvoiceMarkUncollectible","PostInvoicesInvoiceSend","PostIssuingAuthorizationsAuthorization","PostIssuingCardholdersCardholder","PostIssuingDisputes","PostIssuingDisputesDispute","PostIssuingDisputesDisputeSubmit","PostIssuingPersonalizationDesigns","PostIssuingPersonalizationDesignsPersonalizationDesign","PostIssuingTransactionsTransaction","PostLinkAccountSessions","PostPaymentIntentsIntent","PostPaymentIntentsIntentApplyCustomerBalance","PostPaymentIntentsIntentCapture","PostPaymentIntentsIntentConfirm","PostPaymentIntentsIntentIncrementAuthorization","PostPaymentIntentsIntentVerifyMicrodeposits","PostPaymentLinks","PostPaymentLinksPaymentLink","PostPaymentMethods","PostPaymentMethodsPaymentMethod","PostPaymentMethodsPaymentMethodAttach","PostPayoutsPayout","PostPayoutsPayoutCancel","PostPlans","PostPricesPrice","PostProductsId","PostProductsProductFeatures","PostQuotes","PostQuotesQuote","PostQuotesQuoteAccept","PostQuotesQuoteCancel","PostQuotesQuoteFinalize","PostRadarValueLists","PostRadarValueListsValueList","PostRefundsRefund","PostRefundsRefundCancel","PostReportingReportRuns","PostReviewsReviewApprove","PostSetupIntents","PostSetupIntentsIntent","PostSetupIntentsIntentCancel","PostSetupIntentsIntentConfirm","PostSetupIntentsIntentVerifyMicrodeposits","PostSources","PostSourcesSource","PostSubscriptionItems","PostSubscriptionItemsItem","PostSubscriptionSchedules","PostSubscriptionSchedulesSchedule","PostSubscriptionSchedulesScheduleCancel","PostSubscriptionSchedulesScheduleRelease","PostSubscriptions","PostTaxCalculations","PostTaxIds","PostTaxRates","PostTaxRatesTaxRate","PostTaxRegistrations","PostTaxRegistrationsId","PostTerminalConfigurations","PostTerminalConfigurationsConfiguration","PostTerminalLocations","PostTerminalLocationsLocation","PostTerminalReaders","PostTerminalReadersReader","PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignActivate","PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignDeactivate","PostTestHelpersIssuingPersonalizationDesignsPersonalizationDesignReject","PostTestHelpersTestClocks","PostTestHelpersTestClocksTestClockAdvance","PostTestHelpersTreasuryInboundTransfersIdSucceed","PostTokens","PostTopups","PostTopupsTopup","PostTopupsTopupCancel","PostTransfersIdReversals","PostTransfersTransfer","PostTransfersTransferReversalsId","PostTreasuryFinancialAccounts","PostTreasuryFinancialAccountsFinancialAccount","PostTreasuryInboundTransfers","PostTreasuryInboundTransfersInboundTransferCancel","PostTreasuryOutboundPayments","PostTreasuryOutboundPaymentsIdCancel","PostTreasuryOutboundTransfers","PostTreasuryOutboundTransfersOutboundTransferCancel","PostWebhookEndpointsWebhookEndpoint"],time:"unix",error:{error:{type:"{kind}",message:"{message}",code:"{code}",param:"{param}"}},errorOmitsAbsent:!0,defaultKind:"invalid_request_error",readOnly:{status:405,kind:"invalid_request_error",message:"twin is read-only; omit readOnly to accept writes"},version:{header:"stripe-version",pattern:"^\\d{4}-\\d{2}-\\d{2}(\\.[a-z_]+)?$",error:{status:400,kind:"invalid_request_error",code:"invalid_api_version",message:"Invalid Stripe version: {value}. Check the API version reference: https://stripe.com/docs/api/versioning"}},gap:{status:404,kind:"invalid_request_error",message:"Unrecognized request URL ({method}: {path}). Please see https://stripe.com/docs or we can help at https://support.stripe.com/."},notFound:{status:404,kind:"invalid_request_error",code:"resource_missing",message:"No such {object}: '{id}'"},list:{style:"envelope",envelope:{object:"list",url:"{url}",has_more:"{has_more}",data:"{data}"},limit:{param:"limit",default:10,max:100},after:"starting_after",before:"ending_before"},deleted:{id:"{id}",object:"{object}",deleted:!0},expandParam:"expand",idempotency:{header:"idempotency-key",storedAs:"_idempotency",conflict:{status:400,kind:"idempotency_error",message:"Keys for idempotent requests can only be used with the same parameters they were originally used with. Provide a new idempotency key, or use the original parameters that were used with this key."}},rateBudget:{allowance:{perMinute:1500,source:"https://docs.stripe.com/rate-limits"},windowMs:6e4,ceiling:120,defaultWeight:1,maxRetryAfterSeconds:300,rules:[{match:"^POST /v1/payouts$",weight:5},{match:"^(POST|DELETE) ",weight:2}],reason:"Stripe documents scalar limits (docs.stripe.com/rate-limits, read 2026-07-26): 100 requests/second in live mode, 25/second in sandbox, 25/second for an individual endpoint unless noted, 15 payout creates/second; over it, 429 with a Stripe-Rate-Limited-Reason header. 120 weighted units / 60s is 2 requests/second, 2% of live mode and 8% of the tightest general limit. POST/DELETE cost 2, a judgement about blast radius (a write creates a charge, refund or receipt e-mail and cannot be taken back), not a published ratio; POST /v1/payouts costs 5 because payout creation is documented at 15/second. Stripe's own window is a second, so an intra-second burst reaches its limiter first; the 429 cooldown is the backstop for that shape."},descriptor:{protocol:"3",transport:"rest",archetype:"crud",bin:"world-stripe",resources:["charge","customer","payment_intent","setup_intent","payment_method","subscription","price","product","invoice","invoiceitem","refund","event"],specSource:"Stripe's OpenAPI document (spec/, provenance in spec/SOURCE.md)",description:"Stripe REST twin \u2014 spec-correct shapes, signed events, and the hosted pages an application sends people through.",browserRouting:{apiPathPrefix:"/v1/",loaderHost:"https://api.stripe.com"},adoption:{pypi:["stripe"],sdks:["stripe"],envStems:["STRIPE","NEXTPRIVATESTRIPE"]},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{STRIPE_SECRET_KEY:"secret_key",STRIPE_API_KEY:"secret_key",STRIPE_PRIVATE_KEY:"secret_key",BILLING_STRIPE_API_KEY:"secret_key",STRIPE_PUBLISHABLE_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_PUBLIC_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_KEY:"publishable_key",STRIPE_WEBHOOK_SECRET:"webhook_secret",STRIPE_WEBHOOK_SIGNING_SECRET:"webhook_secret",STRIPE_ENDPOINT_SECRET:"webhook_secret",STRIPE_WEBHOOK_SECRET_KEY:"webhook_secret",NEXT_PRIVATE_STRIPE_WEBHOOK_SECRET:"webhook_secret",BILLING_STRIPE_WEBHOOK_SECRET:"webhook_secret",STRIPE_CONNECT_WEBHOOK_SECRET:"connect_webhook_secret",STRIPE_WEBHOOK_SECRET_CONNECT:"connect_webhook_secret",STRIPE_CONNECT_WEBHOOK_SIGNING_SECRET:"connect_webhook_secret"}},hosts:[{host:"api.stripe.com"},{host:"checkout.stripe.com",pathPattern:"^/c/pay/"},{host:"billing.stripe.com",pathPattern:"^/p/session/"},{host:"connect.stripe.com",pathPattern:"^/setup/"},{host:"dashboard.stripe.com",pathPattern:"^/customers(?:/[^/]+)?/?$|^/radar/lists(?:/[^/]+)?/?$|^/test/issuing/balance/?$|^/settings/public/?$"},{host:"verify.stripe.com",pathPattern:"^/start/"},{host:"js.stripe.com",pathPattern:"^/v3/?$|^/(v3|[a-z]+)/stripe\\.js$"}]},discovery:{twinOf:"the Stripe REST API, Checkout, the customer portal, Connect onboarding, and Stripe.js",stores:"customers, payment objects, checkout sessions, products and prices, subscriptions and invoices, Connect accounts, Issuing, and signed events"},doors:[{id:"account",method:"POST",path:"/_twin/account",note:"the platform's own account settings, as the Dashboard changes them"},{id:"appCredentials",method:"POST",path:"/_twin/app-credentials",note:"the platform's API keys (secret and publishable), as the runtime issues them"},{id:"webhookEndpoints",method:"POST",path:"/_twin/webhook-endpoints",note:"{ url, events, connect? }: an endpoint added on the Dashboard's Webhooks page, signed with the secret the World's application holds"},{id:"drain",method:"POST",path:"/_twin/drain",note:"time's events, sent when a runner drives them: payouts paid and funds made available"}],screens:[{id:"checkout-js",kind:"content",host:"api.stripe.com",path:"/v1/payment_pages/{session}",takes:["POST"],status:"done",source:"https://docs.stripe.com/payments/advanced",demand:"Postiz CheckoutProvider: the published Stripe.js contract over the session store; the private wire is authored (screens/checkout-js.ts)."},{id:"checkout",kind:"flow",host:"checkout.stripe.com",path:"/c/pay/{session}",status:"done",demand:"Dub, Rallly, Postiz and Twenty send customers to Checkout (journeys/demand.json)",controls:["email","cardNumber","cardExpiry","cardCvc","billingName","billingCountry","billingPostalCode","Pay","\u2190 Back"],source:"https://docs.stripe.com/payments/checkout/how-checkout-works"},{id:"billing-portal",kind:"flow",host:"billing.stripe.com",path:"/p/session/{session}",status:"done",demand:"Cal.com, Dub, Postiz, Rallly and Twenty send customers to the billing portal",controls:["Cancel plan","Renew plan","\u2190 Return to {business name}"],source:"https://docs.stripe.com/customer-management"},{id:"connect-onboarding",kind:"flow",host:"connect.stripe.com",path:"/setup",status:"done",demand:"Dub onboards its partners' connected accounts with Account Links",controls:["Agree and submit","\u2190 Return to platform"],source:"https://docs.stripe.com/connect/hosted-onboarding"},{id:"stripe-js",kind:"content",host:"js.stripe.com",path:"/",status:"done",demand:"Dub's upgrade button loads Stripe.js and calls redirectToCheckout",source:"https://docs.stripe.com/js"},{id:"dashboard",kind:"workspace",host:"dashboard.stripe.com",path:"/",status:"done",demand:"World first-use customer inspection (twin-world/docs/contributing/first-use.md); operator setup: Public details; Radar lists for Dub add-to-stripe-fraud-value-lists.ts:3-7; sandbox funding for Open Autonomy world/model/scenario.ts:60,62",controls:["Customers","Search customers","Search","Business name","Save","New list","Name","Alias","List type","Add","Add test funds","Amount"],source:"https://docs.stripe.com/dashboard/basics"}],resources:{"billing.meter":{refresh:{list:"GetBillingMeters"},assigned:{object:{value:"billing.meter"},created:{now:!0},updated:{now:!0},livemode:{value:!1},status:{value:"active"},status_transitions:{value:{deactivated_at:null}},customer_mapping:{value:{type:"by_id",event_payload_key:"stripe_customer_id"}},value_settings:{value:{event_payload_key:"value"}}},storedAs:"billing_meter",idPrefix:"mtr",notFound:"No such meter: '{id}'",...S["billing.meter"],filters:["status"]},"billing.meter_event":{refresh:{none:"a meter event is written, never read: the API reads back only its meter\u2019s summaries (GET /v1/billing/meters/{id}/event_summaries)"},storedAs:"billing_meter_event",idPrefix:"mtr_evt"},payment_intent:{refresh:{list:"GetPaymentIntents"},idPrefix:"pi",...S.payment_intent,embeds:{customer:"customer",latest_charge:"charge",payment_method:"payment_method",invoice:"invoice"},filters:["customer"]},customer:{refresh:{list:"GetCustomers"},idPrefix:"cus",update:"replace",...S.customer,filters:["email"],counts:{next_invoice_sequence:{of:"invoice",by:"customer",present:"number",plus:1}}},customer_balance_transaction:{refresh:{list:"GetCustomersCustomerBalanceTransactions"},parent:{param:"customer",field:"customer",resource:"customer"},idPrefix:"cbtxn",...S.customer_balance_transaction},customer_cash_balance_transaction:{refresh:{list:"GetCustomersCustomerCashBalanceTransactions"},parent:{param:"customer",field:"customer",resource:"customer"},storedAs:"cash_balance_transaction",idPrefix:"ccsbtxn",...S.customer_cash_balance_transaction},payment_source:{refresh:{none:"a customer\u2019s sources are listed only per customer, cards, bank accounts and Sources together (GET /v1/customers/{customer}/sources); the twin keeps them among the Sources, which no list reads"},storedAs:"source",idPrefix:"src",...S.payment_source},source:{refresh:{none:"Stripe lists no Sources: each is read by its id (GET /v1/sources/{source})"},idPrefix:"src",...S.source},_oauth_code:{idPrefix:"",ids:"{n}"},charge:{refresh:{list:"GetCharges"},idPrefix:"ch",...S.charge,embeds:{customer:"customer",payment_intent:"payment_intent",invoice:"invoice",balance_transaction:"balance_transaction"},filters:["customer","payment_intent"]},refund:{refresh:{list:"GetRefunds"},idPrefix:"re",update:"replace",...S.refund,embeds:{charge:"charge",payment_intent:"payment_intent",balance_transaction:"balance_transaction"},filters:["charge","payment_intent"]},setup_intent:{refresh:{list:"GetSetupIntents"},idPrefix:"seti",update:"replace",...S.setup_intent,embeds:{customer:"customer",payment_method:"payment_method"},filters:["customer","payment_method"]},payment_method:{refresh:{list:"GetPaymentMethods"},idPrefix:"pm",...S.payment_method,embeds:{customer:"customer"},filters:["customer","type"]},subscription:{refresh:{list:"GetSubscriptions",complete:!1},idPrefix:"sub",...S.subscription,embeds:{customer:"customer",latest_invoice:"invoice",default_payment_method:"payment_method",schedule:"subscription_schedule"},collections:{items:{resource:"subscription_item",by:"subscription",list:{object:"list",has_more:!1,url:"/v1/subscription_items?subscription={id}"}}},filters:["customer"]},subscription_item:{refresh:{none:"subscription items are listed only per subscription (the list requires subscription), and each subscription answers its items in full (subscription.items)"},idPrefix:"si",embeds:{price:"price"},alwaysEmbedded:["price"]},invoice:{refresh:{list:"GetInvoices"},idPrefix:"in",...S.invoice,embeds:{customer:"customer",subscription:"subscription",charge:"charge",payment_intent:"payment_intent"},filters:["customer","status","subscription","collection_method"]},invoiceitem:{refresh:{list:"GetInvoiceitems"},idPrefix:"ii",embeds:{customer:"customer",price:"price"},filters:["customer","invoice"],order:{field:"date",direction:"desc"}},"checkout.session":{refresh:{list:"GetCheckoutSessions"},storedAs:"checkout_session",idPrefix:"cs",...S["checkout.session"],filters:["customer","payment_intent","subscription","status"],embeds:{customer:"customer",invoice:"invoice",payment_intent:"payment_intent",payment_link:"payment_link",setup_intent:"setup_intent",subscription:"subscription"}},ephemeral_key:{refresh:{none:"an ephemeral key is answered once, by its create: the API has no read of one"},idPrefix:"ephkey"},mandate:{refresh:{none:"a mandate is read by its id (GET /v1/mandates/{mandate}): the API lists none"},idPrefix:"mandate",...S.mandate},dispute:{refresh:{list:"GetDisputes"},idPrefix:"dp",update:"replace",...S.dispute,embeds:{charge:"charge",payment_intent:"payment_intent"},filters:["charge","payment_intent"]},payout:{refresh:{list:"GetPayouts"},idPrefix:"po",...S.payout,embeds:{balance_transaction:"balance_transaction",destination:"account"}},balance_transaction:{refresh:{list:"GetBalanceTransactions"},idPrefix:"txn",...S.balance_transaction,filters:["type","currency"]},coupon:{refresh:{list:"GetCoupons"},idPrefix:"coupon",update:"replace",...S.coupon},promotion_code:{embeds:{coupon:"coupon"},alwaysEmbedded:["coupon"],refresh:{list:"GetPromotionCodes"},idPrefix:"promo",update:"replace",notFound:"No such promotion code: '{id}'",...S.promotion_code},subscription_schedule:{refresh:{list:"GetSubscriptionSchedules"},idPrefix:"sub_sched",update:"replace",...S.subscription_schedule,embeds:{customer:"customer",subscription:"subscription"},filters:["customer","subscription"]},"entitlements.feature":{refresh:{list:"GetEntitlementsFeatures"},storedAs:"entitlements_feature",idPrefix:"feat",notFound:"No such feature: '{id}'",...S["entitlements.feature"]},event:{refresh:{list:"GetEvents",complete:!1},idPrefix:"evt",filters:["type"]},webhook_endpoint:{refresh:{list:"GetWebhookEndpoints"},idPrefix:"we",notFound:"No such webhook endpoint: '{id}'",...S.webhook_endpoint},account:{embeds:{individual:"person"},alwaysEmbedded:["individual"],refresh:{list:"GetAccounts",complete:!1},idPrefix:"acct",...S.account},person:{refresh:{list:"GetAccountsAccountPersons"},idPrefix:"person",...S.person,parent:{param:"account",field:"account",resource:"account"}},capability:{refresh:{none:"the twin keeps a capability in its account\u2019s capabilities, which the accounts\u2019 list reads back (GET /v1/accounts)"},idPrefix:"cap",...S.capability},external_account:{refresh:{none:"an account answers its external accounts (account.external_accounts), which the accounts\u2019 list reads back (GET /v1/accounts)"},idPrefix:"ba",...S.external_account},account_link:{refresh:{none:"an account link is answered once, by its create: the API has no read of one"},idPrefix:"acctlink"},account_session:{refresh:{none:"an account session is answered once, by its create: the API has no read of one"},idPrefix:"accts"},transfer:{refresh:{list:"GetTransfers"},idPrefix:"tr",update:"replace",filters:["destination"]},transfer_reversal:{refresh:{list:"GetTransfersIdReversals"},parent:{param:"id",field:"transfer",resource:"transfer"},idPrefix:"trr"},application_fee:{refresh:{list:"GetApplicationFees"},idPrefix:"fee",notFound:"No such application fee: '{id}'",filters:["charge"],...S.application_fee},fee_refund:{refresh:{list:"GetApplicationFeesIdRefunds"},parent:{param:"id",field:"fee",resource:"application_fee"},idPrefix:"fr"},"apps.secret":{refresh:{none:"secrets are listed only per scope (the list requires scope), which a root does not name"},storedAs:"apps_secret",idPrefix:"apmc"},"billing_portal.session":{refresh:{none:"a portal session is answered once, by its create: the API has no read of one"},storedAs:"billing_portal_session",idPrefix:"bps",...S["billing_portal.session"]},"billing_portal.configuration":{refresh:{list:"GetBillingPortalConfigurations"},storedAs:"billing_portal_configuration",idPrefix:"bpc",notFound:"No such configuration: '{id}'",...S["billing_portal.configuration"]},"tax.calculation":{refresh:{none:"a calculation is read by its id (GET /v1/tax/calculations/{calculation}): the API lists none"},storedAs:"tax_calculation",idPrefix:"taxcalc",notFound:"No such tax calculation: '{id}'"},"tax.transaction":{refresh:{none:"a tax transaction is read by its id (GET /v1/tax/transactions/{transaction}): the API lists none"},storedAs:"tax_transaction",idPrefix:"tax",notFound:"No such tax transaction: '{id}'",...S["tax.transaction"]},review:{refresh:{list:"GetReviews",complete:!1},storedAs:"radar_review",idPrefix:"prv",...S.review},"radar.value_list":{refresh:{list:"GetRadarValueLists"},storedAs:"radar_value_list",idPrefix:"rsl",notFound:"No such radar value list: '{id}'",...S["radar.value_list"],assigned:{created:{now:!0},object:{value:"radar.value_list"},livemode:{value:!1},metadata:{value:{}},created_by:{value:"twin"},list_items:{value:{object:"list",data:[],has_more:!1,url:"/v1/radar/value_list_items"}}},filters:["alias"]},"radar.value_list_item":{refresh:{none:"value list items are listed only per value list (the list requires value_list), and each list answers its items (radar.value_list.list_items)"},storedAs:"radar_value_list_item",idPrefix:"rsli",notFound:"No such radar value list item: '{id}'"},"issuing.cardholder":{refresh:{list:"GetIssuingCardholders"},storedAs:"issuing_cardholder",idPrefix:"ich",assigned:{created:{now:!0},object:{value:"issuing.cardholder"},livemode:{value:!1},metadata:{value:{}},requirements:{value:{disabled_reason:null,past_due:[]}}},notFound:"No such cardholder: '{id}'",...S["issuing.cardholder"],filters:["status","type","email"]},"issuing.card":{refresh:{list:"GetIssuingCards"},storedAs:"issuing_card",idPrefix:"ic",notFound:"No such card: '{id}'",...S["issuing.card"],embeds:{cardholder:"issuing.cardholder"},alwaysEmbedded:["cardholder"],filters:["cardholder","status","type"]},"issuing.authorization":{refresh:{list:"GetIssuingAuthorizations"},storedAs:"issuing_authorization",idPrefix:"iauth",...S["issuing.authorization"],embeds:{card:"issuing.card",cardholder:"issuing.cardholder"},alwaysEmbedded:["card"],filters:["card","cardholder","status"]},"issuing.transaction":{refresh:{list:"GetIssuingTransactions"},storedAs:"issuing_transaction",idPrefix:"ipi",notFound:"No such transaction: '{id}'",...S["issuing.transaction"],filters:["card","cardholder"]},"treasury.outbound_payment":{refresh:{none:"outbound payments are listed only per financial account (the list requires financial_account)"},storedAs:"outbound_payment",idPrefix:"obp",notFound:"No such outbound payment: '{id}'",...S["treasury.outbound_payment"],filters:["financial_account","status"]},"treasury.outbound_transfer":{refresh:{none:"outbound transfers are listed only per financial account (the list requires financial_account)"},storedAs:"outbound_transfer",idPrefix:"obt",notFound:"No such outbound transfer: '{id}'",...S["treasury.outbound_transfer"],filters:["financial_account","status"]},"treasury.inbound_transfer":{refresh:{none:"inbound transfers are listed only per financial account (the list requires financial_account)"},storedAs:"inbound_transfer",idPrefix:"ibt",notFound:"No such inbound transfer: '{id}'",...S["treasury.inbound_transfer"],filters:["financial_account","status"]},"treasury.received_credit":{refresh:{none:"received credits are listed only per financial account (the list requires financial_account)"},storedAs:"received_credit",idPrefix:"rc",notFound:"No such received credit: '{id}'",...S["treasury.received_credit"],filters:["financial_account","status"]},"treasury.received_debit":{refresh:{none:"received debits are listed only per financial account (the list requires financial_account)"},storedAs:"received_debit",idPrefix:"rd",notFound:"No such received debit: '{id}'",...S["treasury.received_debit"],filters:["financial_account","status"]},"treasury.transaction":{refresh:{none:"Treasury transactions are listed only per financial account (the list requires financial_account)"},storedAs:"treasury_transaction",idPrefix:"trxn",notFound:"No such treasury transaction: '{id}'",...S["treasury.transaction"]},"treasury.transaction_entry":{refresh:{none:"transaction entries are listed only per financial account (the list requires financial_account)"},storedAs:"treasury_transaction_entry",idPrefix:"trxne",notFound:"No such transaction entry: '{id}'",...S["treasury.transaction_entry"]},"financial_connections.session":{refresh:{none:"a session is read by its id (GET /v1/financial_connections/sessions/{session}): the API lists none"},storedAs:"fc_session",idPrefix:"fcsess"},"financial_connections.transaction":{refresh:{none:"transactions are listed only per linked account (the list requires account)"},storedAs:"fc_transaction",idPrefix:"fctxn",...S["financial_connections.transaction"]},product:{refresh:{list:"GetProducts"},idPrefix:"prod",update:"replace",...S.product},product_feature:{embeds:{entitlement_feature:"entitlements.feature"},alwaysEmbedded:["entitlement_feature"],refresh:{list:"GetProductsProductFeatures"},parent:{param:"product",field:"_product",resource:"product"},idPrefix:"prodft"},price:{refresh:{list:"GetPrices",complete:!1},idPrefix:"price",update:"replace",...S.price,embeds:{product:"product"}}},events:{...jr,render:Tn,values:Nn},ingest:{scheme:{kind:"timestamp-v1",header:"Stripe-Signature"},type:{body:"type"},object:"data.object",types:{"checkout.session.completed":{resource:"checkout.session"},"checkout.session.expired":{resource:"checkout.session"},"charge.succeeded":{resource:"charge"},"charge.failed":{resource:"charge"},"charge.refunded":{resource:"charge"},"payment_intent.requires_action":{resource:"payment_intent"},"payment_intent.canceled":{resource:"payment_intent"},"payment_method.automatically_updated":{resource:"payment_method"},"invoice.payment_succeeded":{resource:"invoice"},"invoice.payment_failed":{resource:"invoice"},"invoice.voided":{resource:"invoice"},"transfer.reversed":{resource:"transfer"},"account.external_account.updated":{resource:"external_account"},"account.external_account.created":{resource:"external_account"},"account.external_account.deleted":{resource:"external_account",deleted:!0},"payout.paid":{resource:"payout"},"payout.failed":{resource:"payout"},"issuing_authorization.request":{resource:"issuing.authorization"}}}};import{createPackFetch as Wd}from"../../engine/v3/volter_world-core.mjs";async function Us(e,t){let a=e.call.request,n=zr(e,a);if(n)return n;if(e.call.operation.id!=="unmatched"){let r=Gr(e)??Ns(e);if(r)return r}return Rs(a,await t(Dr(e,a.clone())))}async function Hs(e){await Ye(e),await os(e),await Ur(e),await Ss(e),await js(e),await Nr(e)}var Ha={};Co(Ha,{account:()=>Rl,appCredentials:()=>zl,drain:()=>Gl,webhookEndpoints:()=>Dl});async function Rl(e){let t=e.get("account",R),a=e.params,{type:n,settings:r,business_profile:s,...i}=a,{id:o,...u}=lt(),l={...t?{}:u,...i,settings:Se(r,t?.settings),...s&&typeof s=="object"?{business_profile:{...t?.business_profile??{},...s}}:{}};return e.reply(await e.write("account",R,l,"account.update"))}async function Gl(e){let t=[void 0,...e.rows("account").map(n=>String(n.id)).filter(n=>n!==R)],a=[];for(let n of t){for(let r of await Er(e,n))a.push({type:"payout.paid",id:r,...n?{account:n}:{}});(await cs(e,n)).some(r=>Number(r.net)>0)&&(await e.write("_balance_notice",`${n??R}:${e.occurredAt}`,{account:n??null,balance:Ht(e,n)},"balance.available"),a.push({type:"balance.available",...n?{account:n}:{}}))}return Response.json({delivered:a})}async function zl(e){let t=`sk_test_51${(await e.secret("stripe-platform-key:app")).replace(/[^A-Za-z0-9]/g,"").slice(0,96)}`,a=`pk_test_51${(await e.secret("stripe-publishable-key:app")).replace(/[^A-Za-z0-9]/g,"").slice(0,96)}`;return e.rowsRaw("_platform_key").some(n=>n.id==="secret:app"&&n._sha256===e.crypto.sha256(t))||(await e.record("_platform_key",{kind:"secret",_sha256:e.crypto.sha256(t),created:e.occurredAt,deleted:!1},"secret:app"),await e.record("_platform_key",{kind:"publishable",_sha256:e.crypto.sha256(a),created:e.occurredAt,deleted:!1},"publishable:app")),Response.json({secret_key:t,publishable_key:a,webhook_secret:await Ua(e,!1),connect_webhook_secret:await Ua(e,!0)},{status:201})}var Ua=async(e,t)=>`whsec_${(await e.secret(t?"stripe-webhook-secret:connect":"stripe-webhook-secret:app")).replace(/[^A-Za-z0-9]/g,"").slice(0,32)}`;async function Dl(e){let t=e.body&&typeof e.body=="object"?e.body:{};if(typeof t.url!="string"||!/^https?:\/\//.test(t.url)||!Array.isArray(t.events)||!t.events.length)return Response.json({error:"a url and its events are required"},{status:400});let a=t.connect===!0,n=e.mint("webhook_endpoint"),r=await Ua(e,a);return await e.write("webhook_endpoint",n,{id:n,object:"webhook_endpoint",url:t.url,enabled_events:t.events.map(String),status:"enabled",connect:a,livemode:!1,metadata:{},api_version:null,application:null,description:null,secret:r,created:Math.floor(Date.parse(e.occurredAt)/1e3)},"webhook_endpoint.create"),Response.json({id:n,secret:r},{status:201})}async function Vs(e){let t=H(e)??R,a=e.get("account",t);return a?e.reply(e.expand("account",a)):ze(e,t)}async function Ws(e){let t=typeof e.params.account=="string"?e.params.account:"";if(!t)return b(e,"Missing required param: account.",400,"parameter_missing");if(!e.get("account",t))return ze(e,t,400);let a=typeof e.params.type=="string"?e.params.type:"";if(a!=="account_onboarding"&&a!=="account_update")return b(e,"Invalid account link type: must be account_onboarding or account_update.",400,"parameter_invalid_string_enum");for(let i of["refresh_url","return_url"])if(typeof e.params[i]!="string"||!e.params[i])return b(e,`Missing required param: ${i}.`,400,"parameter_missing");let n=Number(g(e.occurredAt)),r=e.mint("account_link"),s={object:"account_link",created:n,expires_at:n+300,url:`https://connect.stripe.com/setup/${r}`};return await e.write("account_link",r,{...s,account:t,type:a,refresh_url:e.params.refresh_url,return_url:e.params.return_url,used:!1},"account_link.create"),e.reply(s)}async function Ys(e){let t=k(e,"account");return Cs(e,t)?B(e,"external_account",T(e,"external_account").filter(a=>a.account===t)):ze(e,t)}async function Ks(e){let t=e.params,a=typeof t.type=="string"?t.type:"standard";if(!jn.has(a))return b(e,"Invalid account type: must be one of express, standard, or custom.",400,"parameter_invalid_string_enum");let{capabilities:n,settings:r,...s}=gr(t),i=e.mint("account"),o=await h(e,"account",{...s,id:i,type:a},{business_type:null,charges_enabled:!1,payouts_enabled:!1,details_submitted:!1,capabilities:Cn(t),requirements:a==="express"?yr(t):St(),country:typeof t.country=="string"?t.country:"US",default_currency:"usd",email:t.email??null,metadata:{},livemode:!1,settings:Se(t.settings),business_profile:{},controller:fr(a),external_accounts:Ve(i,[]),future_requirements:{alternatives:[],current_deadline:null,currently_due:[],disabled_reason:null,errors:[],eventually_due:[],past_due:[],pending_verification:[]},tos_acceptance:{date:null,ip:null,user_agent:null}});return await Es(e,String(o.id)),e.reply(e.expand("account",e.get("account",String(o.id))))}async function Qs(e){let t=k(e,"account");return e.get("account",t)?e.reply({object:"login_link",created:g(e.occurredAt),url:`https://connect.twin.local/express/${t}`}):ze(e,t)}async function Js(e){let t=typeof e.params.name=="string"?e.params.name:"";if(!t)return b(e,"Missing required param: name.",400,"parameter_missing");let a=Vt(e,t);return a?e.reply(a):b(e,`No such secret: '${t}'`,404,"resource_missing")}async function Zs(e){let t=e.params,a=typeof t.name=="string"?t.name:"";if(!a)return b(e,"Missing required param: name.",400,"parameter_missing");let n=t.scope&&typeof t.scope=="object"?t.scope:void 0,r=n&&typeof n.type=="string"?n.type:"";if(r!=="account"&&r!=="user")return b(e,"Invalid scope[type]: must be account or user.",400,"parameter_invalid_string_enum");if(r==="user"&&typeof n.user!="string")return b(e,"Missing required param: scope[user].",400,"parameter_missing");if(t.payload===void 0)return b(e,"Missing required param: payload.",400,"parameter_missing");let s=t.expires_at!==void 0?Math.trunc(Number(t.expires_at)):null,i=Vt(e,a);return i?e.reply(await e.write(Te,String(i.id),{payload:t.payload,expires_at:s,_updated:g(e.occurredAt)},"apps_secret.update")):e.reply(await h(e,Te,{name:a},{livemode:!1,deleted:!1,expires_at:s,payload:t.payload,scope:r==="user"?{type:"user",user:n.user}:{type:"account"},_scope_key:Ta(e)}))}async function Xs(e){let t=typeof e.params.name=="string"?e.params.name:"";if(!t)return b(e,"Missing required param: name.",400,"parameter_missing");let a=Vt(e,t);return a?e.reply(await e.write(Te,String(a.id),{deleted:!0},"apps_secret.delete")):b(e,`No such secret: '${t}'`,404,"resource_missing")}async function ei(e){return e.reply(Ht(e))}async function ti(e){let t=ps(e);return B(e,J,re(e,T(e,J).filter(a=>t.has(a.id)).map(a=>Jt(e,a)),{type:(a,n)=>a.type===n,currency:(a,n)=>a.currency===n,source:(a,n)=>a.source===n,payout:(a,n)=>a.source===n||Re(e,J,a,"_payout")===n,created:(a,n)=>Xn(a.created,n)}))}var ea="billing_portal.configuration",ai={customer_update:{allowed_updates:[],enabled:!1},invoice_history:{enabled:!1},payment_method_update:{enabled:!1,payment_method_configuration:null},subscription_cancel:{cancellation_reason:{enabled:!1,options:["too_expensive","missing_features","switched_service","unused","other"]},enabled:!1,mode:"at_period_end",proration_behavior:"none"},subscription_update:{default_allowed_updates:[],enabled:!1,proration_behavior:"none",schedule_at_period_end:{conditions:[]},trial_update_behavior:"end_trial"}},ta=(e,t)=>{if(!t||typeof t!="object"||Array.isArray(t)||!e||typeof e!="object"||Array.isArray(e))return t===void 0?e:t;let a={...e};for(let[n,r]of Object.entries(t))a[n]=ta(e[n],r);return a};async function ni(e){return B(e,ea,re(e,T(e,ea),{active:(t,a)=>E(t.active)===E(a),is_default:(t,a)=>E(t.is_default)===E(a)}))}async function ri(e){return e.reply(await h(e,ea,{...e.params,business_profile:ta({headline:null,privacy_policy_url:null,terms_of_service_url:null},e.params.business_profile),features:ta(ai,e.params.features)},{active:!0,is_default:!1,livemode:!1,login_page:{enabled:!1,url:null},metadata:{},default_return_url:e.params.default_return_url??null,updated:g(e.occurredAt)}))}async function si(e){let t=typeof e.params.customer=="string"?e.params.customer:"";if(!t)return b(e,"Missing required param: customer.",400,"parameter_missing");if(!e.row("customer",t,{withDeleted:!0}))return b(e,`No such customer: '${t}'`,404,"resource_missing");let a=typeof e.params.configuration=="string"&&e.params.configuration?e.params.configuration:e.rowsRaw("billing_portal.configuration",{withDeleted:!0}).find(r=>r.is_default)?.id??"bpc_twin_default",n=e.mint("billing_portal.session");return e.reply(await h(e,"billing_portal.session",{id:n,customer:t,configuration:a,return_url:e.params.return_url??null,url:`https://billing.stripe.com/p/session/${n}`,locale:e.params.locale??null,on_behalf_of:e.params.on_behalf_of??null,livemode:!1,...H(e)?{_brand_account:H(e)}:{}},{}))}async function ii(e){let t=re(e,T(e,"charge"),{customer:(a,n)=>a.customer===n,payment_intent:(a,n)=>a.payment_intent===n});return B(e,"charge",t.map(a=>Ma(e,a)))}async function oi(e){let t=e.get("charge",k(e,"charge"));return t?e.reply(ge(e,"charge",Ma(e,t))):ms(e,k(e,"charge"))}async function ui(e){let t=e.get(L,k(e,"session"));if(!t)return Hr(e,k(e,"session"));let a=t.line_items,{page:n,hasMore:r}=st(Array.isArray(a?.data)?a.data:[],e.params);return e.reply({object:"list",url:Qt(e),has_more:r,data:n})}async function li(e){let t=e.params,a=typeof t.mode=="string"?t.mode:"payment";if(!["payment","subscription","setup"].includes(a))return b(e,"Invalid mode: must be one of payment, subscription, or setup.",400,"parameter_invalid_string_enum");let n=In(t);if(a!=="setup"&&n.length===0)return Vr(e);let r=t.ui_mode==="custom";if(!r&&(t.success_url===void 0||t.success_url===""))return b(e,"Missing required param: success_url.",400,"parameter_missing");let s=typeof t.currency=="string"?t.currency:"usd",i=n.map((v,P)=>En(v,P,s,le(e))),o=i.find(v=>v.priceMissing);if(o)return b(e,`No such price: '${o.priceMissing}'`,400,"resource_missing");let u=i.map(v=>v.item),l=Number(g(e.occurredAt)),p=Yr(e,t.subscription_data,l);if(p)return p;let c=Yt(e,t,l);if(c instanceof Response)return c;let d=u.reduce((v,P)=>v+P.amount_subtotal,0),_=c?oe(d,c.coupon):0,m=e.mint(L),y={mode:a,status:"open",payment_status:a==="setup"?"no_payment_required":"unpaid",ui_mode:r?"custom":"hosted",...r?{client_secret:`${m}_secret_${await e.secret(`checkout-secret:${m}`)}`,return_url:t.return_url??null}:{},allow_promotion_codes:t.allow_promotion_codes===!0||t.allow_promotion_codes==="true",url:r?null:`https://checkout.stripe.com/c/pay/${m}`,success_url:t.success_url??null,cancel_url:t.cancel_url??null,customer:t.customer??null,client_reference_id:t.client_reference_id??null,customer_email:t.customer_email??null,customer_creation:a==="payment"?t.customer_creation==="always"?"always":"if_required":null,amount_subtotal:n.length?u.reduce((v,P)=>v+P.amount_subtotal,0):null,amount_total:n.length?u.reduce((v,P)=>v+P.amount_total,0)-_:null,currency:u[0]?.currency??(n.length?s:null),line_items:{object:"list",data:u,has_more:!1,url:`/v1/checkout/sessions/${m}/line_items`},payment_intent:null,subscription:null,setup_intent:null,invoice:null,payment_method_types:Zn(t),expires_at:l+24*3600,custom_fields:[],shipping_options:[],custom_text:{after_submit:null,shipping_address:null,submit:null,terms_of_service_acceptance:null},automatic_tax:{enabled:!1,liability:null,status:null,provider:null},total_details:{amount_discount:_,amount_shipping:0,amount_tax:0},discounts:c?[{coupon:String(c.coupon.id),promotion_code:c.promotion??null}]:[],...Array.isArray(t.allowed_payment_method_types)?{allowed_payment_method_types:t.allowed_payment_method_types.map(String)}:{},metadata:t.metadata&&typeof t.metadata=="object"?t.metadata:{},livemode:!1,phone_number_collection:{enabled:t.phone_number_collection?.enabled===!0||t.phone_number_collection?.enabled==="true"}};t.subscription_data&&typeof t.subscription_data=="object"&&(y._subscription_data=t.subscription_data),a==="subscription"&&n.some(v=>v.price_data&&typeof v.price_data=="object")&&(y._price_data=n.map(v=>v.price_data&&typeof v.price_data=="object"?v.price_data:null)),t.branding_settings&&typeof t.branding_settings=="object"&&(y._branding_settings=t.branding_settings),H(e)&&(y._brand_account=H(e));let w=t.payment_intent_data&&typeof t.payment_intent_data=="object"?t.payment_intent_data:void 0;if(w&&a==="payment"){let v=w.transfer_data?.destination;if(v!==void 0&&(typeof v!="string"||!e.get("account",v)))return Wr(e,v);y._payment_intent_data=w}return c&&(y._discount={coupon:String(c.coupon.id),promotion_code:c.promotion??null}),e.reply(await h(e,L,{id:m,...y},{}))}async function di(e){let t=e.params,a=t.percent_off!==void 0,n=t.amount_off!==void 0;if(a===n)return b(e,"You must pass exactly one of `amount_off` and `percent_off`.",400,"parameter_missing");let r=null,s=null;if(a&&(r=Number(t.percent_off),!Number.isFinite(r)||r<=0||r>100))return b(e,"Invalid number: percent_off must be > 0 and <= 100.",400,"parameter_invalid_number");let i=a?null:Fr(e,t);if(i instanceof Response)return i;s=i;let o=typeof t.duration=="string"?t.duration:"once";return["once","repeating","forever"].includes(o)?o==="repeating"&&t.duration_in_months===void 0?b(e,"Missing required param: duration_in_months (required when duration=repeating).",400,"parameter_missing"):e.reply(await h(e,"coupon",t,{percent_off:r,amount_off:s,currency:s!==null?t.currency:null,duration:o,duration_in_months:o==="repeating"?Number(t.duration_in_months):null,name:typeof t.name=="string"?t.name:null,valid:!0,livemode:!1,times_redeemed:0,metadata:{},max_redemptions:t.max_redemptions!==void 0?Number(t.max_redemptions):null,redeem_by:t.redeem_by!==void 0?Number(t.redeem_by):null,applies_to:null})):b(e,"Invalid duration: must be one of once, repeating, or forever.",400,"parameter_invalid_string_enum")}var Ke=e=>({invoice_prefix:Ct(e),next_invoice_sequence:1,balance:0,metadata:{},invoice_settings:{}});async function ci(e){let t=k(e,"customer"),a=e.row("customer",t,{withDeleted:!0});return a?a.deleted===!0?e.reply({id:t,object:"customer",deleted:!0}):e.reply(ge(e,"customer",e.get("customer",t))):Ia(e,t)}async function pi(e){return Zr(e,"customer")}async function mi(e){let t=typeof e.params.payment_method=="string"?e.params.payment_method:"";if(t&&!es(e,t))return b(e,`No such PaymentMethod: '${t}'`,400,"resource_missing");let a=e.params,{coupon:n,payment_method:r,...s}=a,i=e.mint("customer"),o=await h(e,"customer",{...s,id:i},{livemode:!1,discount:null,...Ke(i)});return Number(o.balance??0)!==0&&await h(e,"customer_balance_transaction",{customer:i,amount:Number(o.balance),ending_balance:Number(o.balance),currency:o.currency??"usd",type:"initial",description:null,metadata:{},livemode:!1,invoice:null,credit_note:null,checkout_session:null,customer_account:null},{}),t&&await ts(e,t,String(o.id)),e.reply(o)}async function _i(e){let t=k(e,"customer"),a=e.get("customer",t);if(!a)return Ia(e,t);let{customer:n,...r}=e.params;if(typeof r.balance=="number"&&r.balance!==Number(a.balance??0)){let s=r.balance;await h(e,"customer_balance_transaction",{customer:t,amount:s-Number(a.balance??0),ending_balance:s,currency:a.currency??"usd",type:"adjustment",description:null,metadata:{},livemode:!1,invoice:null,credit_note:null,checkout_session:null,customer_account:null,created:g(e.occurredAt)},{})}return e.reply(e.expand("customer",await e.write("customer",t,r,"customer.update")))}async function yi(e){let t=e.params,a=t.payment?.payment_intent,n=T(e,Y).filter(r=>typeof t.invoice!="string"||r.id===t.invoice).map(Kn).filter(r=>!!r).filter(r=>typeof a!="string"||r.payment.payment_intent===a).filter(r=>typeof t.status!="string"||r.status===t.status);return B(e,"invoice_payment",n)}async function fi(e){let t=k(e,"invoice"),a=e.get(Y,t);return a?e.reply(ge(e,Y,a)):Wt(e,t)}async function bi(e){let t=k(e,"invoice"),a=e.get(Y,t);if(!a)return Wt(e,t);let n=e.legal(Y,"status","PostInvoicesInvoicePay",a.status,void 0,t);if(n)return e.refuse(n);let r=a.status==="draft"?await $r(e,a,t):a,s=e.params,i=s.paid_out_of_band!==void 0&&E(s.paid_out_of_band),o=e.get("customer",String(r.customer??"")),u=o?.invoice_settings?.default_payment_method||o?.default_source;if(!i&&!s.payment_method&&!s.source&&!r.default_payment_method&&!r.default_source&&!u)return Mr(e);let l=typeof r.subscription=="string"?O(e,"subscription",r.subscription):void 0,p=me(le(e),s,{payment_method:r.default_payment_method??l?.default_payment_method??u}),c=typeof r.payment_intent=="string"?e.get("payment_intent",r.payment_intent):void 0;if(p)return ye(e,rt(p,c?{payment_intent:c}:{}));let d=Number(r.total??r.amount_due)||0,_=await e.write(Y,t,{status:"paid",paid:!0,paid_out_of_band:i,amount_paid:d,amount_remaining:0,...i?{amount_paid_off_stripe:d}:{},status_transitions:{...ot(r),paid_at:g(e.occurredAt)}},"invoice.pay");if(!i&&typeof r.payment_intent=="string"&&r.payment_intent){let w=e.get("payment_intent",r.payment_intent);if(w&&w.status!=="succeeded"&&!e.legal("payment_intent","status","PostInvoicesInvoicePay",w.status)){let v=await ke(e,r.payment_intent,{...w,invoice:t,...typeof s.payment_method=="string"?{payment_method:s.payment_method}:{}},d);await e.write("payment_intent",r.payment_intent,{status:"succeeded",amount_received:d,amount_capturable:0,next_action:null,latest_charge:v},"payment_intent.succeeded"),_=await e.write(Y,t,{charge:v},"invoice.update")}}let m=typeof r.subscription=="string"?r.subscription:void 0,y=m?O(e,"subscription",m):void 0;return m&&y&&(y.status==="incomplete"||y.status==="past_due")&&!e.legal("subscription","status","PostInvoicesInvoicePay",y.status,"active",m)&&await Or(e,m),e.reply(ge(e,Y,e.get(Y,t)??_))}async function gi(e){let t=Br(e,"PostInvoicesInvoiceVoid");if("answer"in t)return t.answer;let a=t.inv,n=await e.write(Y,String(a.id),{status:"void",status_transitions:{...ot(a),voided_at:g(e.occurredAt)}},"invoice.void");return e.reply(ge(e,Y,n))}async function hi(e){let t=e.params,a=Number(g(e.occurredAt)),n=e.mint(Y),r=Number(t.days_until_due),s=t.collection_method==="send_invoice"&&t.due_date===void 0&&Number.isFinite(r)&&r>0?{due_date:a+r*86400}:{},i=typeof t.customer=="string"?e.get("customer",t.customer):void 0,o=i?{customer_email:i.email??null,customer_name:i.name??null}:{},u=await h(e,Y,{...t,id:n},{...qa(a),...s,...o,lines:{object:"list",data:[],has_more:!1,total_count:0,url:`/v1/invoices/${n}/lines`}});if(t.pending_invoice_items_behavior!=="include")return e.reply(u);let l=String(u.id),p=typeof u.customer=="string"?u.customer:"",c=p?T(e,"invoiceitem","date").filter(d=>d.customer===p&&!d.invoice).reverse():[];for(let d of c)await Gs(e,l,u,d,a);return e.reply(c.length>0?e.get(Y,l)??u:u)}async function qi(e){let t=e.params,a=Number(g(e.occurredAt)),n=typeof t.subscription=="string"?t.subscription:"",r=typeof t.customer=="string"?t.customer:"",s;if(n){if(s=O(e,"subscription",n),!s)return b(e,`No such subscription: '${n}'`,404,"resource_missing");r=r||String(s.customer??"")}else r&&(s=T(e,"subscription").find(q=>q.customer===r&&q.status!=="canceled"),n=s?String(s.id):"");if(!r)return b(e,"Missing required param: customer (or subscription).",400,"parameter_missing");if(!e.get("customer",r))return b(e,`No such customer: '${r}'`,404,"resource_missing");let i=String(s?.currency??"usd"),o=s&&Number(s.current_period_end)>0?Number(s.current_period_end):a,u=s?e.rows("subscription_item").filter(q=>q.subscription===n):[],l=t.subscription_details,p=u,c=l?.proration_behavior??"create_prorations",d=l?.proration_date===void 0?a:Number(l.proration_date),_=Number(s?.current_period_start??a),m=Number(s?.current_period_end??a);if(l?.proration_date!==void 0&&(c==="none"||!s||!Array.isArray(l.items)||d<_||d>m))return b(e,"Invalid subscription_details[proration_date] for this subscription preview.",400,"parameter_invalid_integer");if(Array.isArray(l?.items)){u=u.map(q=>({...q}));for(let q of l.items){let j=q.id?u.findIndex(V=>V.id===q.id):-1;if(q.id&&j<0)return b(e,`No such subscription_item: '${q.id}'`,400,"resource_missing");if(E(q.deleted)){j>=0&&u.splice(j,1);continue}let G=j>=0?u[j]:{},N=typeof q.price=="string"?q.price:typeof G.price=="string"?G.price:G.price?.id,X=typeof N=="string"?e.get("price",N):void 0;if(!X)return b(e,`No such price: '${N??""}'`,400,"resource_missing");let te=q.quantity===void 0?Number(G.quantity??1):Number(q.quantity),Q={...G,price:X,quantity:te};j>=0?u[j]=Q:u.push(Q)}}let y=[],w=0,v=a+720*3600;if(s)for(let q of u){let j=typeof q.price=="string"?q.price:String(q.price?.id??""),G=Number(q.quantity)||0,N=e.get("price",j),X=ve(N,G),te=N?.recurring??{};v=te.interval?Le(o,te.interval,Number(te.interval_count)||1):v;let Q=q;w+=X,y.push({id:`il_twin_${j}`,object:"line_item",type:"subscription",amount:X,currency:i,quantity:G,proration:!1,price:N??j,subscription:n||null,subscription_item:Q?.id??null,period:{start:o,end:v},description:`${G} \xD7 ${N?.nickname??j}`})}let P=Array.isArray(s?.discounts)&&s.discounts.length?s.discounts[0]:void 0,x=P&&typeof P.coupon=="object"?P.coupon:void 0;if(s&&Array.isArray(l?.items)&&c!=="none"&&s.status!=="trialing"){let q=p.map(N=>{let X=typeof N.price=="string"?N.price:String(N.price.id),te=e.get("price",X);return{id:`il_twin_${X}`,object:"line_item",type:"subscription",amount:ve(te,Number(N.quantity??1)),currency:i,price:te??X,quantity:Number(N.quantity??1),subscription:n,subscription_item:N.id,period:{start:N.current_period_start??_,end:N.current_period_end??m}}}),j=y.map(N=>({...N,period:{start:_,end:m}})),G=Jn(q,j,d,_,m,x);c==="always_invoice"&&G.length?y.splice(0,y.length,...G):y.unshift(...G)}y.push(...Bs(e,r,i,a)),w=Ue(y);let C=oe(Math.max(0,Ue(y.filter(q=>!q.proration))),x),Z=w-C;return e.reply({...qa(a),object:"invoice",id:`upcoming_${e.mint(Y)}`,customer:r,subscription:n||null,currency:i,billing_reason:n?"upcoming":"manual",created:a,period_start:a,period_end:v,subtotal:w,total:Z,amount_due:Math.max(0,Z),amount_paid:0,amount_remaining:Math.max(0,Z),starting_balance:0,ending_balance:null,discounts:C>0&&P?[P]:[],total_discount_amounts:C>0?[{amount:C,discount:P?.id??null}]:[],lines:{object:"list",url:"/v1/invoices/create_preview/lines",has_more:!1,total_count:y.length,data:y}})}async function vi(e){let t=k(e,"card"),a=e.get(de,t);if(!a)return b(e,`No such card: '${t}'`,404,"resource_missing");let n=Array.isArray(e.params.expand)?e.params.expand.map(String):[],r=a.type==="virtual",s={...a};return r&&n.includes("number")&&(s.number=Pa(await e.secret(`issuing-card-number:${t}`))),r&&n.includes("cvc")&&(s.cvc=cr(await e.secret(`issuing-card-cvc:${t}`))),e.reply(e.expand(de,s))}async function wi(e){return $a(!0)(e)}async function Ai(e){return $a(!1)(e)}async function Pi(e){let t=e.params;if(t.currency===void 0||t.currency==="")return b(e,"Missing required param: currency.",400,"parameter_missing");let a=typeof t.type=="string"?t.type:"";if(!a)return b(e,"Missing required param: type.",400,"parameter_missing");if(a!=="virtual"&&a!=="physical")return b(e,"Invalid type: must be one of 'virtual' or 'physical'.",400,"parameter_invalid_string_enum");let n=typeof t.cardholder=="string"?t.cardholder:"",r=n?e.get(Gt,n):void 0;if(n&&!r)return b(e,`No such cardholder: '${n}'`,400,"resource_missing");let s=_a(t.spending_controls,typeof t.currency=="string"?t.currency:null);if(s.error)return ye(e,s.error);let i=e.mint(de),o=Pa(await e.secret(`issuing-card-number:${i}`)),u=new Date(Number(g(e.occurredAt))*1e3);return e.reply(e.expand(de,await h(e,de,{...t,id:i,cardholder:n||null,spending_controls:s.controls??ma()},{status:typeof t.status=="string"?t.status:"inactive",livemode:!1,metadata:{},brand:"Visa",last4:o.slice(-4),exp_month:u.getUTCMonth()+1,exp_year:u.getUTCFullYear()+3,cancellation_reason:null,replacement_for:null,replacement_reason:null,shipping:null,wallets:null})))}async function Si(e){let t=k(e,"card"),a=e.get(de,t);if(!a)return b(e,`No such card: '${t}'`,404,"resource_missing");let{expand:n,...r}=e.params;if(r.status!==void 0&&!["active","inactive","canceled"].includes(String(r.status)))return yt(e,"card_status");if(r.status!==void 0){let i=e.legal(de,"status","PostIssuingCardsCard",a.status,String(r.status),t);if(i)return e.refuse(i)}let s=_a(r.spending_controls,String(a.currency),a.spending_controls);return s.error?ye(e,s.error):e.reply(e.expand(de,await e.write(de,t,{...r,...s.controls?{spending_controls:s.controls}:{}},"issuing.card.update")))}async function xi(e){let t=e.params,a=$e(t);if(a)return za(e,a);let n=Kr(e,["error_on_requires_action","mandate","mandate_data","off_session","return_url"],E(t.confirm));if(n)return n;let r=t.automatic_payment_methods,i=(r&&typeof r=="object"?E(r.enabled):!1)?{enabled:!0,allow_redirects:r.allow_redirects??"always"}:null,o=Array.isArray(t.allowed_payment_method_types)?t.allowed_payment_method_types:t.payment_method_types,u=Array.isArray(o)?o.map(String):["card"],{automatic_payment_methods:l,payment_method_types:p,allowed_payment_method_types:c,id:d,expand:_,confirm:m,payment_method_data:y,mandate_data:w,...v}=t,P=await ns(e,y);P&&(v.payment_method=P);let x=typeof d=="string"&&d?d:e.mint(I),C=typeof v.payment_method=="string"&&v.payment_method!=="";C&&e.legal(I,"status","PostPaymentIntents","requires_payment_method","requires_confirmation",x);let Z=await e.write(I,x,{object:"payment_intent",created:g(e.occurredAt),status:C?"requires_confirmation":"requires_payment_method",client_secret:Ce(x,await e.secret(`client-secret:${x}`)),livemode:!1,capture_method:"automatic",amount_capturable:0,amount_received:0,next_action:null,automatic_payment_methods:i,payment_method_types:u,...Array.isArray(t.allowed_payment_method_types)?{allowed_payment_method_types:u}:{},payment_method_options:t.payment_method_options??{},...ue(v)},"payment_intent.create");return Array.isArray(o)&&await e.record(It,{payment_intent:x},x),E(m)?is(e,Z,{...t,payment_method:v.payment_method}):e.reply(e.expand(I,Z))}async function ki(e){let t=zs(e,"PostPaymentIntentsIntentCancel");if("answer"in t)return t.answer;let a=typeof e.params.cancellation_reason=="string"?e.params.cancellation_reason:"requested_by_customer",n=t.pi.status==="requires_capture"&&typeof t.pi.latest_charge=="string"?e.get("charge",t.pi.latest_charge):void 0;return n&&n.captured===!1&&n.refunded!==!0&&await Ds(e,n),e.reply(e.expand(I,await e.write(I,String(t.pi.id),{status:"canceled",cancellation_reason:a,amount_capturable:0},"payment_intent.canceled")))}async function ji(e){let t=e.get(ae,k(e,"payment_method"));return t?e.reply(t):Ra(e,k(e,"payment_method"))}async function Ci(e){let t=k(e,"payment_method");return e.get(ae,t)?e.reply(await e.write(ae,t,{customer:null},"payment_method.detach")):Ra(e,t)}async function Ei(e){let t=$e(e.params);if(t)return ye(e,t);let a=ct(e);if(a&&!e.get("account",a))return b(e,`No such account: '${a}'`,400,"account_invalid");let n=Math.trunc(Number(e.params.amount)||0),r=String(e.params.currency??"usd");if(a&&!e.rows("external_account").some(u=>u.account===a&&(u.currency??r)===r))return Tr(e,r);let s=mt(e,n,r);if(s)return s;let i=e.mint("payout"),o=await ds(e,i,-n,r);return e.reply(await h(e,"payout",{...e.params,id:i},{status:"pending",...Ea(e),balance_transaction:o,destination:a?Ca(e,a,r):null,...a?{_account:a}:{}}))}async function Ii(e){let t=ct(e),a=T(e,"payout").filter(n=>(Re(e,"payout",n,"_account")??null)===(t??null));return B(e,"payout",a.map(n=>Ir(e,n)))}async function Ti(e){return B(e,"price",re(e,T(e,"price"),{active:(t,a)=>E(t.active)===E(a),product:(t,a)=>t.product===a,currency:(t,a)=>t.currency===a,type:(t,a)=>a==="recurring"?!!t.recurring:!t.recurring,lookup_keys:(t,a)=>(Array.isArray(a)?a.map(String):[String(a)]).includes(String(t.lookup_key))}))}async function Ni(e){let t=e.get("price",k(e,"price"));return t?e.reply(t):b(e,`No such price: '${k(e,"price")}'`,404,"resource_missing")}async function Ri(e){let t=e.params,a=typeof t.product=="string"?t.product:"";if(!a||!e.get("product",a))return b(e,`No such product: '${a}'`,400,"resource_missing");if((typeof t.billing_scheme=="string"?t.billing_scheme:"per_unit")==="tiered")return rs(e,t);if(t.recurring&&typeof t.recurring=="object"){let r=t.recurring;t.recurring={...r,interval_count:r.interval_count!==void 0?Math.trunc(Number(r.interval_count)):1,usage_type:r.usage_type??"licensed",trial_period_days:r.trial_period_days!==void 0?Math.trunc(Number(r.trial_period_days)):null,meter:r.meter??null}}return e.reply(await h(e,"price",t,{active:!0,livemode:!1,billing_scheme:"per_unit",type:t.recurring?"recurring":"one_time",metadata:{}}))}async function Gi(e){return B(e,"product",re(e,T(e,"product"),{active:(t,a)=>E(t.active)===E(a),ids:(t,a)=>Array.isArray(a)?a.map(String).includes(String(t.id)):String(t.id)===String(a)}))}async function zi(e){return e.reply(await h(e,"product",e.params,{active:!0,livemode:!1,images:[],marketing_features:[],metadata:{},updated:g(e.occurredAt)}))}async function Di(e){return B(e,"promotion_code",re(e,T(e,"promotion_code"),{code:(t,a)=>t.code===a,active:(t,a)=>E(t.active)===E(a),coupon:(t,a)=>t.coupon===a,customer:(t,a)=>t.customer===a}))}async function Mi(e){let t=e.params,{promotion:a,coupon:n,...r}=t,s=a&&typeof a=="object"?a:void 0;if(s&&s.type!=="coupon")return b(e,"Invalid promotion[type]: must be coupon.",400,"parameter_invalid_string_enum");let i=typeof s?.coupon=="string"?s.coupon:typeof n=="string"?n:"";if(!i)return b(e,s?"Missing required param: promotion[coupon].":"Missing required param: promotion.",400,"parameter_missing");if(!e.get("coupon",i))return b(e,`No such coupon: '${i}'`,400,"resource_missing");let o=e.mint("promotion_code"),u=typeof r.code=="string"&&r.code?r.code:`TWIN${o.toUpperCase().replace(/[^A-Z0-9]/g,"")}`;return e.reply(await h(e,"promotion_code",{...r,coupon:i,promotion:{type:"coupon",coupon:i},id:o,code:u},{active:r.active!==void 0?E(r.active):!0,customer:typeof r.customer=="string"?r.customer:null,expires_at:r.expires_at!==void 0?Number(r.expires_at):null,max_redemptions:r.max_redemptions!==void 0?Number(r.max_redemptions):null,times_redeemed:0,livemode:!1,metadata:{},restrictions:{first_time_transaction:!1,minimum_amount:null,minimum_amount_currency:null}}))}async function Oi(e){let t=typeof e.params.value_list=="string"?e.params.value_list:"";if(!t)return b(e,"Missing required param: value_list.",400,"parameter_missing");if(!e.row(xe,t,{withDeleted:!0}))return ws(e,t,400);if(e.params.value===void 0||e.params.value==="")return b(e,"Missing required param: value.",400,"parameter_missing");let a=await h(e,Rt,{value_list:t,value:e.params.value},{livemode:!1,created_by:"twin"});return await As(e,t),e.reply(a)}async function Bi(e){let t=Os(e);return t instanceof Response?t:Ms(e,t,e.params)}async function $i(e){let t=k(e,"subscription_exposed_id"),a=O(e,ne,t);if(!a)return _t(e,t);let n=e.legal(ne,"status","DeleteSubscriptionsSubscriptionExposedId",a.status,void 0,t);if(n)return e.refuse(n);let r=g(e.occurredAt),s=e.params.cancellation_details&&typeof e.params.cancellation_details=="object"?e.params.cancellation_details:{},i={comment:s.comment??null,feedback:s.feedback??null,reason:"cancellation_requested"};return e.reply(e.expand(ne,await e.write(ne,t,{status:"canceled",canceled_at:r,ended_at:r,cancellation_details:i},"subscription.cancel")))}async function Li(e){return await Ye(e),B(e,ne,re(e,T(e,ne),{customer:(t,a)=>t.customer===a,status:(t,a)=>a==="all"?!0:t.status===a,price:(t,a)=>Pn(t,String(a))}))}async function Fi(e){let t=k(e,"subscription_exposed_id");await Ye(e,n=>n.id===t);let a=O(e,ne,t);return a?e.reply(ge(e,ne,a)):_t(e,t)}async function Ui(e){let t=k(e,"subscription_exposed_id");await Ye(e,P=>P.id===t);let a=O(e,ne,t);if(!a)return _t(e,t);let n=e.params,r=Lt(e,a.customer),s=ys(e,n.trial_end,r);if(s)return s;let{payment_behavior:i,proration_behavior:o,proration_date:u,trial_from_plan:l,...p}=n,c={...p},d="subscription.update";"pause_collection"in n&&(d=sr(n.pause_collection,c)??d);let _=Sn(n),m=_!==void 0?_s(e,_,a):void 0;if(m instanceof Response)return m;let y="items"in n?Oa(e,t,it(n.items)):void 0;if(y)return y;let w="trial_end"in n?gs(e,a,m):void 0;if(w)return w;"items"in n&&(await qs(e,t,it(n.items)),delete c.items),m&&(c.discounts=m),m&&m.length&&await Na(e,_),delete c.coupon;let v="trial_end"in n?await fs(e,a,c,r):void 0;if("cancel_at_period_end"in n?(c.cancel_at_period_end=E(n.cancel_at_period_end),Object.assign(c,c.cancel_at_period_end?{cancel_at:c.current_period_end??a.current_period_end??null,canceled_at:Number(g(e.occurredAt))}:{cancel_at:null,canceled_at:null})):a.cancel_at_period_end===!0&&c.current_period_end!==void 0&&(c.cancel_at=c.current_period_end),v?.invoice){let P=await Ut(e,v.invoice,r,"api",{...v.payer?{payer:v.payer}:{},attempt:v.attempt});c.status=P?"active":"past_due",c.discounts!==void 0&&(c.discounts=jt(c.discounts,e.get("invoice",v.invoice)??{}))}return e.reply(e.expand(ne,await e.write(ne,t,c,d)))}async function Hi(e){let t=k(e,"subscription_exposed_id"),a=O(e,ne,t);if(!a)return _t(e,t);let n=(a.discounts??[])[0]??a.discount;return n?(await e.write(ne,t,{discounts:[]},"subscription.update"),e.reply(tr(typeof n=="string"?{id:n}:{...n,subscription:t},g(e.occurredAt)))):b(e,`No active discount for subscription: '${t}'`,404,"resource_missing")}async function Vi(e){let t=e.params,a=typeof t.card=="string"?t.card:"";if(!a)return b(e,"Missing required param: card.",400,"parameter_missing");let n=e.get(de,a);if(!n)return b(e,`No such card: '${a}'`,400,"resource_missing");if(t.amount===void 0)return b(e,"Missing required param: amount.",400,"parameter_missing");let r=Math.trunc(Number(t.amount)||0),s=String(t.currency??n.currency??"usd"),i=Number(g(e.occurredAt)),o=ur(n),u=Dt(t.merchant_data),l=t.is_amount_controllable===!0,p=typeof t.authorization_method=="string"?t.authorization_method:"online";if(!["chip","contactless","keyed_in","online","swipe"].includes(p))return yt(e,"authorization_method");let c=t.merchant_amount!==void 0?Math.trunc(Number(t.merchant_amount)||0):r,d=typeof t.merchant_currency=="string"?t.merchant_currency:s,_=e.mint(K),m={amount:r,amount_details:null,authorization_method:p,balance_transactions:[],transactions:[],currency:s,fleet:null,fuel:null,livemode:!1,merchant_amount:c,merchant_currency:d,merchant_data:u,metadata:t.metadata&&typeof t.metadata=="object"?t.metadata:{},network_data:null,verification_data:{address_line1_check:"not_provided",address_postal_code_check:"not_provided",authentication_exemption:null,cvc_check:"match",expiry_check:"match",postal_code:null,three_d_secure:null},wallet:null},y={id:_,card:a,cardholder:o},w=Q=>ut({...Q,currency:s,createdSec:i,merchantAmount:c,merchantCurrency:d}),v=async(Q,V)=>e.reply(Ge(e,await h(e,K,y,{...m,status:"closed",approved:!1,pending_request:null,request_history:[w({amount:r,approved:!1,reason:Q,reasonMessage:V})]})));if(n.status==="canceled")return v("card_canceled","The card has been canceled.");if(n.status!=="active")return v("card_inactive","The card is inactive.");let P=(Q,V)=>e.rows(K).filter(W=>W[Q]===V&&W.approved===!0).map(W=>({amount:Number(W.amount)||0,created:Number(W.created)||0,category:String(W.merchant_data?.category??"")})),x={amount:r,category:String(u.category??""),country:u.country==null?null:String(u.country),nowSec:i},C=o?e.get(Gt,o):void 0,Z=ya(n.spending_controls,{...x,priorApproved:P("card",a)})??ya(C?.spending_controls,{...x,priorApproved:P("cardholder",o)});if(Z)return v("spending_controls",Z);if((Zt(e).issuing.get(s)??0)<r)return v("insufficient_funds","Your Issuing balance does not have enough funds for this authorization.");let q={amount:r,amount_details:null,currency:s,is_amount_controllable:l,merchant_amount:c,merchant_currency:d,network_risk_score:null},j=e.rows("webhook_endpoint").find(Q=>Q.status==="enabled"&&Mn(Q.enabled_events,"issuing_authorization.request"));if(!j)return La(e,y,m,r,w({amount:r,approved:!0,reason:"card_active",reasonMessage:null}));let G=Ge(e,{object:"issuing.authorization",id:_,created:i,...m,card:a,cardholder:o,status:"pending",approved:!1,pending_request:q,request_history:[]}),N=e.call.request.headers.get("stripe-version"),X={id:e.mint("event"),object:"event",api_version:N&&At(N)?N:wt,created:i,data:{object:G},livemode:!1,pending_webhooks:1,request:{id:null,idempotency_key:null},type:"issuing_authorization.request"};await e.write("event",X.id,X,"event.record");let te=await Rr(e,String(j.url),X,String(j.secret??""));return te.kind==="timeout"?e.reply(Ge(e,await h(e,K,y,{...m,status:"pending",approved:!1,request_history:[],pending_request:q}))):ks(e,te,{subject:y,fields:m,amount:r,controllable:l,entry:w,decline:v})}async function Wi(e){let t=k(e,"authorization"),a=e.get(K,t);if(!a)return Ba(e,t);if(a.approved!==!0||a.status!=="pending")return yt(e,"not_capturable",a);let n=e.params.close_authorization!==!1,r=e.legal(K,"status","PostTestHelpersIssuingAuthorizationsAuthorizationCapture",a.status,n?"closed":"pending");if(r)return e.refuse(r);let s=Array.isArray(a.transactions)?a.transactions:[],i=s.map(_=>e.get(zt,String(_))).reduce((_,m)=>_+Math.abs(Number(m?.amount)||0),0),o=(Number(a.amount)||0)-i,u=e.params.capture_amount!==void 0?Math.trunc(Number(e.params.capture_amount)||0):o;if(u<=0||u>o)return b(e,"Invalid capture_amount: must be a positive integer no greater than the uncaptured authorized amount.",400,"parameter_invalid_integer");let l=typeof a.currency=="string"?a.currency:"usd",p=n?o:u,c=await h(e,"balance_transaction",{},{amount:p,currency:l,fee:0,net:p,type:"issuing_authorization_release",status:"available",balance_type:"issuing",reporting_category:"issuing_authorization_release",available_on:g(e.occurredAt),fee_details:[],source:t}),d=await Ps(e,t,{...a,card:lr(a)},u);return e.reply(Ge(e,await e.write(K,t,{status:n?"closed":"pending",transactions:[...s,d.txnId],balance_transactions:[...Array.isArray(a.balance_transactions)?a.balance_transactions:[],c.id,d.btId]},"issuing_authorization.updated")))}var Yi=e=>({object:"list",data:[],has_more:!1,total_count:0,url:e});async function Ki(e){let t=$e(e.params);if(t)return ye(e,t);let a=typeof e.params.destination=="string"?e.params.destination:"";if(!a)return b(e,"Missing required param: destination.",400,"parameter_missing");let n=e.get("account",a);if(!n)return b(e,`No such destination: '${a}'`,400,"resource_missing");if(n.capabilities?.transfers!=="active")return Is(e);let r=Math.trunc(Number(e.params.amount)||0),s=String(e.params.currency??"usd"),i=typeof e.params.source_transaction=="string"?e.params.source_transaction:void 0,o,u;if(i){let c=e.get("charge",i);if(!c)return b(e,`No such charge: '${i}'`,400,"resource_missing");if(c.status!=="succeeded")return b(e,`The source_transaction ${i} has not succeeded.`,400,"invalid_request_error");if(c.captured===!1)return b(e,`The source_transaction ${i} has not been captured; capture it before transferring its funds.`,400);if(String(c.currency??"usd")!==s)return b(e,`The currency of source_transaction ${i} (${String(c.currency)}) does not match the transfer's (${s}).`,400,"invalid_request_error");if(e.rowsRaw("transfer").filter(y=>y.source_transaction===i).reduce((y,w)=>y+(Number(w.amount)||0)-(Number(w.amount_reversed)||0),0)+r>Number(c.amount??0))return b(e,`The transfers from source_transaction ${i} would exceed its amount (${String(c.amount)}).`,400,"invalid_request_error");let _=typeof c.balance_transaction=="string"?e.get("balance_transaction",c.balance_transaction):void 0,m=_&&Number(_.available_on)<=Number(g(e.occurredAt))?Ts(e,r,s):void 0;if(m)return m;o=Math.max(Number(g(e.occurredAt)),Number(_?.available_on)||0),u=typeof c.transfer_group=="string"?c.transfer_group:typeof c.payment_intent=="string"?`group_${c.payment_intent}`:void 0,u&&c.transfer_group!==u&&await e.write("charge",i,{transfer_group:u},"charge.transfer_group_assigned")}else{let c=mt(e,r,s,void 0);if(c)return c}let l=e.mint("transfer"),p=await Da(e,l,r,s,a,o,i!==void 0);return e.reply(await h(e,"transfer",{id:l,...e.params,...u?{transfer_group:u}:{}},{amount_reversed:0,balance_transaction:p,livemode:!1,metadata:{},reversed:!1,source_type:"card",source_transaction:null,reversals:Yi(`/v1/transfers/${l}/reversals`),destination_payment:`py_${l.replace(/^tr_/,"")}`}))}var Va="webhook_endpoint";async function Qi(e){let t=e.params;if(typeof t.url!="string"||t.url==="")return b(e,"Missing required param: url.",400,"parameter_missing");if(t.enabled_events===void 0||t.enabled_events===""||Array.isArray(t.enabled_events)&&!t.enabled_events.length)return b(e,"Missing required param: enabled_events.",400,"parameter_missing");let a=e.mint(Va),n=`whsec_${(await e.secret(`webhook-endpoint-secret:${a}`)).replace(/[^A-Za-z0-9]/g,"").slice(0,32)}`;return e.reply(await h(e,Va,{...t,id:a},{url:t.url,enabled_events:Array.isArray(t.enabled_events)?t.enabled_events.map(String):[String(t.enabled_events)],status:"enabled",livemode:!1,metadata:{},application:null,api_version:typeof t.api_version=="string"?t.api_version:null,description:typeof t.description=="string"?t.description:null,connect:E(t.connect),secret:n}))}var Ji={DeleteSubscriptionsSubscriptionExposedId:$i,DeleteSubscriptionsSubscriptionExposedIdDiscount:Hi,GetAccount:Vs,GetAccountsAccountExternalAccounts:Ys,GetAppsSecretsFind:Js,GetBalance:ei,GetBalanceTransactions:ti,GetBillingPortalConfigurations:ni,GetCharges:ii,GetChargesCharge:oi,GetCheckoutSessionsSessionLineItems:ui,GetCustomersCustomer:ci,GetCustomersSearch:pi,GetInvoicePayments:yi,GetInvoicesInvoice:fi,GetIssuingCardsCard:vi,GetPaymentMethodsPaymentMethod:ji,GetPayouts:Ii,GetPrices:Ti,GetPricesPrice:Ni,GetProducts:Gi,GetPromotionCodes:Di,GetSubscriptions:Li,GetSubscriptionsSubscriptionExposedId:Fi,PostAccountLinks:Ws,PostAccounts:Ks,PostAccountsAccountLoginLinks:Qs,PostAppsSecrets:Zs,PostAppsSecretsDelete:Xs,PostBillingPortalConfigurations:ri,PostBillingPortalSessions:si,PostCheckoutSessions:li,PostCoupons:di,PostCustomers:mi,PostCustomersCustomer:_i,PostInvoices:hi,PostInvoicesCreatePreview:qi,PostInvoicesInvoicePay:bi,PostInvoicesInvoiceVoid:gi,PostIssuingAuthorizationsAuthorizationApprove:wi,PostIssuingAuthorizationsAuthorizationDecline:Ai,PostIssuingCards:Pi,PostIssuingCardsCard:Si,PostPaymentIntents:xi,PostPaymentIntentsIntentCancel:ki,PostPaymentMethodsPaymentMethodDetach:Ci,PostPayouts:Ei,PostPrices:Ri,PostProducts:zi,PostPromotionCodes:Mi,PostRadarValueListItems:Oi,PostRefunds:Bi,PostSubscriptionsSubscriptionExposedId:Ui,PostTestHelpersIssuingAuthorizations:Vi,PostTestHelpersIssuingAuthorizationsAuthorizationCapture:Wi,PostTransfers:Ki,PostWebhookEndpoints:Qi};import{jsx as Ya}from"../../engine/v3/react_jsx-runtime.mjs";import{flowPage as eo,Portal as pd,PORTAL_CSS as to}from"../../engine/v3/volter_world-ui.mjs";var dd="Twin Inc.";function De(e){let t=a=>typeof a=="string"&&a.trim()?a:void 0;return t(e?.business_profile?.name)??t(e?.settings?.dashboard?.display_name)??dd}var Wa=`
|
|
3
|
+
body { background: #f6f9fc; color: #1a1f36; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif; }
|
|
4
|
+
.consent-badge { background: #ffffff; border: 1px solid #e3e8ee; color: #1a1f36; }
|
|
5
|
+
.consent-vendor { background: #635bff; border-color: #635bff; }
|
|
6
|
+
.consent-link { border-color: #c1c9d2; }
|
|
7
|
+
.consent-box { background: #ffffff; border-color: #e3e8ee; }
|
|
8
|
+
.consent-who small, .consent-permission summary small, .consent-note { color: #697386; }
|
|
9
|
+
.consent-actions { border-color: #e3e8ee; }
|
|
10
|
+
.consent-deny { background: #ffffff; border-color: #c1c9d2; color: #1a1f36; }
|
|
11
|
+
.consent-allow { background: #635bff; border-color: #635bff; color: #ffffff; }
|
|
12
|
+
`;async function he(e){return Object.fromEntries(new URLSearchParams(await e.text()))}var aa=e=>new Response(null,{status:302,headers:{location:e}}),Zi={"4000000000000002":"Your card was declined.","4000000000009995":"Your card has insufficient funds.","4000000000000069":"Your card has expired.","4000000000000127":"Your card's security code is incorrect."},cd=e=>{let t=0;for(let a=0;a<e.length;a++){let n=Number(e[e.length-1-a]);a%2===1&&(n*=2,n>9&&(n-=9)),t+=n}return e.length>=12&&t%10===0},qe=(e,t)=>{let a=typeof t=="string"?t.toUpperCase():"USD",n=["JPY","KRW","VND","CLP","ISK","UGX","XAF","XOF"].includes(a);return new Intl.NumberFormat("en-US",{style:"currency",currency:a}).format((Number(e)||0)/(n?1:100))},na=[["US","United States"],["GB","United Kingdom"],["CA","Canada"],["DE","Germany"],["FR","France"],["AU","Australia"],["JP","Japan"]].map(([e,t])=>({value:e,label:t})),Xi={"4000000000000341":"Your card was declined."};function ft(e){let t=/^\s*(\d{1,2})\s*\/\s*(\d{2}|\d{4})\s*$/.exec(e),a=e.replace(/\s/g,""),n=t?void 0:/^(\d{2})(\d{2}|\d{4})$/.exec(a)??/^([2-9])(\d{2})$/.exec(a),r=t??n;if(r)return{month:Number(r[1]),year:r[2].length===2?2e3+Number(r[2]):Number(r[2])}}function Qe(e,t,a){let n=(e.cardNumber??"").replace(/\D/g,"");if(!n)return"Your card number is incomplete.";if(Zi[n])return Zi[n];if(a&&Xi[n])return Xi[n];if(!cd(n))return"Your card number is invalid.";let r=ft(e.cardExpiry??"");if(!r)return"Your card's expiration date is incomplete.";let{month:s,year:i}=r;if(s<1||s>12)return"Your card's expiration date is invalid.";let o=new Date(t*1e3);if(i<o.getUTCFullYear()||i===o.getUTCFullYear()&&s<o.getUTCMonth()+1)return"Your card's expiration year is in the past.";if(!/^\d{3,4}$/.test(e.cardCvc??""))return"Your card's security code is incomplete."}var ee=()=>new Response("Not Found",{status:404,headers:{"content-type":"text/plain; charset=utf-8"}});var fe="subscription",md={id:"PostBillingPortalSessions"},ao=`
|
|
13
|
+
body { color: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif; }
|
|
14
|
+
.portal-side { background: #f7f7f9; }
|
|
15
|
+
.portal-back { color: #635bff; }
|
|
16
|
+
.portal-section h2 { color: #6b7280; border-color: #e5e7eb; }
|
|
17
|
+
.portal-item { border-bottom: 1px solid #f0f0f3; }
|
|
18
|
+
.portal-detail, .portal-note { color: #6b7280; }
|
|
19
|
+
.portal-badge { background: #eef0f4; color: #414552; }
|
|
20
|
+
.portal-button { border-color: #d5dbe1; color: #1a1a1a; }
|
|
21
|
+
.portal-primary { background: #635bff; border-color: #635bff; color: #ffffff; }
|
|
22
|
+
.portal-danger { color: #df1b41; border-color: #f4c7d0; }
|
|
23
|
+
.portal-empty { color: #6b7280; }
|
|
24
|
+
`,ra=e=>new Date(Number(e)*1e3).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"}),Je=()=>eo({title:"Billing",status:404,css:[to,ao],body:Ya("main",{className:"portal-main",children:Ya("h1",{children:"This link has expired."})})});function Ka(e,t){let a=e.get("billing_portal.configuration",String(t.configuration))?.features??void 0,n=a?.subscription_cancel??{},r=a?.invoice_history??{},s=a?.payment_method_update??{};return{cancel:{enabled:a?n.enabled===!0:!0,mode:n.mode==="immediately"?"immediately":"at_period_end"},invoices:a?r.enabled!==!1:!0,paymentMethod:a?s.enabled===!0:!0}}function _d(e,t){let a=(t.items?.data??[])[0],n=typeof a?.price=="object"?a.price:e.get("price",String(a?.price??"")),r=typeof n?.product=="string"?e.get("product",n.product):n?.product,s=n?.recurring;return{name:String(r?.name??n?.nickname??"Plan"),price:n?`${qe(n.unit_amount,n.currency)}${s?.interval?` per ${String(s.interval)}`:""}`:""}}function sa(e,t,a,n){let r=Ka(e,a),s=e.get("customer",String(a.customer))??{},i=e.rows(fe).map(q=>e.expand(fe,q)).filter(q=>q.customer===a.customer&&q.status!=="canceled"&&q.status!=="incomplete_expired"),o=i.map(q=>{let j=_d(e,q),G=q.cancel_at_period_end===!0;return{title:j.name,detail:j.price,badge:q.status==="trialing"?"Trial":q.status==="past_due"?"Past due":G?"Cancels":void 0,note:G?`Your plan will be canceled on ${ra(q.current_period_end)}.`:q.status==="trialing"?`Trial ends ${ra(q.trial_end)}.`:`Renews on ${ra(q.current_period_end)}.`,actions:G?[{label:"Renew plan",action:`${e.publicBase}/p/session/${t}/renew`,fields:{subscription:String(q.id)},tone:"primary"}]:r.cancel.enabled?[{label:"Cancel plan",action:`${e.publicBase}/p/session/${t}/cancel`,fields:{subscription:String(q.id)},tone:"danger"}]:[]}}),u=s.invoice_settings?.default_payment_method??void 0,l=e.rows("payment_method").filter(q=>q.customer===a.customer),p=i.map(q=>dt(e,q)).find(q=>typeof q=="string"),c=(u?l.find(q=>q.id===u):void 0)??(p?l.find(q=>q.id===p):void 0)??l[0],d=c?.card,_=c?[{title:`${String(d?.brand??"card").replace(/^./,q=>q.toUpperCase())} \u2022\u2022\u2022\u2022 ${String(d?.last4??"")}`,detail:d?`Expires ${String(d.exp_month).padStart(2,"0")}/${String(d.exp_year)}`:void 0,badge:"Default"}]:[],m=s.address,y=[{title:String(s.name??s.email??""),detail:String(s.email??""),...m?.country?{note:[m.line1,m.city,m.postal_code,m.country].filter(Boolean).join(", ")}:{}}],w=r.invoices?e.rows("invoice").filter(q=>q.customer===a.customer&&q.status!=="draft").sort((q,j)=>Number(j.created)-Number(q.created)).map(q=>({title:ra(q.created),detail:qe(q.amount_due??q.total,q.currency),badge:String(q.status??"").replace(/^./,j=>j.toUpperCase()),...q.status==="open"&&q.collection_method!=="send_invoice"?{actions:[{label:"Pay",action:`${e.publicBase}/p/session/${t}/pay`,fields:{invoice:String(q.id)},tone:"primary"}]}:{}})):[],v=typeof a.return_url=="string"?a.return_url:void 0,P=a.on_behalf_of??e.row("billing_portal.session",String(a.id))?._brand_account,x=De(e.get("account",typeof P=="string"?P:R)),C=n?.values??{},Z=[{id:"cardNumber",label:"Card number",autoComplete:"cc-number",placeholder:"1234 1234 1234 1234",value:C.cardNumber??""},{id:"cardExpiry",label:"Expiration",autoComplete:"cc-exp",placeholder:"MM / YY",value:C.cardExpiry??""},{id:"cardCvc",label:"CVC",autoComplete:"cc-csc",placeholder:"CVC",value:C.cardCvc??""},{id:"billingName",label:"Name on card",autoComplete:"cc-name",value:C.billingName??""},{id:"billingCountry",label:"Country or region",options:na,value:C.billingCountry??"US"},{id:"billingPostalCode",label:"ZIP",autoComplete:"postal-code",value:C.billingPostalCode??""}];return eo({title:"Billing",css:[to,ao],...n?{status:402}:{},body:Ya(pd,{merchant:x,...n?{notice:n.error}:{},...r.paymentMethod?{forms:[{heading:c?"Update payment method":"Add payment method",action:`${e.publicBase}/p/session/${t}/payment_method`,fields:Z,submit:{label:c?"Update":"Add"}}]}:{},...v?{back:{href:v,label:`\u2190 Return to ${x}`}}:{},sections:[{heading:"Current plan",items:o,empty:"You have no active plans."},{heading:"Payment method",items:_,empty:"No payment method on file."},{heading:"Billing information",items:y},...r.invoices?[{heading:"Invoice history",items:w,empty:"No invoices yet."}]:[]]})})}async function yd(e,t,a,n,r){let s=O(e,fe,n);if(!s||s.customer!==a.customer||s.status==="canceled")return Je();let i=new Response(null,{status:303,headers:{location:`${e.publicBase}/p/session/${t}`}});if(r==="renew")return await e.write(fe,n,{cancel_at_period_end:!1,cancel_at:null,canceled_at:null,cancellation_details:{comment:null,feedback:null,reason:null}},"subscription.update"),i;let o=Ka(e,a);if(!o.cancel.enabled)return Je();let u=g(e.occurredAt),l={comment:null,feedback:null,reason:"cancellation_requested"};return o.cancel.mode==="at_period_end"?(await e.write(fe,n,{cancel_at_period_end:!0,cancel_at:s.current_period_end??null,canceled_at:u,cancellation_details:l},"subscription.update"),i):e.legal(fe,"status",md.id,s.status,"canceled",n,"external")?Je():(await e.write(fe,n,{status:"canceled",canceled_at:u,ended_at:u,cancellation_details:l},"subscription.cancel"),i)}async function fd(e,t,a,n){if(!Ka(e,a).paymentMethod)return Je();let r=Qe(n,g(e.occurredAt),!1);if(r)return sa(e,t,a,{error:r,values:n});let s=String(a.customer),[i,o]=(n.cardExpiry??"").split("/").map(c=>Number(c.trim())),u={number:(n.cardNumber??"").replace(/\D/g,""),exp_month:i??12,exp_year:(o??0)<100?2e3+(o??0):o??0},l=await h(e,"payment_method",{},{type:"card",customer:s,livemode:!1,billing_details:{address:{country:n.billingCountry||null,postal_code:n.billingPostalCode||null,city:null,line1:null,line2:null,state:null},email:null,name:n.billingName||null,phone:null},...be("card",{card:u}),_declineOutcome:me(()=>{},{card:u})??null,...we(e,u)?{_afterSuccess:we(e,u)}:{}}),p=e.get("customer",s)??{};await e.write("customer",s,{invoice_settings:{...p.invoice_settings??{},default_payment_method:l.id}},"customer.update");for(let c of e.rows(fe).map(d=>e.expand(fe,d)).filter(d=>d.customer===s&&d.status!=="canceled"&&d.status!=="incomplete_expired"))await e.write(fe,String(c.id),{default_payment_method:l.id},"subscription.update");return new Response(null,{status:303,headers:{location:`${e.publicBase}/p/session/${t}`}})}async function bd(e,t,a,n){let r=e.get("invoice",n);if(!r||r.customer!==a.customer||r.status!=="open")return Je();let s=typeof r.subscription=="string"?O(e,fe,r.subscription):void 0,i=e.get("customer",String(a.customer))??{},o=(s?dt(e,s):void 0)??i.invoice_settings?.default_payment_method;if(!o)return sa(e,t,a,{error:"Add a payment method to pay this invoice.",values:{}});let u=await Cr(e,n,o);return u?sa(e,t,a,{error:u.message,values:{}}):new Response(null,{status:303,headers:{location:`${e.publicBase}/p/session/${t}`}})}async function no(e){let t=e.call.request,a=/^\/p\/session\/(bps_[A-Za-z0-9_]+)(?:\/(cancel|renew|payment_method|pay))?\/?$/.exec(new URL(t.url).pathname);if(!a)return ee();let[,n,r]=a;if(r&&t.method!=="POST"||!r&&t.method!=="GET")return ee();let s=r?await he(t.clone()):{},i=e.get("billing_portal.session",n);return i?r?r==="payment_method"?fd(e,n,i,s):r==="pay"?bd(e,n,i,s.invoice??""):yd(e,n,i,s.subscription??"",r):sa(e,n,i):Je()}function Me(e,t){return{amount:new Intl.NumberFormat("en-US",{style:"currency",currency:t}).format(e/100),minorUnitsAmount:e}}function Qa(e,t){let a=String(t.currency??"usd"),n=t.line_items?.data??[],r=e.row(L,String(t.id))??t,s=t.mode==="subscription"?Ee(r._subscription_data??{},g(e.occurredAt)):void 0,i=typeof t.customer=="string"?e.get("customer",t.customer):void 0,o=r._discount,u=typeof o?.promotion_code=="string"?e.get("promotion_code",o.promotion_code):void 0,l=Me(0,a);return{id:t.id,billingAddress:null,businessName:null,canConfirm:t.status==="open",currency:a,currencyOptions:null,discountAmounts:u?[{...Me(Number(t.total_details?.amount_discount??0),a),promotionCode:u.code}]:[],email:i?.email??t.customer_email??null,lastPaymentError:null,lineItems:n.map(p=>({id:p.id,name:p.description,quantity:p.quantity,unitAmount:Me(Number(p.amount_subtotal)/Number(p.quantity||1),a),total:Me(Number(p.amount_total),a)})),livemode:!1,minorUnitsAmountDivisor:100,phoneNumber:null,recurring:t.mode==="subscription"?{trial:s?{trialEnd:s.end,trialPeriodDays:Math.ceil((s.end-s.start)/86400)}:null}:null,savedPaymentMethods:[],shipping:null,shippingAddress:null,shippingOptions:[],status:t.status==="complete"?{type:"complete",paymentStatus:t.payment_status}:{type:t.status},tax:{status:"ready"},taxAmounts:[],taxIdInfo:null,total:{appliedBalance:l,balanceAppliedToNextInvoice:!1,discount:Me(Number(t.total_details?.amount_discount??0),a),shippingRate:l,subtotal:Me(Number(t.amount_subtotal??0),a),taxExclusive:l,taxInclusive:l,total:Me(s?0:Number(t.amount_total??0),a)}}}var Ae=(e,t=null)=>Response.json({type:"error",error:{message:e,code:t}});async function ro(e){let t=new URL(e.call.request.url).pathname,a=t.split("/")[3],n=t.split("/")[4],r=e.params,s=e.get(L,a);if(!s||s.ui_mode!=="custom"||r.client_secret!==s.client_secret)return Ae("Invalid Checkout Session client secret.");if(n==="init")return Response.json({type:"success",session:Qa(e,s)});if(s.status!=="open")return Ae("This Checkout Session is no longer active.");if(n==="apply_promotion_code"||n==="remove_promotion_code"){if(n==="apply_promotion_code"&&s.allow_promotion_codes!==!0)return Ae("Promotion codes are not enabled for this Checkout Session.");let y=n==="apply_promotion_code"?e.rows("promotion_code").find(C=>C.code===r.promotion_code&&C.active===!0):void 0;if(n==="apply_promotion_code"&&!y)return Ae("This promotion code is invalid.","invalidPromotionCode");let w=y?Yt(e,{discounts:[{promotion_code:y.id}]},g(e.occurredAt)):void 0;if(w instanceof Response)return Ae("This promotion code is invalid.","invalidPromotionCode");let v=w?oe(Number(s.amount_subtotal),w.coupon):0,P={amount_total:Number(s.amount_subtotal)-v,total_details:{...s.total_details,amount_discount:v},discounts:w?[{coupon:w.coupon.id,promotion_code:y.id}]:[],_discount:w?{coupon:w.coupon.id,promotion_code:y.id}:null},x=await e.write(L,a,P,"checkout.session.update");return Response.json({type:"success",session:Qa(e,x)})}if(n!=="confirm")return Ae("Unrecognized Checkout action.");let i=r.payment_details??{},o=e.row(L,a)??s,u=s.mode==="subscription"?Ee(o._subscription_data??{},g(e.occurredAt)):void 0,l=Qe(i,g(e.occurredAt),!u);if(l)return Ae(l,"paymentFailed");let p=typeof s.customer=="string"?e.get("customer",s.customer):void 0,c=String(p?.email??r.email??s.customer_email??"");if(!/^[^@\s]+@[^@\s]+\.[^@\s]+$/.test(c))return Ae("Your email address is incomplete.");let d=s;if(!p&&s.mode==="subscription"){let y=e.mint("customer"),w=await h(e,"customer",{id:y,email:c},{livemode:!1,...Ke(y)});d={...s,customer:w.id}}let _=ft(i.cardExpiry),m=await Kt(e,a,d,{customer:d.customer,customer_details:{email:c,name:i.billingName??null,address:null,phone:null,tax_exempt:"none",tax_ids:[]}},{number:i.cardNumber.replace(/\D/g,""),exp_month:_.month,exp_year:_.year});return m instanceof Response?Ae("This Checkout Session is no longer active."):Response.json({type:"success",session:Qa(e,m),return_url:s.return_url})}import{jsx as Za}from"../../engine/v3/react_jsx-runtime.mjs";import{flowPage as so,Payment as gd,PAYMENT_CSS as io}from"../../engine/v3/volter_world-ui.mjs";var Ja="checkout.session",hd={id:"PostCheckoutSessionsSession"},oo=`
|
|
25
|
+
body { color: #1a1a1a; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif; }
|
|
26
|
+
.pay-summary { background: #f7f7f9; }
|
|
27
|
+
.pay-back, .pay-line small, .pay-total-lead span { color: #6b7280; }
|
|
28
|
+
.pay-field input, .pay-field select { border-color: #e0e0e0; background: #ffffff; }
|
|
29
|
+
.pay-error { color: #df1b41; }
|
|
30
|
+
.pay-submit { background: #0074d4; color: #ffffff; }
|
|
31
|
+
`;function uo(e,t){let a=e._subscription_data;return e.mode==="subscription"&&a&&typeof a=="object"?Ee(a,t):void 0}var an=(e,t)=>e._price_data?.[t],qd=e=>e.price&&typeof e.price=="object"?e.price.recurring??void 0:void 0;function vd(e){let a=(e.line_items?.data??[]).map((s,i)=>qd(s)??an(e,i)?.recurring).find(Boolean),n=typeof a?.interval=="string"?a.interval:"month",r=Math.max(1,Math.trunc(Number(a?.interval_count??1))||1);return r===1?`per ${n}`:`every ${r} ${n}s`}function wd(e,t){let a=Math.ceil((t.end-t.start)/86400),n=`${qe(Ad(e),e.currency)} ${vd(e)}`,r=new Date(t.end*1e3).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",timeZone:"UTC"});return{lead:{label:"",amount:`${a} ${a===1?"day":"days"} free`,detail:`Then ${n}`},note:`After your trial ends, you will be charged ${n} starting ${r}. You can always cancel before then.`}}function Ad(e){let a=(e.line_items?.data??[]).filter((r,s)=>!He(r,an(e,s))).reduce((r,s)=>r+(Number(s.amount_subtotal)||0),0),n=e._coupon;return a-(n&&n.duration!=="once"?oe(a,n):0)}var Xa=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;function lo(e){let t=e._customer?.email;return typeof t=="string"&&Xa.test(t)?t:void 0}function en(e,t,a,n,r={},s){let i=(t.line_items?.data??[]).map(y=>({name:String(y.description??"Item"),amount:qe(y.amount_total,y.currency??t.currency),...Number(y.quantity)>1?{detail:`Qty ${String(y.quantity)}`}:{}})),o=String(t.mode),u=String(t._merchant),l=uo(t,n),p=o==="setup"?"Save card":o==="subscription"?l?"Start trial":"Subscribe":"Pay",c=l?wd(t,l):void 0,d=lo(t),_=d?[{id:"email",label:"Email",type:"email",autoComplete:"email",value:d,readOnly:!0}]:typeof t.customer_email=="string"?[{id:"email",label:"Email",type:"email",autoComplete:"email",value:t.customer_email}]:[{id:"email",label:"Email",type:"email",autoComplete:"email",placeholder:"email@example.com",value:r.email??""}],m=[{id:"cardNumber",label:"Card number",autoComplete:"cc-number",placeholder:"1234 1234 1234 1234",value:r.cardNumber??""},{id:"cardExpiry",label:"Expiration",autoComplete:"cc-exp",placeholder:"MM / YY",value:r.cardExpiry??"",format:"card-expiry"},{id:"cardCvc",label:"CVC",autoComplete:"cc-csc",placeholder:"CVC",value:r.cardCvc??""},{id:"billingName",label:"Cardholder name",autoComplete:"cc-name",placeholder:"Full name on card",value:r.billingName??""},{id:"billingCountry",label:"Country or region",options:na,value:r.billingCountry??"US"},{id:"billingPostalCode",label:"ZIP",autoComplete:"postal-code",placeholder:"ZIP",value:r.billingPostalCode??""}];return so({title:"Checkout",css:[io,oo],status:s?402:200,body:Za(gd,{merchant:u,lines:i,...c?{total:c.lead,note:c.note}:t.amount_total!==null&&t.amount_total!==void 0?{total:{label:o==="subscription"?"Subscribe":`Pay ${u}`,amount:qe(t.amount_total,t.currency)}}:{},action:`${e}/c/pay/${a}`,sections:[{heading:"Contact information",fields:_},{heading:"Payment method",fields:m}],submit:{label:p,testId:"hosted-payment-submit-button"},...typeof t.cancel_url=="string"?{back:{href:t.cancel_url,label:"\u2190 Back"}}:{},...s?{error:s}:{}})})}var tn=()=>so({title:"Checkout",status:404,css:[io,oo],body:Za("main",{className:"pay-form",children:Za("h1",{children:"This Checkout Session is no longer active."})})});async function Pd(e,t,a,n){let r=lo(a),s=r??(typeof a.customer_email=="string"?a.customer_email:(n.email??"").trim());if((a.mode!=="setup"||!a.customer)&&!Xa.test(s))return en(e.publicBase,a,t,g(e.occurredAt),n,"Your email address is incomplete.");let i=(a.line_items?.data??[]).some((m,y)=>He(m,an(a,y))),o=a.mode==="payment"||a.mode==="subscription"&&(!uo(a,g(e.occurredAt))||i),u=Qe(n,g(e.occurredAt),o);if(u)return en(e.publicBase,a,t,g(e.occurredAt),n,u);let l=a;if(!a.customer&&(a.mode==="subscription"||a.customer_creation==="always")){let m=e.mint("customer"),y=await h(e,"customer",{id:m,email:s,...n.billingName?{name:n.billingName}:{}},{livemode:!1,...Ke(m)});l={...a,customer:y.id}}typeof a.customer=="string"&&!r&&Xa.test(s)&&await e.write("customer",a.customer,{email:s},"customer.update");let p={customer_details:{email:s,name:n.billingName||null,address:{country:n.billingCountry||null,postal_code:n.billingPostalCode||null,city:null,line1:null,line2:null,state:null},phone:null,tax_exempt:"none",tax_ids:[]},...l.customer!==a.customer?{customer:l.customer}:{}},c=ft(n.cardExpiry??"");if(await Kt(e,t,l,p,{number:(n.cardNumber??"").replace(/\D/g,""),exp_month:c.month,exp_year:c.year})instanceof Response)return tn();let _=String(a.success_url).replaceAll("{CHECKOUT_SESSION_ID}",t);return new Response(null,{status:303,headers:{location:_}})}function Sd(e,t){let a=t._branding_settings?.display_name,n=t._payment_intent_data?.on_behalf_of??t._subscription_data?.on_behalf_of,r=typeof n=="string"?n:typeof t._brand_account=="string"?t._brand_account:R;return typeof a=="string"&&a.trim()?a:De(e.get("account",r))}async function co(e){let t=e.call.request,a=/^\/c\/pay\/(cs_[A-Za-z0-9_]+)\/?$/.exec(new URL(t.url).pathname);if(!a||t.method!=="GET"&&t.method!=="POST")return ee();let n=a[1],r=t.method==="POST"?await he(t.clone()):{},s=e.get(Ja,n);if(!s||s.status!=="open"&&(t.method==="GET"||e.legal(Ja,"status",hd.id,String(s.status),"complete",n,"external")))return tn();let i=e.row(Ja,n)??{},o=i._discount?.coupon,u={...s,_subscription_data:i._subscription_data,_price_data:i._price_data,_merchant:Sd(e,i),_coupon:typeof o=="string"?e.get("coupon",o):void 0,_customer:typeof s.customer=="string"?e.get("customer",s.customer):void 0};return t.method==="GET"?en(e.publicBase,u,n,g(e.occurredAt)):Pd(e,n,u,r)}import{jsx as je,jsxs as po}from"../../engine/v3/react_jsx-runtime.mjs";import{twinVendorUrl as _o}from"../../engine/v3/volter_world-core.mjs";import{CONSENT_CSS as yo,flowPage as nn,Payment as xd,PAYMENT_CSS as kd}from"../../engine/v3/volter_world-ui.mjs";var bt="account_link",fo=()=>nn({title:"Stripe",status:404,css:[yo,Wa],body:je("main",{className:"consent",children:je("h1",{className:"consent-heading",children:"This link is invalid."})})}),jd=(e,t)=>t.used!==!0&&Number(t.expires_at)>g(e.occurredAt),Cd=[{value:"",label:"Select your industry"},...Mt.map(([e,t])=>({value:e,label:t}))],Ed=[["AL","Alabama"],["AK","Alaska"],["AZ","Arizona"],["AR","Arkansas"],["CA","California"],["CO","Colorado"],["CT","Connecticut"],["DE","Delaware"],["DC","District of Columbia"],["FL","Florida"],["GA","Georgia"],["HI","Hawaii"],["ID","Idaho"],["IL","Illinois"],["IN","Indiana"],["IA","Iowa"],["KS","Kansas"],["KY","Kentucky"],["LA","Louisiana"],["ME","Maine"],["MD","Maryland"],["MA","Massachusetts"],["MI","Michigan"],["MN","Minnesota"],["MS","Mississippi"],["MO","Missouri"],["MT","Montana"],["NE","Nebraska"],["NV","Nevada"],["NH","New Hampshire"],["NJ","New Jersey"],["NM","New Mexico"],["NY","New York"],["NC","North Carolina"],["ND","North Dakota"],["OH","Ohio"],["OK","Oklahoma"],["OR","Oregon"],["PA","Pennsylvania"],["RI","Rhode Island"],["SC","South Carolina"],["SD","South Dakota"],["TN","Tennessee"],["TX","Texas"],["UT","Utah"],["VT","Vermont"],["VA","Virginia"],["WA","Washington"],["WV","West Virginia"],["WI","Wisconsin"],["WY","Wyoming"]].map(([e,t])=>({value:e,label:t})),z=(e,t,a,n={})=>({id:e,label:t,value:a[e]??"",...n}),mo=(e,t)=>[z(`${e}line1`,"Address",t,{autoComplete:"address-line1"}),z(`${e}city`,"City",t),z(`${e}state`,"State",t,{options:Ed,value:t[`${e}state`]??"OR"}),z(`${e}postal_code`,"ZIP",t,{autoComplete:"postal-code"})],Id=e=>typeof e=="string"&&Sa.has(e.trim())?e.trim():"";function bo(e,t,a,n,r={},s){let i=r,o=[z("mcc","Industry",i,{options:Cd,value:Id(i.mcc??e.get("account",String(a.account))?.business_profile?.mcc)}),z("url","Business website",i,{placeholder:"https://"}),z("statement_descriptor","Statement descriptor (what customers see on their card statements)",i)],u=[z("company_name","Legal business name",i),z("company_tax_id","Employer Identification Number (EIN)",i),z("company_phone","Business phone",i,{type:"tel"}),...mo("company_",i)],l=[z("owner_first_name","Owner first name",i),z("owner_last_name","Owner last name",i),z("owner_email","Owner email",i,{type:"email"}),z("owners_provided","All owners of 25% or more are listed",i,{type:"checkbox",value:"provided"})],p=[z("first_name","First name",i,{autoComplete:"given-name"}),z("last_name","Last name",i,{autoComplete:"family-name"}),z("email","Email",i,{type:"email"}),z("phone","Phone",i,{type:"tel"}),z("dob","Date of birth",i,{type:"date"}),...n==="company"?[z("title","Job title",i)]:[],...mo("",i),z("ssn_last_4","Last 4 digits of SSN",i)],c=[z("routing_number","Routing number",i),z("account_number","Account number",i)],d=[z("tos","I agree to the Stripe Connected Account Agreement",i,{type:"checkbox",value:"accepted"})],_=n==="company"?[{heading:"Business details",fields:o},{heading:"Company",fields:u},{heading:"Owners",fields:l},{heading:"Representative",fields:p},{heading:"Payout account",fields:c},{heading:"Agreement",fields:d}]:[{heading:"Business details",fields:o},{heading:"About you",fields:p},{heading:"Payout account",fields:c},{heading:"Agreement",fields:d}];return nn({title:"Stripe \xB7 Account onboarding",css:[zd],...s?{status:400}:{},body:je(Md,{merchant:"Stripe",account:String(a.account),checked:["owners_provided","tos"].filter(m=>i[m]===(m==="tos"?"accepted":"provided")),lines:_.map(m=>({name:m.heading,amount:""})),action:t,sections:_,submit:{label:"Submit"},back:{href:String(a.return_url),label:"\u2190 Return to platform"},...s?{error:s}:{}})})}function Td(e){return nn({title:"Stripe",status:501,css:[yo,Wa],body:je("main",{className:"consent",children:je("h1",{className:"consent-heading",children:`Onboarding requirements for a ${String(e.business_type??"business")} account in ${String(e.country??"this country")} are not modelled by this twin.`})})})}function Nd(e,t,a,n,r,s){return bo(e,t,a,n,r,`Still required: ${s.join(", ")}.`)}async function Rd(e,t,a,n,r){let s=String(t.account),i=e.get("account",s);if(!i)return;let o={...i.capabilities??{}};for(let[x,C]of Object.entries(o))C!=="active"&&(o[x]="active");let u=We(a,n),l={...i.requirements??{},currently_due:u,eventually_due:u,past_due:[],disabled_reason:null,current_deadline:null},p=x=>({line1:n[`${x}line1`],line2:null,city:n[`${x}city`],state:n[`${x}state`],postal_code:n[`${x}postal_code`],country:"US"}),[c,d,_]=(n.dob??"").split("-").map(Number),m={first_name:n.first_name,last_name:n.last_name,email:n.email,phone:n.phone,dob:{day:_,month:d,year:c},address:p(""),ssn_last_4_provided:!0,id_number_provided:!1},y=a==="company",w=i.settings??{},v=y?null:await h(e,"person",{...m,account:s},{relationship:{representative:!0},metadata:{}});await e.write("account",s,{details_submitted:!0,charges_enabled:u.length===0,payouts_enabled:u.length===0,capabilities:o,requirements:l,business_type:a,business_profile:{...i.business_profile??{},name:y?n.company_name:`${String(n.first_name)} ${String(n.last_name)}`,mcc:(n.mcc??"").trim(),url:n.url},settings:{...w,payments:{...w.payments??{},statement_descriptor:n.statement_descriptor}},...y?{company:{name:n.company_name,phone:n.company_phone,address:p("company_"),tax_id_provided:!0,owners_provided:!0,directors_provided:!1,executives_provided:!1}}:{individual:v.id},tos_acceptance:{date:g(e.occurredAt),ip:r,user_agent:null}},"account.updated"),y&&(await h(e,"person",{account:s},{...m,relationship:{representative:!0,executive:!0,director:!1,owner:!1,percent_ownership:null,title:n.title},metadata:{}}),await h(e,"person",{account:s},{first_name:n.owner_first_name,last_name:n.owner_last_name,email:n.owner_email,relationship:{owner:!0,representative:!1,executive:!1,director:!1,percent_ownership:null,title:null},metadata:{}}));let P=(n.account_number??"").replace(/\D/g,"");await h(e,"external_account",{account:s},{object:"bank_account",account_holder_name:y?n.company_name:`${String(n.first_name)} ${String(n.last_name)}`,account_holder_type:y?"company":"individual",bank_name:"STRIPE TEST BANK",country:"US",currency:"usd",default_for_currency:!0,fingerprint:`twin_ext_${P.slice(-4)}`,last4:P.slice(-4),routing_number:n.routing_number,status:"new",metadata:{}}),await Xr(e,s)}var go="https://connect.stripe.com/setup/s/";async function Gd(e,t){let a=e.get(bt,t);if(!a)return fo();if(!jd(e,a))return aa(String(a.refresh_url));let n=`onbs_${t.replace(/^acctlink_/,"")}`;return await e.write(bt,t,{used:!0,_session:n},"account_link.used"),aa(_o(e.call.request,`${go}${n}`))}async function ho(e){let t=e.call.request,a=new URL(t.url).pathname,n=/^\/setup\/(acctlink_[A-Za-z0-9_]+)\/?$/.exec(a),r=/^\/setup\/s\/(onbs_[A-Za-z0-9_]+)\/?$/.exec(a);if(n&&t.method==="GET")return Gd(e,n[1]);if(!r||t.method!=="GET"&&t.method!=="POST")return ee();let s=r[1],i=t.method==="POST"?await he(t.clone()):{},o=e.rowsRaw(bt).find(_=>_._session===s&&_._submitted!==!0),u=o?e.get(bt,String(o.id)):void 0;if(!o||!u)return fo();let l=_o(t,`${go}${s}`),p=e.get("account",String(u.account))??{},c=Ot(p);if(!c)return Td(p);if(t.method==="GET")return bo(e,l,u,c);let d=We(c,i);return d.length?Nd(e,l,u,c,i,d):(await e.write(bt,String(o.id),{_submitted:!0},"account_link.submitted"),await Rd(e,u,c,i,t.headers.get("x-forwarded-for")?.split(",")[0]?.trim()||"127.0.0.1"),aa(String(u.return_url)))}var zd=kd+`
|
|
32
|
+
*{box-sizing:border-box}body{color:#30313d;background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
|
|
33
|
+
.pay{grid-template-columns:minmax(280px,40%) minmax(0,60%)}.pay-summary{background:#f7f7f9;padding:48px max(32px,calc((100vw - 1000px)/2));padding-right:40px;position:relative}
|
|
34
|
+
.pay-back{color:#596171;font-size:13px;margin-bottom:40px}.pay-merchant{color:#635bff;font-size:30px;font-weight:700;letter-spacing:-1px;margin-bottom:32px}
|
|
35
|
+
.pay-lines{counter-reset:step;max-width:280px}.pay-line{counter-increment:step;display:block;position:relative;padding:12px 0 12px 38px;color:#687385;font-size:14px}
|
|
36
|
+
.pay-line::before{content:counter(step);position:absolute;left:0;top:11px;width:24px;height:24px;line-height:22px;text-align:center;border:1px solid #d8dee4;border-radius:50%;background:#fff;font-size:12px}
|
|
37
|
+
.pay-line[aria-current=step]{color:#30313d;font-weight:600}.pay-line[aria-current=step]::before{border-color:#635bff;color:#635bff}.pay-line.is-complete::before{background:#635bff;border-color:#635bff;color:#fff}
|
|
38
|
+
.pay-form{padding:56px 48px;max-width:620px;width:100%}.pay-section legend{font-size:26px;letter-spacing:-.6px;font-weight:600;margin-bottom:24px}.pay-field{margin-bottom:22px}
|
|
39
|
+
.pay-field span{font-size:14px;margin-bottom:8px;font-weight:500}.pay-field input,.pay-field select{background:#fff;border-color:#d8dee4;border-radius:6px;padding:10px 12px;box-shadow:0 1px 2px #00000005;color:#30313d}
|
|
40
|
+
.pay-field input:focus,.pay-field select:focus{outline:2px solid #a5a0ff;outline-offset:1px}
|
|
41
|
+
.pay-field:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:10px}.pay-field:has(input[type=checkbox]) span{order:2;font-weight:400}.pay-field input[type=checkbox]{width:16px;height:16px;flex:none;margin-top:3px;accent-color:#635bff}
|
|
42
|
+
.pay-submit,.connect-next{background:#635bff;color:#fff;border:0;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;padding:12px 16px}
|
|
43
|
+
.connect-actions{display:flex;justify-content:space-between;gap:16px;margin-top:32px}.connect-back{color:#596171;background:transparent;border:0;cursor:pointer;padding:12px 0;font:inherit}.connect-next{min-width:140px;flex:1}
|
|
44
|
+
.pay-error{border:1px solid #f1c2c2;padding:12px;border-radius:6px;color:#b52e2e;background:#fff7f7;font-size:13px;white-space:normal;overflow-wrap:anywhere}
|
|
45
|
+
.connect-progress{height:3px;background:#ececf1;margin:0 0 36px;border-radius:2px;overflow:hidden}.connect-progress div{height:100%;background:#635bff;transition:width .15s}
|
|
46
|
+
.connect-context{position:absolute;bottom:40px;left:32px;color:#687385;font-size:12px}.connect-context strong{display:block;font-weight:500;color:#30313d}
|
|
47
|
+
.connect-ready .pay-section[hidden],.connect-ready .pay-submit[hidden],.connect-actions [hidden]{display:none}
|
|
48
|
+
@media(max-width:800px){.pay{grid-template-columns:1fr}.pay-summary{padding:24px}.pay-back{margin-bottom:20px}.pay-merchant{font-size:24px;margin-bottom:0}.pay-lines{display:none}.connect-context{position:static;padding:0 24px;background:#f7f7f9}.pay-form{padding:32px 24px;max-width:100%}.pay-section legend{font-size:24px}}
|
|
49
|
+
`,Dd=`(function(){
|
|
50
|
+
var root=document.querySelector('.connect-onboarding'),form=root.querySelector('form'),groups=Array.from(form.querySelectorAll('.pay-section')),items=Array.from(root.querySelectorAll('.pay-line')),submit=form.querySelector('.pay-submit');
|
|
51
|
+
var progress=document.createElement('div');progress.className='connect-progress';progress.setAttribute('role','progressbar');progress.setAttribute('aria-label','Onboarding progress');progress.setAttribute('aria-valuemin','0');progress.setAttribute('aria-valuemax',String(groups.length));
|
|
52
|
+
var bar=document.createElement('div');progress.append(bar);form.before(progress);
|
|
53
|
+
var controls=document.createElement('div');controls.className='connect-actions';
|
|
54
|
+
var back=document.createElement('button');back.type='button';back.className='connect-back';back.textContent='Back';
|
|
55
|
+
var next=document.createElement('button');next.type='button';next.className='connect-next';next.textContent='Continue';
|
|
56
|
+
controls.append(back,next);form.append(controls);
|
|
57
|
+
var checked=JSON.parse(root.getAttribute('data-checked-fields')||'[]');
|
|
58
|
+
groups.forEach(function(group){group.querySelectorAll('input,select').forEach(function(input){input.required=true;if(input.type==='checkbox')input.checked=checked.includes(input.name);if(input.name==='ssn_last_4'){input.pattern='[0-9]{4}';input.inputMode='numeric';input.maxLength=4;}});});
|
|
59
|
+
var index=0;
|
|
60
|
+
function show(i){index=i;groups.forEach(function(group,n){group.hidden=n!==i;});items.forEach(function(item,n){if(n===i)item.setAttribute('aria-current','step');else item.removeAttribute('aria-current');item.classList.toggle('is-complete',n<i);});back.hidden=i===0;next.hidden=i===groups.length-1;submit.hidden=i!==groups.length-1;bar.style.width=((i+1)/groups.length*100)+'%';progress.setAttribute('aria-valuenow',String(i+1));progress.setAttribute('aria-valuetext',groups[i].querySelector('legend').textContent);root.classList.add('connect-ready');}
|
|
61
|
+
function invalid(group){return Array.from(group.querySelectorAll('input,select')).find(function(input){return !input.checkValidity();});}
|
|
62
|
+
back.addEventListener('click',function(){show(index-1);});
|
|
63
|
+
next.addEventListener('click',function(){var field=invalid(groups[index]);if(field){field.reportValidity();return;}show(index+1);groups[index].querySelector('input,select')?.focus();});
|
|
64
|
+
form.noValidate=true;
|
|
65
|
+
form.addEventListener('submit',function(event){for(var i=0;i<groups.length;i++){var field=invalid(groups[i]);if(field){event.preventDefault();show(i);field.reportValidity();return;}}});
|
|
66
|
+
if(form.querySelector('.pay-error')){var first=groups.findIndex(function(group){return invalid(group);});show(first<0?groups.length-1:first);}else show(0);
|
|
67
|
+
})();`;function Md(e){return po("div",{className:"connect-onboarding","data-checked-fields":JSON.stringify(e.checked),children:[je(xd,{...e}),po("div",{className:"connect-context",children:[je("strong",{children:"Test mode"}),e.account]}),je("script",{dangerouslySetInnerHTML:{__html:Dd}})]})}import{jsx as f,jsxs as A,Fragment as sn}from"../../engine/v3/react_jsx-runtime.mjs";import{flowPage as Po}from"../../engine/v3/volter_world-ui.mjs";var rn=e=>new Response(null,{status:303,headers:{location:e}}),qo=e=>Po({css:[],title:"Stripe",status:400,body:f("main",{children:f("p",{role:"alert",children:e})})}),gt="/settings/public",on=5e3,Od=`
|
|
68
|
+
* { box-sizing: border-box; }
|
|
69
|
+
body { margin: 0; background: #ffffff; color: #1a1f36; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif; font-size: 14px; line-height: 1.5; }
|
|
70
|
+
button,input,select { font: inherit; }
|
|
71
|
+
button,a,input,select { outline-offset: 3px; }
|
|
72
|
+
button { cursor: pointer; }
|
|
73
|
+
button:disabled { cursor: default; color: #697386; }
|
|
74
|
+
a { color: #635bff; text-decoration: none; }
|
|
75
|
+
.sd { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0,1fr); }
|
|
76
|
+
.sd-side { background: #f6f8fa; border-right: 1px solid #e3e8ee; padding: 20px 14px; }
|
|
77
|
+
.sd-account { font-weight: 600; padding: 6px 10px 20px; overflow-wrap: anywhere; }
|
|
78
|
+
.sd-mode { display: block; width: fit-content; font-size: 11px; font-weight: 500; background: #e3e8ee; border-radius: 4px; margin-top: 8px; padding: 2px 7px; }
|
|
79
|
+
.sd-nav { display: grid; gap: 3px; }
|
|
80
|
+
.sd-nav a,.sd-nav button { display: block; text-align: left; padding: 7px 10px; font: inherit; border: 0; border-radius: 6px; background: none; color: #697386; }
|
|
81
|
+
.sd-nav a { color: #1a1f36; }
|
|
82
|
+
.sd-nav a:hover { background: #e3e8ee; }
|
|
83
|
+
.sd-nav [aria-current=page] { color: #635bff; background: #ffffff; font-weight: 600; }
|
|
84
|
+
.sd-nav-title { margin: 23px 10px 7px; font-size: 12px; font-weight: 600; color: #697386; }
|
|
85
|
+
.sd-body { min-width: 0; }
|
|
86
|
+
.sd-top { min-height: 64px; border-bottom: 1px solid #e3e8ee; padding: 14px 32px; display: flex; align-items: center; gap: 16px; }
|
|
87
|
+
.sd-search { width: min(520px,100%); border: 1px solid #e3e8ee; border-radius: 7px; padding: 7px 12px; background: #f6f8fa; }
|
|
88
|
+
.sd-top a { margin-left: auto; }
|
|
89
|
+
.sd-top button { border: 0; background: none; }
|
|
90
|
+
.sd-content { padding: 28px 40px 60px; max-width: 1280px; }
|
|
91
|
+
.sd-crumbs { color: #697386; font-size: 13px; display: flex; gap: 10px; margin-bottom: 18px; }
|
|
92
|
+
.sd-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e3e8ee; padding-bottom: 20px; margin-bottom: 28px; }
|
|
93
|
+
.sd-title h1 { font-size: 28px; margin: 0; letter-spacing: -.5px; }
|
|
94
|
+
.pd { max-width: 860px; }
|
|
95
|
+
.pd h1 { font-size: 28px; margin: 16px 0 4px; }
|
|
96
|
+
.pd-lead { color: #697386; margin: 0 0 24px; }
|
|
97
|
+
.pd-card { background: #ffffff; border: 1px solid #e3e8ee; border-radius: 8px; padding: 24px; }
|
|
98
|
+
.pd-card label { display: block; font-weight: 600; margin-bottom: 6px; }
|
|
99
|
+
.pd-card small { display: block; color: #697386; margin-bottom: 8px; }
|
|
100
|
+
.pd-card input { width: 100%; padding: 8px 10px; border: 1px solid #c1c9d2; border-radius: 6px; font: inherit; }
|
|
101
|
+
.pd-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
|
|
102
|
+
.sd-primary,.pd-actions button { background: #635bff; color: #ffffff; border: 0; border-radius: 6px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
|
|
103
|
+
.pd-notice { padding: 10px 12px; border-radius: 6px; margin-bottom: 16px; }
|
|
104
|
+
.pd-error { background: #fff0f3; color: #df1b41; }
|
|
105
|
+
.pd-saved { background: #e7f8ef; color: #0e6245; }
|
|
106
|
+
.sd-table { border-collapse: collapse; width: 100%; }
|
|
107
|
+
.sd-table th,.sd-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #e3e8ee; }
|
|
108
|
+
.sd-table th { font-size: 12px; font-weight: 600; color: #697386; background: #f6f8fa; }
|
|
109
|
+
.sd-empty { color: #697386; padding: 40px; text-align: center; }
|
|
110
|
+
.sd-code { font-family: ui-monospace,SFMono-Regular,monospace; font-size: 12px; }
|
|
111
|
+
.sd-customer-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 32px; align-items: start; }
|
|
112
|
+
.sd-customer-grid > * { min-width: 0; }
|
|
113
|
+
.sd-module { border-bottom: 1px solid #e3e8ee; padding: 0 0 24px; margin-bottom: 24px; overflow-x: auto; }
|
|
114
|
+
.sd-module h2 { font-size: 18px; margin: 0 0 16px; }
|
|
115
|
+
.sd-customer-details { border-left: 1px solid #e3e8ee; padding-left: 24px; overflow-wrap: anywhere; }
|
|
116
|
+
.sd-customer-details dl { margin: 0; }
|
|
117
|
+
.sd-customer-details dt { color: #697386; font-size: 12px; margin-top: 16px; }
|
|
118
|
+
.sd-customer-details dd { margin: 3px 0 0; }
|
|
119
|
+
.sd-customer-filter { display: flex; gap: 8px; margin-bottom: 20px; }
|
|
120
|
+
.sd-customer-filter input { min-width: 0; width: 320px; border: 1px solid #c1c9d2; border-radius: 6px; padding: 8px 10px; }
|
|
121
|
+
.sd-customer-tabs { display: flex; border-bottom: 1px solid #e3e8ee; margin-bottom: 28px; }
|
|
122
|
+
.sd-customer-tabs span { border-bottom: 2px solid #635bff; padding: 0 0 12px; color: #635bff; font-weight: 600; }
|
|
123
|
+
@media(max-width:1000px) { .sd-customer-grid { grid-template-columns: minmax(0,1fr); } .sd-customer-details { border-left: 0; padding: 0; } }
|
|
124
|
+
.sd-dialog { width: min(480px,calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid #e3e8ee; border-radius: 8px; padding: 24px; color: #1a1f36; }
|
|
125
|
+
.sd-dialog::backdrop { background: rgba(26,31,54,.4); }
|
|
126
|
+
.sd-dialog h2 { font-size: 20px; margin: 0 0 20px; }
|
|
127
|
+
.sd-dialog label { display: block; font-weight: 600; margin: 14px 0; }
|
|
128
|
+
.sd-dialog input,.sd-dialog select { display: block; width: 100%; margin-top: 6px; border: 1px solid #c1c9d2; border-radius: 6px; padding: 8px 10px; background: #ffffff; }
|
|
129
|
+
.sd-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
|
|
130
|
+
.sd-cancel { border: 1px solid #c1c9d2; border-radius: 6px; padding: 8px 16px; background: #ffffff; color: #1a1f36; }
|
|
131
|
+
@media(max-width:760px) { .sd { grid-template-columns: 160px minmax(0,1fr); } .sd-content { padding: 24px 20px; } .sd-top { padding: 14px 20px; } .sd-top button { display: none; } .sd-table { font-size: 12px; } }
|
|
132
|
+
@media(max-width:520px) { .sd { display: block; } .sd-side { border-right: 0; border-bottom: 1px solid #e3e8ee; padding: 10px 16px; } .sd-account { padding: 0 0 8px; } .sd-mode { display: inline; margin-left: 8px; } .sd-nav { display: flex; flex-wrap: wrap; } .sd-nav button,.sd-nav-title { display: none; } .sd-content { padding: 20px 16px; } .sd-title h1 { font-size: 24px; } .sd-top { padding: 12px 16px; } }
|
|
133
|
+
`;function ht(e,t){let a=e.get("account",R),n=[["Public details",gt],["Radar lists","/radar/lists"],["Issuing balance","/test/issuing/balance"]];return Po({title:`${t.title} \u2013 Stripe`,css:[Od],status:t.status??200,body:A("div",{className:"sd",children:[A("aside",{className:"sd-side",children:[A("div",{className:"sd-account",children:[De(a),f("span",{className:"sd-mode",children:"Test mode"})]}),A("nav",{className:"sd-nav","aria-label":"Dashboard",children:[["Home","Balances","Transactions","Customers","Product catalog"].map(r=>r==="Customers"?f("a",{href:`${e.publicBase}/customers`,"aria-current":t.path==="/customers"?"page":void 0,children:"Customers"},r):f("button",{type:"button",disabled:!0,title:"Not available in this twin's Dashboard",children:r},r)),f("p",{className:"sd-nav-title",children:"Shortcuts"}),n.map(([r,s])=>f("a",{href:`${e.publicBase}${s}`,"aria-current":t.path===s?"page":void 0,children:r},s)),f("p",{className:"sd-nav-title",children:"Products"}),["Payments","Billing","Reporting","Connect","More"].map(r=>f("button",{type:"button",disabled:!0,title:"Not available in this twin's Dashboard",children:r},r))]})]}),A("div",{className:"sd-body",children:[A("header",{className:"sd-top",children:[f("input",{className:"sd-search","aria-label":"Search Dashboard",placeholder:"Search",disabled:!0,title:"Dashboard search is not available in this twin"}),f("button",{type:"button",disabled:!0,title:"Not available in this twin's Dashboard",children:"Create"}),f("button",{type:"button",disabled:!0,children:"Help"}),f("a",{href:`${e.publicBase}${gt}`,children:"Settings"})]}),A("main",{className:"sd-content",children:[A("nav",{className:"sd-crumbs","aria-label":"Breadcrumb",children:[f("span",{children:t.section}),f("span",{"aria-hidden":"true",children:"/"}),f("span",{children:t.title})]}),A("div",{className:"sd-title",children:[f("h1",{children:t.title}),t.action]}),t.body]})]}),f("script",{dangerouslySetInnerHTML:{__html:"document.querySelectorAll('[data-open-dialog]').forEach(b=>b.addEventListener('click',()=>document.getElementById(b.dataset.openDialog).showModal()));document.querySelectorAll('[data-close-dialog]').forEach(b=>b.addEventListener('click',()=>b.closest('dialog').close()));"}})]})})}var vo=e=>String(e.name||e.email||e.id),Bd=e=>typeof e=="string"?e:e&&typeof e=="object"?String(e.id??""):"",wo=e=>e.slice().reverse().sort((t,a)=>Number(a.created??0)-Number(t.created??0)),ia=e=>typeof e=="number"&&Number.isFinite(e)?new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"}).format(new Date(e*1e3)):"\u2014";function $d(e,t){if(e.call.request.method!=="GET")return ee();if(t==="/customers"){let d=new URL(e.call.request.url).searchParams.get("q")??"",_=d.trim().toLowerCase(),m=wo(e.rows("customer")).filter(y=>!_||[y.name,y.email,y.id,y.description].some(w=>typeof w=="string"&&w.toLowerCase().includes(_)));return ht(e,{title:"Customers",section:"Customers",path:"/customers",body:A(sn,{children:[A("form",{className:"sd-customer-filter",method:"get",action:`${e.publicBase}/customers`,children:[f("input",{name:"q","aria-label":"Search customers",placeholder:"Search customers",defaultValue:d}),f("button",{className:"sd-cancel",type:"submit",children:"Search"}),d?f("a",{href:`${e.publicBase}/customers`,children:"Clear"}):null]}),A("table",{className:"sd-table",children:[f("thead",{children:A("tr",{children:[f("th",{scope:"col",children:"Name"}),f("th",{scope:"col",children:"Email"}),f("th",{scope:"col",children:"Description"}),f("th",{scope:"col",children:"Created (UTC)"})]})}),f("tbody",{children:m.map(y=>A("tr",{children:[f("td",{children:f("a",{href:`${e.publicBase}/customers/${encodeURIComponent(String(y.id))}`,children:vo(y)})}),f("td",{children:String(y.email??"\u2014")}),f("td",{children:String(y.description??"\u2014")}),f("td",{children:ia(y.created)})]},String(y.id)))})]}),m.length?null:f("p",{className:"sd-empty",children:_?"No customers match your search.":"No customers yet."})]})})}let a;try{a=decodeURIComponent(t.slice(11))}catch{return ee()}let n=e.get("customer",a);if(!n||n.deleted===!0)return ee();let r=d=>wo(e.rows(d)).filter(_=>Bd(_.customer)===a),s=r("charge"),i=r("subscription"),o=r("invoice"),u=r("payment_method"),l=n.metadata&&typeof n.metadata=="object"?Object.entries(n.metadata):[],p=n.address&&typeof n.address=="object"?n.address:void 0,c=p?["line1","line2","city","state","postal_code","country"].map(d=>p[d]).filter(Boolean).join(", "):"\u2014";return ht(e,{title:vo(n),section:"Customers",path:"/customers",body:A(sn,{children:[f("a",{href:`${e.publicBase}/customers`,children:"\u2190 Customers"}),f("p",{className:"pd-lead sd-code",children:a}),f("div",{className:"sd-customer-tabs",children:f("span",{children:"Overview"})}),A("div",{className:"sd-customer-grid",children:[A("div",{children:[A("section",{className:"sd-module",children:[f("h2",{children:"Subscriptions"}),i.length?A("table",{className:"sd-table",children:[f("thead",{children:A("tr",{children:[f("th",{scope:"col",children:"Subscription"}),f("th",{scope:"col",children:"Status"}),f("th",{scope:"col",children:"Created (UTC)"})]})}),f("tbody",{children:i.map(d=>A("tr",{children:[f("td",{className:"sd-code",children:String(d.id)}),f("td",{children:String(d.status??"\u2014")}),f("td",{children:ia(d.created)})]},String(d.id)))})]}):f("p",{className:"pd-lead",children:"No subscriptions"})]}),A("section",{className:"sd-module",children:[f("h2",{children:"Payments"}),s.length?A("table",{className:"sd-table",children:[f("thead",{children:A("tr",{children:[f("th",{scope:"col",children:"Amount"}),f("th",{scope:"col",children:"Status"}),f("th",{scope:"col",children:"Description"}),f("th",{scope:"col",children:"Created (UTC)"})]})}),f("tbody",{children:s.map(d=>A("tr",{children:[f("td",{children:qe(d.amount,d.currency)}),f("td",{children:d.refunded===!0?"Refunded":String(d.status??"\u2014")}),f("td",{children:String(d.description??d.id)}),f("td",{children:ia(d.created)})]},String(d.id)))})]}):f("p",{className:"pd-lead",children:"No payments"})]}),A("section",{className:"sd-module",children:[f("h2",{children:"Payment methods"}),u.length?f("ul",{children:u.map(d=>{let _=d.card&&typeof d.card=="object"?d.card:void 0;return A("li",{children:[_?`${String(_.brand??"Card")} \u2022\u2022\u2022\u2022 ${String(_.last4??"")}`:String(d.type??"Payment method")," ",f("span",{className:"sd-code",children:String(d.id)})]},String(d.id))})}):f("p",{className:"pd-lead",children:"No payment methods"})]}),A("section",{className:"sd-module",children:[f("h2",{children:"Invoices"}),o.length?A("table",{className:"sd-table",children:[f("thead",{children:A("tr",{children:[f("th",{scope:"col",children:"Invoice"}),f("th",{scope:"col",children:"Amount due"}),f("th",{scope:"col",children:"Status"})]})}),f("tbody",{children:o.map(d=>A("tr",{children:[f("td",{children:String(d.number??d.id)}),f("td",{children:qe(d.amount_due,d.currency)}),f("td",{children:String(d.status??"\u2014")})]},String(d.id)))})]}):f("p",{className:"pd-lead",children:"No invoices"})]})]}),A("aside",{className:"sd-customer-details","aria-label":"Customer details",children:[A("section",{className:"sd-module",children:[f("h2",{children:"Details"}),A("dl",{children:[f("dt",{children:"Customer ID"}),f("dd",{className:"sd-code",children:a}),f("dt",{children:"Name"}),f("dd",{children:String(n.name??"\u2014")}),f("dt",{children:"Email"}),f("dd",{children:String(n.email??"\u2014")}),f("dt",{children:"Phone"}),f("dd",{children:String(n.phone??"\u2014")}),f("dt",{children:"Description"}),f("dd",{children:String(n.description??"\u2014")}),f("dt",{children:"Billing address"}),f("dd",{children:c}),f("dt",{children:"Created (UTC)"}),f("dd",{children:ia(n.created)})]})]}),A("section",{className:"sd-module",children:[f("h2",{children:"Metadata"}),l.length?f("dl",{children:l.map(([d,_])=>A("div",{children:[f("dt",{children:d}),f("dd",{children:typeof _=="string"?_:JSON.stringify(_)})]},d))}):f("p",{className:"pd-lead",children:"No metadata"})]})]})]})]})})}function Ao(e,t,a={}){let n=t?.business_profile?.name,r=a.value??(typeof n=="string"?n:"");return ht(e,{title:"Public details",section:"Settings / Business",path:gt,...a.error?{status:400}:{},body:A("div",{className:"pd",children:[A("p",{className:"pd-lead",children:["What your customers see on Checkout, the customer portal, receipts and invoices. Currently shown: ",f("strong",{"data-testid":"public-business-name",children:De(t)})]}),a.error?f("p",{className:"pd-notice pd-error",role:"alert",children:a.error}):null,a.saved?f("p",{className:"pd-notice pd-saved",role:"status",children:"Your public details were saved."}):null,A("form",{className:"pd-card",method:"post",children:[f("label",{htmlFor:"business_name",children:"Business name"}),f("small",{children:"The name customers see when they pay you."}),f("input",{id:"business_name",name:"business_name",autoComplete:"organization",defaultValue:r,required:!0,maxLength:on}),f("div",{className:"pd-actions",children:f("button",{type:"submit",children:"Save"})})]})]})})}async function Ld(e,t){let a=e.get("account",R),n={business_profile:{...(a??lt()).business_profile??{},name:t}};await(a?e.write("account",R,n,"account.update"):h(e,"account",{...lt(),...n},{},{operation:"account.update"}))}function Fd(e){return e?e.length>on?`Your business name must be at most ${on} characters.`:void 0:"Enter your business name."}async function Ud(e){let t=e.call.request,a=new URL(t.url);if(t.method!=="GET"&&t.method!=="POST")return ee();let n=t.method==="POST"?await he(t.clone()):{};if(t.method==="GET")return Ao(e,e.get("account",R),{saved:a.searchParams.has("saved")});let r=(n.business_name??"").trim(),s=Fd(r);return s?Ao(e,e.get("account",R),{value:n.business_name??"",error:s}):(await Ld(e,r),new Response(null,{status:303,headers:{location:"?saved=1"}}))}async function So(e){let t=new URL(e.call.request.url).pathname.replace(/\/+$/,"");if(!t&&e.call.request.method==="GET")return rn(`${e.publicBase}${gt}`);if(t==="/customers"||/^\/customers\/[^/]+$/.test(t))return $d(e,t);if(/^\/radar\/lists(?:\/[^/]+)?$/.test(t)){if(e.call.request.method==="POST"){let s=await he(e.call.request),i=["string","case_sensitive_string","card_fingerprint","card_bin","customer_id","email","ip_address","country","sepa_debit_fingerprint","us_bank_account_fingerprint"];if(!s.name?.trim()||!i.includes(s.item_type??""))return qo("Enter a name and select a list type.");let o=s.alias?.trim()||s.name.toLowerCase().replace(/[^a-z0-9]+/g,"_"),u=await h(e,xe,{name:s.name.trim(),alias:o,item_type:s.item_type},{created_by:"twin",livemode:!1,metadata:{},list_items:{object:"list",data:[],has_more:!1,url:"/v1/radar/value_list_items"}});return await e.write(xe,String(u.id),{list_items:{object:"list",data:[],has_more:!1,url:`/v1/radar/value_list_items?value_list=${u.id}`}},"radar.value_list.updated"),rn(`${e.publicBase}/radar/lists/${u.id}`)}let a=e.rows(xe),n=[["customer_id","Customer ID"],["email","Email"],["card_fingerprint","Card fingerprint"],["card_bin","Card BIN"],["ip_address","IP address"],["string","String"],["case_sensitive_string","Case-sensitive string"],["country","Country"],["sepa_debit_fingerprint","SEPA Direct Debit fingerprint"],["us_bank_account_fingerprint","ACH Direct Debit fingerprint"]],r=a.find(s=>t===`/radar/lists/${s.id}`);return ht(e,{title:r?String(r.name):"Lists",section:"Payments / Radar",path:"/radar/lists",action:f("button",{className:"sd-primary",type:"button","data-open-dialog":"radar-new-list",children:"New list"}),body:A(sn,{children:[r?A("div",{className:"pd-card",children:[f("a",{href:`${e.publicBase}/radar/lists`,children:"All lists"}),f("h2",{children:String(r.name)}),A("p",{children:["Alias: ",f("code",{children:String(r.alias)})]}),A("p",{children:["List type: ",n.find(([s])=>s===r.item_type)?.[1]??String(r.item_type)]})]}):null,f("p",{className:"pd-lead",children:"Lists of information to block, allow or review matching payments."}),A("table",{className:"sd-table",children:[f("thead",{children:A("tr",{children:[f("th",{scope:"col",children:"Name"}),f("th",{scope:"col",children:"Alias"}),f("th",{scope:"col",children:"List type"})]})}),f("tbody",{children:a.map(s=>A("tr",{children:[f("td",{children:f("a",{href:`${e.publicBase}/radar/lists/${encodeURIComponent(String(s.id))}`,children:String(s.name)})}),f("td",{className:"sd-code",children:String(s.alias)}),f("td",{children:n.find(([i])=>i===s.item_type)?.[1]??String(s.item_type)})]},String(s.id)))})]}),a.length?null:f("p",{className:"sd-empty",children:"No lists yet. Create a list to group related values."}),A("dialog",{className:"sd-dialog",id:"radar-new-list","aria-labelledby":"radar-new-list-title",children:[f("h2",{id:"radar-new-list-title",children:"New list"}),A("form",{method:"post",action:`${e.publicBase}/radar/lists`,children:[f("label",{htmlFor:"radar-list-name",children:"Name"}),f("input",{id:"radar-list-name",name:"name",required:!0}),f("label",{htmlFor:"radar-list-alias",children:"Alias"}),f("input",{id:"radar-list-alias",name:"alias"}),f("p",{className:"pd-lead",children:"Leave blank to generate an alias from the name."}),f("label",{htmlFor:"radar-list-type",children:"List type"}),f("select",{id:"radar-list-type",name:"item_type",children:n.map(([s,i])=>f("option",{value:s,children:i},s))}),A("div",{className:"sd-dialog-actions",children:[f("button",{className:"sd-cancel",type:"button","data-close-dialog":!0,children:"Cancel"}),f("button",{className:"sd-primary",type:"submit",children:"Add"})]})]})]})]})})}if(t==="/test/issuing/balance"){if(e.call.request.method==="POST"){let a=await he(e.call.request),n=Number(a.amount);return!Number.isInteger(n)||n<=0?qo("Enter a positive amount in cents."):(await h(e,"balance_transaction",{},{amount:n,currency:"usd",fee:0,net:n,type:"topup",reporting_category:"topup",source:null,status:"available",balance_type:"issuing",available_on:Number(g(e.occurredAt)),fee_details:[]}),rn(`${e.publicBase}/test/issuing/balance?funded=1`))}return ht(e,{title:"Issuing balance",section:"Issuing",path:"/test/issuing/balance",body:A("div",{className:"pd",children:[f("p",{className:"pd-lead",children:"Add test funds before creating test Issuing transactions."}),new URL(e.call.request.url).searchParams.has("funded")?f("p",{className:"pd-notice pd-saved",role:"status",children:"Test funds were added to your Issuing balance."}):null,A("form",{className:"pd-card",method:"post",action:`${e.publicBase}/test/issuing/balance`,children:[f("label",{htmlFor:"issuing-amount",children:"Amount"}),f("small",{children:"USD cents. These funds belong to this test account."}),f("input",{id:"issuing-amount",name:"amount",type:"number",min:"1",step:"1",required:!0}),f("div",{className:"pd-actions",children:f("button",{type:"submit",children:"Add test funds"})})]})]})})}return t===gt?Ud(e):ee()}function Hd(e){return/^\/v3(\/|\/stripe\.js)?$/.test(e)?3:/^\/([a-z]+)\/stripe\.js$/.exec(e)?.[1]}function Vd(e){return`(function () {
|
|
134
|
+
var version = ${JSON.stringify(e)};
|
|
135
|
+
function gap(name) {
|
|
136
|
+
return function () { throw new Error("Stripe.js (Volter twin): stripe." + name + " is not modelled by this twin yet"); };
|
|
137
|
+
}
|
|
138
|
+
function initCheckout(options) {
|
|
139
|
+
var session, root, fields = {}, listeners = {};
|
|
140
|
+
function emit(name, value) { (listeners[name] || []).forEach(function (fn) { fn(value); }); }
|
|
141
|
+
function call(action, values) {
|
|
142
|
+
var secret = options.clientSecret;
|
|
143
|
+
var id = secret.split("_secret_")[0];
|
|
144
|
+
return fetch("https://api.stripe.com/v1/payment_pages/" + encodeURIComponent(id) + "/" + action, {
|
|
145
|
+
method: "POST", headers: { "content-type": "application/json" },
|
|
146
|
+
body: JSON.stringify(Object.assign({ client_secret: secret }, values || {}))
|
|
147
|
+
}).then(function (r) { return r.json(); }).then(function (result) {
|
|
148
|
+
if (result.type === "success") { session = result.session; emit("change", session); }
|
|
149
|
+
return result;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
var actions = {
|
|
153
|
+
getSession: function () { return session; },
|
|
154
|
+
applyPromotionCode: function (code) { return call("apply_promotion_code", { promotion_code: code }); },
|
|
155
|
+
removePromotionCode: function () { return call("remove_promotion_code"); },
|
|
156
|
+
confirm: function (params) {
|
|
157
|
+
return call("confirm", Object.assign({}, params || {}, { payment_details: fields })).then(function (result) {
|
|
158
|
+
if (result.type === "success" && (!params || params.redirect !== "if_required") && result.return_url) window.location.assign((params && params.returnUrl) || result.return_url);
|
|
159
|
+
return result;
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
var elementListeners = {};
|
|
164
|
+
function elementEmit(name, value) { (elementListeners[name] || []).forEach(function (fn) { fn(value); }); }
|
|
165
|
+
var element = {
|
|
166
|
+
on: function (name, fn) { (elementListeners[name] || (elementListeners[name] = [])).push(fn); return element; },
|
|
167
|
+
off: function (name, fn) { elementListeners[name] = (elementListeners[name] || []).filter(function (f) { return f !== fn; }); return element; },
|
|
168
|
+
mount: function (target) {
|
|
169
|
+
root = typeof target === "string" ? document.querySelector(target) : target;
|
|
170
|
+
[["cardNumber", "Card number", "cc-number"], ["cardExpiry", "Expiration", "cc-exp"], ["cardCvc", "CVC", "cc-csc"], ["billingName", "Cardholder name", "cc-name"]].forEach(function (field) {
|
|
171
|
+
var label = document.createElement("label"), input = document.createElement("input");
|
|
172
|
+
label.textContent = field[1]; input.name = field[0]; input.autocomplete = field[2];
|
|
173
|
+
input.addEventListener("input", function () { fields[field[0]] = input.value; elementEmit("change", { empty: !fields.cardNumber, complete: !!(fields.cardNumber && fields.cardExpiry && fields.cardCvc), value: { type: "card" } }); });
|
|
174
|
+
label.appendChild(input); root.appendChild(label);
|
|
175
|
+
});
|
|
176
|
+
Promise.resolve().then(function () { elementEmit("ready", element); });
|
|
177
|
+
},
|
|
178
|
+
unmount: function () { if (root) root.replaceChildren(); root = null; },
|
|
179
|
+
destroy: function () { element.unmount(); elementListeners = {}; },
|
|
180
|
+
update: function () {}
|
|
181
|
+
};
|
|
182
|
+
return {
|
|
183
|
+
on: function (name, fn) { (listeners[name] || (listeners[name] = [])).push(fn); },
|
|
184
|
+
loadActions: function () { return call("init").then(function (r) { return r.type === "success" ? { type: "success", actions: actions } : r; }); },
|
|
185
|
+
createPaymentElement: function () { return element; }, getPaymentElement: function () { return element; },
|
|
186
|
+
changeAppearance: function () {}, loadFonts: function () {}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function Stripe(publishableKey) {
|
|
190
|
+
if (typeof publishableKey !== "string" || !publishableKey) throw new Error("Stripe.js (Volter twin): Stripe() needs a publishable key");
|
|
191
|
+
var known = {
|
|
192
|
+
initCheckout: initCheckout,
|
|
193
|
+
_registerWrapper: function () {},
|
|
194
|
+
redirectToCheckout: function (options) {
|
|
195
|
+
if (!options || typeof options.sessionId !== "string" || !options.sessionId) return gap("redirectToCheckout without a sessionId")();
|
|
196
|
+
window.location.assign("https://checkout.stripe.com/c/pay/" + encodeURIComponent(options.sessionId));
|
|
197
|
+
return new Promise(function () {});
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
return new Proxy(known, {
|
|
201
|
+
get: function (target, name) {
|
|
202
|
+
if (name in target) return target[name];
|
|
203
|
+
if (typeof name === "symbol" || name === "then") return undefined;
|
|
204
|
+
return gap(String(name));
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
Stripe.version = version;
|
|
209
|
+
window.Stripe = Stripe;
|
|
210
|
+
})();
|
|
211
|
+
`}async function xo(e){let t=e.call.request,a=t.method==="GET"||t.method==="HEAD"?Hd(new URL(t.url).pathname):void 0;return a===void 0?ee():new Response(Vd(a),{headers:{"content-type":"application/javascript; charset=utf-8","access-control-allow-origin":"*"}})}function un(e={}){return Wd({manifest:Xt,surface:ie,handlers:Ji,doors:Ha,around:Us,clock:Hs,screens:{"billing-portal":no,"checkout-js":ro,checkout:co,"connect-onboarding":ho,dashboard:So,"stripe-js":xo}},e)}import{serveHttp as Z_}from"../../engine/v3/volter_world-core.mjs";var sy=Kd(Yd(Xt,ie));export{un as createTwinFetch};
|