Skip to content

Commit

Permalink
test_stripe: Normalize stripe fixtures.
Browse files Browse the repository at this point in the history
Normalize generated fixtures for exp_month, exp_year and postal code.
  • Loading branch information
amanagr authored and timabbott committed Sep 19, 2024
1 parent 4d8e6ba commit 9a1ad10
Show file tree
Hide file tree
Showing 979 changed files with 16,723 additions and 7,889 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"country": "US",
"line1": "123 Main St",
"line2": null,
"postal_code": "94105",
"postal_code": "12345",
"state": "CA"
},
"email": null,
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"country": "US",
"line1": "123 Main St",
"line2": null,
"postal_code": "94105",
"postal_code": "12345",
"state": "CA"
},
"email": null,
Expand All @@ -37,8 +37,8 @@
},
"country": "US",
"display_brand": "visa",
"exp_month": 8,
"exp_year": 2025,
"exp_month": 1,
"exp_year": 9999,
"fingerprint": "NORMALIZED",
"funding": "credit",
"generated_from": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"country": "US",
"line1": "123 Main St",
"line2": null,
"postal_code": "94105",
"postal_code": "12345",
"state": "CA"
},
"email": null,
Expand All @@ -37,8 +37,8 @@
},
"country": "US",
"display_brand": "visa",
"exp_month": 8,
"exp_year": 2025,
"exp_month": 1,
"exp_year": 9999,
"fingerprint": "NORMALIZED",
"funding": "credit",
"generated_from": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"country": "US",
"line1": "123 Main St",
"line2": null,
"postal_code": "94105",
"postal_code": "12345",
"state": "CA"
},
"email": null,
Expand All @@ -37,8 +37,8 @@
},
"country": "US",
"display_brand": "visa",
"exp_month": 8,
"exp_year": 2025,
"exp_month": 1,
"exp_year": 9999,
"fingerprint": "NORMALIZED",
"funding": "credit",
"generated_from": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"country": "US",
"line1": "123 Main St",
"line2": null,
"postal_code": "94105",
"postal_code": "12345",
"state": "CA"
},
"email": null,
Expand All @@ -37,8 +37,8 @@
},
"country": "US",
"display_brand": "visa",
"exp_month": 8,
"exp_year": 2025,
"exp_month": 1,
"exp_year": 9999,
"fingerprint": "NORMALIZED",
"funding": "credit",
"generated_from": null,
Expand Down
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
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"country": "US",
"line1": "123 Main St",
"line2": null,
"postal_code": "94105",
"postal_code": "12345",
"state": "CA"
},
"email": null,
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand All @@ -209,7 +210,7 @@
"country": "US",
"line1": "123 Main St",
"line2": null,
"postal_code": "94105",
"postal_code": "12345",
"state": "CA"
},
"email": null,
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -392,7 +394,7 @@
"metadata": {},
"object": "line_item",
"period": {
"end": 1357095845,
"end": 1357015845,
"start": 1325473445
},
"plan": null,
Expand Down Expand Up @@ -466,7 +468,9 @@
"amount_tax_display": null,
"pdf": {
"page_size": "letter"
}
},
"template": null,
"template_version": null
},
"rendering_options": null,
"shipping_cost": null,
Expand All @@ -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",
Expand Down Expand Up @@ -579,7 +583,7 @@
"metadata": {},
"object": "line_item",
"period": {
"end": 1357095845,
"end": 1357015845,
"start": 1325473445
},
"plan": null,
Expand Down Expand Up @@ -653,7 +657,9 @@
"amount_tax_display": null,
"pdf": {
"page_size": "letter"
}
},
"template": null,
"template_version": null
},
"rendering_options": null,
"shipping_cost": null,
Expand All @@ -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,
Expand Down Expand Up @@ -860,7 +866,7 @@
"metadata": {},
"object": "line_item",
"period": {
"end": 1357095845,
"end": 1357015845,
"start": 1325473445
},
"plan": null,
Expand Down Expand Up @@ -934,7 +940,9 @@
"amount_tax_display": null,
"pdf": {
"page_size": "auto"
}
},
"template": null,
"template_version": null
},
"rendering_options": null,
"shipping_cost": null,
Expand Down Expand Up @@ -992,7 +1000,7 @@
"metadata": {},
"object": "invoiceitem",
"period": {
"end": 1357095845,
"end": 1357015845,
"start": 1325473445
},
"plan": null,
Expand Down
Loading

0 comments on commit 9a1ad10

Please sign in to comment.