-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE #32871] adding other IncrementalStripeStreams
- Loading branch information
Showing
8 changed files
with
1,790 additions
and
0 deletions.
There are no files selected for viewing
376 changes: 376 additions & 0 deletions
376
airbyte-integrations/connectors/source-stripe/unit_tests/integration/test_authorizations.py
Large diffs are not rendered by default.
Oops, something went wrong.
376 changes: 376 additions & 0 deletions
376
airbyte-integrations/connectors/source-stripe/unit_tests/integration/test_cards.py
Large diffs are not rendered by default.
Oops, something went wrong.
376 changes: 376 additions & 0 deletions
376
airbyte-integrations/connectors/source-stripe/unit_tests/integration/test_reviews.py
Large diffs are not rendered by default.
Oops, something went wrong.
376 changes: 376 additions & 0 deletions
376
airbyte-integrations/connectors/source-stripe/unit_tests/integration/test_transactions.py
Large diffs are not rendered by default.
Oops, something went wrong.
142 changes: 142 additions & 0 deletions
142
...ns/connectors/source-stripe/unit_tests/resource/http/response/issuing_authorizations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
{ | ||
"object": "list", | ||
"url": "/v1/issuing/authorizations", | ||
"has_more": false, | ||
"data": [ | ||
{ | ||
"id": "iauth_1JVXl82eZvKYlo2CPIiWlzrn", | ||
"object": "issuing.authorization", | ||
"amount": 382, | ||
"amount_details": { | ||
"atm_fee": null | ||
}, | ||
"approved": false, | ||
"authorization_method": "online", | ||
"balance_transactions": [], | ||
"card": { | ||
"id": "ic_1JDmgz2eZvKYlo2CRXlTsXj6", | ||
"object": "issuing.card", | ||
"brand": "Visa", | ||
"cancellation_reason": null, | ||
"cardholder": { | ||
"id": "ich_1JDmfb2eZvKYlo2CwHUgaAxU", | ||
"object": "issuing.cardholder", | ||
"billing": { | ||
"address": { | ||
"city": "San Francisco", | ||
"country": "US", | ||
"line1": "123 Main Street", | ||
"line2": null, | ||
"postal_code": "94111", | ||
"state": "CA" | ||
} | ||
}, | ||
"company": null, | ||
"created": 1626425119, | ||
"email": "jenny.rosen@example.com", | ||
"individual": null, | ||
"livemode": false, | ||
"metadata": {}, | ||
"name": "Jenny Rosen", | ||
"phone_number": "+18008675309", | ||
"redaction": null, | ||
"requirements": { | ||
"disabled_reason": null, | ||
"past_due": [] | ||
}, | ||
"spending_controls": { | ||
"allowed_categories": [], | ||
"blocked_categories": [], | ||
"spending_limits": [], | ||
"spending_limits_currency": null | ||
}, | ||
"status": "active", | ||
"type": "individual" | ||
}, | ||
"created": 1626425206, | ||
"currency": "usd", | ||
"exp_month": 6, | ||
"exp_year": 2024, | ||
"last4": "8693", | ||
"livemode": false, | ||
"metadata": {}, | ||
"redaction": null, | ||
"replaced_by": null, | ||
"replacement_for": null, | ||
"replacement_reason": null, | ||
"shipping": null, | ||
"spending_controls": { | ||
"allowed_categories": null, | ||
"blocked_categories": null, | ||
"spending_limits": [ | ||
{ | ||
"amount": 50000, | ||
"categories": [], | ||
"interval": "daily" | ||
} | ||
], | ||
"spending_limits_currency": "usd" | ||
}, | ||
"status": "active", | ||
"type": "virtual", | ||
"wallets": { | ||
"apple_pay": { | ||
"eligible": true, | ||
"ineligible_reason": null | ||
}, | ||
"google_pay": { | ||
"eligible": true, | ||
"ineligible_reason": null | ||
}, | ||
"primary_account_identifier": null | ||
} | ||
}, | ||
"cardholder": "ich_1JDmfb2eZvKYlo2CwHUgaAxU", | ||
"created": 1630657706, | ||
"currency": "usd", | ||
"livemode": false, | ||
"merchant_amount": 382, | ||
"merchant_currency": "usd", | ||
"merchant_data": { | ||
"category": "computer_software_stores", | ||
"category_code": "5734", | ||
"city": "SAN FRANCISCO", | ||
"country": "US", | ||
"name": "STRIPE", | ||
"network_id": "1234567890", | ||
"postal_code": "94103", | ||
"state": "CA" | ||
}, | ||
"metadata": { | ||
"order_id": "6735" | ||
}, | ||
"network_data": null, | ||
"pending_request": null, | ||
"redaction": null, | ||
"request_history": [ | ||
{ | ||
"amount": 382, | ||
"amount_details": { | ||
"atm_fee": null | ||
}, | ||
"approved": false, | ||
"created": 1630657706, | ||
"currency": "usd", | ||
"merchant_amount": 382, | ||
"merchant_currency": "usd", | ||
"reason": "verification_failed", | ||
"reason_message": null | ||
} | ||
], | ||
"status": "closed", | ||
"transactions": [], | ||
"verification_data": { | ||
"address_line1_check": "not_provided", | ||
"address_postal_code_check": "not_provided", | ||
"cvc_check": "mismatch", | ||
"expiry_check": "match" | ||
}, | ||
"wallet": null | ||
} | ||
] | ||
} |
82 changes: 82 additions & 0 deletions
82
...ntegrations/connectors/source-stripe/unit_tests/resource/http/response/issuing_cards.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"object": "list", | ||
"url": "/v1/issuing/cards", | ||
"has_more": false, | ||
"data": [ | ||
{ | ||
"id": "ic_1MvSieLkdIwHu7ixn6uuO0Xu", | ||
"object": "issuing.card", | ||
"brand": "Visa", | ||
"cancellation_reason": null, | ||
"cardholder": { | ||
"id": "ich_1MsKAB2eZvKYlo2C3eZ2BdvK", | ||
"object": "issuing.cardholder", | ||
"billing": { | ||
"address": { | ||
"city": "Anytown", | ||
"country": "US", | ||
"line1": "123 Main Street", | ||
"line2": null, | ||
"postal_code": "12345", | ||
"state": "CA" | ||
} | ||
}, | ||
"company": null, | ||
"created": 1680415995, | ||
"email": null, | ||
"individual": null, | ||
"livemode": false, | ||
"metadata": {}, | ||
"name": "John Doe", | ||
"phone_number": null, | ||
"requirements": { | ||
"disabled_reason": "requirements.past_due", | ||
"past_due": [ | ||
"individual.card_issuing.user_terms_acceptance.ip", | ||
"individual.card_issuing.user_terms_acceptance.date", | ||
"individual.first_name", | ||
"individual.last_name" | ||
] | ||
}, | ||
"spending_controls": { | ||
"allowed_categories": [], | ||
"blocked_categories": [], | ||
"spending_limits": [], | ||
"spending_limits_currency": null | ||
}, | ||
"status": "active", | ||
"type": "individual" | ||
}, | ||
"created": 1681163868, | ||
"currency": "usd", | ||
"exp_month": 8, | ||
"exp_year": 2024, | ||
"last4": "4242", | ||
"livemode": false, | ||
"metadata": {}, | ||
"replaced_by": null, | ||
"replacement_for": null, | ||
"replacement_reason": null, | ||
"shipping": null, | ||
"spending_controls": { | ||
"allowed_categories": null, | ||
"blocked_categories": null, | ||
"spending_limits": [], | ||
"spending_limits_currency": null | ||
}, | ||
"status": "active", | ||
"type": "virtual", | ||
"wallets": { | ||
"apple_pay": { | ||
"eligible": false, | ||
"ineligible_reason": "missing_cardholder_contact" | ||
}, | ||
"google_pay": { | ||
"eligible": false, | ||
"ineligible_reason": "missing_cardholder_contact" | ||
}, | ||
"primary_account_identifier": null | ||
} | ||
} | ||
] | ||
} |
38 changes: 38 additions & 0 deletions
38
...ions/connectors/source-stripe/unit_tests/resource/http/response/issuing_transactions.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"object": "list", | ||
"url": "/v1/issuing/transactions", | ||
"has_more": false, | ||
"data": [ | ||
{ | ||
"id": "ipi_1MzFN1K8F4fqH0lBmFq8CjbU", | ||
"object": "issuing.transaction", | ||
"amount": -100, | ||
"amount_details": { | ||
"atm_fee": null | ||
}, | ||
"authorization": "iauth_1MzFMzK8F4fqH0lBc9VdaZUp", | ||
"balance_transaction": "txn_1MzFN1K8F4fqH0lBQPtqUmJN", | ||
"card": "ic_1MzFMxK8F4fqH0lBjIUITRYi", | ||
"cardholder": "ich_1MzFMxK8F4fqH0lBXnFW0ROG", | ||
"created": 1682065867, | ||
"currency": "usd", | ||
"dispute": null, | ||
"livemode": false, | ||
"merchant_amount": -100, | ||
"merchant_currency": "usd", | ||
"merchant_data": { | ||
"category": "computer_software_stores", | ||
"category_code": "5734", | ||
"city": "SAN FRANCISCO", | ||
"country": "US", | ||
"name": "WWWW.BROWSEBUG.BIZ", | ||
"network_id": "1234567890", | ||
"postal_code": "94103", | ||
"state": "CA" | ||
}, | ||
"metadata": {}, | ||
"type": "capture", | ||
"wallet": null | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
airbyte-integrations/connectors/source-stripe/unit_tests/resource/http/response/reviews.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
{ | ||
"object": "list", | ||
"url": "/v1/reviews", | ||
"has_more": false, | ||
"data": [ | ||
{ | ||
"id": "prv_1NVyFt2eZvKYlo2CjubqF1xm", | ||
"object": "review", | ||
"billing_zip": null, | ||
"charge": null, | ||
"closed_reason": null, | ||
"created": 1689864901, | ||
"ip_address": null, | ||
"ip_address_location": null, | ||
"livemode": false, | ||
"open": true, | ||
"opened_reason": "rule", | ||
"payment_intent": "pi_3NVy8c2eZvKYlo2C055h7pkd", | ||
"reason": "rule", | ||
"session": null | ||
} | ||
] | ||
} |