Skip to content

Commit c943ff8

Browse files
committed
source-stripe-native: Support Connected Accounts
Enhance the Stripe source connector to support capture across multiple connected accounts. Key changes include: - Add account_id field to Stripe object models - Fetch connected account and platform account IDs during resource discovery - Modify incremental and backfill fetch methods to support account-specific replication using `Stripe-Account` HTTP header - Update resource generation to create subtasks for each connected account each with their own state - Added validation to require backfilling all collections when `capture_connected_accounts` propertey changes
1 parent 503dbdb commit c943ff8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+3184
-2286
lines changed

source-stripe-native/acmeCo/Accounts.schema.yaml

+14-2
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,29 @@ $defs:
2121
additionalProperties: true
2222
properties:
2323
_meta:
24-
allOf:
25-
- $ref: "#/$defs/Meta"
24+
$ref: "#/$defs/Meta"
2625
default:
2726
op: u
2827
row_id: -1
2928
description: Document metadata
3029
id:
3130
title: Id
3231
type: string
32+
object:
33+
title: Object
34+
type: string
35+
account_id:
36+
anyOf:
37+
- type: string
38+
- type: "null"
39+
description: The account ID associated with the resource.
40+
title: Account Id
41+
created:
42+
title: Created
43+
type: integer
3344
required:
3445
- id
46+
- object
3547
title: Accounts
3648
type: object
3749
x-infer-schema: true

source-stripe-native/acmeCo/ApplicationFees.schema.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,30 @@ $defs:
2121
additionalProperties: true
2222
properties:
2323
_meta:
24-
allOf:
25-
- $ref: "#/$defs/Meta"
24+
$ref: "#/$defs/Meta"
2625
default:
2726
op: u
2827
row_id: -1
2928
description: Document metadata
3029
id:
3130
title: Id
3231
type: string
32+
object:
33+
title: Object
34+
type: string
35+
account_id:
36+
anyOf:
37+
- type: string
38+
- type: "null"
39+
description: The account ID associated with the resource.
40+
title: Account Id
41+
created:
42+
title: Created
43+
type: integer
3344
required:
3445
- id
46+
- object
47+
- created
3548
title: ApplicationFees
3649
type: object
3750
x-infer-schema: true

source-stripe-native/acmeCo/ApplicationFeesRefunds.schema.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,29 @@ $defs:
1919
title: Meta
2020
type: object
2121
additionalProperties: true
22-
description: "Child Stream\nParent Stream: ApplicationFees"
22+
description: "Parent Stream: ApplicationFees"
2323
properties:
2424
_meta:
25-
allOf:
26-
- $ref: "#/$defs/Meta"
25+
$ref: "#/$defs/Meta"
2726
default:
2827
op: u
2928
row_id: -1
3029
description: Document metadata
3130
id:
3231
title: Id
3332
type: string
34-
parent_id:
33+
object:
34+
title: Object
35+
type: string
36+
account_id:
3537
anyOf:
3638
- type: string
3739
- type: "null"
38-
default: ~
39-
title: Parent Id
40+
description: The account ID associated with the resource.
41+
title: Account Id
4042
required:
4143
- id
44+
- object
4245
title: ApplicationFeesRefunds
4346
type: object
4447
x-infer-schema: true

source-stripe-native/acmeCo/BalanceTransactions.schema.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,30 @@ additionalProperties: true
2222
description: Incremental stream with no Events
2323
properties:
2424
_meta:
25-
allOf:
26-
- $ref: "#/$defs/Meta"
25+
$ref: "#/$defs/Meta"
2726
default:
2827
op: u
2928
row_id: -1
3029
description: Document metadata
3130
id:
3231
title: Id
3332
type: string
33+
object:
34+
title: Object
35+
type: string
36+
account_id:
37+
anyOf:
38+
- type: string
39+
- type: "null"
40+
description: The account ID associated with the resource.
41+
title: Account Id
42+
created:
43+
title: Created
44+
type: integer
3445
required:
3546
- id
47+
- object
48+
- created
3649
title: BalanceTransactions
3750
type: object
3851
x-infer-schema: true

source-stripe-native/acmeCo/BankAccounts.schema.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,29 @@ $defs:
1919
title: Meta
2020
type: object
2121
additionalProperties: true
22-
description: "Child Stream\nParent Stream: Customers"
22+
description: "Parent Stream: Customers"
2323
properties:
2424
_meta:
25-
allOf:
26-
- $ref: "#/$defs/Meta"
25+
$ref: "#/$defs/Meta"
2726
default:
2827
op: u
2928
row_id: -1
3029
description: Document metadata
3130
id:
3231
title: Id
3332
type: string
34-
parent_id:
33+
object:
34+
title: Object
35+
type: string
36+
account_id:
3537
anyOf:
3638
- type: string
3739
- type: "null"
38-
default: ~
39-
title: Parent Id
40+
description: The account ID associated with the resource.
41+
title: Account Id
4042
required:
4143
- id
44+
- object
4245
title: Bank_Accounts
4346
type: object
4447
x-infer-schema: true

source-stripe-native/acmeCo/Cards.schema.yaml

+9-6
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,29 @@ $defs:
1919
title: Meta
2020
type: object
2121
additionalProperties: true
22-
description: "Child Stream\nParent Stream: Customers"
22+
description: "Parent Stream: Customers\n\nWhen backfilling, Cards behaves as a child stream. But during incremental replication,\nCards listens to distinct events that contain Card documents, meaning it isn't a child stream."
2323
properties:
2424
_meta:
25-
allOf:
26-
- $ref: "#/$defs/Meta"
25+
$ref: "#/$defs/Meta"
2726
default:
2827
op: u
2928
row_id: -1
3029
description: Document metadata
3130
id:
3231
title: Id
3332
type: string
34-
parent_id:
33+
object:
34+
title: Object
35+
type: string
36+
account_id:
3537
anyOf:
3638
- type: string
3739
- type: "null"
38-
default: ~
39-
title: Parent Id
40+
description: The account ID associated with the resource.
41+
title: Account Id
4042
required:
4143
- id
44+
- object
4245
title: Cards
4346
type: object
4447
x-infer-schema: true

source-stripe-native/acmeCo/Charges.schema.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,30 @@ $defs:
2121
additionalProperties: true
2222
properties:
2323
_meta:
24-
allOf:
25-
- $ref: "#/$defs/Meta"
24+
$ref: "#/$defs/Meta"
2625
default:
2726
op: u
2827
row_id: -1
2928
description: Document metadata
3029
id:
3130
title: Id
3231
type: string
32+
object:
33+
title: Object
34+
type: string
35+
account_id:
36+
anyOf:
37+
- type: string
38+
- type: "null"
39+
description: The account ID associated with the resource.
40+
title: Account Id
41+
created:
42+
title: Created
43+
type: integer
3344
required:
3445
- id
46+
- object
47+
- created
3548
title: Charges
3649
type: object
3750
x-infer-schema: true

source-stripe-native/acmeCo/CheckoutSessions.schema.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,30 @@ $defs:
2121
additionalProperties: true
2222
properties:
2323
_meta:
24-
allOf:
25-
- $ref: "#/$defs/Meta"
24+
$ref: "#/$defs/Meta"
2625
default:
2726
op: u
2827
row_id: -1
2928
description: Document metadata
3029
id:
3130
title: Id
3231
type: string
32+
object:
33+
title: Object
34+
type: string
35+
account_id:
36+
anyOf:
37+
- type: string
38+
- type: "null"
39+
description: The account ID associated with the resource.
40+
title: Account Id
41+
created:
42+
title: Created
43+
type: integer
3344
required:
3445
- id
46+
- object
47+
- created
3548
title: CheckoutSessions
3649
type: object
3750
x-infer-schema: true

source-stripe-native/acmeCo/CheckoutSessionsLine.schema.yaml

+12-3
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,29 @@ $defs:
1919
title: Meta
2020
type: object
2121
additionalProperties: true
22-
description: "Child Stream\nParent Stream: CheckoutSessions"
22+
description: "Parent Stream: CheckoutSessions"
2323
properties:
2424
_meta:
25-
allOf:
26-
- $ref: "#/$defs/Meta"
25+
$ref: "#/$defs/Meta"
2726
default:
2827
op: u
2928
row_id: -1
3029
description: Document metadata
3130
id:
3231
title: Id
3332
type: string
33+
object:
34+
title: Object
35+
type: string
36+
account_id:
37+
anyOf:
38+
- type: string
39+
- type: "null"
40+
description: The account ID associated with the resource.
41+
title: Account Id
3442
required:
3543
- id
44+
- object
3645
title: CheckoutSessionsLine
3746
type: object
3847
x-infer-schema: true

source-stripe-native/acmeCo/Coupons.schema.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,30 @@ $defs:
2121
additionalProperties: true
2222
properties:
2323
_meta:
24-
allOf:
25-
- $ref: "#/$defs/Meta"
24+
$ref: "#/$defs/Meta"
2625
default:
2726
op: u
2827
row_id: -1
2928
description: Document metadata
3029
id:
3130
title: Id
3231
type: string
32+
object:
33+
title: Object
34+
type: string
35+
account_id:
36+
anyOf:
37+
- type: string
38+
- type: "null"
39+
description: The account ID associated with the resource.
40+
title: Account Id
41+
created:
42+
title: Created
43+
type: integer
3344
required:
3445
- id
46+
- object
47+
- created
3548
title: Coupons
3649
type: object
3750
x-infer-schema: true

source-stripe-native/acmeCo/CreditNotes.schema.yaml

+15-2
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,30 @@ $defs:
2121
additionalProperties: true
2222
properties:
2323
_meta:
24-
allOf:
25-
- $ref: "#/$defs/Meta"
24+
$ref: "#/$defs/Meta"
2625
default:
2726
op: u
2827
row_id: -1
2928
description: Document metadata
3029
id:
3130
title: Id
3231
type: string
32+
object:
33+
title: Object
34+
type: string
35+
account_id:
36+
anyOf:
37+
- type: string
38+
- type: "null"
39+
description: The account ID associated with the resource.
40+
title: Account Id
41+
created:
42+
title: Created
43+
type: integer
3344
required:
3445
- id
46+
- object
47+
- created
3548
title: CreditNotes
3649
type: object
3750
x-infer-schema: true

0 commit comments

Comments
 (0)