mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
billing: Further normalize timestamps in tests.
Hopefully this will make it easier still to look at diffs with GENERATE_STRIPE_FIXTURES = True.
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1575321071
|
||||
"start": 1000000005
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
|
@@ -53,7 +53,7 @@
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1575321071
|
||||
"start": 1000000005
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
|
@@ -30,7 +30,7 @@
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1575321076
|
||||
"start": 1000000002
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
|
@@ -30,7 +30,7 @@
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1575321076
|
||||
"start": 1000000002
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785080,
|
||||
"created": 1000000001,
|
||||
"currency": null,
|
||||
"default_source": "card_NORMALIZED00000000000001",
|
||||
"delinquent": false,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785080,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785081,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785081,
|
||||
"current_period_end": 1575321081,
|
||||
"current_period_start": 1543785081,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785082,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785081,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785080,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785081,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785081,
|
||||
"current_period_end": 1575321081,
|
||||
"current_period_start": 1543785081,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785082,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785081,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785080,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785081,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785081,
|
||||
"current_period_end": 1575321081,
|
||||
"current_period_start": 1543785081,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785082,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785081,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785080,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785081,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785081,
|
||||
"current_period_end": 1575321081,
|
||||
"current_period_start": 1543785081,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785082,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785081,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785080,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785081,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785081,
|
||||
"current_period_end": 1575321081,
|
||||
"current_period_start": 1543785081,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785082,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785081,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785081,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785081,
|
||||
"current_period_end": 1575321081,
|
||||
"current_period_start": 1543785081,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -16,7 +16,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785082,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785081,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
"tokenization_method": null
|
||||
},
|
||||
"client_ip": "0.0.0.0",
|
||||
"created": 1543785080,
|
||||
"created": 1000000005,
|
||||
"id": "tok_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"object": "token",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785085,
|
||||
"created": 1000000001,
|
||||
"currency": null,
|
||||
"default_source": "card_NORMALIZED00000000000001",
|
||||
"delinquent": false,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785085,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785086,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785086,
|
||||
"current_period_end": 1575321086,
|
||||
"current_period_start": 1543785086,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785087,
|
||||
"created": 1000000004,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785086,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785085,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785086,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785086,
|
||||
"current_period_end": 1575321086,
|
||||
"current_period_start": 1543785086,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785087,
|
||||
"created": 1000000004,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 123,
|
||||
"start": 1543785088,
|
||||
"start": 1000000006,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": -64000,
|
||||
"created": 1543785085,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": -64000,
|
||||
"created": 1543785085,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": "card_NORMALIZED00000000000001",
|
||||
"delinquent": false,
|
||||
|
@@ -10,7 +10,7 @@
|
||||
"charge": null,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"date": 1575321086,
|
||||
"date": 1000000003,
|
||||
"default_source": null,
|
||||
"description": "",
|
||||
"discount": null,
|
||||
@@ -30,15 +30,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1575321086,
|
||||
"start": 1543785089
|
||||
"end": 1000000003,
|
||||
"start": 1000000007
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -71,15 +71,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1575321086,
|
||||
"start": 1543785088
|
||||
"end": 1000000003,
|
||||
"start": 1000000006
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -112,15 +112,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1575321086,
|
||||
"start": 1543785088
|
||||
"end": 1000000003,
|
||||
"start": 1000000006
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,15 +152,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1606943486,
|
||||
"start": 1575321086
|
||||
"end": 1000000008,
|
||||
"start": 1000000003
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -190,19 +190,19 @@
|
||||
},
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"next_payment_attempt": 1575324686,
|
||||
"next_payment_attempt": 1000000009,
|
||||
"number": "NORMALI-0001",
|
||||
"object": "invoice",
|
||||
"paid": false,
|
||||
"payment_intent": null,
|
||||
"period_end": 1575321086,
|
||||
"period_start": 1543785086,
|
||||
"period_end": 1000000003,
|
||||
"period_start": 1000000002,
|
||||
"receipt_number": null,
|
||||
"starting_balance": 0,
|
||||
"statement_descriptor": null,
|
||||
"status": "draft",
|
||||
"subscription": "sub_NORMALIZED0001",
|
||||
"subscription_proration_date": 1543785089,
|
||||
"subscription_proration_date": 1000000007,
|
||||
"subtotal": -64000,
|
||||
"tax": 0,
|
||||
"tax_percent": 0.0,
|
||||
|
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785086,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785086,
|
||||
"current_period_end": 1575321086,
|
||||
"current_period_start": 1543785086,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -16,7 +16,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785087,
|
||||
"created": 1000000004,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785086,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,22 +1,22 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785086,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": 1543785090,
|
||||
"created": 1543785086,
|
||||
"current_period_end": 1575321086,
|
||||
"current_period_start": 1543785086,
|
||||
"canceled_at": 1000000010,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
"discount": null,
|
||||
"ended_at": 1543785090,
|
||||
"ended_at": 1000000010,
|
||||
"id": "sub_NORMALIZED0001",
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785087,
|
||||
"created": 1000000004,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 123,
|
||||
"start": 1543785088,
|
||||
"start": 1000000006,
|
||||
"status": "canceled",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,22 +1,22 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785086,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": 1543785090,
|
||||
"created": 1543785086,
|
||||
"current_period_end": 1575321086,
|
||||
"current_period_start": 1543785086,
|
||||
"canceled_at": 1000000010,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
"discount": null,
|
||||
"ended_at": 1543785090,
|
||||
"ended_at": 1000000010,
|
||||
"id": "sub_NORMALIZED0001",
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785087,
|
||||
"created": 1000000004,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 123,
|
||||
"start": 1543785088,
|
||||
"start": 1000000006,
|
||||
"status": "canceled",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785086,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785086,
|
||||
"current_period_end": 1575321086,
|
||||
"current_period_start": 1543785086,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -16,7 +16,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785087,
|
||||
"created": 1000000004,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 123,
|
||||
"start": 1543785088,
|
||||
"start": 1000000006,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
"tokenization_method": null
|
||||
},
|
||||
"client_ip": "0.0.0.0",
|
||||
"created": 1543785085,
|
||||
"created": 1000000001,
|
||||
"id": "tok_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"object": "token",
|
||||
|
@@ -31,7 +31,7 @@
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1543785096
|
||||
"start": 1000000005
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
@@ -72,7 +72,7 @@
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1543785095
|
||||
"start": 1000000006
|
||||
},
|
||||
"plan": null,
|
||||
"proration": false,
|
||||
@@ -91,7 +91,7 @@
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1575321093
|
||||
"start": 1000000002
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
|
@@ -12,7 +12,7 @@
|
||||
"object": "invoiceitem",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1543785095
|
||||
"start": 1000000006
|
||||
},
|
||||
"plan": null,
|
||||
"proration": false,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785100,
|
||||
"created": 1000000001,
|
||||
"currency": null,
|
||||
"default_source": "card_NORMALIZED00000000000001",
|
||||
"delinquent": false,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785100,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785101,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785101,
|
||||
"current_period_end": 1575321101,
|
||||
"current_period_start": 1543785101,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785102,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785101,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785100,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785101,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785101,
|
||||
"current_period_end": 1575321101,
|
||||
"current_period_start": 1543785101,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785102,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785101,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -10,7 +10,7 @@
|
||||
"charge": null,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"date": 1575321101,
|
||||
"date": 1000000003,
|
||||
"default_source": null,
|
||||
"description": "",
|
||||
"discount": null,
|
||||
@@ -29,15 +29,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1606943501,
|
||||
"start": 1575321101
|
||||
"end": 1000000005,
|
||||
"start": 1000000003
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -67,13 +67,13 @@
|
||||
},
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"next_payment_attempt": 1575324701,
|
||||
"next_payment_attempt": 1000000006,
|
||||
"number": "NORMALI-0001",
|
||||
"object": "invoice",
|
||||
"paid": false,
|
||||
"payment_intent": null,
|
||||
"period_end": 1575321101,
|
||||
"period_start": 1543785101,
|
||||
"period_end": 1000000003,
|
||||
"period_start": 1000000002,
|
||||
"receipt_number": null,
|
||||
"starting_balance": 0,
|
||||
"statement_descriptor": null,
|
||||
|
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785101,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785101,
|
||||
"current_period_end": 1575321101,
|
||||
"current_period_start": 1543785101,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -16,7 +16,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785102,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785101,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
"tokenization_method": null
|
||||
},
|
||||
"client_ip": "0.0.0.0",
|
||||
"created": 1543785100,
|
||||
"created": 1000000001,
|
||||
"id": "tok_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"object": "token",
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"invoice_prefix": "NORMA02",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "4",
|
||||
"realm_id": "7",
|
||||
"realm_str": "realm1"
|
||||
},
|
||||
"object": "customer",
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"invoice_prefix": "NORMA03",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "5",
|
||||
"realm_id": "8",
|
||||
"realm_str": "realm2"
|
||||
},
|
||||
"object": "customer",
|
||||
|
@@ -35,7 +35,7 @@
|
||||
"invoice_prefix": "NORMA02",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "4",
|
||||
"realm_id": "7",
|
||||
"realm_str": "realm1"
|
||||
},
|
||||
"object": "customer",
|
||||
|
@@ -35,7 +35,7 @@
|
||||
"invoice_prefix": "NORMA02",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "4",
|
||||
"realm_id": "7",
|
||||
"realm_str": "realm1"
|
||||
},
|
||||
"object": "customer",
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"invoice_prefix": "NORMA03",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "5",
|
||||
"realm_id": "8",
|
||||
"realm_str": "realm2"
|
||||
},
|
||||
"object": "customer",
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"invoice_prefix": "NORMA03",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "5",
|
||||
"realm_id": "8",
|
||||
"realm_str": "realm2"
|
||||
},
|
||||
"object": "customer",
|
||||
|
@@ -35,7 +35,7 @@
|
||||
"invoice_prefix": "NORMA02",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "4",
|
||||
"realm_id": "7",
|
||||
"realm_str": "realm1"
|
||||
},
|
||||
"object": "customer",
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"invoice_prefix": "NORMA03",
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "5",
|
||||
"realm_id": "8",
|
||||
"realm_str": "realm2"
|
||||
},
|
||||
"object": "customer",
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"Connection": "keep-alive",
|
||||
"Content-Length": "235",
|
||||
"Content-Type": "application/json",
|
||||
"Date": "Sun, NORMALIZED DATE 21:12:02 GMT",
|
||||
"Date": "Mon, NORMALIZED DATE 20:52:40 GMT",
|
||||
"Request-Id": "req_NORMALIZED0001",
|
||||
"Server": "nginx",
|
||||
"Strict-Transport-Security": "max-age=31556926; includeSubDomains; preload",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785123,
|
||||
"created": 1000000001,
|
||||
"currency": null,
|
||||
"default_source": null,
|
||||
"delinquent": false,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785123,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": null,
|
||||
"delinquent": false,
|
||||
@@ -28,12 +28,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "send_invoice",
|
||||
"billing_cycle_anchor": 1543785123,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785123,
|
||||
"current_period_end": 1575321123,
|
||||
"current_period_start": 1543785123,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": 30,
|
||||
"default_source": null,
|
||||
@@ -43,7 +43,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785124,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -52,7 +52,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -85,7 +85,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -102,7 +102,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 123,
|
||||
"start": 1543785123,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,52 +1,8 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785123,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"ach_credit_transfer": {
|
||||
"account_number": "test_NORMALIZED02",
|
||||
"bank_name": "TEST BANK",
|
||||
"fingerprint": "NORMALIZED000001",
|
||||
"refund_account_holder_name": null,
|
||||
"refund_account_holder_type": null,
|
||||
"refund_account_number": null,
|
||||
"refund_routing_number": null,
|
||||
"routing_number": "110000000",
|
||||
"swift_code": "TSTEZ122"
|
||||
},
|
||||
"amount": null,
|
||||
"client_secret": "src_client_secret_NORMALIZED00000000000001",
|
||||
"created": 1543785125,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"flow": "receiver",
|
||||
"id": "src_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "source",
|
||||
"owner": {
|
||||
"address": null,
|
||||
"email": "amount_0@stripe.com",
|
||||
"name": null,
|
||||
"phone": null,
|
||||
"verified_address": null,
|
||||
"verified_email": null,
|
||||
"verified_name": null,
|
||||
"verified_phone": null
|
||||
},
|
||||
"receiver": {
|
||||
"address": "000000000-test_NORMALIZED02",
|
||||
"amount_charged": 0,
|
||||
"amount_received": 0,
|
||||
"amount_returned": 0,
|
||||
"refund_attributes_method": "email",
|
||||
"refund_attributes_status": "missing"
|
||||
},
|
||||
"statement_descriptor": null,
|
||||
"status": "pending",
|
||||
"type": "ach_credit_transfer",
|
||||
"usage": "reusable"
|
||||
},
|
||||
"default_source": null,
|
||||
"delinquent": false,
|
||||
"description": "zulip (Zulip Dev)",
|
||||
"discount": null,
|
||||
@@ -61,56 +17,10 @@
|
||||
"object": "customer",
|
||||
"shipping": null,
|
||||
"sources": {
|
||||
"data": [
|
||||
{
|
||||
"ach_credit_transfer": {
|
||||
"account_number": "test_NORMALIZED02",
|
||||
"bank_name": "TEST BANK",
|
||||
"fingerprint": "NORMALIZED000001",
|
||||
"refund_account_holder_name": null,
|
||||
"refund_account_holder_type": null,
|
||||
"refund_account_number": null,
|
||||
"refund_routing_number": null,
|
||||
"routing_number": "110000000",
|
||||
"swift_code": "TSTEZ122"
|
||||
},
|
||||
"amount": null,
|
||||
"client_secret": "src_client_secret_NORMALIZED00000000000001",
|
||||
"created": 1543785125,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"flow": "receiver",
|
||||
"id": "src_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "source",
|
||||
"owner": {
|
||||
"address": null,
|
||||
"email": "amount_0@stripe.com",
|
||||
"name": null,
|
||||
"phone": null,
|
||||
"verified_address": null,
|
||||
"verified_email": null,
|
||||
"verified_name": null,
|
||||
"verified_phone": null
|
||||
},
|
||||
"receiver": {
|
||||
"address": "000000000-test_NORMALIZED02",
|
||||
"amount_charged": 0,
|
||||
"amount_received": 0,
|
||||
"amount_returned": 0,
|
||||
"refund_attributes_method": "email",
|
||||
"refund_attributes_status": "missing"
|
||||
},
|
||||
"statement_descriptor": null,
|
||||
"status": "pending",
|
||||
"type": "ach_credit_transfer",
|
||||
"usage": "reusable"
|
||||
}
|
||||
],
|
||||
"data": [],
|
||||
"has_more": false,
|
||||
"object": "list",
|
||||
"total_count": 1,
|
||||
"total_count": 0,
|
||||
"url": "/v1/customers/cus_NORMALIZED0001/sources"
|
||||
},
|
||||
"subscriptions": {
|
||||
@@ -118,12 +28,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "send_invoice",
|
||||
"billing_cycle_anchor": 1543785123,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785123,
|
||||
"current_period_end": 1575321123,
|
||||
"current_period_start": 1543785123,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": 30,
|
||||
"default_source": null,
|
||||
@@ -133,7 +43,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785124,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -142,7 +52,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -175,7 +85,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -192,7 +102,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785125,
|
||||
"start": 1000000005,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785123,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"ach_credit_transfer": {
|
||||
"account_number": "test_NORMALIZED02",
|
||||
"account_number": "test_NORMALIZED01",
|
||||
"bank_name": "TEST BANK",
|
||||
"fingerprint": "NORMALIZED000001",
|
||||
"refund_account_holder_name": null,
|
||||
@@ -16,7 +16,7 @@
|
||||
},
|
||||
"amount": null,
|
||||
"client_secret": "src_client_secret_NORMALIZED00000000000001",
|
||||
"created": 1543785125,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"flow": "receiver",
|
||||
@@ -35,7 +35,7 @@
|
||||
"verified_phone": null
|
||||
},
|
||||
"receiver": {
|
||||
"address": "000000000-test_NORMALIZED02",
|
||||
"address": "000000000-test_NORMALIZED01",
|
||||
"amount_charged": 0,
|
||||
"amount_received": 0,
|
||||
"amount_returned": 0,
|
||||
@@ -64,7 +64,7 @@
|
||||
"data": [
|
||||
{
|
||||
"ach_credit_transfer": {
|
||||
"account_number": "test_NORMALIZED02",
|
||||
"account_number": "test_NORMALIZED01",
|
||||
"bank_name": "TEST BANK",
|
||||
"fingerprint": "NORMALIZED000001",
|
||||
"refund_account_holder_name": null,
|
||||
@@ -76,7 +76,7 @@
|
||||
},
|
||||
"amount": null,
|
||||
"client_secret": "src_client_secret_NORMALIZED00000000000001",
|
||||
"created": 1543785125,
|
||||
"created": 1000000005,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"flow": "receiver",
|
||||
@@ -95,7 +95,7 @@
|
||||
"verified_phone": null
|
||||
},
|
||||
"receiver": {
|
||||
"address": "000000000-test_NORMALIZED02",
|
||||
"address": "000000000-test_NORMALIZED01",
|
||||
"amount_charged": 0,
|
||||
"amount_received": 0,
|
||||
"amount_returned": 0,
|
||||
@@ -118,12 +118,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "send_invoice",
|
||||
"billing_cycle_anchor": 1543785123,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785123,
|
||||
"current_period_end": 1575321123,
|
||||
"current_period_start": 1543785123,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": 30,
|
||||
"default_source": null,
|
||||
@@ -133,7 +133,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785124,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -142,7 +142,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -175,7 +175,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -192,7 +192,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785125,
|
||||
"start": 1000000005,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -13,11 +13,11 @@
|
||||
"charge": null,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"date": 1543785123,
|
||||
"date": 1000000002,
|
||||
"default_source": null,
|
||||
"description": "",
|
||||
"discount": null,
|
||||
"due_date": 1546377123,
|
||||
"due_date": 1000000006,
|
||||
"ending_balance": null,
|
||||
"finalized_at": null,
|
||||
"hosted_invoice_url": null,
|
||||
@@ -35,15 +35,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1575321123,
|
||||
"start": 1543785123
|
||||
"end": 1000000003,
|
||||
"start": 1000000002
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -78,8 +78,8 @@
|
||||
"object": "invoice",
|
||||
"paid": false,
|
||||
"payment_intent": null,
|
||||
"period_end": 1543785123,
|
||||
"period_start": 1543785123,
|
||||
"period_end": 1000000002,
|
||||
"period_start": 1000000002,
|
||||
"receipt_number": null,
|
||||
"starting_balance": 0,
|
||||
"statement_descriptor": null,
|
||||
@@ -89,7 +89,7 @@
|
||||
"tax": 0,
|
||||
"tax_percent": 0.0,
|
||||
"total": 984000,
|
||||
"webhooks_delivered_at": 1543785124
|
||||
"webhooks_delivered_at": 1000000002
|
||||
}
|
||||
],
|
||||
"has_more": false,
|
||||
|
@@ -10,11 +10,11 @@
|
||||
"charge": null,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"date": 1575321123,
|
||||
"date": 1000000003,
|
||||
"default_source": null,
|
||||
"description": "",
|
||||
"discount": null,
|
||||
"due_date": 1577913123,
|
||||
"due_date": 1000000007,
|
||||
"ending_balance": -856000,
|
||||
"finalized_at": null,
|
||||
"lines": {
|
||||
@@ -30,15 +30,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1575321123,
|
||||
"start": 1543785123
|
||||
"end": 1000000003,
|
||||
"start": 1000000002
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -71,15 +71,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1575321123,
|
||||
"start": 1543785123
|
||||
"end": 1000000003,
|
||||
"start": 1000000002
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -111,15 +111,15 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1606943523,
|
||||
"start": 1575321123
|
||||
"end": 1000000008,
|
||||
"start": 1000000003
|
||||
},
|
||||
"plan": {
|
||||
"active": true,
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -154,8 +154,8 @@
|
||||
"object": "invoice",
|
||||
"paid": false,
|
||||
"payment_intent": null,
|
||||
"period_end": 1575321123,
|
||||
"period_start": 1543785123,
|
||||
"period_end": 1000000003,
|
||||
"period_start": 1000000002,
|
||||
"receipt_number": null,
|
||||
"starting_balance": 0,
|
||||
"statement_descriptor": null,
|
||||
|
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "send_invoice",
|
||||
"billing_cycle_anchor": 1543785123,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785123,
|
||||
"current_period_end": 1575321123,
|
||||
"current_period_start": 1543785123,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": 30,
|
||||
"default_source": null,
|
||||
@@ -16,7 +16,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785124,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 123,
|
||||
"start": 1543785123,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "send_invoice",
|
||||
"billing_cycle_anchor": 1543785123,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785123,
|
||||
"current_period_end": 1575321123,
|
||||
"current_period_start": 1543785123,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": 30,
|
||||
"default_source": null,
|
||||
@@ -16,7 +16,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785124,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785125,
|
||||
"start": 1000000005,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -11,7 +11,7 @@
|
||||
"Connection": "keep-alive",
|
||||
"Content-Length": "241",
|
||||
"Content-Type": "application/json",
|
||||
"Date": "Sun, NORMALIZED DATE 21:12:09 GMT",
|
||||
"Date": "Mon, NORMALIZED DATE 20:52:47 GMT",
|
||||
"Request-Id": "req_NORMALIZED0001",
|
||||
"Server": "nginx",
|
||||
"Strict-Transport-Security": "max-age=31556926; includeSubDomains; preload",
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785135,
|
||||
"created": 1000000001,
|
||||
"currency": null,
|
||||
"default_source": "card_NORMALIZED00000000000001",
|
||||
"delinquent": false,
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"account_balance": 0,
|
||||
"created": 1543785135,
|
||||
"created": 1000000001,
|
||||
"currency": "usd",
|
||||
"default_source": {
|
||||
"address_city": "Pacific",
|
||||
@@ -78,12 +78,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785135,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785135,
|
||||
"current_period_end": 1575321135,
|
||||
"current_period_start": 1543785135,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -93,7 +93,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785136,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -102,7 +102,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -135,7 +135,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -152,7 +152,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785135,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"application_fee_percent": null,
|
||||
"billing": "charge_automatically",
|
||||
"billing_cycle_anchor": 1543785135,
|
||||
"billing_cycle_anchor": 1000000002,
|
||||
"cancel_at_period_end": false,
|
||||
"canceled_at": null,
|
||||
"created": 1543785135,
|
||||
"current_period_end": 1575321135,
|
||||
"current_period_start": 1543785135,
|
||||
"created": 1000000002,
|
||||
"current_period_end": 1000000003,
|
||||
"current_period_start": 1000000002,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"days_until_due": null,
|
||||
"default_source": null,
|
||||
@@ -16,7 +16,7 @@
|
||||
"items": {
|
||||
"data": [
|
||||
{
|
||||
"created": 1543785136,
|
||||
"created": 1000000002,
|
||||
"id": "si_NORMALIZED0001",
|
||||
"metadata": {},
|
||||
"object": "subscription_item",
|
||||
@@ -25,7 +25,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -58,7 +58,7 @@
|
||||
"aggregate_usage": null,
|
||||
"amount": 8000,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1539831971,
|
||||
"created": 1000000004,
|
||||
"currency": "usd",
|
||||
"id": "plan_Do3xCvbzO89OsR",
|
||||
"interval": "year",
|
||||
@@ -75,7 +75,7 @@
|
||||
"usage_type": "licensed"
|
||||
},
|
||||
"quantity": 8,
|
||||
"start": 1543785135,
|
||||
"start": 1000000002,
|
||||
"status": "active",
|
||||
"tax_percent": 0.0,
|
||||
"trial_end": null,
|
||||
|
@@ -24,7 +24,7 @@
|
||||
"tokenization_method": null
|
||||
},
|
||||
"client_ip": "0.0.0.0",
|
||||
"created": 1543785134,
|
||||
"created": 1000000001,
|
||||
"id": "tok_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"object": "token",
|
||||
|
@@ -129,6 +129,9 @@ def normalize_fixture_data(decorated_function: CallableT, keep: List[str]=[]) ->
|
||||
'"fingerprint": "[A-Za-z0-9]{16}"': '"fingerprint": "NORMALIZED%06d"',
|
||||
'"number": "[A-Za-z0-9]{7}-[A-Za-z0-9]{4}"': '"number": "NORMALI-%04d"',
|
||||
'"address": "[A-Za-z0-9]{9}-test_[A-Za-z0-9]{12}"': '"address": "000000000-test_NORMALIZED%02d"',
|
||||
# Does not preserve relative ordering of the timestamps, nor any
|
||||
# coordination with the timestamps in setUp mocks (e.g. Plan.created).
|
||||
': (1[5-9][0-9]{8})(?![0-9-])': '1%09d',
|
||||
})
|
||||
|
||||
normalized_values = {pattern: {}
|
||||
@@ -147,8 +150,10 @@ def normalize_fixture_data(decorated_function: CallableT, keep: List[str]=[]) ->
|
||||
file_content = re.sub(r'[0-3]\d [A-Z][a-z]{2} 20[1-2]\d', 'NORMALIZED DATE', file_content)
|
||||
# IP addresses
|
||||
file_content = re.sub(r'"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}"', '"0.0.0.0"', file_content)
|
||||
# Even normalized timestamps vary a lot run to run, so suppress
|
||||
# timestamp differences entirely unless we explicitly ask to keep them
|
||||
if "timestamps" not in keep:
|
||||
file_content = re.sub(r': 1[5-9][0-9]{8},', ': 1000000000,', file_content)
|
||||
file_content = re.sub(r': 10000000\d{2}(?=[,$])', ': 1000000000', file_content)
|
||||
|
||||
with open(fixture_file, "w") as f:
|
||||
f.write(file_content)
|
||||
|
Reference in New Issue
Block a user