@@ -67,8 +67,8 @@ definitions:
67
67
http_codes :
68
68
- 404
69
69
error_message : >-
70
- Data was not found. Error message: {{ response['error']['message'] }} If this is a path for getting
71
- child attributes like /v1/checkout/sessions/<session_id>/line_items when running the incremental sync,
70
+ Data was not found. Error message: {{ response['error']['message'] }} If this is a path for getting
71
+ child attributes like /v1/checkout/sessions/<session_id>/line_items when running the incremental sync,
72
72
you may safely ignore this warning.
73
73
bearer_authenticator :
74
74
type : BearerAuthenticator
@@ -308,6 +308,8 @@ definitions:
308
308
$parameters :
309
309
request_parameters :
310
310
types[] : ' {{["customer.created", "customer.updated", "customer.deleted"]}}'
311
+ cursor_field : updated
312
+ lookback_window_days : 1
311
313
312
314
subscriptions :
313
315
type : StateDelegatingStream
@@ -352,6 +354,8 @@ definitions:
352
354
$parameters :
353
355
request_parameters :
354
356
types[] : ' {{["invoice.created", "invoice.deleted", "invoice.finalization_failed", "invoice.finalized", "invoice.marked_uncollectible", "invoice.overdue", "invoice.paid", "invoice.payment_action_required", "invoice.payment_failed", "invoice.payment_succeeded", "invoice.sent", "invoice.updated", "invoice.voided", "invoice.will_be_due"]}}'
357
+ cursor_field : updated
358
+ lookback_window_days : 1
355
359
356
360
transfers :
357
361
type : StateDelegatingStream
@@ -866,27 +870,32 @@ definitions:
866
870
retriever :
867
871
$ref : " #/definitions/base_retriever"
868
872
$parameters :
869
- path : customers/{{ stream_partition .customer_id }}/balance_transactions
873
+ path : customers/{{ stream_slice .customer_id }}/balance_transactions
870
874
partition_router :
871
- type : SubstreamPartitionRouter
875
+ type : CustomPartitionRouter
876
+ class_name : source_stripe.components.CustomerIdPartitionRouter
872
877
parent_stream_configs :
873
878
- type : ParentStreamConfig
874
879
parent_key : id
875
880
partition_field : customer_id
876
881
stream :
877
882
$ref : " #/definitions/streams/customers"
878
883
incremental_dependency : true
879
- # This stream is not truly incremental on the child level.
880
- # We're configuring it this way to support incremental syncs on the parent only,
881
- # which helps reduce the size of the state.
884
+ - type : ParentStreamConfig
885
+ parent_key : customer
886
+ partition_field : customer_id
887
+ stream :
888
+ $ref : " #/definitions/streams/invoices"
889
+ incremental_dependency : true
882
890
incremental_sync :
883
891
$ref : " #/definitions/entity_single_slice_cursor"
884
892
cursor_field : created
893
+ lookback_window_days : 2
885
894
global_substream_cursor : true
886
895
transformations :
887
896
- type : RemoveFields
888
897
field_pointers :
889
- - - updated # Remove field that added in entity_stream
898
+ - - updated
890
899
891
900
payout_balance_transactions :
892
901
$ref : " #/definitions/entity_stream"
0 commit comments