@bubblelab/bubble-core 0.1.49 → 0.1.51
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/bubble-bundle.d.ts +126 -106
- package/dist/bubble-factory.d.ts.map +1 -1
- package/dist/bubble-factory.js +4 -0
- package/dist/bubble-factory.js.map +1 -1
- package/dist/bubbles/service-bubble/agi-inc.d.ts +132 -132
- package/dist/bubbles/service-bubble/ai-agent.d.ts +36 -36
- package/dist/bubbles/service-bubble/airtable.d.ts +230 -230
- package/dist/bubbles/service-bubble/apify/apify.d.ts +38 -38
- package/dist/bubbles/service-bubble/ashby/ashby.d.ts +178 -178
- package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +57 -57
- package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +98 -98
- package/dist/bubbles/service-bubble/eleven-labs.d.ts +48 -48
- package/dist/bubbles/service-bubble/firecrawl.d.ts +292 -292
- package/dist/bubbles/service-bubble/followupboss.d.ts +302 -302
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts +28 -28
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.d.ts.map +1 -1
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.js +8 -4
- package/dist/bubbles/service-bubble/fullenrich/fullenrich.js.map +1 -1
- package/dist/bubbles/service-bubble/github.d.ts +124 -124
- package/dist/bubbles/service-bubble/gmail.d.ts +248 -248
- package/dist/bubbles/service-bubble/google-calendar.d.ts +56 -56
- package/dist/bubbles/service-bubble/google-drive.d.ts +120 -120
- package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +54 -54
- package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
- package/dist/bubbles/service-bubble/http.d.ts +12 -12
- package/dist/bubbles/service-bubble/insforge-db.d.ts +16 -16
- package/dist/bubbles/service-bubble/jira/jira.d.ts +59 -59
- package/dist/bubbles/service-bubble/notion/notion.d.ts +212 -212
- package/dist/bubbles/service-bubble/postgresql.d.ts +16 -16
- package/dist/bubbles/service-bubble/resend.d.ts +16 -16
- package/dist/bubbles/service-bubble/slack/slack.d.ts +340 -340
- package/dist/bubbles/service-bubble/storage.d.ts +40 -40
- package/dist/bubbles/service-bubble/stripe/index.d.ts +4 -0
- package/dist/bubbles/service-bubble/stripe/index.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/stripe/index.js +4 -0
- package/dist/bubbles/service-bubble/stripe/index.js.map +1 -0
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts +1178 -0
- package/dist/bubbles/service-bubble/stripe/stripe.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/stripe/stripe.js +618 -0
- package/dist/bubbles/service-bubble/stripe/stripe.js.map +1 -0
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts +1326 -0
- package/dist/bubbles/service-bubble/stripe/stripe.schema.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/stripe/stripe.schema.js +626 -0
- package/dist/bubbles/service-bubble/stripe/stripe.schema.js.map +1 -0
- package/dist/bubbles/service-bubble/stripe/stripe.utils.d.ts +40 -0
- package/dist/bubbles/service-bubble/stripe/stripe.utils.d.ts.map +1 -0
- package/dist/bubbles/service-bubble/stripe/stripe.utils.js +111 -0
- package/dist/bubbles/service-bubble/stripe/stripe.utils.js.map +1 -0
- package/dist/bubbles/service-bubble/telegram.d.ts +114 -114
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +40 -40
- package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +6 -6
- package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/get-trigger-detail-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/instagram-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/linkedin-connection-tool/linkedin-connection-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +324 -324
- package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/people-search-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +4 -4
- package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
- package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +60 -60
- package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
- package/dist/bubbles/tool-bubble/twitter-tool.d.ts +132 -132
- package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +16 -16
- package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +12 -12
- package/dist/bubbles/tool-bubble/web-search-tool.d.ts +14 -14
- package/dist/bubbles/tool-bubble/youtube-tool.d.ts +28 -28
- package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +20 -20
- package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +8 -8
- package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +96 -96
- package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +24 -24
- package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +4 -4
- package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +16 -16
- package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +4 -4
- package/dist/bubbles.json +1806 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/base-bubble-class.d.ts.map +1 -1
- package/dist/types/base-bubble-class.js +12 -0
- package/dist/types/base-bubble-class.js.map +1 -1
- package/dist/utils/schema-comparison.d.ts +10 -0
- package/dist/utils/schema-comparison.d.ts.map +1 -1
- package/dist/utils/schema-comparison.js +215 -0
- package/dist/utils/schema-comparison.js.map +1 -1
- package/package.json +2 -2
package/dist/bubbles.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "2.0.0",
|
|
3
|
-
"generatedAt": "2026-01-
|
|
4
|
-
"totalCount":
|
|
3
|
+
"generatedAt": "2026-01-28T19:43:33.640Z",
|
|
4
|
+
"totalCount": 58,
|
|
5
5
|
"bubbles": [
|
|
6
6
|
{
|
|
7
7
|
"name": "hello-world",
|
|
@@ -57664,6 +57664,1810 @@
|
|
|
57664
57664
|
"CLOUDFLARE_R2_SECRET_KEY",
|
|
57665
57665
|
"CLOUDFLARE_R2_ACCOUNT_ID"
|
|
57666
57666
|
]
|
|
57667
|
+
},
|
|
57668
|
+
{
|
|
57669
|
+
"name": "stripe",
|
|
57670
|
+
"alias": "payments",
|
|
57671
|
+
"type": "service",
|
|
57672
|
+
"shortDescription": "Stripe integration for payments, billing, and subscriptions",
|
|
57673
|
+
"useCase": "- Accept payments through payment links",
|
|
57674
|
+
"outputSchema": "Complex schema - see usage example for structure",
|
|
57675
|
+
"inputJsonSchema": {
|
|
57676
|
+
"anyOf": [
|
|
57677
|
+
{
|
|
57678
|
+
"type": "object",
|
|
57679
|
+
"properties": {
|
|
57680
|
+
"operation": {
|
|
57681
|
+
"type": "string",
|
|
57682
|
+
"enum": [
|
|
57683
|
+
"create_customer"
|
|
57684
|
+
],
|
|
57685
|
+
"description": "Create a new customer in Stripe"
|
|
57686
|
+
},
|
|
57687
|
+
"name": {
|
|
57688
|
+
"type": "string",
|
|
57689
|
+
"minLength": 1,
|
|
57690
|
+
"description": "Customer name"
|
|
57691
|
+
},
|
|
57692
|
+
"email": {
|
|
57693
|
+
"type": "string",
|
|
57694
|
+
"format": "email",
|
|
57695
|
+
"description": "Customer email address"
|
|
57696
|
+
},
|
|
57697
|
+
"metadata": {
|
|
57698
|
+
"type": "object",
|
|
57699
|
+
"additionalProperties": {
|
|
57700
|
+
"type": "string"
|
|
57701
|
+
},
|
|
57702
|
+
"description": "Arbitrary metadata to attach to the customer"
|
|
57703
|
+
},
|
|
57704
|
+
"credentials": {
|
|
57705
|
+
"type": "object",
|
|
57706
|
+
"additionalProperties": {
|
|
57707
|
+
"type": "string"
|
|
57708
|
+
},
|
|
57709
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
57710
|
+
}
|
|
57711
|
+
},
|
|
57712
|
+
"required": [
|
|
57713
|
+
"operation",
|
|
57714
|
+
"name"
|
|
57715
|
+
],
|
|
57716
|
+
"additionalProperties": false
|
|
57717
|
+
},
|
|
57718
|
+
{
|
|
57719
|
+
"type": "object",
|
|
57720
|
+
"properties": {
|
|
57721
|
+
"operation": {
|
|
57722
|
+
"type": "string",
|
|
57723
|
+
"enum": [
|
|
57724
|
+
"list_customers"
|
|
57725
|
+
],
|
|
57726
|
+
"description": "List customers from Stripe"
|
|
57727
|
+
},
|
|
57728
|
+
"limit": {
|
|
57729
|
+
"type": "integer",
|
|
57730
|
+
"minimum": 1,
|
|
57731
|
+
"maximum": 100,
|
|
57732
|
+
"default": 10,
|
|
57733
|
+
"description": "Maximum number of customers to return (1-100)"
|
|
57734
|
+
},
|
|
57735
|
+
"email": {
|
|
57736
|
+
"type": "string",
|
|
57737
|
+
"description": "Filter customers by email address (case-sensitive)"
|
|
57738
|
+
},
|
|
57739
|
+
"credentials": {
|
|
57740
|
+
"type": "object",
|
|
57741
|
+
"additionalProperties": {
|
|
57742
|
+
"type": "string"
|
|
57743
|
+
},
|
|
57744
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
57745
|
+
}
|
|
57746
|
+
},
|
|
57747
|
+
"required": [
|
|
57748
|
+
"operation"
|
|
57749
|
+
],
|
|
57750
|
+
"additionalProperties": false
|
|
57751
|
+
},
|
|
57752
|
+
{
|
|
57753
|
+
"type": "object",
|
|
57754
|
+
"properties": {
|
|
57755
|
+
"operation": {
|
|
57756
|
+
"type": "string",
|
|
57757
|
+
"enum": [
|
|
57758
|
+
"create_product"
|
|
57759
|
+
],
|
|
57760
|
+
"description": "Create a new product in Stripe"
|
|
57761
|
+
},
|
|
57762
|
+
"name": {
|
|
57763
|
+
"type": "string",
|
|
57764
|
+
"minLength": 1,
|
|
57765
|
+
"description": "Product name"
|
|
57766
|
+
},
|
|
57767
|
+
"description": {
|
|
57768
|
+
"type": "string",
|
|
57769
|
+
"description": "Product description"
|
|
57770
|
+
},
|
|
57771
|
+
"metadata": {
|
|
57772
|
+
"type": "object",
|
|
57773
|
+
"additionalProperties": {
|
|
57774
|
+
"type": "string"
|
|
57775
|
+
},
|
|
57776
|
+
"description": "Arbitrary metadata to attach to the product"
|
|
57777
|
+
},
|
|
57778
|
+
"credentials": {
|
|
57779
|
+
"type": "object",
|
|
57780
|
+
"additionalProperties": {
|
|
57781
|
+
"type": "string"
|
|
57782
|
+
},
|
|
57783
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
57784
|
+
}
|
|
57785
|
+
},
|
|
57786
|
+
"required": [
|
|
57787
|
+
"operation",
|
|
57788
|
+
"name"
|
|
57789
|
+
],
|
|
57790
|
+
"additionalProperties": false
|
|
57791
|
+
},
|
|
57792
|
+
{
|
|
57793
|
+
"type": "object",
|
|
57794
|
+
"properties": {
|
|
57795
|
+
"operation": {
|
|
57796
|
+
"type": "string",
|
|
57797
|
+
"enum": [
|
|
57798
|
+
"list_products"
|
|
57799
|
+
],
|
|
57800
|
+
"description": "List products from Stripe"
|
|
57801
|
+
},
|
|
57802
|
+
"limit": {
|
|
57803
|
+
"type": "integer",
|
|
57804
|
+
"minimum": 1,
|
|
57805
|
+
"maximum": 100,
|
|
57806
|
+
"default": 10,
|
|
57807
|
+
"description": "Maximum number of products to return (1-100)"
|
|
57808
|
+
},
|
|
57809
|
+
"active": {
|
|
57810
|
+
"type": "boolean",
|
|
57811
|
+
"description": "Filter by active status"
|
|
57812
|
+
},
|
|
57813
|
+
"credentials": {
|
|
57814
|
+
"type": "object",
|
|
57815
|
+
"additionalProperties": {
|
|
57816
|
+
"type": "string"
|
|
57817
|
+
},
|
|
57818
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
57819
|
+
}
|
|
57820
|
+
},
|
|
57821
|
+
"required": [
|
|
57822
|
+
"operation"
|
|
57823
|
+
],
|
|
57824
|
+
"additionalProperties": false
|
|
57825
|
+
},
|
|
57826
|
+
{
|
|
57827
|
+
"type": "object",
|
|
57828
|
+
"properties": {
|
|
57829
|
+
"operation": {
|
|
57830
|
+
"type": "string",
|
|
57831
|
+
"enum": [
|
|
57832
|
+
"create_price"
|
|
57833
|
+
],
|
|
57834
|
+
"description": "Create a new price for a product"
|
|
57835
|
+
},
|
|
57836
|
+
"product": {
|
|
57837
|
+
"type": "string",
|
|
57838
|
+
"minLength": 1,
|
|
57839
|
+
"description": "ID of the product this price is for"
|
|
57840
|
+
},
|
|
57841
|
+
"unit_amount": {
|
|
57842
|
+
"type": "integer",
|
|
57843
|
+
"minimum": 0,
|
|
57844
|
+
"description": "Price in smallest currency unit (e.g., cents for USD)"
|
|
57845
|
+
},
|
|
57846
|
+
"currency": {
|
|
57847
|
+
"type": "string",
|
|
57848
|
+
"minLength": 3,
|
|
57849
|
+
"maxLength": 3,
|
|
57850
|
+
"default": "usd",
|
|
57851
|
+
"description": "Three-letter ISO currency code (e.g., \"usd\")"
|
|
57852
|
+
},
|
|
57853
|
+
"recurring": {
|
|
57854
|
+
"type": "object",
|
|
57855
|
+
"properties": {
|
|
57856
|
+
"interval": {
|
|
57857
|
+
"type": "string",
|
|
57858
|
+
"enum": [
|
|
57859
|
+
"day",
|
|
57860
|
+
"week",
|
|
57861
|
+
"month",
|
|
57862
|
+
"year"
|
|
57863
|
+
],
|
|
57864
|
+
"description": "Billing interval"
|
|
57865
|
+
},
|
|
57866
|
+
"interval_count": {
|
|
57867
|
+
"type": "integer",
|
|
57868
|
+
"minimum": 1,
|
|
57869
|
+
"default": 1,
|
|
57870
|
+
"description": "Number of intervals between billings"
|
|
57871
|
+
}
|
|
57872
|
+
},
|
|
57873
|
+
"required": [
|
|
57874
|
+
"interval"
|
|
57875
|
+
],
|
|
57876
|
+
"additionalProperties": false,
|
|
57877
|
+
"description": "Recurring pricing details (omit for one-time prices)"
|
|
57878
|
+
},
|
|
57879
|
+
"metadata": {
|
|
57880
|
+
"type": "object",
|
|
57881
|
+
"additionalProperties": {
|
|
57882
|
+
"type": "string"
|
|
57883
|
+
},
|
|
57884
|
+
"description": "Arbitrary metadata to attach to the price"
|
|
57885
|
+
},
|
|
57886
|
+
"credentials": {
|
|
57887
|
+
"type": "object",
|
|
57888
|
+
"additionalProperties": {
|
|
57889
|
+
"type": "string"
|
|
57890
|
+
},
|
|
57891
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
57892
|
+
}
|
|
57893
|
+
},
|
|
57894
|
+
"required": [
|
|
57895
|
+
"operation",
|
|
57896
|
+
"product",
|
|
57897
|
+
"unit_amount"
|
|
57898
|
+
],
|
|
57899
|
+
"additionalProperties": false
|
|
57900
|
+
},
|
|
57901
|
+
{
|
|
57902
|
+
"type": "object",
|
|
57903
|
+
"properties": {
|
|
57904
|
+
"operation": {
|
|
57905
|
+
"type": "string",
|
|
57906
|
+
"enum": [
|
|
57907
|
+
"list_prices"
|
|
57908
|
+
],
|
|
57909
|
+
"description": "List prices from Stripe"
|
|
57910
|
+
},
|
|
57911
|
+
"limit": {
|
|
57912
|
+
"type": "integer",
|
|
57913
|
+
"minimum": 1,
|
|
57914
|
+
"maximum": 100,
|
|
57915
|
+
"default": 10,
|
|
57916
|
+
"description": "Maximum number of prices to return (1-100)"
|
|
57917
|
+
},
|
|
57918
|
+
"product": {
|
|
57919
|
+
"type": "string",
|
|
57920
|
+
"description": "Filter by product ID"
|
|
57921
|
+
},
|
|
57922
|
+
"active": {
|
|
57923
|
+
"type": "boolean",
|
|
57924
|
+
"description": "Filter by active status"
|
|
57925
|
+
},
|
|
57926
|
+
"credentials": {
|
|
57927
|
+
"type": "object",
|
|
57928
|
+
"additionalProperties": {
|
|
57929
|
+
"type": "string"
|
|
57930
|
+
},
|
|
57931
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
57932
|
+
}
|
|
57933
|
+
},
|
|
57934
|
+
"required": [
|
|
57935
|
+
"operation"
|
|
57936
|
+
],
|
|
57937
|
+
"additionalProperties": false
|
|
57938
|
+
},
|
|
57939
|
+
{
|
|
57940
|
+
"type": "object",
|
|
57941
|
+
"properties": {
|
|
57942
|
+
"operation": {
|
|
57943
|
+
"type": "string",
|
|
57944
|
+
"enum": [
|
|
57945
|
+
"create_payment_link"
|
|
57946
|
+
],
|
|
57947
|
+
"description": "Create a payment link for a price"
|
|
57948
|
+
},
|
|
57949
|
+
"price": {
|
|
57950
|
+
"type": "string",
|
|
57951
|
+
"minLength": 1,
|
|
57952
|
+
"description": "ID of the price to create payment link for"
|
|
57953
|
+
},
|
|
57954
|
+
"quantity": {
|
|
57955
|
+
"type": "integer",
|
|
57956
|
+
"minimum": 1,
|
|
57957
|
+
"default": 1,
|
|
57958
|
+
"description": "Quantity of items in the payment link"
|
|
57959
|
+
},
|
|
57960
|
+
"redirect_url": {
|
|
57961
|
+
"type": "string",
|
|
57962
|
+
"format": "uri",
|
|
57963
|
+
"description": "URL to redirect after successful payment"
|
|
57964
|
+
},
|
|
57965
|
+
"metadata": {
|
|
57966
|
+
"type": "object",
|
|
57967
|
+
"additionalProperties": {
|
|
57968
|
+
"type": "string"
|
|
57969
|
+
},
|
|
57970
|
+
"description": "Arbitrary metadata to attach to the payment link"
|
|
57971
|
+
},
|
|
57972
|
+
"credentials": {
|
|
57973
|
+
"type": "object",
|
|
57974
|
+
"additionalProperties": {
|
|
57975
|
+
"type": "string"
|
|
57976
|
+
},
|
|
57977
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
57978
|
+
}
|
|
57979
|
+
},
|
|
57980
|
+
"required": [
|
|
57981
|
+
"operation",
|
|
57982
|
+
"price"
|
|
57983
|
+
],
|
|
57984
|
+
"additionalProperties": false
|
|
57985
|
+
},
|
|
57986
|
+
{
|
|
57987
|
+
"type": "object",
|
|
57988
|
+
"properties": {
|
|
57989
|
+
"operation": {
|
|
57990
|
+
"type": "string",
|
|
57991
|
+
"enum": [
|
|
57992
|
+
"create_invoice"
|
|
57993
|
+
],
|
|
57994
|
+
"description": "Create a new invoice for a customer"
|
|
57995
|
+
},
|
|
57996
|
+
"customer": {
|
|
57997
|
+
"type": "string",
|
|
57998
|
+
"minLength": 1,
|
|
57999
|
+
"description": "ID of the customer to invoice"
|
|
58000
|
+
},
|
|
58001
|
+
"auto_advance": {
|
|
58002
|
+
"type": "boolean",
|
|
58003
|
+
"default": true,
|
|
58004
|
+
"description": "Whether to auto-finalize the invoice"
|
|
58005
|
+
},
|
|
58006
|
+
"collection_method": {
|
|
58007
|
+
"type": "string",
|
|
58008
|
+
"enum": [
|
|
58009
|
+
"charge_automatically",
|
|
58010
|
+
"send_invoice"
|
|
58011
|
+
],
|
|
58012
|
+
"default": "charge_automatically",
|
|
58013
|
+
"description": "How to collect payment"
|
|
58014
|
+
},
|
|
58015
|
+
"days_until_due": {
|
|
58016
|
+
"type": "integer",
|
|
58017
|
+
"minimum": 1,
|
|
58018
|
+
"description": "Days until invoice is due (for send_invoice collection)"
|
|
58019
|
+
},
|
|
58020
|
+
"metadata": {
|
|
58021
|
+
"type": "object",
|
|
58022
|
+
"additionalProperties": {
|
|
58023
|
+
"type": "string"
|
|
58024
|
+
},
|
|
58025
|
+
"description": "Arbitrary metadata to attach to the invoice"
|
|
58026
|
+
},
|
|
58027
|
+
"credentials": {
|
|
58028
|
+
"type": "object",
|
|
58029
|
+
"additionalProperties": {
|
|
58030
|
+
"type": "string"
|
|
58031
|
+
},
|
|
58032
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58033
|
+
}
|
|
58034
|
+
},
|
|
58035
|
+
"required": [
|
|
58036
|
+
"operation",
|
|
58037
|
+
"customer"
|
|
58038
|
+
],
|
|
58039
|
+
"additionalProperties": false
|
|
58040
|
+
},
|
|
58041
|
+
{
|
|
58042
|
+
"type": "object",
|
|
58043
|
+
"properties": {
|
|
58044
|
+
"operation": {
|
|
58045
|
+
"type": "string",
|
|
58046
|
+
"enum": [
|
|
58047
|
+
"list_invoices"
|
|
58048
|
+
],
|
|
58049
|
+
"description": "List invoices from Stripe"
|
|
58050
|
+
},
|
|
58051
|
+
"limit": {
|
|
58052
|
+
"type": "integer",
|
|
58053
|
+
"minimum": 1,
|
|
58054
|
+
"maximum": 100,
|
|
58055
|
+
"default": 10,
|
|
58056
|
+
"description": "Maximum number of invoices to return (1-100)"
|
|
58057
|
+
},
|
|
58058
|
+
"customer": {
|
|
58059
|
+
"type": "string",
|
|
58060
|
+
"description": "Filter by customer ID"
|
|
58061
|
+
},
|
|
58062
|
+
"status": {
|
|
58063
|
+
"type": "string",
|
|
58064
|
+
"enum": [
|
|
58065
|
+
"draft",
|
|
58066
|
+
"open",
|
|
58067
|
+
"paid",
|
|
58068
|
+
"uncollectible",
|
|
58069
|
+
"void"
|
|
58070
|
+
],
|
|
58071
|
+
"description": "Filter by invoice status"
|
|
58072
|
+
},
|
|
58073
|
+
"credentials": {
|
|
58074
|
+
"type": "object",
|
|
58075
|
+
"additionalProperties": {
|
|
58076
|
+
"type": "string"
|
|
58077
|
+
},
|
|
58078
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58079
|
+
}
|
|
58080
|
+
},
|
|
58081
|
+
"required": [
|
|
58082
|
+
"operation"
|
|
58083
|
+
],
|
|
58084
|
+
"additionalProperties": false
|
|
58085
|
+
},
|
|
58086
|
+
{
|
|
58087
|
+
"type": "object",
|
|
58088
|
+
"properties": {
|
|
58089
|
+
"operation": {
|
|
58090
|
+
"type": "string",
|
|
58091
|
+
"enum": [
|
|
58092
|
+
"get_balance"
|
|
58093
|
+
],
|
|
58094
|
+
"description": "Retrieve the current account balance"
|
|
58095
|
+
},
|
|
58096
|
+
"credentials": {
|
|
58097
|
+
"type": "object",
|
|
58098
|
+
"additionalProperties": {
|
|
58099
|
+
"type": "string"
|
|
58100
|
+
},
|
|
58101
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58102
|
+
}
|
|
58103
|
+
},
|
|
58104
|
+
"required": [
|
|
58105
|
+
"operation"
|
|
58106
|
+
],
|
|
58107
|
+
"additionalProperties": false
|
|
58108
|
+
},
|
|
58109
|
+
{
|
|
58110
|
+
"type": "object",
|
|
58111
|
+
"properties": {
|
|
58112
|
+
"operation": {
|
|
58113
|
+
"type": "string",
|
|
58114
|
+
"enum": [
|
|
58115
|
+
"list_payment_intents"
|
|
58116
|
+
],
|
|
58117
|
+
"description": "List payment intents from Stripe"
|
|
58118
|
+
},
|
|
58119
|
+
"limit": {
|
|
58120
|
+
"type": "integer",
|
|
58121
|
+
"minimum": 1,
|
|
58122
|
+
"maximum": 100,
|
|
58123
|
+
"default": 10,
|
|
58124
|
+
"description": "Maximum number of payment intents to return (1-100)"
|
|
58125
|
+
},
|
|
58126
|
+
"customer": {
|
|
58127
|
+
"type": "string",
|
|
58128
|
+
"description": "Filter by customer ID"
|
|
58129
|
+
},
|
|
58130
|
+
"credentials": {
|
|
58131
|
+
"type": "object",
|
|
58132
|
+
"additionalProperties": {
|
|
58133
|
+
"type": "string"
|
|
58134
|
+
},
|
|
58135
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58136
|
+
}
|
|
58137
|
+
},
|
|
58138
|
+
"required": [
|
|
58139
|
+
"operation"
|
|
58140
|
+
],
|
|
58141
|
+
"additionalProperties": false
|
|
58142
|
+
},
|
|
58143
|
+
{
|
|
58144
|
+
"type": "object",
|
|
58145
|
+
"properties": {
|
|
58146
|
+
"operation": {
|
|
58147
|
+
"type": "string",
|
|
58148
|
+
"enum": [
|
|
58149
|
+
"list_subscriptions"
|
|
58150
|
+
],
|
|
58151
|
+
"description": "List subscriptions from Stripe"
|
|
58152
|
+
},
|
|
58153
|
+
"limit": {
|
|
58154
|
+
"type": "integer",
|
|
58155
|
+
"minimum": 1,
|
|
58156
|
+
"maximum": 100,
|
|
58157
|
+
"default": 10,
|
|
58158
|
+
"description": "Maximum number of subscriptions to return (1-100)"
|
|
58159
|
+
},
|
|
58160
|
+
"customer": {
|
|
58161
|
+
"type": "string",
|
|
58162
|
+
"description": "Filter by customer ID"
|
|
58163
|
+
},
|
|
58164
|
+
"status": {
|
|
58165
|
+
"type": "string",
|
|
58166
|
+
"enum": [
|
|
58167
|
+
"incomplete",
|
|
58168
|
+
"incomplete_expired",
|
|
58169
|
+
"trialing",
|
|
58170
|
+
"active",
|
|
58171
|
+
"past_due",
|
|
58172
|
+
"canceled",
|
|
58173
|
+
"unpaid",
|
|
58174
|
+
"paused",
|
|
58175
|
+
"all"
|
|
58176
|
+
],
|
|
58177
|
+
"description": "Filter by subscription status"
|
|
58178
|
+
},
|
|
58179
|
+
"credentials": {
|
|
58180
|
+
"type": "object",
|
|
58181
|
+
"additionalProperties": {
|
|
58182
|
+
"type": "string"
|
|
58183
|
+
},
|
|
58184
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58185
|
+
}
|
|
58186
|
+
},
|
|
58187
|
+
"required": [
|
|
58188
|
+
"operation"
|
|
58189
|
+
],
|
|
58190
|
+
"additionalProperties": false
|
|
58191
|
+
},
|
|
58192
|
+
{
|
|
58193
|
+
"type": "object",
|
|
58194
|
+
"properties": {
|
|
58195
|
+
"operation": {
|
|
58196
|
+
"type": "string",
|
|
58197
|
+
"enum": [
|
|
58198
|
+
"cancel_subscription"
|
|
58199
|
+
],
|
|
58200
|
+
"description": "Cancel a subscription"
|
|
58201
|
+
},
|
|
58202
|
+
"subscription_id": {
|
|
58203
|
+
"type": "string",
|
|
58204
|
+
"minLength": 1,
|
|
58205
|
+
"description": "ID of the subscription to cancel"
|
|
58206
|
+
},
|
|
58207
|
+
"cancel_at_period_end": {
|
|
58208
|
+
"type": "boolean",
|
|
58209
|
+
"default": false,
|
|
58210
|
+
"description": "Whether to cancel at the end of the current period"
|
|
58211
|
+
},
|
|
58212
|
+
"credentials": {
|
|
58213
|
+
"type": "object",
|
|
58214
|
+
"additionalProperties": {
|
|
58215
|
+
"type": "string"
|
|
58216
|
+
},
|
|
58217
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58218
|
+
}
|
|
58219
|
+
},
|
|
58220
|
+
"required": [
|
|
58221
|
+
"operation",
|
|
58222
|
+
"subscription_id"
|
|
58223
|
+
],
|
|
58224
|
+
"additionalProperties": false
|
|
58225
|
+
},
|
|
58226
|
+
{
|
|
58227
|
+
"type": "object",
|
|
58228
|
+
"properties": {
|
|
58229
|
+
"operation": {
|
|
58230
|
+
"type": "string",
|
|
58231
|
+
"enum": [
|
|
58232
|
+
"list_payment_links"
|
|
58233
|
+
],
|
|
58234
|
+
"description": "List payment links from Stripe"
|
|
58235
|
+
},
|
|
58236
|
+
"limit": {
|
|
58237
|
+
"type": "integer",
|
|
58238
|
+
"minimum": 1,
|
|
58239
|
+
"maximum": 100,
|
|
58240
|
+
"default": 10,
|
|
58241
|
+
"description": "Maximum number of payment links to return (1-100)"
|
|
58242
|
+
},
|
|
58243
|
+
"active": {
|
|
58244
|
+
"type": "boolean",
|
|
58245
|
+
"description": "Filter by active status"
|
|
58246
|
+
},
|
|
58247
|
+
"credentials": {
|
|
58248
|
+
"type": "object",
|
|
58249
|
+
"additionalProperties": {
|
|
58250
|
+
"type": "string"
|
|
58251
|
+
},
|
|
58252
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58253
|
+
}
|
|
58254
|
+
},
|
|
58255
|
+
"required": [
|
|
58256
|
+
"operation"
|
|
58257
|
+
],
|
|
58258
|
+
"additionalProperties": false
|
|
58259
|
+
},
|
|
58260
|
+
{
|
|
58261
|
+
"type": "object",
|
|
58262
|
+
"properties": {
|
|
58263
|
+
"operation": {
|
|
58264
|
+
"type": "string",
|
|
58265
|
+
"enum": [
|
|
58266
|
+
"create_subscription"
|
|
58267
|
+
],
|
|
58268
|
+
"description": "Create a new subscription for a customer"
|
|
58269
|
+
},
|
|
58270
|
+
"customer": {
|
|
58271
|
+
"type": "string",
|
|
58272
|
+
"minLength": 1,
|
|
58273
|
+
"description": "ID of the customer to subscribe"
|
|
58274
|
+
},
|
|
58275
|
+
"price": {
|
|
58276
|
+
"type": "string",
|
|
58277
|
+
"minLength": 1,
|
|
58278
|
+
"description": "ID of the recurring price to subscribe to"
|
|
58279
|
+
},
|
|
58280
|
+
"trial_period_days": {
|
|
58281
|
+
"type": "integer",
|
|
58282
|
+
"minimum": 1,
|
|
58283
|
+
"description": "Number of trial period days before billing starts"
|
|
58284
|
+
},
|
|
58285
|
+
"payment_behavior": {
|
|
58286
|
+
"type": "string",
|
|
58287
|
+
"enum": [
|
|
58288
|
+
"default_incomplete",
|
|
58289
|
+
"error_if_incomplete",
|
|
58290
|
+
"allow_incomplete"
|
|
58291
|
+
],
|
|
58292
|
+
"default": "default_incomplete",
|
|
58293
|
+
"description": "How to handle payment failures. Use default_incomplete to create without payment method"
|
|
58294
|
+
},
|
|
58295
|
+
"metadata": {
|
|
58296
|
+
"type": "object",
|
|
58297
|
+
"additionalProperties": {
|
|
58298
|
+
"type": "string"
|
|
58299
|
+
},
|
|
58300
|
+
"description": "Arbitrary metadata to attach to the subscription"
|
|
58301
|
+
},
|
|
58302
|
+
"credentials": {
|
|
58303
|
+
"type": "object",
|
|
58304
|
+
"additionalProperties": {
|
|
58305
|
+
"type": "string"
|
|
58306
|
+
},
|
|
58307
|
+
"description": "Object mapping credential types to values (injected at runtime)"
|
|
58308
|
+
}
|
|
58309
|
+
},
|
|
58310
|
+
"required": [
|
|
58311
|
+
"operation",
|
|
58312
|
+
"customer",
|
|
58313
|
+
"price"
|
|
58314
|
+
],
|
|
58315
|
+
"additionalProperties": false
|
|
58316
|
+
}
|
|
58317
|
+
]
|
|
58318
|
+
},
|
|
58319
|
+
"outputJsonSchema": {
|
|
58320
|
+
"anyOf": [
|
|
58321
|
+
{
|
|
58322
|
+
"type": "object",
|
|
58323
|
+
"properties": {
|
|
58324
|
+
"operation": {
|
|
58325
|
+
"type": "string",
|
|
58326
|
+
"enum": [
|
|
58327
|
+
"create_customer"
|
|
58328
|
+
]
|
|
58329
|
+
},
|
|
58330
|
+
"success": {
|
|
58331
|
+
"type": "boolean",
|
|
58332
|
+
"description": "Whether the operation succeeded"
|
|
58333
|
+
},
|
|
58334
|
+
"customer": {
|
|
58335
|
+
"type": "object",
|
|
58336
|
+
"properties": {
|
|
58337
|
+
"id": {
|
|
58338
|
+
"type": "string",
|
|
58339
|
+
"description": "Unique Stripe customer identifier (cus_xxx)"
|
|
58340
|
+
},
|
|
58341
|
+
"name": {
|
|
58342
|
+
"type": "string",
|
|
58343
|
+
"nullable": true,
|
|
58344
|
+
"description": "Customer name"
|
|
58345
|
+
},
|
|
58346
|
+
"email": {
|
|
58347
|
+
"type": "string",
|
|
58348
|
+
"nullable": true,
|
|
58349
|
+
"description": "Customer email address"
|
|
58350
|
+
},
|
|
58351
|
+
"created": {
|
|
58352
|
+
"type": "number",
|
|
58353
|
+
"description": "Unix timestamp of creation"
|
|
58354
|
+
},
|
|
58355
|
+
"metadata": {
|
|
58356
|
+
"type": "object",
|
|
58357
|
+
"additionalProperties": {
|
|
58358
|
+
"type": "string"
|
|
58359
|
+
},
|
|
58360
|
+
"description": "Arbitrary metadata attached to the customer"
|
|
58361
|
+
}
|
|
58362
|
+
},
|
|
58363
|
+
"required": [
|
|
58364
|
+
"id",
|
|
58365
|
+
"created"
|
|
58366
|
+
],
|
|
58367
|
+
"additionalProperties": false,
|
|
58368
|
+
"description": "Created customer object"
|
|
58369
|
+
},
|
|
58370
|
+
"error": {
|
|
58371
|
+
"type": "string",
|
|
58372
|
+
"description": "Error message if operation failed"
|
|
58373
|
+
}
|
|
58374
|
+
},
|
|
58375
|
+
"required": [
|
|
58376
|
+
"operation",
|
|
58377
|
+
"success",
|
|
58378
|
+
"error"
|
|
58379
|
+
],
|
|
58380
|
+
"additionalProperties": false
|
|
58381
|
+
},
|
|
58382
|
+
{
|
|
58383
|
+
"type": "object",
|
|
58384
|
+
"properties": {
|
|
58385
|
+
"operation": {
|
|
58386
|
+
"type": "string",
|
|
58387
|
+
"enum": [
|
|
58388
|
+
"list_customers"
|
|
58389
|
+
]
|
|
58390
|
+
},
|
|
58391
|
+
"success": {
|
|
58392
|
+
"type": "boolean",
|
|
58393
|
+
"description": "Whether the operation succeeded"
|
|
58394
|
+
},
|
|
58395
|
+
"customers": {
|
|
58396
|
+
"type": "array",
|
|
58397
|
+
"items": {
|
|
58398
|
+
"type": "object",
|
|
58399
|
+
"properties": {
|
|
58400
|
+
"id": {
|
|
58401
|
+
"type": "string",
|
|
58402
|
+
"description": "Unique Stripe customer identifier (cus_xxx)"
|
|
58403
|
+
},
|
|
58404
|
+
"name": {
|
|
58405
|
+
"type": "string",
|
|
58406
|
+
"nullable": true,
|
|
58407
|
+
"description": "Customer name"
|
|
58408
|
+
},
|
|
58409
|
+
"email": {
|
|
58410
|
+
"type": "string",
|
|
58411
|
+
"nullable": true,
|
|
58412
|
+
"description": "Customer email address"
|
|
58413
|
+
},
|
|
58414
|
+
"created": {
|
|
58415
|
+
"type": "number",
|
|
58416
|
+
"description": "Unix timestamp of creation"
|
|
58417
|
+
},
|
|
58418
|
+
"metadata": {
|
|
58419
|
+
"type": "object",
|
|
58420
|
+
"additionalProperties": {
|
|
58421
|
+
"type": "string"
|
|
58422
|
+
},
|
|
58423
|
+
"description": "Arbitrary metadata attached to the customer"
|
|
58424
|
+
}
|
|
58425
|
+
},
|
|
58426
|
+
"required": [
|
|
58427
|
+
"id",
|
|
58428
|
+
"created"
|
|
58429
|
+
],
|
|
58430
|
+
"additionalProperties": false,
|
|
58431
|
+
"description": "Stripe customer object"
|
|
58432
|
+
},
|
|
58433
|
+
"description": "List of customer objects"
|
|
58434
|
+
},
|
|
58435
|
+
"error": {
|
|
58436
|
+
"type": "string",
|
|
58437
|
+
"description": "Error message if operation failed"
|
|
58438
|
+
}
|
|
58439
|
+
},
|
|
58440
|
+
"required": [
|
|
58441
|
+
"operation",
|
|
58442
|
+
"success",
|
|
58443
|
+
"error"
|
|
58444
|
+
],
|
|
58445
|
+
"additionalProperties": false
|
|
58446
|
+
},
|
|
58447
|
+
{
|
|
58448
|
+
"type": "object",
|
|
58449
|
+
"properties": {
|
|
58450
|
+
"operation": {
|
|
58451
|
+
"type": "string",
|
|
58452
|
+
"enum": [
|
|
58453
|
+
"create_product"
|
|
58454
|
+
]
|
|
58455
|
+
},
|
|
58456
|
+
"success": {
|
|
58457
|
+
"type": "boolean",
|
|
58458
|
+
"description": "Whether the operation succeeded"
|
|
58459
|
+
},
|
|
58460
|
+
"product": {
|
|
58461
|
+
"type": "object",
|
|
58462
|
+
"properties": {
|
|
58463
|
+
"id": {
|
|
58464
|
+
"type": "string",
|
|
58465
|
+
"description": "Unique Stripe product identifier (prod_xxx)"
|
|
58466
|
+
},
|
|
58467
|
+
"name": {
|
|
58468
|
+
"type": "string",
|
|
58469
|
+
"description": "Product name"
|
|
58470
|
+
},
|
|
58471
|
+
"description": {
|
|
58472
|
+
"type": "string",
|
|
58473
|
+
"nullable": true,
|
|
58474
|
+
"description": "Product description"
|
|
58475
|
+
},
|
|
58476
|
+
"active": {
|
|
58477
|
+
"type": "boolean",
|
|
58478
|
+
"description": "Whether the product is currently available"
|
|
58479
|
+
},
|
|
58480
|
+
"created": {
|
|
58481
|
+
"type": "number",
|
|
58482
|
+
"description": "Unix timestamp of creation"
|
|
58483
|
+
},
|
|
58484
|
+
"metadata": {
|
|
58485
|
+
"type": "object",
|
|
58486
|
+
"additionalProperties": {
|
|
58487
|
+
"type": "string"
|
|
58488
|
+
},
|
|
58489
|
+
"description": "Arbitrary metadata attached to the product"
|
|
58490
|
+
}
|
|
58491
|
+
},
|
|
58492
|
+
"required": [
|
|
58493
|
+
"id",
|
|
58494
|
+
"name",
|
|
58495
|
+
"active",
|
|
58496
|
+
"created"
|
|
58497
|
+
],
|
|
58498
|
+
"additionalProperties": false,
|
|
58499
|
+
"description": "Created product object"
|
|
58500
|
+
},
|
|
58501
|
+
"error": {
|
|
58502
|
+
"type": "string",
|
|
58503
|
+
"description": "Error message if operation failed"
|
|
58504
|
+
}
|
|
58505
|
+
},
|
|
58506
|
+
"required": [
|
|
58507
|
+
"operation",
|
|
58508
|
+
"success",
|
|
58509
|
+
"error"
|
|
58510
|
+
],
|
|
58511
|
+
"additionalProperties": false
|
|
58512
|
+
},
|
|
58513
|
+
{
|
|
58514
|
+
"type": "object",
|
|
58515
|
+
"properties": {
|
|
58516
|
+
"operation": {
|
|
58517
|
+
"type": "string",
|
|
58518
|
+
"enum": [
|
|
58519
|
+
"list_products"
|
|
58520
|
+
]
|
|
58521
|
+
},
|
|
58522
|
+
"success": {
|
|
58523
|
+
"type": "boolean",
|
|
58524
|
+
"description": "Whether the operation succeeded"
|
|
58525
|
+
},
|
|
58526
|
+
"products": {
|
|
58527
|
+
"type": "array",
|
|
58528
|
+
"items": {
|
|
58529
|
+
"type": "object",
|
|
58530
|
+
"properties": {
|
|
58531
|
+
"id": {
|
|
58532
|
+
"type": "string",
|
|
58533
|
+
"description": "Unique Stripe product identifier (prod_xxx)"
|
|
58534
|
+
},
|
|
58535
|
+
"name": {
|
|
58536
|
+
"type": "string",
|
|
58537
|
+
"description": "Product name"
|
|
58538
|
+
},
|
|
58539
|
+
"description": {
|
|
58540
|
+
"type": "string",
|
|
58541
|
+
"nullable": true,
|
|
58542
|
+
"description": "Product description"
|
|
58543
|
+
},
|
|
58544
|
+
"active": {
|
|
58545
|
+
"type": "boolean",
|
|
58546
|
+
"description": "Whether the product is currently available"
|
|
58547
|
+
},
|
|
58548
|
+
"created": {
|
|
58549
|
+
"type": "number",
|
|
58550
|
+
"description": "Unix timestamp of creation"
|
|
58551
|
+
},
|
|
58552
|
+
"metadata": {
|
|
58553
|
+
"type": "object",
|
|
58554
|
+
"additionalProperties": {
|
|
58555
|
+
"type": "string"
|
|
58556
|
+
},
|
|
58557
|
+
"description": "Arbitrary metadata attached to the product"
|
|
58558
|
+
}
|
|
58559
|
+
},
|
|
58560
|
+
"required": [
|
|
58561
|
+
"id",
|
|
58562
|
+
"name",
|
|
58563
|
+
"active",
|
|
58564
|
+
"created"
|
|
58565
|
+
],
|
|
58566
|
+
"additionalProperties": false,
|
|
58567
|
+
"description": "Stripe product object"
|
|
58568
|
+
},
|
|
58569
|
+
"description": "List of product objects"
|
|
58570
|
+
},
|
|
58571
|
+
"error": {
|
|
58572
|
+
"type": "string",
|
|
58573
|
+
"description": "Error message if operation failed"
|
|
58574
|
+
}
|
|
58575
|
+
},
|
|
58576
|
+
"required": [
|
|
58577
|
+
"operation",
|
|
58578
|
+
"success",
|
|
58579
|
+
"error"
|
|
58580
|
+
],
|
|
58581
|
+
"additionalProperties": false
|
|
58582
|
+
},
|
|
58583
|
+
{
|
|
58584
|
+
"type": "object",
|
|
58585
|
+
"properties": {
|
|
58586
|
+
"operation": {
|
|
58587
|
+
"type": "string",
|
|
58588
|
+
"enum": [
|
|
58589
|
+
"create_price"
|
|
58590
|
+
]
|
|
58591
|
+
},
|
|
58592
|
+
"success": {
|
|
58593
|
+
"type": "boolean",
|
|
58594
|
+
"description": "Whether the operation succeeded"
|
|
58595
|
+
},
|
|
58596
|
+
"price": {
|
|
58597
|
+
"type": "object",
|
|
58598
|
+
"properties": {
|
|
58599
|
+
"id": {
|
|
58600
|
+
"type": "string",
|
|
58601
|
+
"description": "Unique Stripe price identifier (price_xxx)"
|
|
58602
|
+
},
|
|
58603
|
+
"product": {
|
|
58604
|
+
"type": "string",
|
|
58605
|
+
"description": "ID of the product this price is for"
|
|
58606
|
+
},
|
|
58607
|
+
"unit_amount": {
|
|
58608
|
+
"type": "number",
|
|
58609
|
+
"nullable": true,
|
|
58610
|
+
"description": "Price in the smallest currency unit (e.g., cents)"
|
|
58611
|
+
},
|
|
58612
|
+
"currency": {
|
|
58613
|
+
"type": "string",
|
|
58614
|
+
"description": "Three-letter ISO currency code"
|
|
58615
|
+
},
|
|
58616
|
+
"type": {
|
|
58617
|
+
"type": "string",
|
|
58618
|
+
"enum": [
|
|
58619
|
+
"one_time",
|
|
58620
|
+
"recurring"
|
|
58621
|
+
],
|
|
58622
|
+
"description": "Type of pricing (one-time or recurring)"
|
|
58623
|
+
},
|
|
58624
|
+
"active": {
|
|
58625
|
+
"type": "boolean",
|
|
58626
|
+
"description": "Whether the price is currently active"
|
|
58627
|
+
},
|
|
58628
|
+
"created": {
|
|
58629
|
+
"type": "number",
|
|
58630
|
+
"description": "Unix timestamp of creation"
|
|
58631
|
+
},
|
|
58632
|
+
"metadata": {
|
|
58633
|
+
"type": "object",
|
|
58634
|
+
"additionalProperties": {
|
|
58635
|
+
"type": "string"
|
|
58636
|
+
},
|
|
58637
|
+
"description": "Arbitrary metadata attached to the price"
|
|
58638
|
+
}
|
|
58639
|
+
},
|
|
58640
|
+
"required": [
|
|
58641
|
+
"id",
|
|
58642
|
+
"product",
|
|
58643
|
+
"unit_amount",
|
|
58644
|
+
"currency",
|
|
58645
|
+
"type",
|
|
58646
|
+
"active",
|
|
58647
|
+
"created"
|
|
58648
|
+
],
|
|
58649
|
+
"additionalProperties": false,
|
|
58650
|
+
"description": "Created price object"
|
|
58651
|
+
},
|
|
58652
|
+
"error": {
|
|
58653
|
+
"type": "string",
|
|
58654
|
+
"description": "Error message if operation failed"
|
|
58655
|
+
}
|
|
58656
|
+
},
|
|
58657
|
+
"required": [
|
|
58658
|
+
"operation",
|
|
58659
|
+
"success",
|
|
58660
|
+
"error"
|
|
58661
|
+
],
|
|
58662
|
+
"additionalProperties": false
|
|
58663
|
+
},
|
|
58664
|
+
{
|
|
58665
|
+
"type": "object",
|
|
58666
|
+
"properties": {
|
|
58667
|
+
"operation": {
|
|
58668
|
+
"type": "string",
|
|
58669
|
+
"enum": [
|
|
58670
|
+
"list_prices"
|
|
58671
|
+
]
|
|
58672
|
+
},
|
|
58673
|
+
"success": {
|
|
58674
|
+
"type": "boolean",
|
|
58675
|
+
"description": "Whether the operation succeeded"
|
|
58676
|
+
},
|
|
58677
|
+
"prices": {
|
|
58678
|
+
"type": "array",
|
|
58679
|
+
"items": {
|
|
58680
|
+
"type": "object",
|
|
58681
|
+
"properties": {
|
|
58682
|
+
"id": {
|
|
58683
|
+
"type": "string",
|
|
58684
|
+
"description": "Unique Stripe price identifier (price_xxx)"
|
|
58685
|
+
},
|
|
58686
|
+
"product": {
|
|
58687
|
+
"type": "string",
|
|
58688
|
+
"description": "ID of the product this price is for"
|
|
58689
|
+
},
|
|
58690
|
+
"unit_amount": {
|
|
58691
|
+
"type": "number",
|
|
58692
|
+
"nullable": true,
|
|
58693
|
+
"description": "Price in the smallest currency unit (e.g., cents)"
|
|
58694
|
+
},
|
|
58695
|
+
"currency": {
|
|
58696
|
+
"type": "string",
|
|
58697
|
+
"description": "Three-letter ISO currency code"
|
|
58698
|
+
},
|
|
58699
|
+
"type": {
|
|
58700
|
+
"type": "string",
|
|
58701
|
+
"enum": [
|
|
58702
|
+
"one_time",
|
|
58703
|
+
"recurring"
|
|
58704
|
+
],
|
|
58705
|
+
"description": "Type of pricing (one-time or recurring)"
|
|
58706
|
+
},
|
|
58707
|
+
"active": {
|
|
58708
|
+
"type": "boolean",
|
|
58709
|
+
"description": "Whether the price is currently active"
|
|
58710
|
+
},
|
|
58711
|
+
"created": {
|
|
58712
|
+
"type": "number",
|
|
58713
|
+
"description": "Unix timestamp of creation"
|
|
58714
|
+
},
|
|
58715
|
+
"metadata": {
|
|
58716
|
+
"type": "object",
|
|
58717
|
+
"additionalProperties": {
|
|
58718
|
+
"type": "string"
|
|
58719
|
+
},
|
|
58720
|
+
"description": "Arbitrary metadata attached to the price"
|
|
58721
|
+
}
|
|
58722
|
+
},
|
|
58723
|
+
"required": [
|
|
58724
|
+
"id",
|
|
58725
|
+
"product",
|
|
58726
|
+
"unit_amount",
|
|
58727
|
+
"currency",
|
|
58728
|
+
"type",
|
|
58729
|
+
"active",
|
|
58730
|
+
"created"
|
|
58731
|
+
],
|
|
58732
|
+
"additionalProperties": false,
|
|
58733
|
+
"description": "Stripe price object"
|
|
58734
|
+
},
|
|
58735
|
+
"description": "List of price objects"
|
|
58736
|
+
},
|
|
58737
|
+
"error": {
|
|
58738
|
+
"type": "string",
|
|
58739
|
+
"description": "Error message if operation failed"
|
|
58740
|
+
}
|
|
58741
|
+
},
|
|
58742
|
+
"required": [
|
|
58743
|
+
"operation",
|
|
58744
|
+
"success",
|
|
58745
|
+
"error"
|
|
58746
|
+
],
|
|
58747
|
+
"additionalProperties": false
|
|
58748
|
+
},
|
|
58749
|
+
{
|
|
58750
|
+
"type": "object",
|
|
58751
|
+
"properties": {
|
|
58752
|
+
"operation": {
|
|
58753
|
+
"type": "string",
|
|
58754
|
+
"enum": [
|
|
58755
|
+
"create_payment_link"
|
|
58756
|
+
]
|
|
58757
|
+
},
|
|
58758
|
+
"success": {
|
|
58759
|
+
"type": "boolean",
|
|
58760
|
+
"description": "Whether the operation succeeded"
|
|
58761
|
+
},
|
|
58762
|
+
"payment_link": {
|
|
58763
|
+
"type": "object",
|
|
58764
|
+
"properties": {
|
|
58765
|
+
"id": {
|
|
58766
|
+
"type": "string",
|
|
58767
|
+
"description": "Unique Stripe payment link identifier (plink_xxx)"
|
|
58768
|
+
},
|
|
58769
|
+
"url": {
|
|
58770
|
+
"type": "string",
|
|
58771
|
+
"description": "The public URL of the payment link"
|
|
58772
|
+
},
|
|
58773
|
+
"active": {
|
|
58774
|
+
"type": "boolean",
|
|
58775
|
+
"description": "Whether the payment link is active"
|
|
58776
|
+
},
|
|
58777
|
+
"created": {
|
|
58778
|
+
"type": "number",
|
|
58779
|
+
"description": "Unix timestamp of creation"
|
|
58780
|
+
},
|
|
58781
|
+
"metadata": {
|
|
58782
|
+
"type": "object",
|
|
58783
|
+
"additionalProperties": {
|
|
58784
|
+
"type": "string"
|
|
58785
|
+
},
|
|
58786
|
+
"description": "Arbitrary metadata attached to the payment link"
|
|
58787
|
+
}
|
|
58788
|
+
},
|
|
58789
|
+
"required": [
|
|
58790
|
+
"id",
|
|
58791
|
+
"url",
|
|
58792
|
+
"active"
|
|
58793
|
+
],
|
|
58794
|
+
"additionalProperties": false,
|
|
58795
|
+
"description": "Created payment link object"
|
|
58796
|
+
},
|
|
58797
|
+
"error": {
|
|
58798
|
+
"type": "string",
|
|
58799
|
+
"description": "Error message if operation failed"
|
|
58800
|
+
}
|
|
58801
|
+
},
|
|
58802
|
+
"required": [
|
|
58803
|
+
"operation",
|
|
58804
|
+
"success",
|
|
58805
|
+
"error"
|
|
58806
|
+
],
|
|
58807
|
+
"additionalProperties": false
|
|
58808
|
+
},
|
|
58809
|
+
{
|
|
58810
|
+
"type": "object",
|
|
58811
|
+
"properties": {
|
|
58812
|
+
"operation": {
|
|
58813
|
+
"type": "string",
|
|
58814
|
+
"enum": [
|
|
58815
|
+
"create_invoice"
|
|
58816
|
+
]
|
|
58817
|
+
},
|
|
58818
|
+
"success": {
|
|
58819
|
+
"type": "boolean",
|
|
58820
|
+
"description": "Whether the operation succeeded"
|
|
58821
|
+
},
|
|
58822
|
+
"invoice": {
|
|
58823
|
+
"type": "object",
|
|
58824
|
+
"properties": {
|
|
58825
|
+
"id": {
|
|
58826
|
+
"type": "string",
|
|
58827
|
+
"description": "Unique Stripe invoice identifier (in_xxx)"
|
|
58828
|
+
},
|
|
58829
|
+
"customer": {
|
|
58830
|
+
"type": "string",
|
|
58831
|
+
"nullable": true,
|
|
58832
|
+
"description": "ID of the customer"
|
|
58833
|
+
},
|
|
58834
|
+
"status": {
|
|
58835
|
+
"type": "string",
|
|
58836
|
+
"enum": [
|
|
58837
|
+
"draft",
|
|
58838
|
+
"open",
|
|
58839
|
+
"paid",
|
|
58840
|
+
"uncollectible",
|
|
58841
|
+
"void"
|
|
58842
|
+
],
|
|
58843
|
+
"nullable": true,
|
|
58844
|
+
"description": "Invoice status"
|
|
58845
|
+
},
|
|
58846
|
+
"total": {
|
|
58847
|
+
"type": "number",
|
|
58848
|
+
"description": "Total amount in smallest currency unit"
|
|
58849
|
+
},
|
|
58850
|
+
"currency": {
|
|
58851
|
+
"type": "string",
|
|
58852
|
+
"description": "Three-letter ISO currency code"
|
|
58853
|
+
},
|
|
58854
|
+
"created": {
|
|
58855
|
+
"type": "number",
|
|
58856
|
+
"description": "Unix timestamp of creation"
|
|
58857
|
+
},
|
|
58858
|
+
"hosted_invoice_url": {
|
|
58859
|
+
"type": "string",
|
|
58860
|
+
"nullable": true,
|
|
58861
|
+
"description": "URL for the hosted invoice page"
|
|
58862
|
+
},
|
|
58863
|
+
"metadata": {
|
|
58864
|
+
"type": "object",
|
|
58865
|
+
"additionalProperties": {
|
|
58866
|
+
"type": "string"
|
|
58867
|
+
},
|
|
58868
|
+
"description": "Arbitrary metadata attached to the invoice"
|
|
58869
|
+
}
|
|
58870
|
+
},
|
|
58871
|
+
"required": [
|
|
58872
|
+
"id",
|
|
58873
|
+
"customer",
|
|
58874
|
+
"status",
|
|
58875
|
+
"total",
|
|
58876
|
+
"currency"
|
|
58877
|
+
],
|
|
58878
|
+
"additionalProperties": false,
|
|
58879
|
+
"description": "Created invoice object"
|
|
58880
|
+
},
|
|
58881
|
+
"error": {
|
|
58882
|
+
"type": "string",
|
|
58883
|
+
"description": "Error message if operation failed"
|
|
58884
|
+
}
|
|
58885
|
+
},
|
|
58886
|
+
"required": [
|
|
58887
|
+
"operation",
|
|
58888
|
+
"success",
|
|
58889
|
+
"error"
|
|
58890
|
+
],
|
|
58891
|
+
"additionalProperties": false
|
|
58892
|
+
},
|
|
58893
|
+
{
|
|
58894
|
+
"type": "object",
|
|
58895
|
+
"properties": {
|
|
58896
|
+
"operation": {
|
|
58897
|
+
"type": "string",
|
|
58898
|
+
"enum": [
|
|
58899
|
+
"list_invoices"
|
|
58900
|
+
]
|
|
58901
|
+
},
|
|
58902
|
+
"success": {
|
|
58903
|
+
"type": "boolean",
|
|
58904
|
+
"description": "Whether the operation succeeded"
|
|
58905
|
+
},
|
|
58906
|
+
"invoices": {
|
|
58907
|
+
"type": "array",
|
|
58908
|
+
"items": {
|
|
58909
|
+
"type": "object",
|
|
58910
|
+
"properties": {
|
|
58911
|
+
"id": {
|
|
58912
|
+
"type": "string",
|
|
58913
|
+
"description": "Unique Stripe invoice identifier (in_xxx)"
|
|
58914
|
+
},
|
|
58915
|
+
"customer": {
|
|
58916
|
+
"type": "string",
|
|
58917
|
+
"nullable": true,
|
|
58918
|
+
"description": "ID of the customer"
|
|
58919
|
+
},
|
|
58920
|
+
"status": {
|
|
58921
|
+
"type": "string",
|
|
58922
|
+
"enum": [
|
|
58923
|
+
"draft",
|
|
58924
|
+
"open",
|
|
58925
|
+
"paid",
|
|
58926
|
+
"uncollectible",
|
|
58927
|
+
"void"
|
|
58928
|
+
],
|
|
58929
|
+
"nullable": true,
|
|
58930
|
+
"description": "Invoice status"
|
|
58931
|
+
},
|
|
58932
|
+
"total": {
|
|
58933
|
+
"type": "number",
|
|
58934
|
+
"description": "Total amount in smallest currency unit"
|
|
58935
|
+
},
|
|
58936
|
+
"currency": {
|
|
58937
|
+
"type": "string",
|
|
58938
|
+
"description": "Three-letter ISO currency code"
|
|
58939
|
+
},
|
|
58940
|
+
"created": {
|
|
58941
|
+
"type": "number",
|
|
58942
|
+
"description": "Unix timestamp of creation"
|
|
58943
|
+
},
|
|
58944
|
+
"hosted_invoice_url": {
|
|
58945
|
+
"type": "string",
|
|
58946
|
+
"nullable": true,
|
|
58947
|
+
"description": "URL for the hosted invoice page"
|
|
58948
|
+
},
|
|
58949
|
+
"metadata": {
|
|
58950
|
+
"type": "object",
|
|
58951
|
+
"additionalProperties": {
|
|
58952
|
+
"type": "string"
|
|
58953
|
+
},
|
|
58954
|
+
"description": "Arbitrary metadata attached to the invoice"
|
|
58955
|
+
}
|
|
58956
|
+
},
|
|
58957
|
+
"required": [
|
|
58958
|
+
"id",
|
|
58959
|
+
"customer",
|
|
58960
|
+
"status",
|
|
58961
|
+
"total",
|
|
58962
|
+
"currency"
|
|
58963
|
+
],
|
|
58964
|
+
"additionalProperties": false,
|
|
58965
|
+
"description": "Stripe invoice object"
|
|
58966
|
+
},
|
|
58967
|
+
"description": "List of invoice objects"
|
|
58968
|
+
},
|
|
58969
|
+
"error": {
|
|
58970
|
+
"type": "string",
|
|
58971
|
+
"description": "Error message if operation failed"
|
|
58972
|
+
}
|
|
58973
|
+
},
|
|
58974
|
+
"required": [
|
|
58975
|
+
"operation",
|
|
58976
|
+
"success",
|
|
58977
|
+
"error"
|
|
58978
|
+
],
|
|
58979
|
+
"additionalProperties": false
|
|
58980
|
+
},
|
|
58981
|
+
{
|
|
58982
|
+
"type": "object",
|
|
58983
|
+
"properties": {
|
|
58984
|
+
"operation": {
|
|
58985
|
+
"type": "string",
|
|
58986
|
+
"enum": [
|
|
58987
|
+
"get_balance"
|
|
58988
|
+
]
|
|
58989
|
+
},
|
|
58990
|
+
"success": {
|
|
58991
|
+
"type": "boolean",
|
|
58992
|
+
"description": "Whether the operation succeeded"
|
|
58993
|
+
},
|
|
58994
|
+
"balance": {
|
|
58995
|
+
"type": "object",
|
|
58996
|
+
"properties": {
|
|
58997
|
+
"available": {
|
|
58998
|
+
"type": "array",
|
|
58999
|
+
"items": {
|
|
59000
|
+
"type": "object",
|
|
59001
|
+
"properties": {
|
|
59002
|
+
"amount": {
|
|
59003
|
+
"type": "number",
|
|
59004
|
+
"description": "Amount available"
|
|
59005
|
+
},
|
|
59006
|
+
"currency": {
|
|
59007
|
+
"type": "string",
|
|
59008
|
+
"description": "Currency code"
|
|
59009
|
+
}
|
|
59010
|
+
},
|
|
59011
|
+
"required": [
|
|
59012
|
+
"amount",
|
|
59013
|
+
"currency"
|
|
59014
|
+
],
|
|
59015
|
+
"additionalProperties": false
|
|
59016
|
+
},
|
|
59017
|
+
"description": "Funds available for payout"
|
|
59018
|
+
},
|
|
59019
|
+
"pending": {
|
|
59020
|
+
"type": "array",
|
|
59021
|
+
"items": {
|
|
59022
|
+
"type": "object",
|
|
59023
|
+
"properties": {
|
|
59024
|
+
"amount": {
|
|
59025
|
+
"type": "number",
|
|
59026
|
+
"description": "Amount pending"
|
|
59027
|
+
},
|
|
59028
|
+
"currency": {
|
|
59029
|
+
"type": "string",
|
|
59030
|
+
"description": "Currency code"
|
|
59031
|
+
}
|
|
59032
|
+
},
|
|
59033
|
+
"required": [
|
|
59034
|
+
"amount",
|
|
59035
|
+
"currency"
|
|
59036
|
+
],
|
|
59037
|
+
"additionalProperties": false
|
|
59038
|
+
},
|
|
59039
|
+
"description": "Funds not yet available"
|
|
59040
|
+
}
|
|
59041
|
+
},
|
|
59042
|
+
"required": [
|
|
59043
|
+
"available",
|
|
59044
|
+
"pending"
|
|
59045
|
+
],
|
|
59046
|
+
"additionalProperties": false,
|
|
59047
|
+
"description": "Account balance"
|
|
59048
|
+
},
|
|
59049
|
+
"error": {
|
|
59050
|
+
"type": "string",
|
|
59051
|
+
"description": "Error message if operation failed"
|
|
59052
|
+
}
|
|
59053
|
+
},
|
|
59054
|
+
"required": [
|
|
59055
|
+
"operation",
|
|
59056
|
+
"success",
|
|
59057
|
+
"error"
|
|
59058
|
+
],
|
|
59059
|
+
"additionalProperties": false
|
|
59060
|
+
},
|
|
59061
|
+
{
|
|
59062
|
+
"type": "object",
|
|
59063
|
+
"properties": {
|
|
59064
|
+
"operation": {
|
|
59065
|
+
"type": "string",
|
|
59066
|
+
"enum": [
|
|
59067
|
+
"list_payment_intents"
|
|
59068
|
+
]
|
|
59069
|
+
},
|
|
59070
|
+
"success": {
|
|
59071
|
+
"type": "boolean",
|
|
59072
|
+
"description": "Whether the operation succeeded"
|
|
59073
|
+
},
|
|
59074
|
+
"payment_intents": {
|
|
59075
|
+
"type": "array",
|
|
59076
|
+
"items": {
|
|
59077
|
+
"type": "object",
|
|
59078
|
+
"properties": {
|
|
59079
|
+
"id": {
|
|
59080
|
+
"type": "string",
|
|
59081
|
+
"description": "Unique payment intent identifier (pi_xxx)"
|
|
59082
|
+
},
|
|
59083
|
+
"amount": {
|
|
59084
|
+
"type": "number",
|
|
59085
|
+
"description": "Amount in smallest currency unit"
|
|
59086
|
+
},
|
|
59087
|
+
"currency": {
|
|
59088
|
+
"type": "string",
|
|
59089
|
+
"description": "Three-letter ISO currency code"
|
|
59090
|
+
},
|
|
59091
|
+
"status": {
|
|
59092
|
+
"type": "string",
|
|
59093
|
+
"enum": [
|
|
59094
|
+
"requires_payment_method",
|
|
59095
|
+
"requires_confirmation",
|
|
59096
|
+
"requires_action",
|
|
59097
|
+
"processing",
|
|
59098
|
+
"requires_capture",
|
|
59099
|
+
"canceled",
|
|
59100
|
+
"succeeded"
|
|
59101
|
+
],
|
|
59102
|
+
"description": "Payment intent status"
|
|
59103
|
+
},
|
|
59104
|
+
"customer": {
|
|
59105
|
+
"type": "string",
|
|
59106
|
+
"nullable": true,
|
|
59107
|
+
"description": "Customer ID if attached"
|
|
59108
|
+
},
|
|
59109
|
+
"created": {
|
|
59110
|
+
"type": "number",
|
|
59111
|
+
"description": "Unix timestamp of creation"
|
|
59112
|
+
},
|
|
59113
|
+
"metadata": {
|
|
59114
|
+
"type": "object",
|
|
59115
|
+
"additionalProperties": {
|
|
59116
|
+
"type": "string"
|
|
59117
|
+
},
|
|
59118
|
+
"description": "Arbitrary metadata attached to the payment intent"
|
|
59119
|
+
}
|
|
59120
|
+
},
|
|
59121
|
+
"required": [
|
|
59122
|
+
"id",
|
|
59123
|
+
"amount",
|
|
59124
|
+
"currency",
|
|
59125
|
+
"status",
|
|
59126
|
+
"created"
|
|
59127
|
+
],
|
|
59128
|
+
"additionalProperties": false,
|
|
59129
|
+
"description": "Stripe payment intent object"
|
|
59130
|
+
},
|
|
59131
|
+
"description": "List of payment intent objects"
|
|
59132
|
+
},
|
|
59133
|
+
"error": {
|
|
59134
|
+
"type": "string",
|
|
59135
|
+
"description": "Error message if operation failed"
|
|
59136
|
+
}
|
|
59137
|
+
},
|
|
59138
|
+
"required": [
|
|
59139
|
+
"operation",
|
|
59140
|
+
"success",
|
|
59141
|
+
"error"
|
|
59142
|
+
],
|
|
59143
|
+
"additionalProperties": false
|
|
59144
|
+
},
|
|
59145
|
+
{
|
|
59146
|
+
"type": "object",
|
|
59147
|
+
"properties": {
|
|
59148
|
+
"operation": {
|
|
59149
|
+
"type": "string",
|
|
59150
|
+
"enum": [
|
|
59151
|
+
"list_subscriptions"
|
|
59152
|
+
]
|
|
59153
|
+
},
|
|
59154
|
+
"success": {
|
|
59155
|
+
"type": "boolean",
|
|
59156
|
+
"description": "Whether the operation succeeded"
|
|
59157
|
+
},
|
|
59158
|
+
"subscriptions": {
|
|
59159
|
+
"type": "array",
|
|
59160
|
+
"items": {
|
|
59161
|
+
"type": "object",
|
|
59162
|
+
"properties": {
|
|
59163
|
+
"id": {
|
|
59164
|
+
"type": "string",
|
|
59165
|
+
"description": "Unique subscription identifier (sub_xxx)"
|
|
59166
|
+
},
|
|
59167
|
+
"customer": {
|
|
59168
|
+
"type": "string",
|
|
59169
|
+
"description": "Customer ID"
|
|
59170
|
+
},
|
|
59171
|
+
"status": {
|
|
59172
|
+
"type": "string",
|
|
59173
|
+
"enum": [
|
|
59174
|
+
"incomplete",
|
|
59175
|
+
"incomplete_expired",
|
|
59176
|
+
"trialing",
|
|
59177
|
+
"active",
|
|
59178
|
+
"past_due",
|
|
59179
|
+
"canceled",
|
|
59180
|
+
"unpaid",
|
|
59181
|
+
"paused"
|
|
59182
|
+
],
|
|
59183
|
+
"description": "Subscription status"
|
|
59184
|
+
},
|
|
59185
|
+
"current_period_start": {
|
|
59186
|
+
"type": "number",
|
|
59187
|
+
"description": "Start of current billing period (may be absent for incomplete subscriptions)"
|
|
59188
|
+
},
|
|
59189
|
+
"current_period_end": {
|
|
59190
|
+
"type": "number",
|
|
59191
|
+
"description": "End of current billing period (may be absent for incomplete subscriptions)"
|
|
59192
|
+
},
|
|
59193
|
+
"cancel_at_period_end": {
|
|
59194
|
+
"type": "boolean",
|
|
59195
|
+
"description": "Whether subscription cancels at period end"
|
|
59196
|
+
},
|
|
59197
|
+
"created": {
|
|
59198
|
+
"type": "number",
|
|
59199
|
+
"description": "Unix timestamp of creation"
|
|
59200
|
+
},
|
|
59201
|
+
"metadata": {
|
|
59202
|
+
"type": "object",
|
|
59203
|
+
"additionalProperties": {
|
|
59204
|
+
"type": "string"
|
|
59205
|
+
},
|
|
59206
|
+
"description": "Arbitrary metadata attached to the subscription"
|
|
59207
|
+
}
|
|
59208
|
+
},
|
|
59209
|
+
"required": [
|
|
59210
|
+
"id",
|
|
59211
|
+
"customer",
|
|
59212
|
+
"status",
|
|
59213
|
+
"cancel_at_period_end",
|
|
59214
|
+
"created"
|
|
59215
|
+
],
|
|
59216
|
+
"additionalProperties": false,
|
|
59217
|
+
"description": "Stripe subscription object"
|
|
59218
|
+
},
|
|
59219
|
+
"description": "List of subscription objects"
|
|
59220
|
+
},
|
|
59221
|
+
"error": {
|
|
59222
|
+
"type": "string",
|
|
59223
|
+
"description": "Error message if operation failed"
|
|
59224
|
+
}
|
|
59225
|
+
},
|
|
59226
|
+
"required": [
|
|
59227
|
+
"operation",
|
|
59228
|
+
"success",
|
|
59229
|
+
"error"
|
|
59230
|
+
],
|
|
59231
|
+
"additionalProperties": false
|
|
59232
|
+
},
|
|
59233
|
+
{
|
|
59234
|
+
"type": "object",
|
|
59235
|
+
"properties": {
|
|
59236
|
+
"operation": {
|
|
59237
|
+
"type": "string",
|
|
59238
|
+
"enum": [
|
|
59239
|
+
"cancel_subscription"
|
|
59240
|
+
]
|
|
59241
|
+
},
|
|
59242
|
+
"success": {
|
|
59243
|
+
"type": "boolean",
|
|
59244
|
+
"description": "Whether the operation succeeded"
|
|
59245
|
+
},
|
|
59246
|
+
"subscription": {
|
|
59247
|
+
"type": "object",
|
|
59248
|
+
"properties": {
|
|
59249
|
+
"id": {
|
|
59250
|
+
"type": "string",
|
|
59251
|
+
"description": "Unique subscription identifier (sub_xxx)"
|
|
59252
|
+
},
|
|
59253
|
+
"customer": {
|
|
59254
|
+
"type": "string",
|
|
59255
|
+
"description": "Customer ID"
|
|
59256
|
+
},
|
|
59257
|
+
"status": {
|
|
59258
|
+
"type": "string",
|
|
59259
|
+
"enum": [
|
|
59260
|
+
"incomplete",
|
|
59261
|
+
"incomplete_expired",
|
|
59262
|
+
"trialing",
|
|
59263
|
+
"active",
|
|
59264
|
+
"past_due",
|
|
59265
|
+
"canceled",
|
|
59266
|
+
"unpaid",
|
|
59267
|
+
"paused"
|
|
59268
|
+
],
|
|
59269
|
+
"description": "Subscription status"
|
|
59270
|
+
},
|
|
59271
|
+
"current_period_start": {
|
|
59272
|
+
"type": "number",
|
|
59273
|
+
"description": "Start of current billing period (may be absent for incomplete subscriptions)"
|
|
59274
|
+
},
|
|
59275
|
+
"current_period_end": {
|
|
59276
|
+
"type": "number",
|
|
59277
|
+
"description": "End of current billing period (may be absent for incomplete subscriptions)"
|
|
59278
|
+
},
|
|
59279
|
+
"cancel_at_period_end": {
|
|
59280
|
+
"type": "boolean",
|
|
59281
|
+
"description": "Whether subscription cancels at period end"
|
|
59282
|
+
},
|
|
59283
|
+
"created": {
|
|
59284
|
+
"type": "number",
|
|
59285
|
+
"description": "Unix timestamp of creation"
|
|
59286
|
+
},
|
|
59287
|
+
"metadata": {
|
|
59288
|
+
"type": "object",
|
|
59289
|
+
"additionalProperties": {
|
|
59290
|
+
"type": "string"
|
|
59291
|
+
},
|
|
59292
|
+
"description": "Arbitrary metadata attached to the subscription"
|
|
59293
|
+
}
|
|
59294
|
+
},
|
|
59295
|
+
"required": [
|
|
59296
|
+
"id",
|
|
59297
|
+
"customer",
|
|
59298
|
+
"status",
|
|
59299
|
+
"cancel_at_period_end",
|
|
59300
|
+
"created"
|
|
59301
|
+
],
|
|
59302
|
+
"additionalProperties": false,
|
|
59303
|
+
"description": "Canceled subscription object"
|
|
59304
|
+
},
|
|
59305
|
+
"error": {
|
|
59306
|
+
"type": "string",
|
|
59307
|
+
"description": "Error message if operation failed"
|
|
59308
|
+
}
|
|
59309
|
+
},
|
|
59310
|
+
"required": [
|
|
59311
|
+
"operation",
|
|
59312
|
+
"success",
|
|
59313
|
+
"error"
|
|
59314
|
+
],
|
|
59315
|
+
"additionalProperties": false
|
|
59316
|
+
},
|
|
59317
|
+
{
|
|
59318
|
+
"type": "object",
|
|
59319
|
+
"properties": {
|
|
59320
|
+
"operation": {
|
|
59321
|
+
"type": "string",
|
|
59322
|
+
"enum": [
|
|
59323
|
+
"list_payment_links"
|
|
59324
|
+
]
|
|
59325
|
+
},
|
|
59326
|
+
"success": {
|
|
59327
|
+
"type": "boolean",
|
|
59328
|
+
"description": "Whether the operation succeeded"
|
|
59329
|
+
},
|
|
59330
|
+
"payment_links": {
|
|
59331
|
+
"type": "array",
|
|
59332
|
+
"items": {
|
|
59333
|
+
"type": "object",
|
|
59334
|
+
"properties": {
|
|
59335
|
+
"id": {
|
|
59336
|
+
"type": "string",
|
|
59337
|
+
"description": "Unique Stripe payment link identifier (plink_xxx)"
|
|
59338
|
+
},
|
|
59339
|
+
"url": {
|
|
59340
|
+
"type": "string",
|
|
59341
|
+
"description": "The public URL of the payment link"
|
|
59342
|
+
},
|
|
59343
|
+
"active": {
|
|
59344
|
+
"type": "boolean",
|
|
59345
|
+
"description": "Whether the payment link is active"
|
|
59346
|
+
},
|
|
59347
|
+
"created": {
|
|
59348
|
+
"type": "number",
|
|
59349
|
+
"description": "Unix timestamp of creation"
|
|
59350
|
+
},
|
|
59351
|
+
"metadata": {
|
|
59352
|
+
"type": "object",
|
|
59353
|
+
"additionalProperties": {
|
|
59354
|
+
"type": "string"
|
|
59355
|
+
},
|
|
59356
|
+
"description": "Arbitrary metadata attached to the payment link"
|
|
59357
|
+
}
|
|
59358
|
+
},
|
|
59359
|
+
"required": [
|
|
59360
|
+
"id",
|
|
59361
|
+
"url",
|
|
59362
|
+
"active"
|
|
59363
|
+
],
|
|
59364
|
+
"additionalProperties": false,
|
|
59365
|
+
"description": "Stripe payment link object"
|
|
59366
|
+
},
|
|
59367
|
+
"description": "List of payment link objects"
|
|
59368
|
+
},
|
|
59369
|
+
"error": {
|
|
59370
|
+
"type": "string",
|
|
59371
|
+
"description": "Error message if operation failed"
|
|
59372
|
+
}
|
|
59373
|
+
},
|
|
59374
|
+
"required": [
|
|
59375
|
+
"operation",
|
|
59376
|
+
"success",
|
|
59377
|
+
"error"
|
|
59378
|
+
],
|
|
59379
|
+
"additionalProperties": false
|
|
59380
|
+
},
|
|
59381
|
+
{
|
|
59382
|
+
"type": "object",
|
|
59383
|
+
"properties": {
|
|
59384
|
+
"operation": {
|
|
59385
|
+
"type": "string",
|
|
59386
|
+
"enum": [
|
|
59387
|
+
"create_subscription"
|
|
59388
|
+
]
|
|
59389
|
+
},
|
|
59390
|
+
"success": {
|
|
59391
|
+
"type": "boolean",
|
|
59392
|
+
"description": "Whether the operation succeeded"
|
|
59393
|
+
},
|
|
59394
|
+
"subscription": {
|
|
59395
|
+
"type": "object",
|
|
59396
|
+
"properties": {
|
|
59397
|
+
"id": {
|
|
59398
|
+
"type": "string",
|
|
59399
|
+
"description": "Unique subscription identifier (sub_xxx)"
|
|
59400
|
+
},
|
|
59401
|
+
"customer": {
|
|
59402
|
+
"type": "string",
|
|
59403
|
+
"description": "Customer ID"
|
|
59404
|
+
},
|
|
59405
|
+
"status": {
|
|
59406
|
+
"type": "string",
|
|
59407
|
+
"enum": [
|
|
59408
|
+
"incomplete",
|
|
59409
|
+
"incomplete_expired",
|
|
59410
|
+
"trialing",
|
|
59411
|
+
"active",
|
|
59412
|
+
"past_due",
|
|
59413
|
+
"canceled",
|
|
59414
|
+
"unpaid",
|
|
59415
|
+
"paused"
|
|
59416
|
+
],
|
|
59417
|
+
"description": "Subscription status"
|
|
59418
|
+
},
|
|
59419
|
+
"current_period_start": {
|
|
59420
|
+
"type": "number",
|
|
59421
|
+
"description": "Start of current billing period (may be absent for incomplete subscriptions)"
|
|
59422
|
+
},
|
|
59423
|
+
"current_period_end": {
|
|
59424
|
+
"type": "number",
|
|
59425
|
+
"description": "End of current billing period (may be absent for incomplete subscriptions)"
|
|
59426
|
+
},
|
|
59427
|
+
"cancel_at_period_end": {
|
|
59428
|
+
"type": "boolean",
|
|
59429
|
+
"description": "Whether subscription cancels at period end"
|
|
59430
|
+
},
|
|
59431
|
+
"created": {
|
|
59432
|
+
"type": "number",
|
|
59433
|
+
"description": "Unix timestamp of creation"
|
|
59434
|
+
},
|
|
59435
|
+
"metadata": {
|
|
59436
|
+
"type": "object",
|
|
59437
|
+
"additionalProperties": {
|
|
59438
|
+
"type": "string"
|
|
59439
|
+
},
|
|
59440
|
+
"description": "Arbitrary metadata attached to the subscription"
|
|
59441
|
+
}
|
|
59442
|
+
},
|
|
59443
|
+
"required": [
|
|
59444
|
+
"id",
|
|
59445
|
+
"customer",
|
|
59446
|
+
"status",
|
|
59447
|
+
"cancel_at_period_end",
|
|
59448
|
+
"created"
|
|
59449
|
+
],
|
|
59450
|
+
"additionalProperties": false,
|
|
59451
|
+
"description": "Created subscription object"
|
|
59452
|
+
},
|
|
59453
|
+
"error": {
|
|
59454
|
+
"type": "string",
|
|
59455
|
+
"description": "Error message if operation failed"
|
|
59456
|
+
}
|
|
59457
|
+
},
|
|
59458
|
+
"required": [
|
|
59459
|
+
"operation",
|
|
59460
|
+
"success",
|
|
59461
|
+
"error"
|
|
59462
|
+
],
|
|
59463
|
+
"additionalProperties": false
|
|
59464
|
+
}
|
|
59465
|
+
]
|
|
59466
|
+
},
|
|
59467
|
+
"usageExample": "// Create Customer example\nconst stripe_create_customer = new StripeBubble({\n operation: \"create_customer\", // Create a new customer in Stripe\n name: \"example string\", // Customer name\n email: \"example string\", // Customer email address\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the customer\n});\n\nconst result = await stripe_create_customer.action();\n// outputSchema for result.data when operation === 'create_customer':\n// {\n// operation: \"create_customer\",\n// success: boolean // Whether the operation succeeded,\n// customer: { id: string // Unique Stripe customer identifier (cus_xxx), name: string | null | undefined // Customer name, email: string | null | undefined // Customer email address, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the customer } | undefined // Created customer object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Customers example\nconst stripe_list_customers = new StripeBubble({\n operation: \"list_customers\", // List customers from Stripe\n limit: 10 // default, // Maximum number of customers to return (1-100)\n email: \"example string\", // Filter customers by email address (case-sensitive)\n});\n\nconst result = await stripe_list_customers.action();\n// outputSchema for result.data when operation === 'list_customers':\n// {\n// operation: \"list_customers\",\n// success: boolean // Whether the operation succeeded,\n// customers: { id: string // Unique Stripe customer identifier (cus_xxx), name: string | null | undefined // Customer name, email: string | null | undefined // Customer email address, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the customer }[] | undefined // List of customer objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Product example\nconst stripe_create_product = new StripeBubble({\n operation: \"create_product\", // Create a new product in Stripe\n name: \"example string\", // Product name\n description: \"example string\", // Product description\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the product\n});\n\nconst result = await stripe_create_product.action();\n// outputSchema for result.data when operation === 'create_product':\n// {\n// operation: \"create_product\",\n// success: boolean // Whether the operation succeeded,\n// product: { id: string // Unique Stripe product identifier (prod_xxx), name: string // Product name, description: string | null | undefined // Product description, active: boolean // Whether the product is currently available, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the product } | undefined // Created product object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Products example\nconst stripe_list_products = new StripeBubble({\n operation: \"list_products\", // List products from Stripe\n limit: 10 // default, // Maximum number of products to return (1-100)\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_products.action();\n// outputSchema for result.data when operation === 'list_products':\n// {\n// operation: \"list_products\",\n// success: boolean // Whether the operation succeeded,\n// products: { id: string // Unique Stripe product identifier (prod_xxx), name: string // Product name, description: string | null | undefined // Product description, active: boolean // Whether the product is currently available, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the product }[] | undefined // List of product objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Price example\nconst stripe_create_price = new StripeBubble({\n operation: \"create_price\", // Create a new price for a product\n product: \"example string\", // ID of the product this price is for\n unit_amount: 42, // Price in smallest currency unit (e.g., cents for USD)\n currency: \"usd\" // default, // Three-letter ISO currency code (e.g., \"usd\")\n recurring: { interval: \"day\" // options: \"day\", \"week\", \"month\", \"year\" // Billing interval, interval_count: 1 // default // Number of intervals between billings }, // Recurring pricing details (omit for one-time prices)\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the price\n});\n\nconst result = await stripe_create_price.action();\n// outputSchema for result.data when operation === 'create_price':\n// {\n// operation: \"create_price\",\n// success: boolean // Whether the operation succeeded,\n// price: { id: string // Unique Stripe price identifier (price_xxx), product: string // ID of the product this price is for, unit_amount: number | null // Price in the smallest currency unit (e.g., cents), currency: string // Three-letter ISO currency code, type: \"one_time\" | \"recurring\" // Type of pricing (one-time or recurring), active: boolean // Whether the price is currently active, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the price } | undefined // Created price object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Prices example\nconst stripe_list_prices = new StripeBubble({\n operation: \"list_prices\", // List prices from Stripe\n limit: 10 // default, // Maximum number of prices to return (1-100)\n product: \"example string\", // Filter by product ID\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_prices.action();\n// outputSchema for result.data when operation === 'list_prices':\n// {\n// operation: \"list_prices\",\n// success: boolean // Whether the operation succeeded,\n// prices: { id: string // Unique Stripe price identifier (price_xxx), product: string // ID of the product this price is for, unit_amount: number | null // Price in the smallest currency unit (e.g., cents), currency: string // Three-letter ISO currency code, type: \"one_time\" | \"recurring\" // Type of pricing (one-time or recurring), active: boolean // Whether the price is currently active, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the price }[] | undefined // List of price objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Payment Link example\nconst stripe_create_payment_link = new StripeBubble({\n operation: \"create_payment_link\", // Create a payment link for a price\n price: \"example string\", // ID of the price to create payment link for\n quantity: 1 // default, // Quantity of items in the payment link\n redirect_url: \"example string\", // URL to redirect after successful payment\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the payment link\n});\n\nconst result = await stripe_create_payment_link.action();\n// outputSchema for result.data when operation === 'create_payment_link':\n// {\n// operation: \"create_payment_link\",\n// success: boolean // Whether the operation succeeded,\n// payment_link: { id: string // Unique Stripe payment link identifier (plink_xxx), url: string // The public URL of the payment link, active: boolean // Whether the payment link is active, created: number | undefined // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment link } | undefined // Created payment link object,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Invoice example\nconst stripe_create_invoice = new StripeBubble({\n operation: \"create_invoice\", // Create a new invoice for a customer\n customer: \"example string\", // ID of the customer to invoice\n auto_advance: true // default, // Whether to auto-finalize the invoice\n collection_method: \"charge_automatically\" // options: \"charge_automatically\", \"send_invoice\", // How to collect payment\n days_until_due: 42, // Days until invoice is due (for send_invoice collection)\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the invoice\n});\n\nconst result = await stripe_create_invoice.action();\n// outputSchema for result.data when operation === 'create_invoice':\n// {\n// operation: \"create_invoice\",\n// success: boolean // Whether the operation succeeded,\n// invoice: { id: string // Unique Stripe invoice identifier (in_xxx), customer: string | null // ID of the customer, status: \"draft\" | \"open\" | \"paid\" | \"uncollectible\" | \"void\" | null // Invoice status, total: number // Total amount in smallest currency unit, currency: string // Three-letter ISO currency code, created: number | undefined // Unix timestamp of creation, hosted_invoice_url: string | null | undefined // URL for the hosted invoice page, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice } | undefined // Created invoice object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Invoices example\nconst stripe_list_invoices = new StripeBubble({\n operation: \"list_invoices\", // List invoices from Stripe\n limit: 10 // default, // Maximum number of invoices to return (1-100)\n customer: \"example string\", // Filter by customer ID\n status: \"draft\" // options: \"draft\", \"open\", \"paid\", \"uncollectible\", \"void\", // Filter by invoice status\n});\n\nconst result = await stripe_list_invoices.action();\n// outputSchema for result.data when operation === 'list_invoices':\n// {\n// operation: \"list_invoices\",\n// success: boolean // Whether the operation succeeded,\n// invoices: { id: string // Unique Stripe invoice identifier (in_xxx), customer: string | null // ID of the customer, status: \"draft\" | \"open\" | \"paid\" | \"uncollectible\" | \"void\" | null // Invoice status, total: number // Total amount in smallest currency unit, currency: string // Three-letter ISO currency code, created: number | undefined // Unix timestamp of creation, hosted_invoice_url: string | null | undefined // URL for the hosted invoice page, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the invoice }[] | undefined // List of invoice objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Get Balance example\nconst stripe_get_balance = new StripeBubble({\n operation: \"get_balance\", // Retrieve the current account balance\n});\n\nconst result = await stripe_get_balance.action();\n// outputSchema for result.data when operation === 'get_balance':\n// {\n// operation: \"get_balance\",\n// success: boolean // Whether the operation succeeded,\n// balance: { available: { amount: number // Amount available, currency: string // Currency code }[] // Funds available for payout, pending: { amount: number // Amount pending, currency: string // Currency code }[] // Funds not yet available } | undefined // Account balance,\n// error: string // Error message if operation failed\n// }\n\n\n// List Payment Intents example\nconst stripe_list_payment_intents = new StripeBubble({\n operation: \"list_payment_intents\", // List payment intents from Stripe\n limit: 10 // default, // Maximum number of payment intents to return (1-100)\n customer: \"example string\", // Filter by customer ID\n});\n\nconst result = await stripe_list_payment_intents.action();\n// outputSchema for result.data when operation === 'list_payment_intents':\n// {\n// operation: \"list_payment_intents\",\n// success: boolean // Whether the operation succeeded,\n// payment_intents: { id: string // Unique payment intent identifier (pi_xxx), amount: number // Amount in smallest currency unit, currency: string // Three-letter ISO currency code, status: \"requires_payment_method\" | \"requires_confirmation\" | \"requires_action\" | \"processing\" | \"requires_capture\" | \"canceled\" | \"succeeded\" // Payment intent status, customer: string | null | undefined // Customer ID if attached, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment intent }[] | undefined // List of payment intent objects,\n// error: string // Error message if operation failed\n// }\n\n\n// List Subscriptions example\nconst stripe_list_subscriptions = new StripeBubble({\n operation: \"list_subscriptions\", // List subscriptions from Stripe\n limit: 10 // default, // Maximum number of subscriptions to return (1-100)\n customer: \"example string\", // Filter by customer ID\n status: \"incomplete\" // options: \"incomplete\", \"incomplete_expired\", \"trialing\", \"active\", \"past_due\", \"canceled\", \"unpaid\", \"paused\", \"all\", // Filter by subscription status\n});\n\nconst result = await stripe_list_subscriptions.action();\n// outputSchema for result.data when operation === 'list_subscriptions':\n// {\n// operation: \"list_subscriptions\",\n// success: boolean // Whether the operation succeeded,\n// subscriptions: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription }[] | undefined // List of subscription objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Cancel Subscription example\nconst stripe_cancel_subscription = new StripeBubble({\n operation: \"cancel_subscription\", // Cancel a subscription\n subscription_id: \"example string\", // ID of the subscription to cancel\n cancel_at_period_end: false // default, // Whether to cancel at the end of the current period\n});\n\nconst result = await stripe_cancel_subscription.action();\n// outputSchema for result.data when operation === 'cancel_subscription':\n// {\n// operation: \"cancel_subscription\",\n// success: boolean // Whether the operation succeeded,\n// subscription: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription } | undefined // Canceled subscription object,\n// error: string // Error message if operation failed\n// }\n\n\n// List Payment Links example\nconst stripe_list_payment_links = new StripeBubble({\n operation: \"list_payment_links\", // List payment links from Stripe\n limit: 10 // default, // Maximum number of payment links to return (1-100)\n active: true, // Filter by active status\n});\n\nconst result = await stripe_list_payment_links.action();\n// outputSchema for result.data when operation === 'list_payment_links':\n// {\n// operation: \"list_payment_links\",\n// success: boolean // Whether the operation succeeded,\n// payment_links: { id: string // Unique Stripe payment link identifier (plink_xxx), url: string // The public URL of the payment link, active: boolean // Whether the payment link is active, created: number | undefined // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the payment link }[] | undefined // List of payment link objects,\n// error: string // Error message if operation failed\n// }\n\n\n// Create Subscription example\nconst stripe_create_subscription = new StripeBubble({\n operation: \"create_subscription\", // Create a new subscription for a customer\n customer: \"example string\", // ID of the customer to subscribe\n price: \"example string\", // ID of the recurring price to subscribe to\n trial_period_days: 42, // Number of trial period days before billing starts\n payment_behavior: \"default_incomplete\" // options: \"default_incomplete\", \"error_if_incomplete\", \"allow_incomplete\", // How to handle payment failures. Use default_incomplete to create without payment method\n metadata: { \"example_key\": \"example string\" }, // Arbitrary metadata to attach to the subscription\n});\n\nconst result = await stripe_create_subscription.action();\n// outputSchema for result.data when operation === 'create_subscription':\n// {\n// operation: \"create_subscription\",\n// success: boolean // Whether the operation succeeded,\n// subscription: { id: string // Unique subscription identifier (sub_xxx), customer: string // Customer ID, status: \"incomplete\" | \"incomplete_expired\" | \"trialing\" | \"active\" | \"past_due\" | \"canceled\" | \"unpaid\" | \"paused\" // Subscription status, current_period_start: number | undefined // Start of current billing period (may be absent for incomplete subscriptions), current_period_end: number | undefined // End of current billing period (may be absent for incomplete subscriptions), cancel_at_period_end: boolean // Whether subscription cancels at period end, created: number // Unix timestamp of creation, metadata: Record<string, string> | undefined // Arbitrary metadata attached to the subscription } | undefined // Created subscription object,\n// error: string // Error message if operation failed\n// }\n\n\n// Always check success status before using data\nif (!result.success) {\n throw new Error(`stripe failed: ${result.error}`);\n}\n\n// Access the actual data\nconst actualData = result.data;\nconsole.log(actualData);",
|
|
59468
|
+
"requiredCredentials": [
|
|
59469
|
+
"STRIPE_CRED"
|
|
59470
|
+
]
|
|
57667
59471
|
}
|
|
57668
59472
|
]
|
|
57669
59473
|
}
|