mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
stripe: Add period information for generated invoices.
Invoices need to have period to avoid charges being marked as point-in-time revenue rather than monthly revenue.
This commit is contained in:
@@ -866,6 +866,7 @@ class BillingSession(ABC):
|
||||
plan_tier: int,
|
||||
billing_schedule: int,
|
||||
charge_automatically: bool,
|
||||
invoice_period: Dict[str, int],
|
||||
license_management: Optional[str] = None,
|
||||
) -> stripe.Invoice:
|
||||
plan_name = CustomerPlan.name_from_tier(plan_tier)
|
||||
@@ -887,6 +888,7 @@ class BillingSession(ABC):
|
||||
customer=customer.stripe_customer_id,
|
||||
description=plan_name,
|
||||
discountable=False,
|
||||
period=invoice_period,
|
||||
**price_args,
|
||||
)
|
||||
|
||||
@@ -903,6 +905,7 @@ class BillingSession(ABC):
|
||||
description=f"${cents_to_dollar_string(customer.flat_discount)}/month new customer discount",
|
||||
# Negative value to apply discount.
|
||||
amount=(-1 * discount),
|
||||
period=invoice_period,
|
||||
)
|
||||
|
||||
if charge_automatically:
|
||||
@@ -1162,6 +1165,7 @@ class BillingSession(ABC):
|
||||
metadata["billing_schedule"],
|
||||
charge_automatically=charge_automatically,
|
||||
license_management=metadata["license_management"],
|
||||
invoice_period=metadata["invoice_period"],
|
||||
)
|
||||
assert stripe_invoice.id is not None
|
||||
invoice = Invoice.objects.create(
|
||||
@@ -1595,14 +1599,34 @@ class BillingSession(ABC):
|
||||
"type": "upgrade",
|
||||
"plan_tier": plan_tier,
|
||||
}
|
||||
discount_for_plan = customer.get_discount_for_plan_tier(plan_tier)
|
||||
(
|
||||
invoice_period_start,
|
||||
_,
|
||||
invoice_period_end,
|
||||
price_per_license,
|
||||
) = compute_plan_parameters(
|
||||
plan_tier,
|
||||
billing_schedule,
|
||||
discount_for_plan,
|
||||
# TODO: Use the correct value for free_trial when we switch behaviour to send invoice
|
||||
# at the start of free trial.
|
||||
False,
|
||||
None,
|
||||
not isinstance(self, RealmBillingSession),
|
||||
)
|
||||
if fixed_price_plan_offer is None:
|
||||
discount_for_plan = customer.get_discount_for_plan_tier(plan_tier)
|
||||
price_per_license = get_price_per_license(
|
||||
plan_tier, billing_schedule, discount_for_plan
|
||||
)
|
||||
general_metadata["price_per_license"] = price_per_license
|
||||
else:
|
||||
general_metadata["fixed_price"] = fixed_price_plan_offer.fixed_price
|
||||
invoice_period_end = add_months(
|
||||
invoice_period_start, CustomerPlan.FIXED_PRICE_PLAN_DURATION_MONTHS
|
||||
)
|
||||
|
||||
general_metadata["invoice_period"] = {
|
||||
"start": datetime_to_timestamp(invoice_period_start),
|
||||
"end": datetime_to_timestamp(invoice_period_end),
|
||||
}
|
||||
updated_metadata = self.update_data_for_checkout_session_and_invoice_payment(
|
||||
general_metadata
|
||||
)
|
||||
@@ -1778,9 +1802,10 @@ class BillingSession(ABC):
|
||||
# Manual license management is not available for fixed price plan.
|
||||
assert automanage_licenses is True
|
||||
plan_params["fixed_price"] = fixed_price_plan_offer.fixed_price
|
||||
plan_params["end_date"] = add_months(
|
||||
period_end = add_months(
|
||||
billing_cycle_anchor, CustomerPlan.FIXED_PRICE_PLAN_DURATION_MONTHS
|
||||
)
|
||||
plan_params["end_date"] = period_end
|
||||
fixed_price_plan_offer.status = CustomerPlanOffer.PROCESSED
|
||||
fixed_price_plan_offer.save(update_fields=["status"])
|
||||
|
||||
@@ -1841,6 +1866,10 @@ class BillingSession(ABC):
|
||||
plan_tier=plan.tier,
|
||||
billing_schedule=billing_schedule,
|
||||
charge_automatically=False,
|
||||
invoice_period={
|
||||
"start": datetime_to_timestamp(billing_cycle_anchor),
|
||||
"end": datetime_to_timestamp(period_end),
|
||||
},
|
||||
)
|
||||
|
||||
def do_upgrade(self, upgrade_request: UpgradeRequest) -> Dict[str, Any]:
|
||||
@@ -2834,6 +2863,7 @@ class BillingSession(ABC):
|
||||
invoiced_through_id = plan.invoiced_through.id
|
||||
|
||||
invoice_item_created = False
|
||||
invoice_period = None
|
||||
for ledger_entry in LicenseLedger.objects.filter(
|
||||
plan=plan, id__gt=invoiced_through_id, event_time__lte=event_time
|
||||
).order_by("id"):
|
||||
@@ -2887,17 +2917,18 @@ class BillingSession(ABC):
|
||||
plan.invoicing_status = CustomerPlan.INVOICING_STATUS_STARTED
|
||||
plan.save(update_fields=["invoicing_status", "invoiced_through"])
|
||||
assert plan.customer.stripe_customer_id is not None
|
||||
invoice_period = {
|
||||
"start": datetime_to_timestamp(ledger_entry.event_time),
|
||||
"end": datetime_to_timestamp(
|
||||
get_plan_renewal_or_end_date(plan, ledger_entry.event_time)
|
||||
),
|
||||
}
|
||||
stripe.InvoiceItem.create(
|
||||
currency="usd",
|
||||
customer=plan.customer.stripe_customer_id,
|
||||
description=description,
|
||||
discountable=False,
|
||||
period={
|
||||
"start": datetime_to_timestamp(ledger_entry.event_time),
|
||||
"end": datetime_to_timestamp(
|
||||
get_plan_renewal_or_end_date(plan, ledger_entry.event_time)
|
||||
),
|
||||
},
|
||||
period=invoice_period,
|
||||
idempotency_key=get_idempotency_key(ledger_entry),
|
||||
**price_args,
|
||||
)
|
||||
@@ -2923,6 +2954,7 @@ class BillingSession(ABC):
|
||||
description=f"${cents_to_dollar_string(flat_discount)}/month new customer discount",
|
||||
# Negative value to apply discount.
|
||||
amount=(-1 * discount),
|
||||
period=invoice_period,
|
||||
)
|
||||
|
||||
if plan.charge_automatically:
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
},
|
||||
"paid": true,
|
||||
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||
"payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"payment_method": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"payment_method_details": {
|
||||
"card": {
|
||||
"amount_authorized": 48000,
|
||||
@@ -94,7 +94,7 @@
|
||||
"radar_options": {},
|
||||
"receipt_email": "hamlet@zulip.com",
|
||||
"receipt_number": null,
|
||||
"receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMmRla8GMgY-jJ1I0b86LBapbjKNDTwqjpj0RZJqvPPwr82gYGH8hGCZCHqSYwtvTDLHtRImOIdRC46h?s=ap",
|
||||
"receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN-WnrAGMgY06lYBN5M6LBbWQLhXM7HSmGU8HpzlxRb4BL5GYLqyt0yerJewYqN5GJzOQo_jn_Bg91qd?s=ap",
|
||||
"refunded": false,
|
||||
"refunds": {
|
||||
"data": [],
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"invoice_prefix": "NORMA01",
|
||||
"invoice_settings": {
|
||||
"custom_fields": null,
|
||||
"default_payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"default_payment_method": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"footer": null,
|
||||
"rendering_options": null
|
||||
},
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
},
|
||||
"created": 1010000003,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"id": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"id": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "payment_method",
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
},
|
||||
"created": 1010000003,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"id": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"id": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "payment_method",
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
},
|
||||
"created": 1010000003,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"id": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"id": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "payment_method",
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
},
|
||||
"created": 1010000003,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"id": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"id": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "payment_method",
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
},
|
||||
"created": 1010000003,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"id": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"id": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "payment_method",
|
||||
|
||||
@@ -8,23 +8,23 @@
|
||||
"account_country": "US",
|
||||
"account_name": "Kandra Labs, Inc.",
|
||||
"account_tax_ids": null,
|
||||
"amount_due": 960000,
|
||||
"amount_paid": 0,
|
||||
"amount_remaining": 960000,
|
||||
"amount_due": 48000,
|
||||
"amount_paid": 48000,
|
||||
"amount_remaining": 0,
|
||||
"amount_shipping": 0,
|
||||
"application": null,
|
||||
"application_fee_amount": null,
|
||||
"attempt_count": 0,
|
||||
"attempted": false,
|
||||
"auto_advance": true,
|
||||
"attempt_count": 1,
|
||||
"attempted": true,
|
||||
"auto_advance": false,
|
||||
"automatic_tax": {
|
||||
"enabled": false,
|
||||
"liability": null,
|
||||
"status": null
|
||||
},
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"charge": "ch_NORMALIZED00000000000002",
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000005,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
@@ -42,14 +42,14 @@
|
||||
"description": null,
|
||||
"discount": null,
|
||||
"discounts": [],
|
||||
"due_date": 1000000000,
|
||||
"due_date": null,
|
||||
"effective_at": 1000000000,
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9QVWxzNEpLT1NwQnljeUFyUDlZcURoQVQySlU2LDEwMDA2NTk4MA0200MWq67ZiA?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh2VHFRSml4UFRBaHZ6em84NjlhVXBvbTVzeUYzLDEwMjMxMTA1OA0200gYpwq29O?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9QVWxzNEpLT1NwQnljeUFyUDlZcURoQVQySlU2LDEwMDA2NTk4MA0200MWq67ZiA/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh2VHFRSml4UFRBaHZ6em84NjlhVXBvbTVzeUYzLDEwMjMxMTA1OA0200gYpwq29O/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -58,10 +58,10 @@
|
||||
"lines": {
|
||||
"data": [
|
||||
{
|
||||
"amount": 960000,
|
||||
"amount_excluding_tax": 960000,
|
||||
"amount": 48000,
|
||||
"amount_excluding_tax": 48000,
|
||||
"currency": "usd",
|
||||
"description": "Zulip Cloud Standard - renewal",
|
||||
"description": "Zulip Cloud Standard",
|
||||
"discount_amounts": [],
|
||||
"discountable": false,
|
||||
"discounts": [],
|
||||
@@ -72,8 +72,8 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1420167845,
|
||||
"start": 1388631845
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
@@ -101,7 +101,7 @@
|
||||
"proration_details": {
|
||||
"credited_items": null
|
||||
},
|
||||
"quantity": 120,
|
||||
"quantity": 6,
|
||||
"subscription": null,
|
||||
"tax_amounts": [],
|
||||
"tax_rates": [],
|
||||
@@ -115,12 +115,18 @@
|
||||
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||
},
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"metadata": {
|
||||
"billing_schedule": "1",
|
||||
"license_management": "automatic",
|
||||
"licenses": "6",
|
||||
"plan_tier": "1",
|
||||
"user_id": "10"
|
||||
},
|
||||
"next_payment_attempt": null,
|
||||
"number": "NORMALI-0001",
|
||||
"object": "invoice",
|
||||
"on_behalf_of": null,
|
||||
"paid": false,
|
||||
"paid": true,
|
||||
"paid_out_of_band": false,
|
||||
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||
"payment_settings": {
|
||||
@@ -145,38 +151,38 @@
|
||||
"shipping_details": null,
|
||||
"starting_balance": 0,
|
||||
"statement_descriptor": "Zulip Cloud Standard",
|
||||
"status": "open",
|
||||
"status": "paid",
|
||||
"status_transitions": {
|
||||
"finalized_at": 1000000000,
|
||||
"marked_uncollectible_at": null,
|
||||
"paid_at": null,
|
||||
"paid_at": 1000000000,
|
||||
"voided_at": null
|
||||
},
|
||||
"subscription": null,
|
||||
"subscription_details": {
|
||||
"metadata": null
|
||||
},
|
||||
"subtotal": 960000,
|
||||
"subtotal_excluding_tax": 960000,
|
||||
"subtotal": 48000,
|
||||
"subtotal_excluding_tax": 48000,
|
||||
"tax": null,
|
||||
"test_clock": null,
|
||||
"total": 960000,
|
||||
"total": 48000,
|
||||
"total_discount_amounts": [],
|
||||
"total_excluding_tax": 960000,
|
||||
"total_excluding_tax": 48000,
|
||||
"total_tax_amounts": [],
|
||||
"transfer_data": null,
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnADEQaroqDjshpg28yE4",
|
||||
"id": "evt_1Ozsq6DEQaroqDjsN9xhnE9r",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0001",
|
||||
"idempotency_key": "80619383-8520-4d01-8ec9-b83268266cf7"
|
||||
"idempotency_key": "2e3a7a0a-72d0-4063-b32e-df5a84d0c3ec"
|
||||
},
|
||||
"type": "invoice.finalized"
|
||||
"type": "invoice.payment_succeeded"
|
||||
}
|
||||
],
|
||||
"has_more": true,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"invoice_prefix": "NORMA01",
|
||||
"invoice_settings": {
|
||||
"custom_fields": null,
|
||||
"default_payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"default_payment_method": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"footer": null,
|
||||
"rendering_options": null
|
||||
},
|
||||
@@ -43,13 +43,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnGDEQaroqDjs3kQOZdv4",
|
||||
"id": "evt_1OzstIDEQaroqDjs6MUHFuBv",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0002",
|
||||
"idempotency_key": "e2f9de20-7c2f-4c5d-b85e-745bba765ce9"
|
||||
"idempotency_key": "44f84616-7807-4957-8603-bba1456e18a8"
|
||||
},
|
||||
"type": "customer.updated"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"data": [
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000001,
|
||||
"created": 1010000008,
|
||||
"data": {
|
||||
"object": {
|
||||
"amount": 48000,
|
||||
@@ -70,7 +70,7 @@
|
||||
},
|
||||
"paid": true,
|
||||
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||
"payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"payment_method": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"payment_method_details": {
|
||||
"card": {
|
||||
"amount_authorized": 48000,
|
||||
@@ -113,7 +113,7 @@
|
||||
"radar_options": {},
|
||||
"receipt_email": "hamlet@zulip.com",
|
||||
"receipt_number": null,
|
||||
"receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMiRla8GMgZ03BprTX06LBaK-vXBuirjkbLUFPmRtEnp3Rqa_K7j54oqdqgigyI9fFEdhZSUmC2RUVDu?s=ap",
|
||||
"receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKN2WnrAGMgbN8HG7P8A6LBY7a6dv6Y9rNKL6u11FLtqHcf0sCTKiuUe-DVVRGSnZ1oibAK5hLqRpB1ss?s=ap",
|
||||
"refunded": false,
|
||||
"refunds": {
|
||||
"data": [],
|
||||
@@ -138,9 +138,9 @@
|
||||
"total_count": 1,
|
||||
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
|
||||
},
|
||||
"client_secret": "pi_NORMALIZED00000000000001_secret_vEB8EXXiRRTTaP3MLp4MBMgXc",
|
||||
"client_secret": "pi_NORMALIZED00000000000001_secret_2clCBtVPEQrL53tN7dv7byw41",
|
||||
"confirmation_method": "automatic",
|
||||
"created": 1010000008,
|
||||
"created": 1010000009,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"description": "Payment for Invoice",
|
||||
@@ -153,7 +153,7 @@
|
||||
"next_action": null,
|
||||
"object": "payment_intent",
|
||||
"on_behalf_of": null,
|
||||
"payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"payment_method": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"payment_method_configuration_details": null,
|
||||
"payment_method_options": {
|
||||
"card": {
|
||||
@@ -181,144 +181,16 @@
|
||||
"transfer_group": null
|
||||
}
|
||||
},
|
||||
"id": "evt_3OqSnJDEQaroqDjs1zWRNloj",
|
||||
"id": "evt_3OzstLDEQaroqDjs1Ak3Umwx",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0003",
|
||||
"idempotency_key": "ed889de7-97b5-4cc5-9a16-e342732d9d8b"
|
||||
"idempotency_key": "2937de82-f6b7-4fbe-9cf2-f0c6c71c53b1"
|
||||
},
|
||||
"type": "payment_intent.succeeded"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000001,
|
||||
"data": {
|
||||
"object": {
|
||||
"amount": 48000,
|
||||
"amount_captured": 48000,
|
||||
"amount_refunded": 0,
|
||||
"application": null,
|
||||
"application_fee": null,
|
||||
"application_fee_amount": null,
|
||||
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||
"billing_details": {
|
||||
"address": {
|
||||
"city": null,
|
||||
"country": null,
|
||||
"line1": null,
|
||||
"line2": null,
|
||||
"postal_code": null,
|
||||
"state": null
|
||||
},
|
||||
"email": null,
|
||||
"name": null,
|
||||
"phone": null
|
||||
},
|
||||
"calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
|
||||
"captured": true,
|
||||
"created": 1010000001,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"description": "Payment for Invoice",
|
||||
"destination": null,
|
||||
"dispute": null,
|
||||
"disputed": false,
|
||||
"failure_balance_transaction": null,
|
||||
"failure_code": null,
|
||||
"failure_message": null,
|
||||
"fraud_details": {},
|
||||
"id": "ch_NORMALIZED00000000000001",
|
||||
"invoice": "in_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "charge",
|
||||
"on_behalf_of": null,
|
||||
"order": null,
|
||||
"outcome": {
|
||||
"network_status": "approved_by_network",
|
||||
"reason": null,
|
||||
"risk_level": "normal",
|
||||
"risk_score": 0,
|
||||
"seller_message": "Payment complete.",
|
||||
"type": "authorized"
|
||||
},
|
||||
"paid": true,
|
||||
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||
"payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"payment_method_details": {
|
||||
"card": {
|
||||
"amount_authorized": 48000,
|
||||
"brand": "visa",
|
||||
"checks": {
|
||||
"address_line1_check": null,
|
||||
"address_postal_code_check": null,
|
||||
"cvc_check": "pass"
|
||||
},
|
||||
"country": "US",
|
||||
"exp_month": 3,
|
||||
"exp_year": 2025,
|
||||
"extended_authorization": {
|
||||
"status": "disabled"
|
||||
},
|
||||
"fingerprint": "NORMALIZED000001",
|
||||
"funding": "credit",
|
||||
"incremental_authorization": {
|
||||
"status": "unavailable"
|
||||
},
|
||||
"installments": null,
|
||||
"last4": "4242",
|
||||
"mandate": null,
|
||||
"multicapture": {
|
||||
"status": "unavailable"
|
||||
},
|
||||
"network": "visa",
|
||||
"network_token": {
|
||||
"used": false
|
||||
},
|
||||
"overcapture": {
|
||||
"maximum_amount_capturable": 48000,
|
||||
"status": "unavailable"
|
||||
},
|
||||
"three_d_secure": null,
|
||||
"wallet": null
|
||||
},
|
||||
"type": "card"
|
||||
},
|
||||
"radar_options": {},
|
||||
"receipt_email": "hamlet@zulip.com",
|
||||
"receipt_number": null,
|
||||
"receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKMiRla8GMgYqX1XwUKc6LBbc__zOvAevvHJBNpCfnVnyMYkfBokNBdD4Fp1hXMAOOlZ7eCNOv1SjbeLo?s=ap",
|
||||
"refunded": false,
|
||||
"refunds": {
|
||||
"data": [],
|
||||
"has_more": false,
|
||||
"object": "list",
|
||||
"total_count": 0,
|
||||
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
||||
},
|
||||
"review": null,
|
||||
"shipping": null,
|
||||
"source": null,
|
||||
"source_transfer": null,
|
||||
"statement_descriptor": "Zulip Cloud Standard",
|
||||
"statement_descriptor_suffix": null,
|
||||
"status": "succeeded",
|
||||
"transfer_data": null,
|
||||
"transfer_group": null
|
||||
}
|
||||
},
|
||||
"id": "evt_3OqSnJDEQaroqDjs1e5qdOIP",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0003",
|
||||
"idempotency_key": "ed889de7-97b5-4cc5-9a16-e342732d9d8b"
|
||||
},
|
||||
"type": "charge.succeeded"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000009,
|
||||
@@ -344,7 +216,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -366,9 +238,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5MA0200hMfQYMAH?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2MA0200fpcG5zkr?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5MA0200hMfQYMAH/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2MA0200fpcG5zkr/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -391,23 +263,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -493,13 +365,13 @@
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnKDEQaroqDjsjSJ30zyR",
|
||||
"id": "evt_1OzstMDEQaroqDjsAnyhFHYL",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0004",
|
||||
"idempotency_key": "a3644fdc-1e4d-422b-a693-5321ed594ceb"
|
||||
"idempotency_key": "ff864dea-7d41-40a1-8a5e-a120ada0b61b"
|
||||
},
|
||||
"type": "invoice.finalized"
|
||||
},
|
||||
@@ -528,7 +400,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -550,9 +422,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5MA0200hMfQYMAH?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2MA0200fpcG5zkr?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5MA0200hMfQYMAH/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2MA0200fpcG5zkr/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -575,23 +447,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -694,13 +566,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnKDEQaroqDjsd9azmy7p",
|
||||
"id": "evt_1OzstMDEQaroqDjsb0j4UkAw",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0004",
|
||||
"idempotency_key": "a3644fdc-1e4d-422b-a693-5321ed594ceb"
|
||||
"idempotency_key": "ff864dea-7d41-40a1-8a5e-a120ada0b61b"
|
||||
},
|
||||
"type": "invoice.updated"
|
||||
},
|
||||
@@ -728,9 +600,9 @@
|
||||
"total_count": 0,
|
||||
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
|
||||
},
|
||||
"client_secret": "pi_NORMALIZED00000000000001_secret_vEB8EXXiRRTTaP3MLp4MBMgXc",
|
||||
"client_secret": "pi_NORMALIZED00000000000001_secret_2clCBtVPEQrL53tN7dv7byw41",
|
||||
"confirmation_method": "automatic",
|
||||
"created": 1010000008,
|
||||
"created": 1010000009,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"description": "Payment for Invoice",
|
||||
@@ -771,19 +643,19 @@
|
||||
"transfer_group": null
|
||||
}
|
||||
},
|
||||
"id": "evt_3OqSnJDEQaroqDjs1PhobBzp",
|
||||
"id": "evt_3OzstLDEQaroqDjs1SNa0xxl",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0004",
|
||||
"idempotency_key": "a3644fdc-1e4d-422b-a693-5321ed594ceb"
|
||||
"idempotency_key": "ff864dea-7d41-40a1-8a5e-a120ada0b61b"
|
||||
},
|
||||
"type": "payment_intent.created"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000008,
|
||||
"created": 1010000009,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
@@ -806,7 +678,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -853,23 +725,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -955,19 +827,19 @@
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnJDEQaroqDjsPeXpZjiU",
|
||||
"id": "evt_1OzstLDEQaroqDjs7FzvDs5X",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0005",
|
||||
"idempotency_key": "cd649fc7-357e-44b7-a506-69b862716e6d"
|
||||
"idempotency_key": "b0b45ad9-74c7-4690-92c7-748224468bd2"
|
||||
},
|
||||
"type": "invoice.created"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000011,
|
||||
"created": 1010000010,
|
||||
"data": {
|
||||
"object": {
|
||||
"amount": 48000,
|
||||
@@ -983,23 +855,23 @@
|
||||
"metadata": {},
|
||||
"object": "invoiceitem",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -1017,19 +889,19 @@
|
||||
"unit_amount_decimal": "8000"
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnJDEQaroqDjsLp9rwIYi",
|
||||
"id": "evt_1OzstKDEQaroqDjsAkP1RMDz",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0006",
|
||||
"idempotency_key": "ca431a83-ef26-4b42-b4e8-9f3795336889"
|
||||
"idempotency_key": "905c93b1-6699-414b-bc3b-8c1947f536f3"
|
||||
},
|
||||
"type": "invoiceitem.created"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000011,
|
||||
"created": 1010000010,
|
||||
"data": {
|
||||
"object": {
|
||||
"address": null,
|
||||
@@ -1046,7 +918,7 @@
|
||||
"invoice_prefix": "NORMA01",
|
||||
"invoice_settings": {
|
||||
"custom_fields": null,
|
||||
"default_payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"default_payment_method": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"footer": null,
|
||||
"rendering_options": null
|
||||
},
|
||||
@@ -1069,13 +941,13 @@
|
||||
"default_currency": null
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnJDEQaroqDjssK0zw1Cy",
|
||||
"id": "evt_1OzstKDEQaroqDjsuesyeWCD",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0006",
|
||||
"idempotency_key": "ca431a83-ef26-4b42-b4e8-9f3795336889"
|
||||
"idempotency_key": "905c93b1-6699-414b-bc3b-8c1947f536f3"
|
||||
},
|
||||
"type": "customer.updated"
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"data": [
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000001,
|
||||
"created": 1010000008,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
@@ -25,7 +25,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": "ch_NORMALIZED00000000000001",
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -47,9 +47,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5Mg0200tGmhNc0B?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mg0200frXSJJ57?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5Mg0200tGmhNc0B/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mg0200frXSJJ57/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -72,23 +72,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -174,19 +174,19 @@
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnMDEQaroqDjsQt1fWyVR",
|
||||
"id": "evt_1OzstODEQaroqDjswKeyZtOi",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0003",
|
||||
"idempotency_key": "ed889de7-97b5-4cc5-9a16-e342732d9d8b"
|
||||
"idempotency_key": "2937de82-f6b7-4fbe-9cf2-f0c6c71c53b1"
|
||||
},
|
||||
"type": "invoice.payment_succeeded"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000001,
|
||||
"created": 1010000008,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
@@ -209,7 +209,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": "ch_NORMALIZED00000000000001",
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -231,9 +231,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5Mg0200tGmhNc0B?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mg0200frXSJJ57?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5Mg0200tGmhNc0B/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mg0200frXSJJ57/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -256,23 +256,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -358,19 +358,19 @@
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnMDEQaroqDjsks26khSi",
|
||||
"id": "evt_1OzstODEQaroqDjssTt6OV2I",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0003",
|
||||
"idempotency_key": "ed889de7-97b5-4cc5-9a16-e342732d9d8b"
|
||||
"idempotency_key": "2937de82-f6b7-4fbe-9cf2-f0c6c71c53b1"
|
||||
},
|
||||
"type": "invoice.paid"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000001,
|
||||
"created": 1010000008,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
@@ -393,7 +393,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": "ch_NORMALIZED00000000000001",
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -415,9 +415,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5Mg0200tGmhNc0B?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mg0200frXSJJ57?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5Mg0200tGmhNc0B/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mg0200frXSJJ57/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -440,23 +440,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -554,13 +554,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnMDEQaroqDjsIYgd9Box",
|
||||
"id": "evt_1OzstODEQaroqDjsaUeShRfL",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0003",
|
||||
"idempotency_key": "ed889de7-97b5-4cc5-9a16-e342732d9d8b"
|
||||
"idempotency_key": "2937de82-f6b7-4fbe-9cf2-f0c6c71c53b1"
|
||||
},
|
||||
"type": "invoice.updated"
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -66,23 +66,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -41,9 +41,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5MA0200hMfQYMAH?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI1OQ0200bo9qn8vr?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5MA0200hMfQYMAH/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI1OQ0200bo9qn8vr/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -66,23 +66,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": "ch_NORMALIZED00000000000001",
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -43,9 +43,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5Mw0200THUzV66N?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mw0200glFOKD1r?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5Mw0200THUzV66N/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mw0200glFOKD1r/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -68,23 +68,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": "ch_NORMALIZED00000000000001",
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000008,
|
||||
"created": 1010000010,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -41,9 +41,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5MQ02004xSmPBBA?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2MQ0200Zn4r9mpc?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9Ra0E4amgyT0pCZmg2ZmNLYjFCc2I5dENmcGliLDEwMDA2NTk5MQ02004xSmPBBA/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2MQ0200Zn4r9mpc/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -66,23 +66,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -12,23 +12,23 @@
|
||||
"metadata": {},
|
||||
"object": "invoiceitem",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000010,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
"application": null,
|
||||
"automatic_payment_methods": null,
|
||||
"cancellation_reason": null,
|
||||
"client_secret": "seti_1OqSnFDEQaroqDjsg1EeRyfW_secret_PfoQggAkPb2n8x1mIMrZ9diUZwDzdnO",
|
||||
"client_secret": "seti_1OzstGDEQaroqDjs4z3yE5uI_secret_PpXzucYO6tgz74mUWTgaDHcmXuyJQKw",
|
||||
"created": 1010000003,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"description": null,
|
||||
"flow_directions": null,
|
||||
"id": "seti_1OqSnFDEQaroqDjsg1EeRyfW",
|
||||
"id": "seti_1OzstGDEQaroqDjs4z3yE5uI",
|
||||
"last_setup_error": null,
|
||||
"latest_attempt": "setatt_1OqSnFDEQaroqDjs2B08ERS8",
|
||||
"latest_attempt": "setatt_1OzstGDEQaroqDjsN1wyH7tu",
|
||||
"livemode": false,
|
||||
"mandate": null,
|
||||
"metadata": {},
|
||||
"next_action": null,
|
||||
"object": "setup_intent",
|
||||
"on_behalf_of": null,
|
||||
"payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"payment_method": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"payment_method_configuration_details": null,
|
||||
"payment_method_options": {
|
||||
"card": {
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
"application": null,
|
||||
"automatic_payment_methods": null,
|
||||
"cancellation_reason": null,
|
||||
"client_secret": "seti_1OqSnEDEQaroqDjsF5oyLk1Z_secret_PfoQlj6vyI3HQwEJsq5chv33r4H6Da3",
|
||||
"created": 1010000012,
|
||||
"client_secret": "seti_1OzstFDEQaroqDjsuZ8Nc5fT_secret_PpXzu4zInXbPhsjME8iqCjajN9J592l",
|
||||
"created": 1010000011,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"description": null,
|
||||
"flow_directions": null,
|
||||
"id": "seti_1OqSnEDEQaroqDjsF5oyLk1Z",
|
||||
"id": "seti_1OzstFDEQaroqDjsuZ8Nc5fT",
|
||||
"last_setup_error": null,
|
||||
"latest_attempt": null,
|
||||
"livemode": false,
|
||||
|
||||
@@ -2,21 +2,21 @@
|
||||
"application": null,
|
||||
"automatic_payment_methods": null,
|
||||
"cancellation_reason": null,
|
||||
"client_secret": "seti_1OqSnFDEQaroqDjsg1EeRyfW_secret_PfoQggAkPb2n8x1mIMrZ9diUZwDzdnO",
|
||||
"client_secret": "seti_1OzstGDEQaroqDjs4z3yE5uI_secret_PpXzucYO6tgz74mUWTgaDHcmXuyJQKw",
|
||||
"created": 1010000003,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"description": null,
|
||||
"flow_directions": null,
|
||||
"id": "seti_1OqSnFDEQaroqDjsg1EeRyfW",
|
||||
"id": "seti_1OzstGDEQaroqDjs4z3yE5uI",
|
||||
"last_setup_error": null,
|
||||
"latest_attempt": "setatt_1OqSnFDEQaroqDjs2B08ERS8",
|
||||
"latest_attempt": "setatt_1OzstGDEQaroqDjsN1wyH7tu",
|
||||
"livemode": false,
|
||||
"mandate": null,
|
||||
"metadata": {},
|
||||
"next_action": null,
|
||||
"object": "setup_intent",
|
||||
"on_behalf_of": null,
|
||||
"payment_method": "pm_1OqSnEDEQaroqDjsEQmK8UNZ",
|
||||
"payment_method": "pm_1OzstGDEQaroqDjsuxhXHSPX",
|
||||
"payment_method_configuration_details": null,
|
||||
"payment_method_options": {
|
||||
"card": {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
"client_secret": null,
|
||||
"consent": null,
|
||||
"consent_collection": null,
|
||||
"created": 1010000012,
|
||||
"created": 1010000011,
|
||||
"currency": null,
|
||||
"currency_conversion": null,
|
||||
"custom_fields": [],
|
||||
@@ -36,7 +36,7 @@
|
||||
},
|
||||
"customer_email": null,
|
||||
"expires_at": 1000000000,
|
||||
"id": "cs_test_NORMALIZED025iXbhh1zeQTV1VntFlZybXS8qGTDqR5BGITm5uRS03khKA",
|
||||
"id": "cs_test_NORMALIZED02c4l6bUdgMsPj92LR9uaVdmRst7i5toEpeg5O78BZq2o6Iw",
|
||||
"invoice": null,
|
||||
"invoice_creation": null,
|
||||
"livemode": false,
|
||||
@@ -64,7 +64,7 @@
|
||||
"enabled": false
|
||||
},
|
||||
"recovered_from": null,
|
||||
"setup_intent": "seti_1OqSnEDEQaroqDjsF5oyLk1Z",
|
||||
"setup_intent": "seti_1OzstFDEQaroqDjsuZ8Nc5fT",
|
||||
"shipping": null,
|
||||
"shipping_address_collection": null,
|
||||
"shipping_options": [],
|
||||
@@ -75,5 +75,5 @@
|
||||
"success_url": "http://zulip.testserver/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||
"total_details": null,
|
||||
"ui_mode": "hosted",
|
||||
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED025iXbhh1zeQTV1VntFlZybXS8qGTDqR5BGITm5uRS03khKA#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
|
||||
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02c4l6bUdgMsPj92LR9uaVdmRst7i5toEpeg5O78BZq2o6Iw#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
"client_secret": null,
|
||||
"consent": null,
|
||||
"consent_collection": null,
|
||||
"created": 1010000012,
|
||||
"created": 1010000011,
|
||||
"currency": null,
|
||||
"currency_conversion": null,
|
||||
"custom_fields": [],
|
||||
@@ -38,7 +38,7 @@
|
||||
},
|
||||
"customer_email": null,
|
||||
"expires_at": 1000000000,
|
||||
"id": "cs_test_NORMALIZED025iXbhh1zeQTV1VntFlZybXS8qGTDqR5BGITm5uRS03khKA",
|
||||
"id": "cs_test_NORMALIZED02c4l6bUdgMsPj92LR9uaVdmRst7i5toEpeg5O78BZq2o6Iw",
|
||||
"invoice": null,
|
||||
"invoice_creation": null,
|
||||
"livemode": false,
|
||||
@@ -66,7 +66,7 @@
|
||||
"enabled": false
|
||||
},
|
||||
"recovered_from": null,
|
||||
"setup_intent": "seti_1OqSnEDEQaroqDjsF5oyLk1Z",
|
||||
"setup_intent": "seti_1OzstFDEQaroqDjsuZ8Nc5fT",
|
||||
"shipping": null,
|
||||
"shipping_address_collection": null,
|
||||
"shipping_options": [],
|
||||
@@ -77,7 +77,7 @@
|
||||
"success_url": "http://zulip.testserver/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||
"total_details": null,
|
||||
"ui_mode": "hosted",
|
||||
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED025iXbhh1zeQTV1VntFlZybXS8qGTDqR5BGITm5uRS03khKA#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
|
||||
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02c4l6bUdgMsPj92LR9uaVdmRst7i5toEpeg5O78BZq2o6Iw#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
|
||||
}
|
||||
],
|
||||
"has_more": true,
|
||||
|
||||
@@ -8,22 +8,22 @@
|
||||
"account_country": "US",
|
||||
"account_name": "Kandra Labs, Inc.",
|
||||
"account_tax_ids": null,
|
||||
"amount_due": 136000,
|
||||
"amount_paid": 0,
|
||||
"amount_remaining": 136000,
|
||||
"amount_due": 48000,
|
||||
"amount_paid": 48000,
|
||||
"amount_remaining": 0,
|
||||
"amount_shipping": 0,
|
||||
"application": null,
|
||||
"application_fee_amount": null,
|
||||
"attempt_count": 0,
|
||||
"attempted": false,
|
||||
"auto_advance": true,
|
||||
"attempt_count": 1,
|
||||
"attempted": true,
|
||||
"auto_advance": false,
|
||||
"automatic_tax": {
|
||||
"enabled": false,
|
||||
"liability": null,
|
||||
"status": null
|
||||
},
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"charge": "ch_NORMALIZED00000000000001",
|
||||
"collection_method": "charge_automatically",
|
||||
"created": 1010000003,
|
||||
"currency": "usd",
|
||||
@@ -47,9 +47,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9ROFVDam9Dc3BvTThxUVZYd3lZWnlmdlJaeml2LDEwMDA2NjAwNQ0200K1tOGXh1?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mg0200frXSJJ57?s=ap",
|
||||
"id": "in_NORMALIZED00000000000001",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9ROFVDam9Dc3BvTThxUVZYd3lZWnlmdlJaeml2LDEwMDA2NjAwNQ0200K1tOGXh1/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6VVpzYk1CZGF6VUUzb2o1WDhBeWN1V1UyWXRvLDEwMjMxMTI2Mg0200frXSJJ57/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -58,10 +58,10 @@
|
||||
"lines": {
|
||||
"data": [
|
||||
{
|
||||
"amount": 136000,
|
||||
"amount_excluding_tax": 136000,
|
||||
"amount": 48000,
|
||||
"amount_excluding_tax": 48000,
|
||||
"currency": "usd",
|
||||
"description": "Additional license (Jan 2, 2012 - Jan 2, 2013)",
|
||||
"description": "Zulip Cloud Standard",
|
||||
"discount_amounts": [],
|
||||
"discountable": false,
|
||||
"discounts": [],
|
||||
@@ -101,7 +101,7 @@
|
||||
"proration_details": {
|
||||
"credited_items": null
|
||||
},
|
||||
"quantity": 17,
|
||||
"quantity": 6,
|
||||
"subscription": null,
|
||||
"tax_amounts": [],
|
||||
"tax_rates": [],
|
||||
@@ -115,12 +115,18 @@
|
||||
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
||||
},
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"next_payment_attempt": 1000000000,
|
||||
"metadata": {
|
||||
"billing_schedule": "1",
|
||||
"license_management": "automatic",
|
||||
"licenses": "6",
|
||||
"plan_tier": "1",
|
||||
"user_id": "10"
|
||||
},
|
||||
"next_payment_attempt": null,
|
||||
"number": "NORMALI-0001",
|
||||
"object": "invoice",
|
||||
"on_behalf_of": null,
|
||||
"paid": false,
|
||||
"paid": true,
|
||||
"paid_out_of_band": false,
|
||||
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||
"payment_settings": {
|
||||
@@ -145,38 +151,38 @@
|
||||
"shipping_details": null,
|
||||
"starting_balance": 0,
|
||||
"statement_descriptor": "Zulip Cloud Standard",
|
||||
"status": "open",
|
||||
"status": "paid",
|
||||
"status_transitions": {
|
||||
"finalized_at": 1000000000,
|
||||
"marked_uncollectible_at": null,
|
||||
"paid_at": null,
|
||||
"paid_at": 1000000000,
|
||||
"voided_at": null
|
||||
},
|
||||
"subscription": null,
|
||||
"subscription_details": {
|
||||
"metadata": null
|
||||
},
|
||||
"subtotal": 136000,
|
||||
"subtotal_excluding_tax": 136000,
|
||||
"subtotal": 48000,
|
||||
"subtotal_excluding_tax": 48000,
|
||||
"tax": null,
|
||||
"test_clock": null,
|
||||
"total": 136000,
|
||||
"total": 48000,
|
||||
"total_discount_amounts": [],
|
||||
"total_excluding_tax": 136000,
|
||||
"total_excluding_tax": 48000,
|
||||
"total_tax_amounts": [],
|
||||
"transfer_data": null,
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnZDEQaroqDjswSuiSkNJ",
|
||||
"id": "evt_1OzstODEQaroqDjswKeyZtOi",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0001",
|
||||
"idempotency_key": "934451b6-f9f5-4f63-9e22-b128999f3d1c"
|
||||
"idempotency_key": "2937de82-f6b7-4fbe-9cf2-f0c6c71c53b1"
|
||||
},
|
||||
"type": "invoice.finalized"
|
||||
"type": "invoice.payment_succeeded"
|
||||
}
|
||||
],
|
||||
"has_more": true,
|
||||
|
||||
@@ -1,199 +1,5 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000005,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
"account_name": "Kandra Labs, Inc.",
|
||||
"account_tax_ids": null,
|
||||
"amount_due": 984000,
|
||||
"amount_paid": 0,
|
||||
"amount_remaining": 984000,
|
||||
"amount_shipping": 0,
|
||||
"application": null,
|
||||
"application_fee_amount": null,
|
||||
"attempt_count": 0,
|
||||
"attempted": false,
|
||||
"auto_advance": false,
|
||||
"automatic_tax": {
|
||||
"enabled": false,
|
||||
"liability": null,
|
||||
"status": null
|
||||
},
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"customer_address": null,
|
||||
"customer_email": "hamlet@zulip.com",
|
||||
"customer_name": null,
|
||||
"customer_phone": null,
|
||||
"customer_shipping": null,
|
||||
"customer_tax_exempt": "none",
|
||||
"customer_tax_ids": [],
|
||||
"default_payment_method": null,
|
||||
"default_source": null,
|
||||
"default_tax_rates": [],
|
||||
"description": null,
|
||||
"discount": null,
|
||||
"discounts": [],
|
||||
"due_date": 1000000000,
|
||||
"effective_at": 1000000000,
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAxMA0200KwGdIyPM?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAxMA0200KwGdIyPM/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
"last_finalization_error": null,
|
||||
"latest_revision": null,
|
||||
"lines": {
|
||||
"data": [
|
||||
{
|
||||
"amount": 984000,
|
||||
"amount_excluding_tax": 984000,
|
||||
"currency": "usd",
|
||||
"description": "Zulip Cloud Standard",
|
||||
"discount_amounts": [],
|
||||
"discountable": false,
|
||||
"discounts": [],
|
||||
"id": "il_NORMALIZED00000000000002",
|
||||
"invoice": "in_NORMALIZED00000000000002",
|
||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
"transform_quantity": null,
|
||||
"type": "one_time",
|
||||
"unit_amount": 8000,
|
||||
"unit_amount_decimal": "8000"
|
||||
},
|
||||
"proration": false,
|
||||
"proration_details": {
|
||||
"credited_items": null
|
||||
},
|
||||
"quantity": 123,
|
||||
"subscription": null,
|
||||
"tax_amounts": [],
|
||||
"tax_rates": [],
|
||||
"type": "invoiceitem",
|
||||
"unit_amount_excluding_tax": "8000"
|
||||
}
|
||||
],
|
||||
"has_more": false,
|
||||
"object": "list",
|
||||
"total_count": 1,
|
||||
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||
},
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"billing_schedule": "1",
|
||||
"license_management": "manual",
|
||||
"licenses": "123",
|
||||
"plan_tier": "1",
|
||||
"user_id": "10"
|
||||
},
|
||||
"next_payment_attempt": null,
|
||||
"number": "NORMALI-0002",
|
||||
"object": "invoice",
|
||||
"on_behalf_of": null,
|
||||
"paid": true,
|
||||
"paid_out_of_band": true,
|
||||
"payment_intent": null,
|
||||
"payment_settings": {
|
||||
"default_mandate": null,
|
||||
"payment_method_options": null,
|
||||
"payment_method_types": null
|
||||
},
|
||||
"period_end": 1000000000,
|
||||
"period_start": 1000000000,
|
||||
"post_payment_credit_notes_amount": 0,
|
||||
"pre_payment_credit_notes_amount": 0,
|
||||
"quote": null,
|
||||
"receipt_number": null,
|
||||
"rendering": {
|
||||
"amount_tax_display": null,
|
||||
"pdf": {
|
||||
"page_size": "letter"
|
||||
}
|
||||
},
|
||||
"rendering_options": null,
|
||||
"shipping_cost": null,
|
||||
"shipping_details": null,
|
||||
"starting_balance": 0,
|
||||
"statement_descriptor": "Zulip Cloud Standard",
|
||||
"status": "paid",
|
||||
"status_transitions": {
|
||||
"finalized_at": 1000000000,
|
||||
"marked_uncollectible_at": null,
|
||||
"paid_at": 1000000000,
|
||||
"voided_at": null
|
||||
},
|
||||
"subscription": null,
|
||||
"subscription_details": {
|
||||
"metadata": null
|
||||
},
|
||||
"subtotal": 984000,
|
||||
"subtotal_excluding_tax": 984000,
|
||||
"tax": null,
|
||||
"test_clock": null,
|
||||
"total": 984000,
|
||||
"total_discount_amounts": [],
|
||||
"total_excluding_tax": 984000,
|
||||
"total_tax_amounts": [],
|
||||
"transfer_data": null,
|
||||
"webhooks_delivered_at": 1000000000
|
||||
},
|
||||
"previous_attributes": {
|
||||
"auto_advance": true,
|
||||
"paid": false,
|
||||
"paid_out_of_band": false,
|
||||
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||
"status": "open",
|
||||
"status_transitions": {
|
||||
"paid_at": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSneDEQaroqDjsfJXtkLc3",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0002",
|
||||
"idempotency_key": "3021799c-5028-4701-933f-f26765c26cb1"
|
||||
},
|
||||
"type": "invoice.updated"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000005,
|
||||
@@ -218,9 +24,9 @@
|
||||
"total_count": 0,
|
||||
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
|
||||
},
|
||||
"client_secret": "pi_NORMALIZED00000000000002_secret_Dc7dllJNZBbo7c4iuo8oqdEUX",
|
||||
"client_secret": "pi_NORMALIZED00000000000002_secret_qeyww67hN1MYDwYWnYo9OO6k4",
|
||||
"confirmation_method": "automatic",
|
||||
"created": 1010000008,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"description": "Payment for Invoice",
|
||||
@@ -267,19 +73,129 @@
|
||||
"transfer_group": null
|
||||
}
|
||||
},
|
||||
"id": "evt_3OqSndDEQaroqDjs1pyyYmIv",
|
||||
"id": "evt_3OzstlDEQaroqDjs0wz6ueBB",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0002",
|
||||
"idempotency_key": "3021799c-5028-4701-933f-f26765c26cb1"
|
||||
"idempotency_key": "464804e9-4ab7-4bf3-8fee-5f6351aaa3e9"
|
||||
},
|
||||
"type": "payment_intent.canceled"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000008,
|
||||
"created": 1010000007,
|
||||
"data": {
|
||||
"object": {
|
||||
"ach_credit_transfer": {
|
||||
"account_number": "test_NORMALIZED02",
|
||||
"bank_name": "TEST BANK",
|
||||
"fingerprint": "NORMALIZED000001",
|
||||
"refund_account_holder_name": null,
|
||||
"refund_account_holder_type": null,
|
||||
"refund_routing_number": null,
|
||||
"routing_number": "110000000",
|
||||
"swift_code": "TSTEZ122"
|
||||
},
|
||||
"amount": null,
|
||||
"client_secret": "src_client_secret_NORMALIZED00000000000001",
|
||||
"created": 1010000007,
|
||||
"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_NORMALIZED01",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "evt_1OzstmDEQaroqDjssdH23560",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": null,
|
||||
"idempotency_key": "7ab0165b-752d-44c4-868f-e214b8c03875"
|
||||
},
|
||||
"type": "customer.source.created"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000007,
|
||||
"data": {
|
||||
"object": {
|
||||
"address": null,
|
||||
"balance": 0,
|
||||
"created": 1010000001,
|
||||
"currency": "usd",
|
||||
"default_currency": "usd",
|
||||
"default_source": "src_NORMALIZED00000000000001",
|
||||
"delinquent": false,
|
||||
"description": "zulip (Zulip Dev)",
|
||||
"discount": null,
|
||||
"email": "hamlet@zulip.com",
|
||||
"id": "cus_NORMALIZED0001",
|
||||
"invoice_prefix": "NORMA01",
|
||||
"invoice_settings": {
|
||||
"custom_fields": null,
|
||||
"default_payment_method": null,
|
||||
"footer": null,
|
||||
"rendering_options": null
|
||||
},
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "1",
|
||||
"realm_str": "zulip"
|
||||
},
|
||||
"name": null,
|
||||
"next_invoice_sequence": 2,
|
||||
"object": "customer",
|
||||
"phone": null,
|
||||
"preferred_locales": [],
|
||||
"shipping": null,
|
||||
"tax_exempt": "none",
|
||||
"test_clock": null
|
||||
},
|
||||
"previous_attributes": {
|
||||
"default_source": null
|
||||
}
|
||||
},
|
||||
"id": "evt_1OzstmDEQaroqDjsu7yW6OfB",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": null,
|
||||
"idempotency_key": "7ab0165b-752d-44c4-868f-e214b8c03875"
|
||||
},
|
||||
"type": "customer.updated"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000006,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
@@ -302,7 +218,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -324,9 +240,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAwOQ0200rauenvM2?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4Ng0200OonJKeKK?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAwOQ0200rauenvM2/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4Ng0200OonJKeKK/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -349,23 +265,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -451,19 +367,19 @@
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSneDEQaroqDjs7e4KHcp9",
|
||||
"id": "evt_1OzstmDEQaroqDjsaSJVzL9w",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0003",
|
||||
"idempotency_key": "7f2f650b-2fbb-4e26-a54e-de07fac6f580"
|
||||
"idempotency_key": "21de11a0-babf-444d-8e30-1274a8262bbd"
|
||||
},
|
||||
"type": "invoice.finalized"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000008,
|
||||
"created": 1010000006,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
@@ -486,7 +402,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -508,9 +424,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAwOQ0200rauenvM2?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4Ng0200OonJKeKK?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAwOQ0200rauenvM2/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4Ng0200OonJKeKK/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -533,23 +449,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -652,19 +568,19 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSndDEQaroqDjsX7pGhKtr",
|
||||
"id": "evt_1OzstmDEQaroqDjs4tT13F4R",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0003",
|
||||
"idempotency_key": "7f2f650b-2fbb-4e26-a54e-de07fac6f580"
|
||||
"idempotency_key": "21de11a0-babf-444d-8e30-1274a8262bbd"
|
||||
},
|
||||
"type": "invoice.updated"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000008,
|
||||
"created": 1010000006,
|
||||
"data": {
|
||||
"object": {
|
||||
"amount": 984000,
|
||||
@@ -686,9 +602,9 @@
|
||||
"total_count": 0,
|
||||
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
|
||||
},
|
||||
"client_secret": "pi_NORMALIZED00000000000002_secret_Dc7dllJNZBbo7c4iuo8oqdEUX",
|
||||
"client_secret": "pi_NORMALIZED00000000000002_secret_qeyww67hN1MYDwYWnYo9OO6k4",
|
||||
"confirmation_method": "automatic",
|
||||
"created": 1010000008,
|
||||
"created": 1010000006,
|
||||
"currency": "usd",
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"description": "Payment for Invoice",
|
||||
@@ -735,19 +651,19 @@
|
||||
"transfer_group": null
|
||||
}
|
||||
},
|
||||
"id": "evt_3OqSndDEQaroqDjs1XQ8Tucr",
|
||||
"id": "evt_3OzstlDEQaroqDjs0rYidA0M",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0003",
|
||||
"idempotency_key": "7f2f650b-2fbb-4e26-a54e-de07fac6f580"
|
||||
"idempotency_key": "21de11a0-babf-444d-8e30-1274a8262bbd"
|
||||
},
|
||||
"type": "payment_intent.created"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
@@ -770,7 +686,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -817,23 +733,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -919,19 +835,19 @@
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSndDEQaroqDjsZHTC5T6E",
|
||||
"id": "evt_1OzstlDEQaroqDjs9BKSXVBb",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0004",
|
||||
"idempotency_key": "29d2db22-9ae4-4a64-8f12-042983b040b0"
|
||||
"idempotency_key": "f4b3e9fa-32a2-4b29-b1fa-dc32ef517db2"
|
||||
},
|
||||
"type": "invoice.created"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"data": {
|
||||
"object": {
|
||||
"amount": 984000,
|
||||
@@ -947,23 +863,23 @@
|
||||
"metadata": {},
|
||||
"object": "invoiceitem",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -981,19 +897,19 @@
|
||||
"unit_amount_decimal": "8000"
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSncDEQaroqDjsv1ULmFMU",
|
||||
"id": "evt_1OzstkDEQaroqDjszWfUrIw6",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0005",
|
||||
"idempotency_key": "c5ff93c4-cbbf-4406-8ae6-03da0f37e538"
|
||||
"idempotency_key": "a26440bf-bb09-450b-93e4-fda0686038fa"
|
||||
},
|
||||
"type": "invoiceitem.created"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"data": {
|
||||
"object": {
|
||||
"address": null,
|
||||
@@ -1033,13 +949,13 @@
|
||||
"default_currency": null
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSncDEQaroqDjspsdXGUEd",
|
||||
"id": "evt_1OzstkDEQaroqDjs1W5T2nwY",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0005",
|
||||
"idempotency_key": "c5ff93c4-cbbf-4406-8ae6-03da0f37e538"
|
||||
"idempotency_key": "a26440bf-bb09-450b-93e4-fda0686038fa"
|
||||
},
|
||||
"type": "customer.updated"
|
||||
},
|
||||
@@ -1081,18 +997,18 @@
|
||||
"test_clock": null
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnbDEQaroqDjscoYEBbeE",
|
||||
"id": "evt_1OzstjDEQaroqDjs1a2bxbQe",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0006",
|
||||
"idempotency_key": "55671ac8-f12d-403e-9fbc-3082256d2566"
|
||||
"idempotency_key": "bfe2cc04-5604-44ad-a357-5ba217c99aa6"
|
||||
},
|
||||
"type": "customer.created"
|
||||
}
|
||||
],
|
||||
"has_more": false,
|
||||
"has_more": true,
|
||||
"object": "list",
|
||||
"url": "/v1/events"
|
||||
}
|
||||
|
||||
@@ -1,115 +1,5 @@
|
||||
{
|
||||
"data": [
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000005,
|
||||
"data": {
|
||||
"object": {
|
||||
"ach_credit_transfer": {
|
||||
"account_number": "test_NORMALIZED02",
|
||||
"bank_name": "TEST BANK",
|
||||
"fingerprint": "NORMALIZED000001",
|
||||
"refund_account_holder_name": null,
|
||||
"refund_account_holder_type": null,
|
||||
"refund_routing_number": null,
|
||||
"routing_number": "110000000",
|
||||
"swift_code": "TSTEZ122"
|
||||
},
|
||||
"amount": null,
|
||||
"client_secret": "src_client_secret_NORMALIZED00000000000001",
|
||||
"created": 1010000005,
|
||||
"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_NORMALIZED01",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSneDEQaroqDjsSma3RO15",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": null,
|
||||
"idempotency_key": "5bdc0496-04f9-4131-8cee-2d791a3e80df"
|
||||
},
|
||||
"type": "customer.source.created"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000005,
|
||||
"data": {
|
||||
"object": {
|
||||
"address": null,
|
||||
"balance": 0,
|
||||
"created": 1010000001,
|
||||
"currency": "usd",
|
||||
"default_currency": "usd",
|
||||
"default_source": "src_NORMALIZED00000000000001",
|
||||
"delinquent": false,
|
||||
"description": "zulip (Zulip Dev)",
|
||||
"discount": null,
|
||||
"email": "hamlet@zulip.com",
|
||||
"id": "cus_NORMALIZED0001",
|
||||
"invoice_prefix": "NORMA01",
|
||||
"invoice_settings": {
|
||||
"custom_fields": null,
|
||||
"default_payment_method": null,
|
||||
"footer": null,
|
||||
"rendering_options": null
|
||||
},
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"realm_id": "1",
|
||||
"realm_str": "zulip"
|
||||
},
|
||||
"name": null,
|
||||
"next_invoice_sequence": 2,
|
||||
"object": "customer",
|
||||
"phone": null,
|
||||
"preferred_locales": [],
|
||||
"shipping": null,
|
||||
"tax_exempt": "none",
|
||||
"test_clock": null
|
||||
},
|
||||
"previous_attributes": {
|
||||
"default_source": null
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSnfDEQaroqDjsp0SUBTv6",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": null,
|
||||
"idempotency_key": "5bdc0496-04f9-4131-8cee-2d791a3e80df"
|
||||
},
|
||||
"type": "customer.updated"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000005,
|
||||
@@ -135,7 +25,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -157,9 +47,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAxMA0200KwGdIyPM?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4OA0200wX57Gyuw?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAxMA0200KwGdIyPM/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4OA0200wX57Gyuw/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -182,23 +72,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
@@ -233,7 +123,7 @@
|
||||
"user_id": "10"
|
||||
},
|
||||
"next_payment_attempt": null,
|
||||
"number": "NORMALI-0002",
|
||||
"number": "NORMALI-0003",
|
||||
"object": "invoice",
|
||||
"on_behalf_of": null,
|
||||
"paid": true,
|
||||
@@ -284,15 +174,209 @@
|
||||
"webhooks_delivered_at": 1000000000
|
||||
}
|
||||
},
|
||||
"id": "evt_1OqSneDEQaroqDjsdOiwDoJ1",
|
||||
"id": "evt_1OzstoDEQaroqDjsDkNnfGFJ",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0002",
|
||||
"idempotency_key": "3021799c-5028-4701-933f-f26765c26cb1"
|
||||
"idempotency_key": "464804e9-4ab7-4bf3-8fee-5f6351aaa3e9"
|
||||
},
|
||||
"type": "invoice.paid"
|
||||
},
|
||||
{
|
||||
"api_version": "2020-08-27",
|
||||
"created": 1010000005,
|
||||
"data": {
|
||||
"object": {
|
||||
"account_country": "US",
|
||||
"account_name": "Kandra Labs, Inc.",
|
||||
"account_tax_ids": null,
|
||||
"amount_due": 984000,
|
||||
"amount_paid": 0,
|
||||
"amount_remaining": 984000,
|
||||
"amount_shipping": 0,
|
||||
"application": null,
|
||||
"application_fee_amount": null,
|
||||
"attempt_count": 0,
|
||||
"attempted": false,
|
||||
"auto_advance": false,
|
||||
"automatic_tax": {
|
||||
"enabled": false,
|
||||
"liability": null,
|
||||
"status": null
|
||||
},
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
"customer_address": null,
|
||||
"customer_email": "hamlet@zulip.com",
|
||||
"customer_name": null,
|
||||
"customer_phone": null,
|
||||
"customer_shipping": null,
|
||||
"customer_tax_exempt": "none",
|
||||
"customer_tax_ids": [],
|
||||
"default_payment_method": null,
|
||||
"default_source": null,
|
||||
"default_tax_rates": [],
|
||||
"description": null,
|
||||
"discount": null,
|
||||
"discounts": [],
|
||||
"due_date": 1000000000,
|
||||
"effective_at": 1000000000,
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4Nw0200dO9fVTSS?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4Nw0200dO9fVTSS/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
"last_finalization_error": null,
|
||||
"latest_revision": null,
|
||||
"lines": {
|
||||
"data": [
|
||||
{
|
||||
"amount": 984000,
|
||||
"amount_excluding_tax": 984000,
|
||||
"currency": "usd",
|
||||
"description": "Zulip Cloud Standard",
|
||||
"discount_amounts": [],
|
||||
"discountable": false,
|
||||
"discounts": [],
|
||||
"id": "il_NORMALIZED00000000000002",
|
||||
"invoice": "in_NORMALIZED00000000000002",
|
||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
||||
"livemode": false,
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
"transform_quantity": null,
|
||||
"type": "one_time",
|
||||
"unit_amount": 8000,
|
||||
"unit_amount_decimal": "8000"
|
||||
},
|
||||
"proration": false,
|
||||
"proration_details": {
|
||||
"credited_items": null
|
||||
},
|
||||
"quantity": 123,
|
||||
"subscription": null,
|
||||
"tax_amounts": [],
|
||||
"tax_rates": [],
|
||||
"type": "invoiceitem",
|
||||
"unit_amount_excluding_tax": "8000"
|
||||
}
|
||||
],
|
||||
"has_more": false,
|
||||
"object": "list",
|
||||
"total_count": 1,
|
||||
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||
},
|
||||
"livemode": false,
|
||||
"metadata": {
|
||||
"billing_schedule": "1",
|
||||
"license_management": "manual",
|
||||
"licenses": "123",
|
||||
"plan_tier": "1",
|
||||
"user_id": "10"
|
||||
},
|
||||
"next_payment_attempt": null,
|
||||
"number": "NORMALI-0003",
|
||||
"object": "invoice",
|
||||
"on_behalf_of": null,
|
||||
"paid": true,
|
||||
"paid_out_of_band": true,
|
||||
"payment_intent": null,
|
||||
"payment_settings": {
|
||||
"default_mandate": null,
|
||||
"payment_method_options": null,
|
||||
"payment_method_types": null
|
||||
},
|
||||
"period_end": 1000000000,
|
||||
"period_start": 1000000000,
|
||||
"post_payment_credit_notes_amount": 0,
|
||||
"pre_payment_credit_notes_amount": 0,
|
||||
"quote": null,
|
||||
"receipt_number": null,
|
||||
"rendering": {
|
||||
"amount_tax_display": null,
|
||||
"pdf": {
|
||||
"page_size": "letter"
|
||||
}
|
||||
},
|
||||
"rendering_options": null,
|
||||
"shipping_cost": null,
|
||||
"shipping_details": null,
|
||||
"starting_balance": 0,
|
||||
"statement_descriptor": "Zulip Cloud Standard",
|
||||
"status": "paid",
|
||||
"status_transitions": {
|
||||
"finalized_at": 1000000000,
|
||||
"marked_uncollectible_at": null,
|
||||
"paid_at": 1000000000,
|
||||
"voided_at": null
|
||||
},
|
||||
"subscription": null,
|
||||
"subscription_details": {
|
||||
"metadata": null
|
||||
},
|
||||
"subtotal": 984000,
|
||||
"subtotal_excluding_tax": 984000,
|
||||
"tax": null,
|
||||
"test_clock": null,
|
||||
"total": 984000,
|
||||
"total_discount_amounts": [],
|
||||
"total_excluding_tax": 984000,
|
||||
"total_tax_amounts": [],
|
||||
"transfer_data": null,
|
||||
"webhooks_delivered_at": 1000000000
|
||||
},
|
||||
"previous_attributes": {
|
||||
"auto_advance": true,
|
||||
"paid": false,
|
||||
"paid_out_of_band": false,
|
||||
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||
"status": "open",
|
||||
"status_transitions": {
|
||||
"paid_at": null
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "evt_1OzstnDEQaroqDjsJHqPM1Vh",
|
||||
"livemode": false,
|
||||
"object": "event",
|
||||
"pending_webhooks": 0,
|
||||
"request": {
|
||||
"id": "req_NORMALIZED0002",
|
||||
"idempotency_key": "464804e9-4ab7-4bf3-8fee-5f6351aaa3e9"
|
||||
},
|
||||
"type": "invoice.updated"
|
||||
}
|
||||
],
|
||||
"has_more": false,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -66,23 +66,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -41,9 +41,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAwOQ0200rauenvM2?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4NQ0200NgL49MZB?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAwOQ0200rauenvM2/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4NQ0200NgL49MZB/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -66,23 +66,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -43,9 +43,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAxMg0200NJnWdpIO?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4OQ0200n01hzlBU?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAxMg0200NJnWdpIO/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4OQ0200n01hzlBU/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -68,23 +68,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"billing_reason": "manual",
|
||||
"charge": null,
|
||||
"collection_method": "send_invoice",
|
||||
"created": 1010000006,
|
||||
"created": 1010000008,
|
||||
"currency": "usd",
|
||||
"custom_fields": null,
|
||||
"customer": "cus_NORMALIZED0001",
|
||||
@@ -41,9 +41,9 @@
|
||||
"ending_balance": 0,
|
||||
"footer": null,
|
||||
"from_invoice": null,
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAxMA0200KwGdIyPM?s=ap",
|
||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4Nw0200dO9fVTSS?s=ap",
|
||||
"id": "in_NORMALIZED00000000000002",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QZm9RUFpmWmllZmVFNW9UblFiYzkzQ0kwSW52S2dHLDEwMDA2NjAxMA0200KwGdIyPM/pdf?s=ap",
|
||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QcFh6bW55aHBDQmFoRmFURk1QdnAwdjBGNHNRTkJULDEwMjMxMTI4Nw0200dO9fVTSS/pdf?s=ap",
|
||||
"issuer": {
|
||||
"type": "self"
|
||||
},
|
||||
@@ -66,23 +66,23 @@
|
||||
"metadata": {},
|
||||
"object": "line_item",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -12,23 +12,23 @@
|
||||
"metadata": {},
|
||||
"object": "invoiceitem",
|
||||
"period": {
|
||||
"end": 1000000000,
|
||||
"start": 1000000000
|
||||
"end": 1357095845,
|
||||
"start": 1325473445
|
||||
},
|
||||
"plan": null,
|
||||
"price": {
|
||||
"active": false,
|
||||
"billing_scheme": "per_unit",
|
||||
"created": 1010000007,
|
||||
"created": 1010000004,
|
||||
"currency": "usd",
|
||||
"custom_unit_amount": null,
|
||||
"id": "price_NORMALIZED00000000000002",
|
||||
"id": "price_NORMALIZED00000000000001",
|
||||
"livemode": false,
|
||||
"lookup_key": null,
|
||||
"metadata": {},
|
||||
"nickname": null,
|
||||
"object": "price",
|
||||
"product": "prod_NORMALIZED0002",
|
||||
"product": "prod_NORMALIZED0001",
|
||||
"recurring": null,
|
||||
"tax_behavior": "unspecified",
|
||||
"tiers_mode": null,
|
||||
|
||||
@@ -884,6 +884,10 @@ class StripeTest(StripeTestCase):
|
||||
"plan": None,
|
||||
"proration": False,
|
||||
"quantity": self.seat_count,
|
||||
"period": {
|
||||
"start": datetime_to_timestamp(self.now),
|
||||
"end": datetime_to_timestamp(add_months(self.now, 12)),
|
||||
},
|
||||
}
|
||||
for key, value in line_item_params.items():
|
||||
self.assertEqual(item0.get(key), value)
|
||||
@@ -1022,6 +1026,10 @@ class StripeTest(StripeTestCase):
|
||||
"plan": None,
|
||||
"proration": False,
|
||||
"quantity": 123,
|
||||
"period": {
|
||||
"start": datetime_to_timestamp(self.now),
|
||||
"end": datetime_to_timestamp(add_months(self.now, 12)),
|
||||
},
|
||||
}
|
||||
for key, value in line_item_params.items():
|
||||
self.assertEqual(item.get(key), value)
|
||||
|
||||
Reference in New Issue
Block a user