-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_stripe: Normalize stripe fixtures.
Normalize generated fixtures for exp_month, exp_year and postal code.
- Loading branch information
Showing
979 changed files
with
16,723 additions
and
7,889 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
"country": "US", | ||
"line1": "123 Main St", | ||
"line2": null, | ||
"postal_code": "94105", | ||
"postal_code": "12345", | ||
"state": "CA" | ||
}, | ||
"email": null, | ||
|
@@ -63,8 +63,8 @@ | |
"cvc_check": "pass" | ||
}, | ||
"country": "US", | ||
"exp_month": 8, | ||
"exp_year": 2025, | ||
"exp_month": 1, | ||
"exp_year": 9999, | ||
"extended_authorization": { | ||
"status": "disabled" | ||
}, | ||
|
@@ -92,6 +92,7 @@ | |
}, | ||
"type": "card" | ||
}, | ||
"radar_options": {}, | ||
"receipt_email": "[email protected]", | ||
"receipt_number": null, | ||
"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap", | ||
|
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
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
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
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
81 changes: 81 additions & 0 deletions
81
corporate/tests/stripe_fixtures/add_minimum_licenses--Customer.retrieve.5.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,81 @@ | ||
{ | ||
"address": null, | ||
"balance": 0, | ||
"created": 1000000000, | ||
"currency": null, | ||
"default_currency": null, | ||
"default_source": null, | ||
"delinquent": false, | ||
"description": "zulip (Zulip Dev)", | ||
"discount": null, | ||
"email": "[email protected]", | ||
"id": "add_minimum_licenses--Customer.create.1.json", | ||
"invoice_prefix": "NORMALIZED", | ||
"invoice_settings": { | ||
"custom_fields": null, | ||
"default_payment_method": { | ||
"allow_redisplay": "unspecified", | ||
"billing_details": { | ||
"address": { | ||
"city": "San Francisco", | ||
"country": "US", | ||
"line1": "123 Main St", | ||
"line2": null, | ||
"postal_code": "12345", | ||
"state": "CA" | ||
}, | ||
"email": null, | ||
"name": "John Doe", | ||
"phone": null | ||
}, | ||
"card": { | ||
"brand": "visa", | ||
"checks": { | ||
"address_line1_check": "pass", | ||
"address_postal_code_check": "pass", | ||
"cvc_check": "pass" | ||
}, | ||
"country": "US", | ||
"display_brand": "visa", | ||
"exp_month": 1, | ||
"exp_year": 9999, | ||
"fingerprint": "NORMALIZED", | ||
"funding": "credit", | ||
"generated_from": null, | ||
"last4": "4242", | ||
"networks": { | ||
"available": [ | ||
"visa" | ||
], | ||
"preferred": null | ||
}, | ||
"three_d_secure_usage": { | ||
"supported": true | ||
}, | ||
"wallet": null | ||
}, | ||
"created": 1000000000, | ||
"customer": "add_minimum_licenses--Customer.create.1.json", | ||
"id": "add_minimum_licenses--Customer.retrieve.1.json", | ||
"livemode": false, | ||
"metadata": {}, | ||
"object": "payment_method", | ||
"type": "card" | ||
}, | ||
"footer": null, | ||
"rendering_options": null | ||
}, | ||
"livemode": false, | ||
"metadata": { | ||
"realm_id": "1", | ||
"realm_str": "zulip" | ||
}, | ||
"name": null, | ||
"next_invoice_sequence": 1, | ||
"object": "customer", | ||
"phone": null, | ||
"preferred_locales": [], | ||
"shipping": null, | ||
"tax_exempt": "none", | ||
"test_clock": null | ||
} |
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
"country": "US", | ||
"line1": "123 Main St", | ||
"line2": null, | ||
"postal_code": "94105", | ||
"postal_code": "12345", | ||
"state": "CA" | ||
}, | ||
"email": null, | ||
|
@@ -82,8 +82,8 @@ | |
"cvc_check": "pass" | ||
}, | ||
"country": "US", | ||
"exp_month": 8, | ||
"exp_year": 2025, | ||
"exp_month": 1, | ||
"exp_year": 9999, | ||
"extended_authorization": { | ||
"status": "disabled" | ||
}, | ||
|
@@ -111,6 +111,7 @@ | |
}, | ||
"type": "card" | ||
}, | ||
"radar_options": {}, | ||
"receipt_email": "[email protected]", | ||
"receipt_number": null, | ||
"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap", | ||
|
@@ -184,7 +185,7 @@ | |
"id": "add_minimum_licenses--Event.list.2.json", | ||
"livemode": false, | ||
"object": "event", | ||
"pending_webhooks": 0, | ||
"pending_webhooks": 1, | ||
"request": { | ||
"id": "add_minimum_licenses--Event.list.2.json", | ||
"idempotency_key": "00000000-0000-0000-0000-000000000000" | ||
|
@@ -209,7 +210,7 @@ | |
"country": "US", | ||
"line1": "123 Main St", | ||
"line2": null, | ||
"postal_code": "94105", | ||
"postal_code": "12345", | ||
"state": "CA" | ||
}, | ||
"email": null, | ||
|
@@ -258,8 +259,8 @@ | |
"cvc_check": "pass" | ||
}, | ||
"country": "US", | ||
"exp_month": 8, | ||
"exp_year": 2025, | ||
"exp_month": 1, | ||
"exp_year": 9999, | ||
"extended_authorization": { | ||
"status": "disabled" | ||
}, | ||
|
@@ -287,6 +288,7 @@ | |
}, | ||
"type": "card" | ||
}, | ||
"radar_options": {}, | ||
"receipt_email": "[email protected]", | ||
"receipt_number": null, | ||
"receipt_url": "https://pay.stripe.com/receipts/invoices/NORMALIZED?s=ap", | ||
|
@@ -392,7 +394,7 @@ | |
"metadata": {}, | ||
"object": "line_item", | ||
"period": { | ||
"end": 1357095845, | ||
"end": 1357015845, | ||
"start": 1325473445 | ||
}, | ||
"plan": null, | ||
|
@@ -466,7 +468,9 @@ | |
"amount_tax_display": null, | ||
"pdf": { | ||
"page_size": "letter" | ||
} | ||
}, | ||
"template": null, | ||
"template_version": null | ||
}, | ||
"rendering_options": null, | ||
"shipping_cost": null, | ||
|
@@ -493,7 +497,7 @@ | |
"total_excluding_tax": 100000, | ||
"total_tax_amounts": [], | ||
"transfer_data": null, | ||
"webhooks_delivered_at": 1000000000 | ||
"webhooks_delivered_at": null | ||
} | ||
}, | ||
"id": "add_minimum_licenses--Event.list.2.json", | ||
|
@@ -579,7 +583,7 @@ | |
"metadata": {}, | ||
"object": "line_item", | ||
"period": { | ||
"end": 1357095845, | ||
"end": 1357015845, | ||
"start": 1325473445 | ||
}, | ||
"plan": null, | ||
|
@@ -653,7 +657,9 @@ | |
"amount_tax_display": null, | ||
"pdf": { | ||
"page_size": "letter" | ||
} | ||
}, | ||
"template": null, | ||
"template_version": null | ||
}, | ||
"rendering_options": null, | ||
"shipping_cost": null, | ||
|
@@ -680,7 +686,7 @@ | |
"total_excluding_tax": 100000, | ||
"total_tax_amounts": [], | ||
"transfer_data": null, | ||
"webhooks_delivered_at": 1000000000 | ||
"webhooks_delivered_at": null | ||
}, | ||
"previous_attributes": { | ||
"effective_at": null, | ||
|
@@ -860,7 +866,7 @@ | |
"metadata": {}, | ||
"object": "line_item", | ||
"period": { | ||
"end": 1357095845, | ||
"end": 1357015845, | ||
"start": 1325473445 | ||
}, | ||
"plan": null, | ||
|
@@ -934,7 +940,9 @@ | |
"amount_tax_display": null, | ||
"pdf": { | ||
"page_size": "auto" | ||
} | ||
}, | ||
"template": null, | ||
"template_version": null | ||
}, | ||
"rendering_options": null, | ||
"shipping_cost": null, | ||
|
@@ -992,7 +1000,7 @@ | |
"metadata": {}, | ||
"object": "invoiceitem", | ||
"period": { | ||
"end": 1357095845, | ||
"end": 1357015845, | ||
"start": 1325473445 | ||
}, | ||
"plan": null, | ||
|
Oops, something went wrong.