mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	stripe: Send invoice to customer at the start of free trial.
We send customer an invoice at the start of free trial, if customer pays we upgrade them to the active plan at the end of free trial, else we downgrade them and show a custom message on the upgrade page regarding the current status.
This commit is contained in:
		@@ -685,6 +685,8 @@ class UpgradePageContext(TypedDict):
 | 
			
		||||
    is_sponsorship_pending: bool
 | 
			
		||||
    sponsorship_plan_name: str
 | 
			
		||||
    scheduled_upgrade_invoice_amount_due: Optional[str]
 | 
			
		||||
    is_free_trial_invoice_expired_notice: bool
 | 
			
		||||
    free_trial_invoice_expired_notice_page_plan_name: Optional[str]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class SponsorshipRequestForm(forms.Form):
 | 
			
		||||
@@ -868,6 +870,9 @@ class BillingSession(ABC):
 | 
			
		||||
        charge_automatically: bool,
 | 
			
		||||
        invoice_period: Dict[str, int],
 | 
			
		||||
        license_management: Optional[str] = None,
 | 
			
		||||
        days_until_due: Optional[int] = None,
 | 
			
		||||
        on_free_trial: bool = False,
 | 
			
		||||
        current_plan_id: Optional[int] = None,
 | 
			
		||||
    ) -> stripe.Invoice:
 | 
			
		||||
        plan_name = CustomerPlan.name_from_tier(plan_tier)
 | 
			
		||||
        assert price_per_license is None or fixed_price is None
 | 
			
		||||
@@ -910,12 +915,12 @@ class BillingSession(ABC):
 | 
			
		||||
 | 
			
		||||
        if charge_automatically:
 | 
			
		||||
            collection_method = "charge_automatically"
 | 
			
		||||
            days_until_due = None
 | 
			
		||||
        else:
 | 
			
		||||
            collection_method = "send_invoice"
 | 
			
		||||
            # days_until_due is required for `send_invoice` collection method. Since this is an invoice
 | 
			
		||||
            # for upgrade, the due date is irrelevant since customer will upgrade once they pay the invoice
 | 
			
		||||
            # regardless of the due date. Using `1` shows `Due today / tomorrow` which seems nice.
 | 
			
		||||
            if days_until_due is None:
 | 
			
		||||
                days_until_due = 1
 | 
			
		||||
 | 
			
		||||
        metadata = {
 | 
			
		||||
@@ -923,6 +928,8 @@ class BillingSession(ABC):
 | 
			
		||||
            "billing_schedule": billing_schedule,
 | 
			
		||||
            "licenses": licenses,
 | 
			
		||||
            "license_management": license_management,
 | 
			
		||||
            "on_free_trial": on_free_trial,
 | 
			
		||||
            "current_plan_id": current_plan_id,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if hasattr(self, "user"):
 | 
			
		||||
@@ -1156,6 +1163,8 @@ class BillingSession(ABC):
 | 
			
		||||
            assert stripe_customer.invoice_settings.default_payment_method is not None
 | 
			
		||||
        stripe_invoice = None
 | 
			
		||||
        try:
 | 
			
		||||
            current_plan_id = metadata.get("current_plan_id")
 | 
			
		||||
            on_free_trial = bool(metadata.get("on_free_trial"))
 | 
			
		||||
            stripe_invoice = self.generate_invoice_for_upgrade(
 | 
			
		||||
                customer,
 | 
			
		||||
                metadata["price_per_license"],
 | 
			
		||||
@@ -1166,13 +1175,20 @@ class BillingSession(ABC):
 | 
			
		||||
                charge_automatically=charge_automatically,
 | 
			
		||||
                license_management=metadata["license_management"],
 | 
			
		||||
                invoice_period=metadata["invoice_period"],
 | 
			
		||||
                days_until_due=metadata.get("days_until_due"),
 | 
			
		||||
                on_free_trial=on_free_trial,
 | 
			
		||||
                current_plan_id=current_plan_id,
 | 
			
		||||
            )
 | 
			
		||||
            assert stripe_invoice.id is not None
 | 
			
		||||
 | 
			
		||||
            invoice = Invoice.objects.create(
 | 
			
		||||
                stripe_invoice_id=stripe_invoice.id,
 | 
			
		||||
                customer=customer,
 | 
			
		||||
                status=Invoice.SENT,
 | 
			
		||||
                plan_id=current_plan_id,
 | 
			
		||||
                is_created_for_free_trial_upgrade=current_plan_id is not None and on_free_trial,
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
            if charge_automatically:
 | 
			
		||||
                # Stripe takes its sweet hour to charge customers after creating an invoice.
 | 
			
		||||
                # Since we want to charge customers immediately, we charge them manually.
 | 
			
		||||
@@ -1583,6 +1599,9 @@ class BillingSession(ABC):
 | 
			
		||||
        license_management: str,
 | 
			
		||||
        billing_schedule: int,
 | 
			
		||||
        billing_modality: str,
 | 
			
		||||
        on_free_trial: bool = False,
 | 
			
		||||
        days_until_due: Optional[int] = None,
 | 
			
		||||
        current_plan_id: Optional[int] = None,
 | 
			
		||||
    ) -> str:
 | 
			
		||||
        customer = self.update_or_create_stripe_customer()
 | 
			
		||||
        assert customer is not None  # for mypy
 | 
			
		||||
@@ -1596,6 +1615,9 @@ class BillingSession(ABC):
 | 
			
		||||
            "fixed_price": None,
 | 
			
		||||
            "type": "upgrade",
 | 
			
		||||
            "plan_tier": plan_tier,
 | 
			
		||||
            "on_free_trial": on_free_trial,
 | 
			
		||||
            "days_until_due": days_until_due,
 | 
			
		||||
            "current_plan_id": current_plan_id,
 | 
			
		||||
        }
 | 
			
		||||
        discount_for_plan = customer.get_discount_for_plan_tier(plan_tier)
 | 
			
		||||
        (
 | 
			
		||||
@@ -1607,9 +1629,7 @@ class BillingSession(ABC):
 | 
			
		||||
            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,
 | 
			
		||||
            on_free_trial,
 | 
			
		||||
            None,
 | 
			
		||||
            not isinstance(self, RealmBillingSession),
 | 
			
		||||
        )
 | 
			
		||||
@@ -1621,6 +1641,14 @@ class BillingSession(ABC):
 | 
			
		||||
                invoice_period_start, CustomerPlan.FIXED_PRICE_PLAN_DURATION_MONTHS
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
        if on_free_trial and billing_modality == "send_invoice":
 | 
			
		||||
            # Paid plan starts at the end of free trial.
 | 
			
		||||
            invoice_period_start = invoice_period_end
 | 
			
		||||
            purchased_months = 1
 | 
			
		||||
            if billing_schedule == CustomerPlan.BILLING_SCHEDULE_ANNUAL:
 | 
			
		||||
                purchased_months = 12
 | 
			
		||||
            invoice_period_end = add_months(invoice_period_end, purchased_months)
 | 
			
		||||
 | 
			
		||||
        general_metadata["invoice_period"] = {
 | 
			
		||||
            "start": datetime_to_timestamp(invoice_period_start),
 | 
			
		||||
            "end": datetime_to_timestamp(invoice_period_end),
 | 
			
		||||
@@ -1855,6 +1883,8 @@ class BillingSession(ABC):
 | 
			
		||||
        if not stripe_invoice_paid and not (
 | 
			
		||||
            free_trial or should_schedule_upgrade_for_legacy_remote_server
 | 
			
		||||
        ):
 | 
			
		||||
            # We don't actually expect to ever reach here but this is just a safety net
 | 
			
		||||
            # in case any future changes make this possible.
 | 
			
		||||
            assert plan is not None
 | 
			
		||||
            self.generate_invoice_for_upgrade(
 | 
			
		||||
                customer,
 | 
			
		||||
@@ -1869,6 +1899,22 @@ class BillingSession(ABC):
 | 
			
		||||
                    "end": datetime_to_timestamp(period_end),
 | 
			
		||||
                },
 | 
			
		||||
            )
 | 
			
		||||
        elif free_trial and not charge_automatically:
 | 
			
		||||
            assert stripe_invoice_paid is False
 | 
			
		||||
            assert plan is not None
 | 
			
		||||
            assert plan.next_invoice_date is not None
 | 
			
		||||
            # Send an invoice to the customer which expires at the end of free trial. If the customer
 | 
			
		||||
            # fails to pay the invoice before expiration, we downgrade the customer.
 | 
			
		||||
            self.generate_stripe_invoice(
 | 
			
		||||
                plan_tier,
 | 
			
		||||
                licenses=billed_licenses,
 | 
			
		||||
                license_management="automatic" if automanage_licenses else "manual",
 | 
			
		||||
                billing_schedule=billing_schedule,
 | 
			
		||||
                billing_modality="send_invoice",
 | 
			
		||||
                on_free_trial=True,
 | 
			
		||||
                days_until_due=(plan.next_invoice_date - event_time).days,
 | 
			
		||||
                current_plan_id=plan.id,
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
    def do_upgrade(self, upgrade_request: UpgradeRequest) -> Dict[str, Any]:
 | 
			
		||||
        customer = self.get_customer()
 | 
			
		||||
@@ -1950,6 +1996,9 @@ class BillingSession(ABC):
 | 
			
		||||
        return data
 | 
			
		||||
 | 
			
		||||
    def do_change_schedule_after_free_trial(self, plan: CustomerPlan, schedule: int) -> None:
 | 
			
		||||
        # NOTE: Schedule change for free trial with invoice payments is not supported due to complication
 | 
			
		||||
        # involving sending another invoice and handling payment difference if customer already paid.
 | 
			
		||||
        assert plan.charge_automatically
 | 
			
		||||
        # Change the billing frequency of the plan after the free trial ends.
 | 
			
		||||
        assert schedule in (
 | 
			
		||||
            CustomerPlan.BILLING_SCHEDULE_MONTHLY,
 | 
			
		||||
@@ -2074,13 +2123,28 @@ class BillingSession(ABC):
 | 
			
		||||
                    licenses_at_next_renewal=licenses_at_next_renewal,
 | 
			
		||||
                )
 | 
			
		||||
            if plan.is_free_trial():
 | 
			
		||||
                is_renewal = True
 | 
			
		||||
                # Check if user has already paid for the plan by invoice.
 | 
			
		||||
                if not plan.charge_automatically:
 | 
			
		||||
                    last_sent_invoice = Invoice.objects.filter(plan=plan).order_by("-id").first()
 | 
			
		||||
                    if last_sent_invoice and last_sent_invoice.status == Invoice.PAID:
 | 
			
		||||
                        # This will create invoice for any additional licenses that user has at the time of
 | 
			
		||||
                        # switching from free trial to paid plan since they already paid for the plan's this billing cycle.
 | 
			
		||||
                        is_renewal = False
 | 
			
		||||
                    else:
 | 
			
		||||
                        # We end the free trial since customer hasn't paid.
 | 
			
		||||
                        plan.status = CustomerPlan.DOWNGRADE_AT_END_OF_FREE_TRIAL
 | 
			
		||||
                        plan.save(update_fields=["status"])
 | 
			
		||||
                        self.make_end_of_cycle_updates_if_needed(plan, event_time)
 | 
			
		||||
                        return None, None
 | 
			
		||||
 | 
			
		||||
                plan.invoiced_through = last_ledger_entry
 | 
			
		||||
                plan.billing_cycle_anchor = next_billing_cycle.replace(microsecond=0)
 | 
			
		||||
                plan.status = CustomerPlan.ACTIVE
 | 
			
		||||
                plan.save(update_fields=["invoiced_through", "billing_cycle_anchor", "status"])
 | 
			
		||||
                return None, LicenseLedger.objects.create(
 | 
			
		||||
                    plan=plan,
 | 
			
		||||
                    is_renewal=True,
 | 
			
		||||
                    is_renewal=is_renewal,
 | 
			
		||||
                    event_time=next_billing_cycle,
 | 
			
		||||
                    licenses=licenses_at_next_renewal,
 | 
			
		||||
                    licenses_at_next_renewal=licenses_at_next_renewal,
 | 
			
		||||
@@ -2245,6 +2309,7 @@ class BillingSession(ABC):
 | 
			
		||||
        last_ledger_entry: LicenseLedger,
 | 
			
		||||
        now: datetime,
 | 
			
		||||
    ) -> Dict[str, Any]:
 | 
			
		||||
        is_self_hosted_billing = not isinstance(self, RealmBillingSession)
 | 
			
		||||
        downgrade_at_end_of_cycle = plan.status == CustomerPlan.DOWNGRADE_AT_END_OF_CYCLE
 | 
			
		||||
        downgrade_at_end_of_free_trial = plan.status == CustomerPlan.DOWNGRADE_AT_END_OF_FREE_TRIAL
 | 
			
		||||
        switch_to_annual_at_end_of_cycle = (
 | 
			
		||||
@@ -2272,6 +2337,27 @@ class BillingSession(ABC):
 | 
			
		||||
                dt=start_of_next_billing_cycle(plan, now)
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
        has_paid_invoice_for_free_trial = False
 | 
			
		||||
        free_trial_next_renewal_date_after_invoice_paid = None
 | 
			
		||||
        if plan.is_free_trial() and not plan.charge_automatically:
 | 
			
		||||
            last_sent_invoice = Invoice.objects.filter(plan=plan).order_by("-id").first()
 | 
			
		||||
            # If the customer doesn't have any invoice, this likely means a bug and customer needs to be handled manually.
 | 
			
		||||
            assert last_sent_invoice is not None
 | 
			
		||||
            has_paid_invoice_for_free_trial = last_sent_invoice.status == Invoice.PAID
 | 
			
		||||
 | 
			
		||||
            if has_paid_invoice_for_free_trial:
 | 
			
		||||
                assert plan.next_invoice_date is not None
 | 
			
		||||
                free_trial_days = get_free_trial_days(is_self_hosted_billing, plan.tier)
 | 
			
		||||
                assert free_trial_days is not None
 | 
			
		||||
                free_trial_next_renewal_date_after_invoice_paid = (
 | 
			
		||||
                    "{dt:%B} {dt.day}, {dt.year}".format(
 | 
			
		||||
                        dt=(
 | 
			
		||||
                            start_of_next_billing_cycle(plan, plan.next_invoice_date)
 | 
			
		||||
                            + timedelta(days=free_trial_days)
 | 
			
		||||
                        )
 | 
			
		||||
                    )
 | 
			
		||||
                )
 | 
			
		||||
 | 
			
		||||
        billing_frequency = CustomerPlan.BILLING_SCHEDULES[plan.billing_schedule]
 | 
			
		||||
        discount_for_current_plan = plan.discount
 | 
			
		||||
 | 
			
		||||
@@ -2328,7 +2414,6 @@ class BillingSession(ABC):
 | 
			
		||||
            customer, status=CustomerPlan.SWITCH_PLAN_TIER_AT_PLAN_END
 | 
			
		||||
        )
 | 
			
		||||
        legacy_remote_server_next_plan_name = self.get_legacy_remote_server_next_plan_name(customer)
 | 
			
		||||
        is_self_hosted_billing = not isinstance(self, RealmBillingSession)
 | 
			
		||||
        context = {
 | 
			
		||||
            "plan_name": plan.name,
 | 
			
		||||
            "has_active_plan": True,
 | 
			
		||||
@@ -2364,6 +2449,8 @@ class BillingSession(ABC):
 | 
			
		||||
            "pre_discount_renewal_cents": cents_to_dollar_string(pre_discount_renewal_cents),
 | 
			
		||||
            "flat_discount": format_money(customer.flat_discount),
 | 
			
		||||
            "discounted_months_left": customer.flat_discounted_months,
 | 
			
		||||
            "has_paid_invoice_for_free_trial": has_paid_invoice_for_free_trial,
 | 
			
		||||
            "free_trial_next_renewal_date_after_invoice_paid": free_trial_next_renewal_date_after_invoice_paid,
 | 
			
		||||
        }
 | 
			
		||||
        return context
 | 
			
		||||
 | 
			
		||||
@@ -2461,6 +2548,8 @@ class BillingSession(ABC):
 | 
			
		||||
        fixed_price = None
 | 
			
		||||
        pay_by_invoice_payments_page = None
 | 
			
		||||
        scheduled_upgrade_invoice_amount_due = None
 | 
			
		||||
        is_free_trial_invoice_expired_notice = False
 | 
			
		||||
        free_trial_invoice_expired_notice_page_plan_name = None
 | 
			
		||||
        if customer is not None:
 | 
			
		||||
            fixed_price_plan_offer = get_configured_fixed_price_plan_offer(customer, tier)
 | 
			
		||||
            if fixed_price_plan_offer:
 | 
			
		||||
@@ -2485,6 +2574,17 @@ class BillingSession(ABC):
 | 
			
		||||
                        scheduled_upgrade_invoice_amount_due = format_money(invoice.amount_due)
 | 
			
		||||
                        pay_by_invoice_payments_page = f"{self.billing_base_url}/invoices"
 | 
			
		||||
 | 
			
		||||
                        if (
 | 
			
		||||
                            last_send_invoice.plan is not None
 | 
			
		||||
                            and last_send_invoice.is_created_for_free_trial_upgrade
 | 
			
		||||
                        ):
 | 
			
		||||
                            # Automatic payment invoice would have been marked void already.
 | 
			
		||||
                            assert not last_send_invoice.plan.charge_automatically
 | 
			
		||||
                            is_free_trial_invoice_expired_notice = True
 | 
			
		||||
                            free_trial_invoice_expired_notice_page_plan_name = (
 | 
			
		||||
                                last_send_invoice.plan.name
 | 
			
		||||
                            )
 | 
			
		||||
 | 
			
		||||
        percent_off = Decimal(0)
 | 
			
		||||
        if customer is not None:
 | 
			
		||||
            discount_for_plan_tier = customer.get_discount_for_plan_tier(tier)
 | 
			
		||||
@@ -2571,19 +2671,23 @@ class BillingSession(ABC):
 | 
			
		||||
                customer, is_self_hosted_billing
 | 
			
		||||
            ),
 | 
			
		||||
            "scheduled_upgrade_invoice_amount_due": scheduled_upgrade_invoice_amount_due,
 | 
			
		||||
            "is_free_trial_invoice_expired_notice": is_free_trial_invoice_expired_notice,
 | 
			
		||||
            "free_trial_invoice_expired_notice_page_plan_name": free_trial_invoice_expired_notice_page_plan_name,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return None, context
 | 
			
		||||
 | 
			
		||||
    def min_licenses_for_flat_discount_to_self_hosted_basic_plan(
 | 
			
		||||
        self, customer: Optional[Customer]
 | 
			
		||||
        self,
 | 
			
		||||
        customer: Optional[Customer],
 | 
			
		||||
        is_plan_free_trial_with_invoice_payment: bool = False,
 | 
			
		||||
    ) -> int:
 | 
			
		||||
        # Since monthly and annual TIER_SELF_HOSTED_BASIC plans have same per user price we only need to do this calculation once.
 | 
			
		||||
        # If we decided to apply this for other tiers, then we will have to do this calculation based on billing schedule selected by the user.
 | 
			
		||||
        price_per_license = get_price_per_license(
 | 
			
		||||
            CustomerPlan.TIER_SELF_HOSTED_BASIC, CustomerPlan.BILLING_SCHEDULE_MONTHLY
 | 
			
		||||
        )
 | 
			
		||||
        if customer is None:
 | 
			
		||||
        if customer is None or is_plan_free_trial_with_invoice_payment:
 | 
			
		||||
            return (
 | 
			
		||||
                Customer._meta.get_field("flat_discount").get_default() // price_per_license
 | 
			
		||||
            ) + 1
 | 
			
		||||
@@ -2592,14 +2696,22 @@ class BillingSession(ABC):
 | 
			
		||||
        # If flat discount is not applied.
 | 
			
		||||
        return 1
 | 
			
		||||
 | 
			
		||||
    def min_licenses_for_plan(self, tier: int) -> int:
 | 
			
		||||
    def min_licenses_for_plan(
 | 
			
		||||
        self, tier: int, is_plan_free_trial_with_invoice_payment: bool = False
 | 
			
		||||
    ) -> int:
 | 
			
		||||
        customer = self.get_customer()
 | 
			
		||||
        if customer is not None and customer.minimum_licenses:
 | 
			
		||||
            assert customer.default_discount is not None
 | 
			
		||||
            return customer.minimum_licenses
 | 
			
		||||
 | 
			
		||||
        if tier == CustomerPlan.TIER_SELF_HOSTED_BASIC:
 | 
			
		||||
            return min(self.min_licenses_for_flat_discount_to_self_hosted_basic_plan(customer), 10)
 | 
			
		||||
            return min(
 | 
			
		||||
                self.min_licenses_for_flat_discount_to_self_hosted_basic_plan(
 | 
			
		||||
                    customer,
 | 
			
		||||
                    is_plan_free_trial_with_invoice_payment,
 | 
			
		||||
                ),
 | 
			
		||||
                10,
 | 
			
		||||
            )
 | 
			
		||||
        if tier == CustomerPlan.TIER_SELF_HOSTED_BUSINESS:
 | 
			
		||||
            return 25
 | 
			
		||||
        return 1
 | 
			
		||||
@@ -2705,8 +2817,11 @@ class BillingSession(ABC):
 | 
			
		||||
                self.downgrade_now_without_creating_additional_invoices(plan=plan)
 | 
			
		||||
            elif status == CustomerPlan.DOWNGRADE_AT_END_OF_FREE_TRIAL:
 | 
			
		||||
                assert plan.is_free_trial()
 | 
			
		||||
                # For payment by invoice, we don't allow changing plan schedule and status.
 | 
			
		||||
                assert plan.charge_automatically
 | 
			
		||||
                do_change_plan_status(plan, status)
 | 
			
		||||
            elif status == CustomerPlan.FREE_TRIAL:
 | 
			
		||||
                assert plan.charge_automatically
 | 
			
		||||
                if update_plan_request.schedule is not None:
 | 
			
		||||
                    self.do_change_schedule_after_free_trial(plan, update_plan_request.schedule)
 | 
			
		||||
                else:
 | 
			
		||||
@@ -2769,13 +2884,44 @@ class BillingSession(ABC):
 | 
			
		||||
                        "Your plan is already scheduled to renew with {licenses_at_next_renewal} licenses."
 | 
			
		||||
                    ).format(licenses_at_next_renewal=licenses_at_next_renewal)
 | 
			
		||||
                )
 | 
			
		||||
            is_plan_free_trial_with_invoice_payment = (
 | 
			
		||||
                plan.is_free_trial() and not plan.charge_automatically
 | 
			
		||||
            )
 | 
			
		||||
            validate_licenses(
 | 
			
		||||
                plan.charge_automatically,
 | 
			
		||||
                licenses_at_next_renewal,
 | 
			
		||||
                self.current_count_for_billed_licenses(),
 | 
			
		||||
                plan.customer.exempt_from_license_number_check,
 | 
			
		||||
                self.min_licenses_for_plan(plan.tier),
 | 
			
		||||
                self.min_licenses_for_plan(plan.tier, is_plan_free_trial_with_invoice_payment),
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
            # User is trying to change licenses while in free trial.
 | 
			
		||||
            if is_plan_free_trial_with_invoice_payment:  # nocoverage
 | 
			
		||||
                invoice = Invoice.objects.filter(plan=plan).order_by("-id").first()
 | 
			
		||||
                assert invoice is not None
 | 
			
		||||
                # Don't allow customer to reduce licenses for next billing cycle if they have paid invoice.
 | 
			
		||||
                if invoice.status == Invoice.PAID:
 | 
			
		||||
                    assert last_ledger_entry.licenses_at_next_renewal is not None
 | 
			
		||||
                    if last_ledger_entry.licenses_at_next_renewal > licenses_at_next_renewal:
 | 
			
		||||
                        raise JsonableError(
 | 
			
		||||
                            _(
 | 
			
		||||
                                "You’ve already purchased {licenses_at_next_renewal} licenses for the next billing period."
 | 
			
		||||
                            ).format(
 | 
			
		||||
                                licenses_at_next_renewal=last_ledger_entry.licenses_at_next_renewal
 | 
			
		||||
                            )
 | 
			
		||||
                        )
 | 
			
		||||
                    else:
 | 
			
		||||
                        # If customer has paid already, we will send them an invoice for additional
 | 
			
		||||
                        # licenses at the end of free trial.
 | 
			
		||||
                        self.update_license_ledger_for_manual_plan(
 | 
			
		||||
                            plan, timezone_now(), licenses_at_next_renewal=licenses_at_next_renewal
 | 
			
		||||
                        )
 | 
			
		||||
                else:
 | 
			
		||||
                    # Discard the old invoice and create a new one with updated licenses.
 | 
			
		||||
                    self.update_free_trial_invoice_with_licenses(
 | 
			
		||||
                        plan, timezone_now(), licenses_at_next_renewal
 | 
			
		||||
                    )
 | 
			
		||||
            else:
 | 
			
		||||
                self.update_license_ledger_for_manual_plan(
 | 
			
		||||
                    plan, timezone_now(), licenses_at_next_renewal=licenses_at_next_renewal
 | 
			
		||||
                )
 | 
			
		||||
@@ -2897,11 +3043,14 @@ class BillingSession(ABC):
 | 
			
		||||
                    plan_renewal_or_end_date = get_plan_renewal_or_end_date(
 | 
			
		||||
                        plan, ledger_entry.event_time
 | 
			
		||||
                    )
 | 
			
		||||
                    proration_fraction = (plan_renewal_or_end_date - ledger_entry.event_time) / (
 | 
			
		||||
                        billing_period_end - last_renewal
 | 
			
		||||
                    )
 | 
			
		||||
                    unit_amount = plan.price_per_license
 | 
			
		||||
                    if not plan.is_free_trial():
 | 
			
		||||
                        proration_fraction = (
 | 
			
		||||
                            plan_renewal_or_end_date - ledger_entry.event_time
 | 
			
		||||
                        ) / (billing_period_end - last_renewal)
 | 
			
		||||
                        unit_amount = int(plan.price_per_license * proration_fraction + 0.5)
 | 
			
		||||
                    price_args = {
 | 
			
		||||
                        "unit_amount": int(plan.price_per_license * proration_fraction + 0.5),
 | 
			
		||||
                        "unit_amount": unit_amount,
 | 
			
		||||
                        "quantity": ledger_entry.licenses - licenses_base,
 | 
			
		||||
                    }
 | 
			
		||||
                    description = "Additional license ({} - {})".format(
 | 
			
		||||
@@ -3249,6 +3398,82 @@ class BillingSession(ABC):
 | 
			
		||||
 | 
			
		||||
        return success_message
 | 
			
		||||
 | 
			
		||||
    def update_free_trial_invoice_with_licenses(
 | 
			
		||||
        self,
 | 
			
		||||
        plan: CustomerPlan,
 | 
			
		||||
        event_time: datetime,
 | 
			
		||||
        licenses: int,
 | 
			
		||||
    ) -> None:  # nocoverage
 | 
			
		||||
        assert (
 | 
			
		||||
            self.get_billable_licenses_for_customer(plan.customer, plan.tier, licenses) <= licenses
 | 
			
		||||
        )
 | 
			
		||||
        last_sent_invoice = Invoice.objects.filter(plan=plan).order_by("-id").first()
 | 
			
		||||
        assert last_sent_invoice is not None
 | 
			
		||||
        assert last_sent_invoice.status == Invoice.SENT
 | 
			
		||||
 | 
			
		||||
        assert plan.automanage_licenses is False
 | 
			
		||||
        assert plan.charge_automatically is False
 | 
			
		||||
        assert plan.fixed_price is None
 | 
			
		||||
        assert plan.is_free_trial()
 | 
			
		||||
 | 
			
		||||
        # Create a new renewal invoice with updated licenses so that this becomes the last
 | 
			
		||||
        # renewal invoice for customer which will be used for any future comparisons.
 | 
			
		||||
        LicenseLedger.objects.create(
 | 
			
		||||
            plan=plan,
 | 
			
		||||
            is_renewal=True,
 | 
			
		||||
            event_time=event_time,
 | 
			
		||||
            licenses=licenses,
 | 
			
		||||
            licenses_at_next_renewal=licenses,
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
        # Update the last sent invoice with the new licenses. We just need to update `quantity` in
 | 
			
		||||
        # the first invoice item. So, we void the current invoice and create a new copy of it with
 | 
			
		||||
        # the updated quantity.
 | 
			
		||||
        stripe_invoice = stripe.Invoice.retrieve(last_sent_invoice.stripe_invoice_id)
 | 
			
		||||
        assert stripe_invoice.status == "open"
 | 
			
		||||
        invoice_items = stripe_invoice.lines.data
 | 
			
		||||
        # Stripe does something weird and puts the discount item first, so we need to reverse the order here.
 | 
			
		||||
        invoice_items.reverse()
 | 
			
		||||
        for invoice_item in invoice_items:
 | 
			
		||||
            price_args = {}
 | 
			
		||||
            # If amount is positive, this must be non-discount item we need to update.
 | 
			
		||||
            if invoice_item.amount > 0:
 | 
			
		||||
                assert invoice_item.price is not None
 | 
			
		||||
                price_args = {
 | 
			
		||||
                    "quantity": licenses,
 | 
			
		||||
                    "unit_amount": invoice_item.price.unit_amount,
 | 
			
		||||
                }
 | 
			
		||||
            else:
 | 
			
		||||
                price_args = {
 | 
			
		||||
                    "amount": invoice_item.amount,
 | 
			
		||||
                }
 | 
			
		||||
            stripe.InvoiceItem.create(
 | 
			
		||||
                currency=invoice_item.currency,
 | 
			
		||||
                customer=stripe_invoice.customer,
 | 
			
		||||
                description=invoice_item.description,
 | 
			
		||||
                period=invoice_item.period,
 | 
			
		||||
                **price_args,
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
        assert plan.next_invoice_date is not None
 | 
			
		||||
        # Difference between end of free trial and event time
 | 
			
		||||
        days_until_due = (plan.next_invoice_date - event_time).days
 | 
			
		||||
 | 
			
		||||
        new_stripe_invoice = stripe.Invoice.create(
 | 
			
		||||
            auto_advance=False,
 | 
			
		||||
            collection_method="send_invoice",
 | 
			
		||||
            customer=stripe_invoice.customer,
 | 
			
		||||
            days_until_due=days_until_due,
 | 
			
		||||
            statement_descriptor=stripe_invoice.statement_descriptor,
 | 
			
		||||
            metadata=stripe_invoice.metadata,
 | 
			
		||||
        )
 | 
			
		||||
        new_stripe_invoice = stripe.Invoice.finalize_invoice(new_stripe_invoice)
 | 
			
		||||
        last_sent_invoice.stripe_invoice_id = str(new_stripe_invoice.id)
 | 
			
		||||
        last_sent_invoice.save(update_fields=["stripe_invoice_id"])
 | 
			
		||||
 | 
			
		||||
        assert stripe_invoice.id is not None
 | 
			
		||||
        stripe.Invoice.void_invoice(stripe_invoice.id)
 | 
			
		||||
 | 
			
		||||
    def update_license_ledger_for_manual_plan(
 | 
			
		||||
        self,
 | 
			
		||||
        plan: CustomerPlan,
 | 
			
		||||
@@ -4962,6 +5187,7 @@ def invoice_plans_as_needed(event_time: Optional[datetime] = None) -> None:
 | 
			
		||||
                plan.save(update_fields=["reminder_to_review_plan_email_sent"])
 | 
			
		||||
 | 
			
		||||
            free_plan_with_no_next_plan = not plan.is_paid() and plan.status == CustomerPlan.ACTIVE
 | 
			
		||||
            free_trial_pay_by_invoice_plan = plan.is_free_trial() and not plan.charge_automatically
 | 
			
		||||
            last_audit_log_update = remote_server.last_audit_log_update
 | 
			
		||||
            if not free_plan_with_no_next_plan and (
 | 
			
		||||
                last_audit_log_update is None or plan.next_invoice_date > last_audit_log_update
 | 
			
		||||
@@ -4987,6 +5213,10 @@ def invoice_plans_as_needed(event_time: Optional[datetime] = None) -> None:
 | 
			
		||||
                    )
 | 
			
		||||
                    plan.invoice_overdue_email_sent = True
 | 
			
		||||
                    plan.save(update_fields=["invoice_overdue_email_sent"])
 | 
			
		||||
 | 
			
		||||
                # We still process free trial plans so that we can directly downgrade them.
 | 
			
		||||
                # Above emails can serve as a reminder to followup for additional feedback.
 | 
			
		||||
                if not free_trial_pay_by_invoice_plan:
 | 
			
		||||
                    continue
 | 
			
		||||
 | 
			
		||||
        while (
 | 
			
		||||
 
 | 
			
		||||
@@ -12,7 +12,14 @@ from corporate.lib.stripe import (
 | 
			
		||||
    RemoteServerBillingSession,
 | 
			
		||||
    get_configured_fixed_price_plan_offer,
 | 
			
		||||
)
 | 
			
		||||
from corporate.models import Customer, CustomerPlan, Event, Invoice, Session
 | 
			
		||||
from corporate.models import (
 | 
			
		||||
    Customer,
 | 
			
		||||
    CustomerPlan,
 | 
			
		||||
    Event,
 | 
			
		||||
    Invoice,
 | 
			
		||||
    Session,
 | 
			
		||||
    get_current_plan_by_customer,
 | 
			
		||||
)
 | 
			
		||||
from zerver.lib.send_email import FromAddress, send_email
 | 
			
		||||
from zerver.models.users import get_active_user_profile_by_id_in_realm
 | 
			
		||||
 | 
			
		||||
@@ -172,7 +179,20 @@ def handle_invoice_paid_event(stripe_invoice: stripe.Invoice, invoice: Invoice)
 | 
			
		||||
                remote_server_legacy_plan=remote_server_legacy_plan,
 | 
			
		||||
                stripe_invoice_paid=True,
 | 
			
		||||
            )
 | 
			
		||||
        else:
 | 
			
		||||
            return
 | 
			
		||||
        elif metadata.get("on_free_trial") and invoice.is_created_for_free_trial_upgrade:
 | 
			
		||||
            free_trial_plan = invoice.plan
 | 
			
		||||
            assert free_trial_plan is not None
 | 
			
		||||
            if free_trial_plan.is_free_trial():
 | 
			
		||||
                # We don't need to do anything here. When the free trial ends we will
 | 
			
		||||
                # check if user has paid the invoice, if not we downgrade the user.
 | 
			
		||||
                return
 | 
			
		||||
 | 
			
		||||
            # If customer paid after end of free trial, we just upgrade via default method below.
 | 
			
		||||
            assert free_trial_plan.status == CustomerPlan.ENDED
 | 
			
		||||
            # Also check if customer is not on any other active plan.
 | 
			
		||||
            assert get_current_plan_by_customer(customer) is None
 | 
			
		||||
 | 
			
		||||
        billing_session.process_initial_upgrade(
 | 
			
		||||
            plan_tier,
 | 
			
		||||
            int(metadata["licenses"]),
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,28 @@
 | 
			
		||||
# Generated by Django 4.2.11 on 2024-04-10 03:17
 | 
			
		||||
 | 
			
		||||
import django.db.models.deletion
 | 
			
		||||
from django.db import migrations, models
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ("corporate", "0041_fix_plans_on_free_trial_with_changes_in_schedule"),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AddField(
 | 
			
		||||
            model_name="invoice",
 | 
			
		||||
            name="is_created_for_free_trial_upgrade",
 | 
			
		||||
            field=models.BooleanField(default=False),
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AddField(
 | 
			
		||||
            model_name="invoice",
 | 
			
		||||
            name="plan",
 | 
			
		||||
            field=models.ForeignKey(
 | 
			
		||||
                default=None,
 | 
			
		||||
                null=True,
 | 
			
		||||
                on_delete=django.db.models.deletion.SET_NULL,
 | 
			
		||||
                to="corporate.customerplan",
 | 
			
		||||
            ),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
@@ -5,7 +5,7 @@ from typing import Any, Dict, Optional, Union
 | 
			
		||||
from django.contrib.contenttypes.fields import GenericForeignKey
 | 
			
		||||
from django.contrib.contenttypes.models import ContentType
 | 
			
		||||
from django.db import models
 | 
			
		||||
from django.db.models import CASCADE, Q
 | 
			
		||||
from django.db.models import CASCADE, SET_NULL, Q
 | 
			
		||||
from typing_extensions import override
 | 
			
		||||
 | 
			
		||||
from zerver.models import Realm, UserProfile
 | 
			
		||||
@@ -218,6 +218,8 @@ class PaymentIntent(models.Model):  # nocoverage
 | 
			
		||||
class Invoice(models.Model):
 | 
			
		||||
    customer = models.ForeignKey(Customer, on_delete=CASCADE)
 | 
			
		||||
    stripe_invoice_id = models.CharField(max_length=255, unique=True)
 | 
			
		||||
    plan = models.ForeignKey("CustomerPlan", null=True, default=None, on_delete=SET_NULL)
 | 
			
		||||
    is_created_for_free_trial_upgrade = models.BooleanField(default=False)
 | 
			
		||||
 | 
			
		||||
    SENT = 1
 | 
			
		||||
    PAID = 2
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "paid": true,
 | 
			
		||||
      "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
      "payment_method": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
      "payment_method": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
      "payment_method_details": {
 | 
			
		||||
        "card": {
 | 
			
		||||
          "amount_authorized": 100000,
 | 
			
		||||
@@ -94,7 +94,7 @@
 | 
			
		||||
      "radar_options": {},
 | 
			
		||||
      "receipt_email": "hamlet@zulip.com",
 | 
			
		||||
      "receipt_number": null,
 | 
			
		||||
      "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKNvx17AGMga5HA83vD86LBb6JmKKUOzIJSO-givgkMAHmk0YCqsQyeEBIcg__180KPjSwMnKH_fEUb8t?s=ap",
 | 
			
		||||
      "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKKLC2bAGMgZhQuAgl1E6LBYiq1Asq7lUqwAwrSAQl2GbWNSQEj10x_ZsjGLVRPsuJ2Ax5BDCoUCCMwTN?s=ap",
 | 
			
		||||
      "refunded": false,
 | 
			
		||||
      "refunds": {
 | 
			
		||||
        "data": [],
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
  "invoice_prefix": "NORMA01",
 | 
			
		||||
  "invoice_settings": {
 | 
			
		||||
    "custom_fields": null,
 | 
			
		||||
    "default_payment_method": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
    "default_payment_method": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
    "footer": null,
 | 
			
		||||
    "rendering_options": null
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
      "id": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
      "id": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
      "id": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
      "id": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -5,53 +5,94 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "after_expiration": null,
 | 
			
		||||
          "allow_promotion_codes": null,
 | 
			
		||||
          "amount_subtotal": null,
 | 
			
		||||
          "amount_total": null,
 | 
			
		||||
          "automatic_tax": {
 | 
			
		||||
            "enabled": false,
 | 
			
		||||
            "liability": null,
 | 
			
		||||
            "status": null
 | 
			
		||||
          },
 | 
			
		||||
          "billing_address_collection": "required",
 | 
			
		||||
          "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
 | 
			
		||||
          "client_reference_id": null,
 | 
			
		||||
          "client_secret": null,
 | 
			
		||||
          "consent": null,
 | 
			
		||||
          "consent_collection": null,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "currency_conversion": null,
 | 
			
		||||
          "custom_fields": [],
 | 
			
		||||
          "custom_text": {
 | 
			
		||||
            "after_submit": null,
 | 
			
		||||
            "shipping_address": null,
 | 
			
		||||
            "submit": null,
 | 
			
		||||
            "terms_of_service_acceptance": null
 | 
			
		||||
          },
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "customer_creation": null,
 | 
			
		||||
          "customer_details": {
 | 
			
		||||
            "address": null,
 | 
			
		||||
            "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0002",
 | 
			
		||||
          "invoice_prefix": "NORMA02",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrmDEQaroqDjsAMS0yKBa",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "realm_id": "1",
 | 
			
		||||
            "realm_str": "zulip"
 | 
			
		||||
          },
 | 
			
		||||
            "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
            "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
            "tax_exempt": null,
 | 
			
		||||
            "tax_ids": null
 | 
			
		||||
          },
 | 
			
		||||
          "customer_email": null,
 | 
			
		||||
          "expires_at": 1000000000,
 | 
			
		||||
          "id": "cs_test_NORMALIZED01Wg4ZP4wRFMCySYNVeC5PT5IXn7ctRfhQC1z1teEUKZn1o3",
 | 
			
		||||
          "invoice": null,
 | 
			
		||||
          "invoice_creation": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "locale": null,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "type": "card_update",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
          },
 | 
			
		||||
          "mode": "setup",
 | 
			
		||||
          "object": "checkout.session",
 | 
			
		||||
          "payment_intent": null,
 | 
			
		||||
          "payment_link": null,
 | 
			
		||||
          "payment_method_collection": "always",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "payment_status": "no_payment_required",
 | 
			
		||||
          "phone_number_collection": {
 | 
			
		||||
            "enabled": false
 | 
			
		||||
          },
 | 
			
		||||
          "recovered_from": null,
 | 
			
		||||
          "setup_intent": "seti_1P3bKqDEQaroqDjsZcgAPQfO",
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "default_payment_method": "pm_1P3qriDEQaroqDjsDkjVXm28"
 | 
			
		||||
          }
 | 
			
		||||
          "shipping_address_collection": null,
 | 
			
		||||
          "shipping_options": [],
 | 
			
		||||
          "shipping_rate": null,
 | 
			
		||||
          "status": "expired",
 | 
			
		||||
          "submit_type": null,
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "success_url": "http://zulip.testserver/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
 | 
			
		||||
          "total_details": null,
 | 
			
		||||
          "ui_mode": "hosted",
 | 
			
		||||
          "url": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qroDEQaroqDjsxMXEhuL1",
 | 
			
		||||
      "id": "evt_1P3xoODEQaroqDjsHiwMJVRe",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "32a465d0-c309-489c-905d-795f73c18a23"
 | 
			
		||||
        "id": null,
 | 
			
		||||
        "idempotency_key": null
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
      "type": "checkout.session.expired"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -1,54 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "data": [
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qrrDEQaroqDjsWLpO85Bn_secret_PteA4rgXAai9xAvLXSfPjNVgXdGGUL8",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qrrDEQaroqDjsWLpO85Bn",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrrDEQaroqDjsi84FWaYN",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0002",
 | 
			
		||||
        "idempotency_key": "7723adba-c169-4435-96a5-c543ecca2cb0"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
@@ -96,9 +47,9 @@
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBQmh4YWFvSEduM01adXVVaUkwcHppNkdHZEh2LDEwMzI1Njc5MQ0200vBcbYec4?s=ap",
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxMem14WTlqQTFib1p1Y0owSHl5cklUTTlhVTFoLDEwMzI4MzQ4Ng0200YBYCr5jH?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBQmh4YWFvSEduM01adXVVaUkwcHppNkdHZEh2LDEwMzI1Njc5MQ0200vBcbYec4/pdf?s=ap",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxMem14WTlqQTFib1p1Y0owSHl5cklUTTlhVTFoLDEwMzI4MzQ4Ng0200YBYCr5jH/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
@@ -168,6 +119,7 @@
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "25",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
          },
 | 
			
		||||
@@ -223,13 +175,13 @@
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrrDEQaroqDjsAwRNgRVE",
 | 
			
		||||
      "id": "evt_1P3xoQDEQaroqDjs0Ka5Siqh",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0003",
 | 
			
		||||
        "idempotency_key": "7f73a054-e167-43ac-8655-7aa424ce9244"
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "dcd925d9-51f9-4a77-8138-2804e9963dc3"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.finalized"
 | 
			
		||||
    },
 | 
			
		||||
@@ -280,9 +232,9 @@
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBQmh4YWFvSEduM01adXVVaUkwcHppNkdHZEh2LDEwMzI1Njc5MQ0200vBcbYec4?s=ap",
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxMem14WTlqQTFib1p1Y0owSHl5cklUTTlhVTFoLDEwMzI4MzQ4Ng0200YBYCr5jH?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBQmh4YWFvSEduM01adXVVaUkwcHppNkdHZEh2LDEwMzI1Njc5MQ0200vBcbYec4/pdf?s=ap",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxMem14WTlqQTFib1p1Y0owSHl5cklUTTlhVTFoLDEwMzI4MzQ4Ng0200YBYCr5jH/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
@@ -352,6 +304,7 @@
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "25",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
          },
 | 
			
		||||
@@ -424,13 +377,13 @@
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrrDEQaroqDjsFy5ak6zU",
 | 
			
		||||
      "id": "evt_1P3xoQDEQaroqDjsLXte31Rs",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0003",
 | 
			
		||||
        "idempotency_key": "7f73a054-e167-43ac-8655-7aa424ce9244"
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "dcd925d9-51f9-4a77-8138-2804e9963dc3"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.updated"
 | 
			
		||||
    },
 | 
			
		||||
@@ -458,7 +411,7 @@
 | 
			
		||||
            "total_count": 0,
 | 
			
		||||
            "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
 | 
			
		||||
          },
 | 
			
		||||
          "client_secret": "pi_NORMALIZED00000000000001_secret_KFhxiuQuGKH1LdA1fqchmfh9M",
 | 
			
		||||
          "client_secret": "pi_NORMALIZED00000000000001_secret_1gMk4CXz9rkCN43f1rVvbMXO9",
 | 
			
		||||
          "confirmation_method": "automatic",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
@@ -501,13 +454,13 @@
 | 
			
		||||
          "transfer_group": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_3P3qrrDEQaroqDjs1vl6lznY",
 | 
			
		||||
      "id": "evt_3P3xoQDEQaroqDjs0jYTp1R8",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0003",
 | 
			
		||||
        "idempotency_key": "7f73a054-e167-43ac-8655-7aa424ce9244"
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "dcd925d9-51f9-4a77-8138-2804e9963dc3"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
@@ -519,21 +472,21 @@
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qrrDEQaroqDjsggFQNm1t_secret_PteA2rYzqVWqazfWzOhiJ7DE6wBmviY",
 | 
			
		||||
          "client_secret": "seti_1P3xoQDEQaroqDjsxUEEQlkS_secret_PtlLM7huX6JpELINrX3vP9vIZFzIyZe",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qrrDEQaroqDjsggFQNm1t",
 | 
			
		||||
          "id": "seti_1P3xoQDEQaroqDjsxUEEQlkS",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qrrDEQaroqDjs8j8N2Gnl",
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qrqDEQaroqDjsyZynXAei",
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
@@ -546,17 +499,17 @@
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrsDEQaroqDjsGUq37nYX",
 | 
			
		||||
      "id": "evt_1P3xoQDEQaroqDjsv9mqgC2m",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0004",
 | 
			
		||||
        "idempotency_key": "6558124c-10dc-4df0-b9ef-78659e36ff84"
 | 
			
		||||
        "id": "req_NORMALIZED0002",
 | 
			
		||||
        "idempotency_key": "d0a19b40-0bf0-443b-bbcd-dda0abd0d89d"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
@@ -565,48 +518,49 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3xoPDEQaroqDjs1iqG7pzm_secret_PtlLprx4zLPYez0KYFMeDhWD8Vorju2",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "demo.example.com 6cde5f7a-1f7",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0003",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": null,
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3xoPDEQaroqDjs1iqG7pzm",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "remote_server_str": "demo.example.com 6cde5f7a-1f7",
 | 
			
		||||
            "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
      "id": "evt_1P3qrrDEQaroqDjsqj0ORtSt",
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xoPDEQaroqDjsdvV4MIt0",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "a5c7e9f4-cd12-4169-ba5d-469032b4ffe1"
 | 
			
		||||
        "id": "req_NORMALIZED0003",
 | 
			
		||||
        "idempotency_key": "2c8aff73-4737-4580-aaef-5c90c419e9fc"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.created"
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
@@ -727,6 +681,7 @@
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "25",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
          },
 | 
			
		||||
@@ -782,16 +737,64 @@
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrqDEQaroqDjsHoifClII",
 | 
			
		||||
      "id": "evt_1P3xoPDEQaroqDjs8yrBPm6n",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0006",
 | 
			
		||||
        "idempotency_key": "6a711725-1660-40d1-9660-e613f3064c57"
 | 
			
		||||
        "id": "req_NORMALIZED0004",
 | 
			
		||||
        "idempotency_key": "383ede6f-52a0-431c-8fa1-c0fc8ef07aa3"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "demo.example.com 6cde5f7a-1f7",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0004",
 | 
			
		||||
          "invoice_prefix": "NORMA02",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": null,
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "remote_server_str": "demo.example.com 6cde5f7a-1f7",
 | 
			
		||||
            "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xoPDEQaroqDjsVkwAc18r",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "1d864c2a-68fc-4d63-b6f1-39fd3bdec5b0"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
@@ -844,13 +847,13 @@
 | 
			
		||||
          "unit_amount_decimal": "4000"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrqDEQaroqDjsE5r4mKmf",
 | 
			
		||||
      "id": "evt_1P3xoPDEQaroqDjsq7pg4kVp",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0007",
 | 
			
		||||
        "idempotency_key": "c1cf41fe-457e-4780-83e6-53888f17d0a5"
 | 
			
		||||
        "id": "req_NORMALIZED0006",
 | 
			
		||||
        "idempotency_key": "ed47df2e-2c0c-4ab4-984d-0fd7b5cbeccb"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoiceitem.created"
 | 
			
		||||
    },
 | 
			
		||||
@@ -873,7 +876,7 @@
 | 
			
		||||
          "invoice_prefix": "NORMA01",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
            "default_payment_method": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
@@ -896,13 +899,13 @@
 | 
			
		||||
          "default_currency": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrqDEQaroqDjsaSK0aCzW",
 | 
			
		||||
      "id": "evt_1P3xoPDEQaroqDjsOkc6d7je",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0007",
 | 
			
		||||
        "idempotency_key": "c1cf41fe-457e-4780-83e6-53888f17d0a5"
 | 
			
		||||
        "id": "req_NORMALIZED0006",
 | 
			
		||||
        "idempotency_key": "ed47df2e-2c0c-4ab4-984d-0fd7b5cbeccb"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
@@ -911,49 +914,53 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qrqDEQaroqDjsJL3GbAnG_secret_PteAEzWlcuoQd6ohZg4Ut1MrGzvMLEI",
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qrqDEQaroqDjsJL3GbAnG",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0003",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3xoMDEQaroqDjsOiHigknc",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "realm_id": "1",
 | 
			
		||||
            "realm_str": "zulip"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "default_payment_method": "pm_1P3xoIDEQaroqDjsimgsjFr0"
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrqDEQaroqDjsfThhZLnO",
 | 
			
		||||
      "id": "evt_1P3xoODEQaroqDjsZEu90iJ0",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0008",
 | 
			
		||||
        "idempotency_key": "9203c951-5e35-4b12-8b29-cefd7edab3b7"
 | 
			
		||||
        "id": "req_NORMALIZED0007",
 | 
			
		||||
        "idempotency_key": "3896558f-8e1e-4af2-9c62-803a9ccd1d60"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": true,
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -1,55 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "data": [
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qruDEQaroqDjsZcGAxeZH_secret_PteAQXhHtoHKroN8N2qa3yHlecsajYr",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qruDEQaroqDjsZcGAxeZH",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qruDEQaroqDjsLDDSwgmc",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0018",
 | 
			
		||||
        "idempotency_key": "f588df44-3836-4a2a-aa1c-871519d3b4ee"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "data": [],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
  "object": "list",
 | 
			
		||||
  "url": "/v1/events"
 | 
			
		||||
 
 | 
			
		||||
@@ -113,6 +113,7 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "25",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBQmh4YWFvSEduM01adXVVaUkwcHppNkdHZEh2LDEwMzI1Njc5MQ0200vBcbYec4?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxMem14WTlqQTFib1p1Y0owSHl5cklUTTlhVTFoLDEwMzI4MzQ4Ng0200YBYCr5jH?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBQmh4YWFvSEduM01adXVVaUkwcHppNkdHZEh2LDEwMzI1Njc5MQ0200vBcbYec4/pdf?s=ap",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxMem14WTlqQTFib1p1Y0owSHl5cklUTTlhVTFoLDEwMzI4MzQ4Ng0200YBYCr5jH/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -113,11 +113,12 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "25",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
  "next_payment_attempt": null,
 | 
			
		||||
  "number": "NORMALI-0003",
 | 
			
		||||
  "number": "NORMALI-0002",
 | 
			
		||||
  "object": "invoice",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBQmh4YWFvSEduM01adXVVaUkwcHppNkdHZEh2LDEwMzI1Njc5Mw0200tVpZ3HIr?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxMem14WTlqQTFib1p1Y0owSHl5cklUTTlhVTFoLDEwMzI4MzQ4Nw0200ZbybdVNy?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBQmh4YWFvSEduM01adXVVaUkwcHppNkdHZEh2LDEwMzI1Njc5Mw0200tVpZ3HIr/pdf?s=ap",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxMem14WTlqQTFib1p1Y0owSHl5cklUTTlhVTFoLDEwMzI4MzQ4Nw0200ZbybdVNy/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -113,11 +113,12 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "25",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
  "next_payment_attempt": null,
 | 
			
		||||
  "number": "NORMALI-0003",
 | 
			
		||||
  "number": "NORMALI-0002",
 | 
			
		||||
  "object": "invoice",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": null,
 | 
			
		||||
  "id": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
  "id": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -2,21 +2,21 @@
 | 
			
		||||
  "application": null,
 | 
			
		||||
  "automatic_payment_methods": null,
 | 
			
		||||
  "cancellation_reason": null,
 | 
			
		||||
  "client_secret": "seti_1P3qrmDEQaroqDjsKzSr4Ngo_secret_PteAmlu8bSnmtm8ij61TUIJiBc9G0t5",
 | 
			
		||||
  "client_secret": "seti_1P3xoLDEQaroqDjspomdB3tJ_secret_PtlLk6KR0YETfYc70J8pMhK21R545tj",
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": "cus_NORMALIZED0001",
 | 
			
		||||
  "description": null,
 | 
			
		||||
  "flow_directions": null,
 | 
			
		||||
  "id": "seti_1P3qrmDEQaroqDjsKzSr4Ngo",
 | 
			
		||||
  "id": "seti_1P3xoLDEQaroqDjspomdB3tJ",
 | 
			
		||||
  "last_setup_error": null,
 | 
			
		||||
  "latest_attempt": "setatt_1P3qrmDEQaroqDjslOjRx22M",
 | 
			
		||||
  "latest_attempt": "setatt_1P3xoLDEQaroqDjsai7XDIOI",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "mandate": null,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_action": null,
 | 
			
		||||
  "object": "setup_intent",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "payment_method": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
  "payment_method": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
  "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_1P3qrkDEQaroqDjscpkrM043_secret_PteAxh6dg8TWnkB4BjfPJCgMcW0NODx",
 | 
			
		||||
      "client_secret": "seti_1P3xoJDEQaroqDjsT8ghuT6N_secret_PtlKW0VP1VQZv08BK0Dea8LE4WJJM1i",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "description": null,
 | 
			
		||||
      "flow_directions": null,
 | 
			
		||||
      "id": "seti_1P3qrkDEQaroqDjscpkrM043",
 | 
			
		||||
      "id": "seti_1P3xoJDEQaroqDjsT8ghuT6N",
 | 
			
		||||
      "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_1P3qrmDEQaroqDjsKzSr4Ngo_secret_PteAmlu8bSnmtm8ij61TUIJiBc9G0t5",
 | 
			
		||||
  "client_secret": "seti_1P3xoLDEQaroqDjspomdB3tJ_secret_PtlLk6KR0YETfYc70J8pMhK21R545tj",
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": "cus_NORMALIZED0001",
 | 
			
		||||
  "description": null,
 | 
			
		||||
  "flow_directions": null,
 | 
			
		||||
  "id": "seti_1P3qrmDEQaroqDjsKzSr4Ngo",
 | 
			
		||||
  "id": "seti_1P3xoLDEQaroqDjspomdB3tJ",
 | 
			
		||||
  "last_setup_error": null,
 | 
			
		||||
  "latest_attempt": "setatt_1P3qrmDEQaroqDjslOjRx22M",
 | 
			
		||||
  "latest_attempt": "setatt_1P3xoLDEQaroqDjsai7XDIOI",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "mandate": null,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_action": null,
 | 
			
		||||
  "object": "setup_intent",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "payment_method": "pm_1P3qrlDEQaroqDjsNdGwACIx",
 | 
			
		||||
  "payment_method": "pm_1P3xoKDEQaroqDjsByAVixFX",
 | 
			
		||||
  "payment_method_configuration_details": null,
 | 
			
		||||
  "payment_method_options": {
 | 
			
		||||
    "card": {
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "customer_email": null,
 | 
			
		||||
  "expires_at": 1000000000,
 | 
			
		||||
  "id": "cs_test_NORMALIZED02ydVSwxPWF7LytfJ1RFBvG1vFWXpFqPlRINXM6NmXQj5V42",
 | 
			
		||||
  "id": "cs_test_NORMALIZED034ckIZEp7aFfxNrUYEPBtaqK8pEVSKoaIiJTeW09tFKMFsi",
 | 
			
		||||
  "invoice": null,
 | 
			
		||||
  "invoice_creation": null,
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
    "enabled": false
 | 
			
		||||
  },
 | 
			
		||||
  "recovered_from": null,
 | 
			
		||||
  "setup_intent": "seti_1P3qrkDEQaroqDjscpkrM043",
 | 
			
		||||
  "setup_intent": "seti_1P3xoJDEQaroqDjsT8ghuT6N",
 | 
			
		||||
  "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_NORMALIZED02ydVSwxPWF7LytfJ1RFBvG1vFWXpFqPlRINXM6NmXQj5V42#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
  "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED034ckIZEp7aFfxNrUYEPBtaqK8pEVSKoaIiJTeW09tFKMFsi#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "customer_email": null,
 | 
			
		||||
      "expires_at": 1000000000,
 | 
			
		||||
      "id": "cs_test_NORMALIZED02ydVSwxPWF7LytfJ1RFBvG1vFWXpFqPlRINXM6NmXQj5V42",
 | 
			
		||||
      "id": "cs_test_NORMALIZED034ckIZEp7aFfxNrUYEPBtaqK8pEVSKoaIiJTeW09tFKMFsi",
 | 
			
		||||
      "invoice": null,
 | 
			
		||||
      "invoice_creation": null,
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
@@ -66,7 +66,7 @@
 | 
			
		||||
        "enabled": false
 | 
			
		||||
      },
 | 
			
		||||
      "recovered_from": null,
 | 
			
		||||
      "setup_intent": "seti_1P3qrkDEQaroqDjscpkrM043",
 | 
			
		||||
      "setup_intent": "seti_1P3xoJDEQaroqDjsT8ghuT6N",
 | 
			
		||||
      "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_NORMALIZED02ydVSwxPWF7LytfJ1RFBvG1vFWXpFqPlRINXM6NmXQj5V42#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
      "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED034ckIZEp7aFfxNrUYEPBtaqK8pEVSKoaIiJTeW09tFKMFsi#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "paid": true,
 | 
			
		||||
      "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
      "payment_method": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
      "payment_method": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
      "payment_method_details": {
 | 
			
		||||
        "card": {
 | 
			
		||||
          "amount_authorized": 7200,
 | 
			
		||||
@@ -94,7 +94,7 @@
 | 
			
		||||
      "radar_options": {},
 | 
			
		||||
      "receipt_email": "hamlet@zulip.com",
 | 
			
		||||
      "receipt_number": null,
 | 
			
		||||
      "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKOfx17AGMgYA98bUf8Y6LBYo6eacCcBom0QhBiYFTnuweEBzgjFpkhZB8vJAn_LtS-yJRB0-oXIotwvX?s=ap",
 | 
			
		||||
      "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKK7C2bAGMgYvSdHwPao6LBaALvsigTmgGTx7NzUDx2RLn70rhUXfz4ifXOCag9pdIV50TZekPMcIlONu?s=ap",
 | 
			
		||||
      "refunded": false,
 | 
			
		||||
      "refunds": {
 | 
			
		||||
        "data": [],
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "paid": true,
 | 
			
		||||
      "payment_intent": "pi_NORMALIZED00000000000002",
 | 
			
		||||
      "payment_method": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
      "payment_method": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
      "payment_method_details": {
 | 
			
		||||
        "card": {
 | 
			
		||||
          "amount_authorized": 36000,
 | 
			
		||||
@@ -94,7 +94,7 @@
 | 
			
		||||
      "radar_options": {},
 | 
			
		||||
      "receipt_email": "hamlet@zulip.com",
 | 
			
		||||
      "receipt_number": null,
 | 
			
		||||
      "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPPx17AGMgZDQfA-zuQ6LBZTnQsTsk_DNF5mnCGu0WQv9sPAhVtx5ZtL8B4mn4OIpSWQduRJPXqhvjwY?s=ap",
 | 
			
		||||
      "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLrC2bAGMgbT7XpTkxo6LBYrsBDvd0WxIaMfBDGSMY81m4_qBlC0BTinDCJqpwEX73X9HaCOEJdyJdiP?s=ap",
 | 
			
		||||
      "refunded": false,
 | 
			
		||||
      "refunds": {
 | 
			
		||||
        "data": [],
 | 
			
		||||
@@ -164,7 +164,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "paid": true,
 | 
			
		||||
      "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
      "payment_method": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
      "payment_method": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
      "payment_method_details": {
 | 
			
		||||
        "card": {
 | 
			
		||||
          "amount_authorized": 7200,
 | 
			
		||||
@@ -207,7 +207,7 @@
 | 
			
		||||
      "radar_options": {},
 | 
			
		||||
      "receipt_email": "hamlet@zulip.com",
 | 
			
		||||
      "receipt_number": null,
 | 
			
		||||
      "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKPPx17AGMgbfXe2dOZw6LBb8uf63_pOIaVlws7XVrsCx1PTOGw24lYHerWPlLUx-ouSZ3Z28RnNa2bVv?s=ap",
 | 
			
		||||
      "receipt_url": "https://pay.stripe.com/receipts/invoices/CAcaFwoVYWNjdF8xN3ZUa3dERVFhcm9xRGpzKLrC2bAGMgbAO4079Io6LBY_0x2UUXDrzPXWXgx1or4MywssIq_w2gpQlSdYrrAF-rfQiOH6UUjWhAk5?s=ap",
 | 
			
		||||
      "refunded": false,
 | 
			
		||||
      "refunds": {
 | 
			
		||||
        "data": [],
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
  "invoice_prefix": "NORMA01",
 | 
			
		||||
  "invoice_settings": {
 | 
			
		||||
    "custom_fields": null,
 | 
			
		||||
    "default_payment_method": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
    "default_payment_method": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
    "footer": null,
 | 
			
		||||
    "rendering_options": null
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
  "invoice_prefix": "NORMA01",
 | 
			
		||||
  "invoice_settings": {
 | 
			
		||||
    "custom_fields": null,
 | 
			
		||||
    "default_payment_method": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
    "default_payment_method": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
    "footer": null,
 | 
			
		||||
    "rendering_options": null
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
      "id": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
      "id": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
      "id": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
      "id": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
      "id": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
      "id": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
      "id": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
      "id": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -5,62 +5,53 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "amount": -24000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "date": 1000000000,
 | 
			
		||||
          "description": "$20.00/month new customer discount",
 | 
			
		||||
          "discountable": false,
 | 
			
		||||
          "discounts": [],
 | 
			
		||||
          "id": "ii_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "invoiceitem",
 | 
			
		||||
          "period": {
 | 
			
		||||
            "end": 1364871845,
 | 
			
		||||
            "start": 1333335845
 | 
			
		||||
          },
 | 
			
		||||
          "plan": null,
 | 
			
		||||
          "price": {
 | 
			
		||||
            "active": false,
 | 
			
		||||
            "billing_scheme": "per_unit",
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
            "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": -24000,
 | 
			
		||||
            "unit_amount_decimal": "-24000"
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip.testserver f27ccad7-fd5",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0002",
 | 
			
		||||
          "invoice_prefix": "NORMA02",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3xoXDEQaroqDjsCvLne7DP",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "proration": false,
 | 
			
		||||
          "quantity": 1,
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "tax_rates": [],
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "unit_amount": -24000,
 | 
			
		||||
          "unit_amount_decimal": "-24000"
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "remote_realm_host": "zulip.testserver",
 | 
			
		||||
            "remote_realm_uuid": "f27ccad7-fd5b-42cf-947a-3763c39673b7"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "default_payment_method": null
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qs1DEQaroqDjsAdZ0eiX0",
 | 
			
		||||
      "id": "evt_1P3xoaDEQaroqDjs45TDrTZF",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "b94d4b87-dd42-4767-9ea4-1fa75eb2b354"
 | 
			
		||||
        "idempotency_key": "ce74aef1-cde3-4f0a-bafe-630a3a7cc9ab"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoiceitem.created"
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": true,
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -5,280 +5,161 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip.testserver b295e764-9ad",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0004",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": null,
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "remote_realm_host": "zulip.testserver",
 | 
			
		||||
            "remote_realm_uuid": "b295e764-9ad6-4b87-80a6-d989edf084da"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qsIDEQaroqDjsYZJVSyFA",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0007",
 | 
			
		||||
        "idempotency_key": "cd3f156b-0950-4a3b-8cb8-4e555ec39b57"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "demo.example.com 6cde5f7a-1f7",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0005",
 | 
			
		||||
          "invoice_prefix": "NORMA04",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": null,
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "remote_server_str": "demo.example.com 6cde5f7a-1f7",
 | 
			
		||||
            "remote_server_uuid": "6cde5f7a-1f7e-4978-9716-49f69ebfc9fe"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qsHDEQaroqDjsV6hciPKG",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0008",
 | 
			
		||||
        "idempotency_key": "cf3c36db-7e12-449e-a30c-ab4849de886a"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "account_country": "US",
 | 
			
		||||
          "account_name": "Kandra Labs, Inc.",
 | 
			
		||||
          "account_tax_ids": null,
 | 
			
		||||
          "amount_due": 36000,
 | 
			
		||||
          "amount_paid": 36000,
 | 
			
		||||
          "amount_remaining": 0,
 | 
			
		||||
          "amount_shipping": 0,
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "application_fee_amount": null,
 | 
			
		||||
          "attempt_count": 1,
 | 
			
		||||
          "attempted": true,
 | 
			
		||||
          "auto_advance": false,
 | 
			
		||||
          "automatic_tax": {
 | 
			
		||||
            "enabled": false,
 | 
			
		||||
            "liability": null,
 | 
			
		||||
            "status": null
 | 
			
		||||
          },
 | 
			
		||||
          "billing_reason": "manual",
 | 
			
		||||
          "charge": "ch_NORMALIZED00000000000002",
 | 
			
		||||
          "collection_method": "charge_automatically",
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3xoqDEQaroqDjsc8Uzpbs8_secret_PtlL3CxJSbEJqQooCwMaaC4tKwySwvd",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "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": [],
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "discounts": [],
 | 
			
		||||
          "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_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgxNw0200K43JPclY?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgxNw0200K43JPclY/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
          "last_finalization_error": null,
 | 
			
		||||
          "latest_revision": null,
 | 
			
		||||
          "lines": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 36000,
 | 
			
		||||
                "amount_excluding_tax": 36000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Cloud Standard",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3xoqDEQaroqDjsc8Uzpbs8",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3xoqDEQaroqDjsZBOEpADv",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1357095845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "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": 6000,
 | 
			
		||||
                  "unit_amount_decimal": "6000"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 6,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "6000"
 | 
			
		||||
              }
 | 
			
		||||
            ],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "6",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
          },
 | 
			
		||||
          "next_payment_attempt": null,
 | 
			
		||||
          "number": "NORMALI-0001",
 | 
			
		||||
          "object": "invoice",
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": true,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000002",
 | 
			
		||||
          "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"
 | 
			
		||||
          "payment_method": "pm_1P3xoqDEQaroqDjsiAz2lSjJ",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "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": 36000,
 | 
			
		||||
          "subtotal_excluding_tax": 36000,
 | 
			
		||||
          "tax": null,
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "total": 36000,
 | 
			
		||||
          "total_discount_amounts": [],
 | 
			
		||||
          "total_excluding_tax": 36000,
 | 
			
		||||
          "total_tax_amounts": [],
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qsHDEQaroqDjs103aL8XK",
 | 
			
		||||
      "id": "evt_1P3xorDEQaroqDjsIjFK972i",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0002",
 | 
			
		||||
        "idempotency_key": "4e6fe8d2-6f05-4771-b64b-ea4331602544"
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "d156384c-c958-4436-9854-a97831b1c436"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.payment_succeeded"
 | 
			
		||||
      "type": "setup_intent.succeeded"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "billing_details": {
 | 
			
		||||
            "address": {
 | 
			
		||||
              "city": "San Francisco",
 | 
			
		||||
              "country": "US",
 | 
			
		||||
              "line1": "123 Main St",
 | 
			
		||||
              "line2": null,
 | 
			
		||||
              "postal_code": "94105",
 | 
			
		||||
              "state": "CA"
 | 
			
		||||
            },
 | 
			
		||||
            "email": null,
 | 
			
		||||
            "name": "John Doe",
 | 
			
		||||
            "phone": null
 | 
			
		||||
          },
 | 
			
		||||
          "card": {
 | 
			
		||||
            "brand": "visa",
 | 
			
		||||
            "checks": {
 | 
			
		||||
              "address_line1_check": null,
 | 
			
		||||
              "address_postal_code_check": null,
 | 
			
		||||
              "cvc_check": "pass"
 | 
			
		||||
            },
 | 
			
		||||
            "country": "US",
 | 
			
		||||
            "display_brand": "visa",
 | 
			
		||||
            "exp_month": 4,
 | 
			
		||||
            "exp_year": 2025,
 | 
			
		||||
            "fingerprint": "NORMALIZED000001",
 | 
			
		||||
            "funding": "credit",
 | 
			
		||||
            "generated_from": null,
 | 
			
		||||
            "last4": "4242",
 | 
			
		||||
            "networks": {
 | 
			
		||||
              "available": [
 | 
			
		||||
                "visa"
 | 
			
		||||
              ],
 | 
			
		||||
              "preferred": null
 | 
			
		||||
            },
 | 
			
		||||
            "three_d_secure_usage": {
 | 
			
		||||
              "supported": true
 | 
			
		||||
            },
 | 
			
		||||
            "wallet": null
 | 
			
		||||
          },
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "id": "pm_1P3xoqDEQaroqDjsiAz2lSjJ",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "payment_method",
 | 
			
		||||
          "type": "card"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xorDEQaroqDjsbTxOwHjx",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "d156384c-c958-4436-9854-a97831b1c436"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_method.attached"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3xoqDEQaroqDjsc8Uzpbs8_secret_PtlL3CxJSbEJqQooCwMaaC4tKwySwvd",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3xoqDEQaroqDjsc8Uzpbs8",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3xoqDEQaroqDjsZBOEpADv",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3xoqDEQaroqDjsiAz2lSjJ",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xorDEQaroqDjsSHsabIOu",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "d156384c-c958-4436-9854-a97831b1c436"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -1,167 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "data": [
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qsIDEQaroqDjs4OGiFBtz_secret_PteAU8htslWsFtDOtYhVVLmt01Qe4eB",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0005",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qsIDEQaroqDjs4OGiFBtz",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qsIDEQaroqDjsDYc8g3dk",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0009",
 | 
			
		||||
        "idempotency_key": "3eabb973-a6c8-4d8c-abc8-f57aa468f148"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qsHDEQaroqDjsyWOuj3Mt_secret_PteAls79SY6Mz4gH9vmIGRcgFaGE6td",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qsHDEQaroqDjsyWOuj3Mt",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qsHDEQaroqDjsg5LzXfal",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qsHDEQaroqDjsynwTeukX",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qsIDEQaroqDjsebrtDYkg",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0010",
 | 
			
		||||
        "idempotency_key": "41e19fc1-6fe3-4c67-99a5-5fc50c05f86c"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.succeeded"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "billing_details": {
 | 
			
		||||
            "address": {
 | 
			
		||||
              "city": "San Francisco",
 | 
			
		||||
              "country": "US",
 | 
			
		||||
              "line1": "123 Main St",
 | 
			
		||||
              "line2": null,
 | 
			
		||||
              "postal_code": "94105",
 | 
			
		||||
              "state": "CA"
 | 
			
		||||
            },
 | 
			
		||||
            "email": null,
 | 
			
		||||
            "name": "John Doe",
 | 
			
		||||
            "phone": null
 | 
			
		||||
          },
 | 
			
		||||
          "card": {
 | 
			
		||||
            "brand": "visa",
 | 
			
		||||
            "checks": {
 | 
			
		||||
              "address_line1_check": null,
 | 
			
		||||
              "address_postal_code_check": null,
 | 
			
		||||
              "cvc_check": "pass"
 | 
			
		||||
            },
 | 
			
		||||
            "country": "US",
 | 
			
		||||
            "display_brand": "visa",
 | 
			
		||||
            "exp_month": 4,
 | 
			
		||||
            "exp_year": 2025,
 | 
			
		||||
            "fingerprint": "NORMALIZED000001",
 | 
			
		||||
            "funding": "credit",
 | 
			
		||||
            "generated_from": null,
 | 
			
		||||
            "last4": "4242",
 | 
			
		||||
            "networks": {
 | 
			
		||||
              "available": [
 | 
			
		||||
                "visa"
 | 
			
		||||
              ],
 | 
			
		||||
              "preferred": null
 | 
			
		||||
            },
 | 
			
		||||
            "three_d_secure_usage": {
 | 
			
		||||
              "supported": true
 | 
			
		||||
            },
 | 
			
		||||
            "wallet": null
 | 
			
		||||
          },
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "id": "pm_1P3qsHDEQaroqDjsynwTeukX",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "payment_method",
 | 
			
		||||
          "type": "card"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qsIDEQaroqDjsOussl75p",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0010",
 | 
			
		||||
        "idempotency_key": "41e19fc1-6fe3-4c67-99a5-5fc50c05f86c"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_method.attached"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "data": [],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
  "object": "list",
 | 
			
		||||
  "url": "/v1/events"
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -1,328 +1,5 @@
 | 
			
		||||
{
 | 
			
		||||
  "data": [
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qs5DEQaroqDjsYPOiDIFX_secret_PteA3HHjUKWR4RSnTIVi8rrSi2k24fm",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0007",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qs5DEQaroqDjsYPOiDIFX",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qs5DEQaroqDjsSUzdZf4T",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qs5DEQaroqDjsM8brnZmN",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qs6DEQaroqDjsX9UmsUEO",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0026",
 | 
			
		||||
        "idempotency_key": "387207cf-e074-4ec9-808f-4c8b83e768ef"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.succeeded"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "billing_details": {
 | 
			
		||||
            "address": {
 | 
			
		||||
              "city": "San Francisco",
 | 
			
		||||
              "country": "US",
 | 
			
		||||
              "line1": "123 Main St",
 | 
			
		||||
              "line2": null,
 | 
			
		||||
              "postal_code": "94105",
 | 
			
		||||
              "state": "CA"
 | 
			
		||||
            },
 | 
			
		||||
            "email": null,
 | 
			
		||||
            "name": "John Doe",
 | 
			
		||||
            "phone": null
 | 
			
		||||
          },
 | 
			
		||||
          "card": {
 | 
			
		||||
            "brand": "visa",
 | 
			
		||||
            "checks": {
 | 
			
		||||
              "address_line1_check": null,
 | 
			
		||||
              "address_postal_code_check": null,
 | 
			
		||||
              "cvc_check": "pass"
 | 
			
		||||
            },
 | 
			
		||||
            "country": "US",
 | 
			
		||||
            "display_brand": "visa",
 | 
			
		||||
            "exp_month": 4,
 | 
			
		||||
            "exp_year": 2025,
 | 
			
		||||
            "fingerprint": "NORMALIZED000001",
 | 
			
		||||
            "funding": "credit",
 | 
			
		||||
            "generated_from": null,
 | 
			
		||||
            "last4": "4242",
 | 
			
		||||
            "networks": {
 | 
			
		||||
              "available": [
 | 
			
		||||
                "visa"
 | 
			
		||||
              ],
 | 
			
		||||
              "preferred": null
 | 
			
		||||
            },
 | 
			
		||||
            "three_d_secure_usage": {
 | 
			
		||||
              "supported": true
 | 
			
		||||
            },
 | 
			
		||||
            "wallet": null
 | 
			
		||||
          },
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0007",
 | 
			
		||||
          "id": "pm_1P3qs5DEQaroqDjsM8brnZmN",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "payment_method",
 | 
			
		||||
          "type": "card"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qs6DEQaroqDjspqxteITH",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0026",
 | 
			
		||||
        "idempotency_key": "387207cf-e074-4ec9-808f-4c8b83e768ef"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_method.attached"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qs5DEQaroqDjsl3LVyWBr_secret_PteAqcuhQmvceMTnfKI0g0war3cjJGx",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0008",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qs5DEQaroqDjsl3LVyWBr",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qs5DEQaroqDjsVGvAF6Lr",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qs5DEQaroqDjsOx8jWB63",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qs6DEQaroqDjsvsoF1dcW",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0027",
 | 
			
		||||
        "idempotency_key": "818d008d-be8a-4cf1-b511-990750f75a15"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.succeeded"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "billing_details": {
 | 
			
		||||
            "address": {
 | 
			
		||||
              "city": "San Francisco",
 | 
			
		||||
              "country": "US",
 | 
			
		||||
              "line1": "123 Main St",
 | 
			
		||||
              "line2": null,
 | 
			
		||||
              "postal_code": "94105",
 | 
			
		||||
              "state": "CA"
 | 
			
		||||
            },
 | 
			
		||||
            "email": null,
 | 
			
		||||
            "name": "John Doe",
 | 
			
		||||
            "phone": null
 | 
			
		||||
          },
 | 
			
		||||
          "card": {
 | 
			
		||||
            "brand": "visa",
 | 
			
		||||
            "checks": {
 | 
			
		||||
              "address_line1_check": null,
 | 
			
		||||
              "address_postal_code_check": null,
 | 
			
		||||
              "cvc_check": "pass"
 | 
			
		||||
            },
 | 
			
		||||
            "country": "US",
 | 
			
		||||
            "display_brand": "visa",
 | 
			
		||||
            "exp_month": 4,
 | 
			
		||||
            "exp_year": 2025,
 | 
			
		||||
            "fingerprint": "NORMALIZED000001",
 | 
			
		||||
            "funding": "credit",
 | 
			
		||||
            "generated_from": null,
 | 
			
		||||
            "last4": "4242",
 | 
			
		||||
            "networks": {
 | 
			
		||||
              "available": [
 | 
			
		||||
                "visa"
 | 
			
		||||
              ],
 | 
			
		||||
              "preferred": null
 | 
			
		||||
            },
 | 
			
		||||
            "three_d_secure_usage": {
 | 
			
		||||
              "supported": true
 | 
			
		||||
            },
 | 
			
		||||
            "wallet": null
 | 
			
		||||
          },
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0008",
 | 
			
		||||
          "id": "pm_1P3qs5DEQaroqDjsOx8jWB63",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "payment_method",
 | 
			
		||||
          "type": "card"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qs6DEQaroqDjs8cwW5JlI",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0027",
 | 
			
		||||
        "idempotency_key": "818d008d-be8a-4cf1-b511-990750f75a15"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_method.attached"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qs5DEQaroqDjsYPOiDIFX_secret_PteA3HHjUKWR4RSnTIVi8rrSi2k24fm",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0007",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qs5DEQaroqDjsYPOiDIFX",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qs5DEQaroqDjsSUzdZf4T",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qs5DEQaroqDjsM8brnZmN",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qs6DEQaroqDjsed4A4rSz",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0026",
 | 
			
		||||
        "idempotency_key": "387207cf-e074-4ec9-808f-4c8b83e768ef"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qs5DEQaroqDjsl3LVyWBr_secret_PteAqcuhQmvceMTnfKI0g0war3cjJGx",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0008",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qs5DEQaroqDjsl3LVyWBr",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qs5DEQaroqDjsVGvAF6Lr",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qs5DEQaroqDjsOx8jWB63",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qs6DEQaroqDjsSqqXLT10",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0027",
 | 
			
		||||
        "idempotency_key": "818d008d-be8a-4cf1-b511-990750f75a15"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "data": [],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
  "object": "list",
 | 
			
		||||
  "url": "/v1/events"
 | 
			
		||||
 
 | 
			
		||||
@@ -5,52 +5,238 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "account_country": "US",
 | 
			
		||||
          "account_name": "Kandra Labs, Inc.",
 | 
			
		||||
          "account_tax_ids": null,
 | 
			
		||||
          "amount_due": 4300,
 | 
			
		||||
          "amount_paid": 0,
 | 
			
		||||
          "amount_remaining": 4300,
 | 
			
		||||
          "amount_shipping": 0,
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qs6DEQaroqDjsJLgRwqr8_secret_PteAVwovCIj10MzKTNaCk0QGhzdOoMY",
 | 
			
		||||
          "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": "charge_automatically",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0006",
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0005",
 | 
			
		||||
          "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,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qs6DEQaroqDjsJLgRwqr8",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "discounts": [],
 | 
			
		||||
          "due_date": null,
 | 
			
		||||
          "effective_at": null,
 | 
			
		||||
          "ending_balance": null,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": null,
 | 
			
		||||
          "id": "in_NORMALIZED00000000000005",
 | 
			
		||||
          "invoice_pdf": null,
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
          "last_finalization_error": null,
 | 
			
		||||
          "latest_revision": null,
 | 
			
		||||
          "lines": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": -2000,
 | 
			
		||||
                "amount_excluding_tax": -2000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "$20.00/month new customer discount",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000007",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000005",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000007",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qs7DEQaroqDjsX1tRspHP",
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000006",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0028",
 | 
			
		||||
        "idempotency_key": "2ffd47f7-7e0b-4a79-8437-5ff17436f5fe"
 | 
			
		||||
                  "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": -2000,
 | 
			
		||||
                  "unit_amount_decimal": "-2000"
 | 
			
		||||
                },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 1,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "-2000"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 6300,
 | 
			
		||||
                "amount_excluding_tax": 6300,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Basic",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000008",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000005",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000008",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000007",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0005",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": 350,
 | 
			
		||||
                  "unit_amount_decimal": "350"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 18,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "350"
 | 
			
		||||
              }
 | 
			
		||||
            ],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 2,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000005/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "2",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "18",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "103"
 | 
			
		||||
          },
 | 
			
		||||
          "next_payment_attempt": null,
 | 
			
		||||
          "number": null,
 | 
			
		||||
          "object": "invoice",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "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": "auto"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "rendering_options": null,
 | 
			
		||||
          "shipping_cost": null,
 | 
			
		||||
          "shipping_details": null,
 | 
			
		||||
          "starting_balance": 0,
 | 
			
		||||
          "statement_descriptor": "Zulip Basic",
 | 
			
		||||
          "status": "draft",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "finalized_at": null,
 | 
			
		||||
            "marked_uncollectible_at": null,
 | 
			
		||||
            "paid_at": null,
 | 
			
		||||
            "voided_at": null
 | 
			
		||||
          },
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "subscription_details": {
 | 
			
		||||
            "metadata": null
 | 
			
		||||
          },
 | 
			
		||||
          "subtotal": 4300,
 | 
			
		||||
          "subtotal_excluding_tax": 4300,
 | 
			
		||||
          "tax": null,
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "total": 4300,
 | 
			
		||||
          "total_discount_amounts": [],
 | 
			
		||||
          "total_excluding_tax": 4300,
 | 
			
		||||
          "total_tax_amounts": [],
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xokDEQaroqDjs5EWQRM76",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0020",
 | 
			
		||||
        "idempotency_key": "072fda58-20ea-4593-a7e6-c431d9e043b6"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.created"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": true,
 | 
			
		||||
  "object": "list",
 | 
			
		||||
  "url": "/v1/events"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -59,9 +59,9 @@
 | 
			
		||||
        "discount_amounts": [],
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
        "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
        "object": "line_item",
 | 
			
		||||
@@ -76,13 +76,13 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_unit_amount": null,
 | 
			
		||||
          "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
          "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "lookup_key": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "nickname": null,
 | 
			
		||||
          "object": "price",
 | 
			
		||||
          "product": "prod_NORMALIZED0002",
 | 
			
		||||
          "product": "prod_NORMALIZED0003",
 | 
			
		||||
          "recurring": null,
 | 
			
		||||
          "tax_behavior": "unspecified",
 | 
			
		||||
          "tiers_mode": null,
 | 
			
		||||
@@ -113,6 +113,7 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -59,9 +59,9 @@
 | 
			
		||||
        "discount_amounts": [],
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
        "id": "il_NORMALIZED00000000000003",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
        "object": "line_item",
 | 
			
		||||
@@ -76,13 +76,13 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_unit_amount": null,
 | 
			
		||||
          "id": "price_NORMALIZED00000000000002",
 | 
			
		||||
          "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "lookup_key": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "nickname": null,
 | 
			
		||||
          "object": "price",
 | 
			
		||||
          "product": "prod_NORMALIZED0002",
 | 
			
		||||
          "product": "prod_NORMALIZED0003",
 | 
			
		||||
          "recurring": null,
 | 
			
		||||
          "tax_behavior": "unspecified",
 | 
			
		||||
          "tiers_mode": null,
 | 
			
		||||
@@ -113,6 +113,7 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgwMw0200TlRYuiCy?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzQ5OA0200LpLhgNpW?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgwMw0200TlRYuiCy/pdf?s=ap",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzQ5OA0200LpLhgNpW/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -59,9 +59,9 @@
 | 
			
		||||
        "discount_amounts": [],
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
        "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
        "object": "line_item",
 | 
			
		||||
@@ -76,13 +76,13 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_unit_amount": null,
 | 
			
		||||
          "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
          "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "lookup_key": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "nickname": null,
 | 
			
		||||
          "object": "price",
 | 
			
		||||
          "product": "prod_NORMALIZED0002",
 | 
			
		||||
          "product": "prod_NORMALIZED0003",
 | 
			
		||||
          "recurring": null,
 | 
			
		||||
          "tax_behavior": "unspecified",
 | 
			
		||||
          "tiers_mode": null,
 | 
			
		||||
@@ -113,11 +113,12 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
  "next_payment_attempt": null,
 | 
			
		||||
  "number": "NORMALI-0003",
 | 
			
		||||
  "number": "NORMALI-0004",
 | 
			
		||||
  "object": "invoice",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgxNQ0200wD4MIIi7?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVVZXc2dhZHZraERQNkV0MGFKUGZjS3NTY3VCLDEwMzI4MzUwOQ0200nUiNlWxb?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgxNQ0200wD4MIIi7/pdf?s=ap",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVVZXc2dhZHZraERQNkV0MGFKUGZjS3NTY3VCLDEwMzI4MzUwOQ0200nUiNlWxb/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -59,9 +59,9 @@
 | 
			
		||||
        "discount_amounts": [],
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
        "id": "il_NORMALIZED00000000000003",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
        "object": "line_item",
 | 
			
		||||
@@ -76,13 +76,13 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_unit_amount": null,
 | 
			
		||||
          "id": "price_NORMALIZED00000000000002",
 | 
			
		||||
          "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "lookup_key": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "nickname": null,
 | 
			
		||||
          "object": "price",
 | 
			
		||||
          "product": "prod_NORMALIZED0002",
 | 
			
		||||
          "product": "prod_NORMALIZED0003",
 | 
			
		||||
          "recurring": null,
 | 
			
		||||
          "tax_behavior": "unspecified",
 | 
			
		||||
          "tiers_mode": null,
 | 
			
		||||
@@ -113,11 +113,12 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
  "next_payment_attempt": null,
 | 
			
		||||
  "number": "NORMALI-0001",
 | 
			
		||||
  "number": "NORMALI-0002",
 | 
			
		||||
  "object": "invoice",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBVWdlU1VkSmJYRmEyN2ZMT2ZmYXB0WHlBZDRQLDEwMzI1NjgyMQ0200t4h7JxLa?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVWI0MHZUZlk5TG00ck50SlNuZ3NYNkxGSGtPLDEwMzI4MzUxNg0200GQibeaku?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000006",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBVWdlU1VkSmJYRmEyN2ZMT2ZmYXB0WHlBZDRQLDEwMzI1NjgyMQ0200t4h7JxLa/pdf?s=ap",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVWI0MHZUZlk5TG00ck50SlNuZ3NYNkxGSGtPLDEwMzI4MzUxNg0200GQibeaku/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -111,7 +111,7 @@
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_payment_attempt": 1000000000,
 | 
			
		||||
  "number": "NORMALI-0006",
 | 
			
		||||
  "number": "NORMALI-0007",
 | 
			
		||||
  "object": "invoice",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -43,9 +43,9 @@
 | 
			
		||||
      "ending_balance": 0,
 | 
			
		||||
      "footer": null,
 | 
			
		||||
      "from_invoice": null,
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgwOA0200z0aZ8eYg?s=ap",
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzUwMg0200eXv5x92s?s=ap",
 | 
			
		||||
      "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgwOA0200z0aZ8eYg/pdf?s=ap",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzUwMg0200eXv5x92s/pdf?s=ap",
 | 
			
		||||
      "issuer": {
 | 
			
		||||
        "type": "self"
 | 
			
		||||
      },
 | 
			
		||||
@@ -61,9 +61,9 @@
 | 
			
		||||
            "discount_amounts": [],
 | 
			
		||||
            "discountable": false,
 | 
			
		||||
            "discounts": [],
 | 
			
		||||
            "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
            "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
            "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
            "livemode": false,
 | 
			
		||||
            "metadata": {},
 | 
			
		||||
            "object": "line_item",
 | 
			
		||||
@@ -78,13 +78,13 @@
 | 
			
		||||
              "created": 1000000000,
 | 
			
		||||
              "currency": "usd",
 | 
			
		||||
              "custom_unit_amount": null,
 | 
			
		||||
              "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
              "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
              "livemode": false,
 | 
			
		||||
              "lookup_key": null,
 | 
			
		||||
              "metadata": {},
 | 
			
		||||
              "nickname": null,
 | 
			
		||||
              "object": "price",
 | 
			
		||||
              "product": "prod_NORMALIZED0002",
 | 
			
		||||
              "product": "prod_NORMALIZED0003",
 | 
			
		||||
              "recurring": null,
 | 
			
		||||
              "tax_behavior": "unspecified",
 | 
			
		||||
              "tiers_mode": null,
 | 
			
		||||
@@ -115,11 +115,12 @@
 | 
			
		||||
        "billing_schedule": "1",
 | 
			
		||||
        "license_management": "automatic",
 | 
			
		||||
        "licenses": "6",
 | 
			
		||||
        "on_free_trial": "False",
 | 
			
		||||
        "plan_tier": "1",
 | 
			
		||||
        "user_id": "10"
 | 
			
		||||
      },
 | 
			
		||||
      "next_payment_attempt": null,
 | 
			
		||||
      "number": "NORMALI-0003",
 | 
			
		||||
      "number": "NORMALI-0004",
 | 
			
		||||
      "object": "invoice",
 | 
			
		||||
      "on_behalf_of": null,
 | 
			
		||||
      "paid": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -43,9 +43,9 @@
 | 
			
		||||
      "ending_balance": 0,
 | 
			
		||||
      "footer": null,
 | 
			
		||||
      "from_invoice": null,
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgxOQ0200BpwQhVtW?s=ap",
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVVZXc2dhZHZraERQNkV0MGFKUGZjS3NTY3VCLDEwMzI4MzUxNA0200HWNDQykW?s=ap",
 | 
			
		||||
      "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgxOQ0200BpwQhVtW/pdf?s=ap",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVVZXc2dhZHZraERQNkV0MGFKUGZjS3NTY3VCLDEwMzI4MzUxNA0200HWNDQykW/pdf?s=ap",
 | 
			
		||||
      "issuer": {
 | 
			
		||||
        "type": "self"
 | 
			
		||||
      },
 | 
			
		||||
@@ -61,9 +61,9 @@
 | 
			
		||||
            "discount_amounts": [],
 | 
			
		||||
            "discountable": false,
 | 
			
		||||
            "discounts": [],
 | 
			
		||||
            "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
            "id": "il_NORMALIZED00000000000003",
 | 
			
		||||
            "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
            "livemode": false,
 | 
			
		||||
            "metadata": {},
 | 
			
		||||
            "object": "line_item",
 | 
			
		||||
@@ -78,13 +78,13 @@
 | 
			
		||||
              "created": 1000000000,
 | 
			
		||||
              "currency": "usd",
 | 
			
		||||
              "custom_unit_amount": null,
 | 
			
		||||
              "id": "price_NORMALIZED00000000000002",
 | 
			
		||||
              "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
              "livemode": false,
 | 
			
		||||
              "lookup_key": null,
 | 
			
		||||
              "metadata": {},
 | 
			
		||||
              "nickname": null,
 | 
			
		||||
              "object": "price",
 | 
			
		||||
              "product": "prod_NORMALIZED0002",
 | 
			
		||||
              "product": "prod_NORMALIZED0003",
 | 
			
		||||
              "recurring": null,
 | 
			
		||||
              "tax_behavior": "unspecified",
 | 
			
		||||
              "tiers_mode": null,
 | 
			
		||||
@@ -115,11 +115,12 @@
 | 
			
		||||
        "billing_schedule": "1",
 | 
			
		||||
        "license_management": "automatic",
 | 
			
		||||
        "licenses": "6",
 | 
			
		||||
        "on_free_trial": "False",
 | 
			
		||||
        "plan_tier": "1",
 | 
			
		||||
        "user_id": "10"
 | 
			
		||||
      },
 | 
			
		||||
      "next_payment_attempt": null,
 | 
			
		||||
      "number": "NORMALI-0001",
 | 
			
		||||
      "number": "NORMALI-0002",
 | 
			
		||||
      "object": "invoice",
 | 
			
		||||
      "on_behalf_of": null,
 | 
			
		||||
      "paid": true,
 | 
			
		||||
@@ -212,9 +213,9 @@
 | 
			
		||||
      "ending_balance": 0,
 | 
			
		||||
      "footer": null,
 | 
			
		||||
      "from_invoice": null,
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgxOQ0200U9Mq4OGH?s=ap",
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzUxNA0200eEJnH219?s=ap",
 | 
			
		||||
      "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgxOQ0200U9Mq4OGH/pdf?s=ap",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzUxNA0200eEJnH219/pdf?s=ap",
 | 
			
		||||
      "issuer": {
 | 
			
		||||
        "type": "self"
 | 
			
		||||
      },
 | 
			
		||||
@@ -230,9 +231,9 @@
 | 
			
		||||
            "discount_amounts": [],
 | 
			
		||||
            "discountable": false,
 | 
			
		||||
            "discounts": [],
 | 
			
		||||
            "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
            "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
            "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
            "livemode": false,
 | 
			
		||||
            "metadata": {},
 | 
			
		||||
            "object": "line_item",
 | 
			
		||||
@@ -247,13 +248,13 @@
 | 
			
		||||
              "created": 1000000000,
 | 
			
		||||
              "currency": "usd",
 | 
			
		||||
              "custom_unit_amount": null,
 | 
			
		||||
              "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
              "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
              "livemode": false,
 | 
			
		||||
              "lookup_key": null,
 | 
			
		||||
              "metadata": {},
 | 
			
		||||
              "nickname": null,
 | 
			
		||||
              "object": "price",
 | 
			
		||||
              "product": "prod_NORMALIZED0002",
 | 
			
		||||
              "product": "prod_NORMALIZED0003",
 | 
			
		||||
              "recurring": null,
 | 
			
		||||
              "tax_behavior": "unspecified",
 | 
			
		||||
              "tiers_mode": null,
 | 
			
		||||
@@ -284,11 +285,12 @@
 | 
			
		||||
        "billing_schedule": "1",
 | 
			
		||||
        "license_management": "automatic",
 | 
			
		||||
        "licenses": "6",
 | 
			
		||||
        "on_free_trial": "False",
 | 
			
		||||
        "plan_tier": "1",
 | 
			
		||||
        "user_id": "10"
 | 
			
		||||
      },
 | 
			
		||||
      "next_payment_attempt": null,
 | 
			
		||||
      "number": "NORMALI-0003",
 | 
			
		||||
      "number": "NORMALI-0004",
 | 
			
		||||
      "object": "invoice",
 | 
			
		||||
      "on_behalf_of": null,
 | 
			
		||||
      "paid": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -43,9 +43,9 @@
 | 
			
		||||
      "ending_balance": 0,
 | 
			
		||||
      "footer": null,
 | 
			
		||||
      "from_invoice": null,
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBVWdlU1VkSmJYRmEyN2ZMT2ZmYXB0WHlBZDRQLDEwMzI1NjgyMg0200E1JRtdNe?s=ap",
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVWI0MHZUZlk5TG00ck50SlNuZ3NYNkxGSGtPLDEwMzI4MzUxNg0200GQibeaku?s=ap",
 | 
			
		||||
      "id": "in_NORMALIZED00000000000006",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBVWdlU1VkSmJYRmEyN2ZMT2ZmYXB0WHlBZDRQLDEwMzI1NjgyMg0200E1JRtdNe/pdf?s=ap",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVWI0MHZUZlk5TG00ck50SlNuZ3NYNkxGSGtPLDEwMzI4MzUxNg0200GQibeaku/pdf?s=ap",
 | 
			
		||||
      "issuer": {
 | 
			
		||||
        "type": "self"
 | 
			
		||||
      },
 | 
			
		||||
@@ -113,7 +113,7 @@
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "next_payment_attempt": 1000000000,
 | 
			
		||||
      "number": "NORMALI-0006",
 | 
			
		||||
      "number": "NORMALI-0007",
 | 
			
		||||
      "object": "invoice",
 | 
			
		||||
      "on_behalf_of": null,
 | 
			
		||||
      "paid": false,
 | 
			
		||||
@@ -206,9 +206,9 @@
 | 
			
		||||
      "ending_balance": 0,
 | 
			
		||||
      "footer": null,
 | 
			
		||||
      "from_invoice": null,
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgyMg0200OCh2bTma?s=ap",
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVVZXc2dhZHZraERQNkV0MGFKUGZjS3NTY3VCLDEwMzI4MzUxNg02004sKzLURp?s=ap",
 | 
			
		||||
      "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgyMg0200OCh2bTma/pdf?s=ap",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVVZXc2dhZHZraERQNkV0MGFKUGZjS3NTY3VCLDEwMzI4MzUxNg02004sKzLURp/pdf?s=ap",
 | 
			
		||||
      "issuer": {
 | 
			
		||||
        "type": "self"
 | 
			
		||||
      },
 | 
			
		||||
@@ -224,9 +224,9 @@
 | 
			
		||||
            "discount_amounts": [],
 | 
			
		||||
            "discountable": false,
 | 
			
		||||
            "discounts": [],
 | 
			
		||||
            "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
            "id": "il_NORMALIZED00000000000003",
 | 
			
		||||
            "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
            "livemode": false,
 | 
			
		||||
            "metadata": {},
 | 
			
		||||
            "object": "line_item",
 | 
			
		||||
@@ -241,13 +241,13 @@
 | 
			
		||||
              "created": 1000000000,
 | 
			
		||||
              "currency": "usd",
 | 
			
		||||
              "custom_unit_amount": null,
 | 
			
		||||
              "id": "price_NORMALIZED00000000000002",
 | 
			
		||||
              "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
              "livemode": false,
 | 
			
		||||
              "lookup_key": null,
 | 
			
		||||
              "metadata": {},
 | 
			
		||||
              "nickname": null,
 | 
			
		||||
              "object": "price",
 | 
			
		||||
              "product": "prod_NORMALIZED0002",
 | 
			
		||||
              "product": "prod_NORMALIZED0003",
 | 
			
		||||
              "recurring": null,
 | 
			
		||||
              "tax_behavior": "unspecified",
 | 
			
		||||
              "tiers_mode": null,
 | 
			
		||||
@@ -278,11 +278,12 @@
 | 
			
		||||
        "billing_schedule": "1",
 | 
			
		||||
        "license_management": "automatic",
 | 
			
		||||
        "licenses": "6",
 | 
			
		||||
        "on_free_trial": "False",
 | 
			
		||||
        "plan_tier": "1",
 | 
			
		||||
        "user_id": "10"
 | 
			
		||||
      },
 | 
			
		||||
      "next_payment_attempt": null,
 | 
			
		||||
      "number": "NORMALI-0001",
 | 
			
		||||
      "number": "NORMALI-0002",
 | 
			
		||||
      "object": "invoice",
 | 
			
		||||
      "on_behalf_of": null,
 | 
			
		||||
      "paid": true,
 | 
			
		||||
@@ -375,9 +376,9 @@
 | 
			
		||||
      "ending_balance": 0,
 | 
			
		||||
      "footer": null,
 | 
			
		||||
      "from_invoice": null,
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgyMg0200LVKkRs2o?s=ap",
 | 
			
		||||
      "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzUxNg0200xIEPo0Ko?s=ap",
 | 
			
		||||
      "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgyMg0200LVKkRs2o/pdf?s=ap",
 | 
			
		||||
      "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzUxNg0200xIEPo0Ko/pdf?s=ap",
 | 
			
		||||
      "issuer": {
 | 
			
		||||
        "type": "self"
 | 
			
		||||
      },
 | 
			
		||||
@@ -393,9 +394,9 @@
 | 
			
		||||
            "discount_amounts": [],
 | 
			
		||||
            "discountable": false,
 | 
			
		||||
            "discounts": [],
 | 
			
		||||
            "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
            "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
            "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
            "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
            "livemode": false,
 | 
			
		||||
            "metadata": {},
 | 
			
		||||
            "object": "line_item",
 | 
			
		||||
@@ -410,13 +411,13 @@
 | 
			
		||||
              "created": 1000000000,
 | 
			
		||||
              "currency": "usd",
 | 
			
		||||
              "custom_unit_amount": null,
 | 
			
		||||
              "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
              "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
              "livemode": false,
 | 
			
		||||
              "lookup_key": null,
 | 
			
		||||
              "metadata": {},
 | 
			
		||||
              "nickname": null,
 | 
			
		||||
              "object": "price",
 | 
			
		||||
              "product": "prod_NORMALIZED0002",
 | 
			
		||||
              "product": "prod_NORMALIZED0003",
 | 
			
		||||
              "recurring": null,
 | 
			
		||||
              "tax_behavior": "unspecified",
 | 
			
		||||
              "tiers_mode": null,
 | 
			
		||||
@@ -447,11 +448,12 @@
 | 
			
		||||
        "billing_schedule": "1",
 | 
			
		||||
        "license_management": "automatic",
 | 
			
		||||
        "licenses": "6",
 | 
			
		||||
        "on_free_trial": "False",
 | 
			
		||||
        "plan_tier": "1",
 | 
			
		||||
        "user_id": "10"
 | 
			
		||||
      },
 | 
			
		||||
      "next_payment_attempt": null,
 | 
			
		||||
      "number": "NORMALI-0003",
 | 
			
		||||
      "number": "NORMALI-0004",
 | 
			
		||||
      "object": "invoice",
 | 
			
		||||
      "on_behalf_of": null,
 | 
			
		||||
      "paid": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgwNQ0200HVp5gCO5?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzQ5OQ0200CaYKZnTn?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBMklQN2Q2enVpZUFRZUE3WDU2OUpVMlg2bGlzLDEwMzI1NjgwNQ0200HVp5gCO5/pdf?s=ap",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMeGNkVzdQOHBlRzlhYzVFQm45NDNSMDFrN0NtLDEwMzI4MzQ5OQ0200CaYKZnTn/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -59,9 +59,9 @@
 | 
			
		||||
        "discount_amounts": [],
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
        "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
        "object": "line_item",
 | 
			
		||||
@@ -76,13 +76,13 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_unit_amount": null,
 | 
			
		||||
          "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
          "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "lookup_key": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "nickname": null,
 | 
			
		||||
          "object": "price",
 | 
			
		||||
          "product": "prod_NORMALIZED0002",
 | 
			
		||||
          "product": "prod_NORMALIZED0003",
 | 
			
		||||
          "recurring": null,
 | 
			
		||||
          "tax_behavior": "unspecified",
 | 
			
		||||
          "tiers_mode": null,
 | 
			
		||||
@@ -113,11 +113,12 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
  "next_payment_attempt": null,
 | 
			
		||||
  "number": "NORMALI-0003",
 | 
			
		||||
  "number": "NORMALI-0004",
 | 
			
		||||
  "object": "invoice",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgxNg0200auE04NzE?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVVZXc2dhZHZraERQNkV0MGFKUGZjS3NTY3VCLDEwMzI4MzUxMA0200MvliXCRK?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGVBaFA0MzNiSlZPZmlydVp1Qkh0R1YyWml1eUdKLDEwMzI1NjgxNg0200auE04NzE/pdf?s=ap",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGxMVVZXc2dhZHZraERQNkV0MGFKUGZjS3NTY3VCLDEwMzI4MzUxMA0200MvliXCRK/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -59,9 +59,9 @@
 | 
			
		||||
        "discount_amounts": [],
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
        "id": "il_NORMALIZED00000000000003",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
        "object": "line_item",
 | 
			
		||||
@@ -76,13 +76,13 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_unit_amount": null,
 | 
			
		||||
          "id": "price_NORMALIZED00000000000002",
 | 
			
		||||
          "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "lookup_key": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "nickname": null,
 | 
			
		||||
          "object": "price",
 | 
			
		||||
          "product": "prod_NORMALIZED0002",
 | 
			
		||||
          "product": "prod_NORMALIZED0003",
 | 
			
		||||
          "recurring": null,
 | 
			
		||||
          "tax_behavior": "unspecified",
 | 
			
		||||
          "tiers_mode": null,
 | 
			
		||||
@@ -113,11 +113,12 @@
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "10"
 | 
			
		||||
  },
 | 
			
		||||
  "next_payment_attempt": null,
 | 
			
		||||
  "number": "NORMALI-0001",
 | 
			
		||||
  "number": "NORMALI-0002",
 | 
			
		||||
  "object": "invoice",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@
 | 
			
		||||
  "description": "Zulip Cloud Standard",
 | 
			
		||||
  "discountable": false,
 | 
			
		||||
  "discounts": [],
 | 
			
		||||
  "id": "ii_NORMALIZED00000000000003",
 | 
			
		||||
  "id": "ii_NORMALIZED00000000000004",
 | 
			
		||||
  "invoice": null,
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
@@ -22,13 +22,13 @@
 | 
			
		||||
    "created": 1000000000,
 | 
			
		||||
    "currency": "usd",
 | 
			
		||||
    "custom_unit_amount": null,
 | 
			
		||||
    "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
    "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
    "livemode": false,
 | 
			
		||||
    "lookup_key": null,
 | 
			
		||||
    "metadata": {},
 | 
			
		||||
    "nickname": null,
 | 
			
		||||
    "object": "price",
 | 
			
		||||
    "product": "prod_NORMALIZED0002",
 | 
			
		||||
    "product": "prod_NORMALIZED0003",
 | 
			
		||||
    "recurring": null,
 | 
			
		||||
    "tax_behavior": "unspecified",
 | 
			
		||||
    "tiers_mode": null,
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@
 | 
			
		||||
  "description": "Zulip Cloud Standard",
 | 
			
		||||
  "discountable": false,
 | 
			
		||||
  "discounts": [],
 | 
			
		||||
  "id": "ii_NORMALIZED00000000000002",
 | 
			
		||||
  "id": "ii_NORMALIZED00000000000003",
 | 
			
		||||
  "invoice": null,
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
@@ -22,13 +22,13 @@
 | 
			
		||||
    "created": 1000000000,
 | 
			
		||||
    "currency": "usd",
 | 
			
		||||
    "custom_unit_amount": null,
 | 
			
		||||
    "id": "price_NORMALIZED00000000000002",
 | 
			
		||||
    "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
    "livemode": false,
 | 
			
		||||
    "lookup_key": null,
 | 
			
		||||
    "metadata": {},
 | 
			
		||||
    "nickname": null,
 | 
			
		||||
    "object": "price",
 | 
			
		||||
    "product": "prod_NORMALIZED0002",
 | 
			
		||||
    "product": "prod_NORMALIZED0003",
 | 
			
		||||
    "recurring": null,
 | 
			
		||||
    "tax_behavior": "unspecified",
 | 
			
		||||
    "tiers_mode": null,
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": null,
 | 
			
		||||
  "id": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
  "id": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": null,
 | 
			
		||||
  "id": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
  "id": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -2,21 +2,21 @@
 | 
			
		||||
  "application": null,
 | 
			
		||||
  "automatic_payment_methods": null,
 | 
			
		||||
  "cancellation_reason": null,
 | 
			
		||||
  "client_secret": "seti_1P3qryDEQaroqDjsf3QpIjxa_secret_PteAILCtg6iKCCOKkjkrvx5m0DQLx9s",
 | 
			
		||||
  "client_secret": "seti_1P3xoWDEQaroqDjsjun1APdg_secret_PtlLdKZaWI6yHOIxgRahZyszneKAMN2",
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": "cus_NORMALIZED0001",
 | 
			
		||||
  "description": null,
 | 
			
		||||
  "flow_directions": null,
 | 
			
		||||
  "id": "seti_1P3qryDEQaroqDjsf3QpIjxa",
 | 
			
		||||
  "id": "seti_1P3xoWDEQaroqDjsjun1APdg",
 | 
			
		||||
  "last_setup_error": null,
 | 
			
		||||
  "latest_attempt": "setatt_1P3qryDEQaroqDjsEFhVbMSv",
 | 
			
		||||
  "latest_attempt": "setatt_1P3xoWDEQaroqDjsEpDMKwrD",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "mandate": null,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_action": null,
 | 
			
		||||
  "object": "setup_intent",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "payment_method": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
  "payment_method": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
  "payment_method_configuration_details": null,
 | 
			
		||||
  "payment_method_options": {
 | 
			
		||||
    "card": {
 | 
			
		||||
 
 | 
			
		||||
@@ -2,21 +2,21 @@
 | 
			
		||||
  "application": null,
 | 
			
		||||
  "automatic_payment_methods": null,
 | 
			
		||||
  "cancellation_reason": null,
 | 
			
		||||
  "client_secret": "seti_1P3qs9DEQaroqDjs7ywzQvkg_secret_PteAmMyJ2n2RMJej2jceqxOPtwFmIN3",
 | 
			
		||||
  "client_secret": "seti_1P3xohDEQaroqDjs37QtI6HA_secret_PtlL42gx7D0toBdLQv3iPDhurS6AKfc",
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": "cus_NORMALIZED0001",
 | 
			
		||||
  "description": null,
 | 
			
		||||
  "flow_directions": null,
 | 
			
		||||
  "id": "seti_1P3qs9DEQaroqDjs7ywzQvkg",
 | 
			
		||||
  "id": "seti_1P3xohDEQaroqDjs37QtI6HA",
 | 
			
		||||
  "last_setup_error": null,
 | 
			
		||||
  "latest_attempt": "setatt_1P3qs9DEQaroqDjsyH0V23JT",
 | 
			
		||||
  "latest_attempt": "setatt_1P3xohDEQaroqDjsKp7xvbz0",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "mandate": null,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_action": null,
 | 
			
		||||
  "object": "setup_intent",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "payment_method": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
  "payment_method": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
  "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_1P3qrwDEQaroqDjssVFqKGHU_secret_PteAXWdGQyKpTDyDRFKuzBUXXq51WVg",
 | 
			
		||||
      "client_secret": "seti_1P3xoVDEQaroqDjsyJaHf9MX_secret_PtlLnQdBeLZGj4hPppHxiYuOcHhKHcW",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "description": null,
 | 
			
		||||
      "flow_directions": null,
 | 
			
		||||
      "id": "seti_1P3qrwDEQaroqDjssVFqKGHU",
 | 
			
		||||
      "id": "seti_1P3xoVDEQaroqDjsyJaHf9MX",
 | 
			
		||||
      "last_setup_error": null,
 | 
			
		||||
      "latest_attempt": null,
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -4,12 +4,12 @@
 | 
			
		||||
      "application": null,
 | 
			
		||||
      "automatic_payment_methods": null,
 | 
			
		||||
      "cancellation_reason": null,
 | 
			
		||||
      "client_secret": "seti_1P3qs8DEQaroqDjsAPA3vip9_secret_PteA7d934kRNFgB4uqu3AnHWlt5BREH",
 | 
			
		||||
      "client_secret": "seti_1P3xogDEQaroqDjsymtrjvw3_secret_PtlLADlFY5FQMvPt0w2AhxSoZa8xp3x",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "description": null,
 | 
			
		||||
      "flow_directions": null,
 | 
			
		||||
      "id": "seti_1P3qs8DEQaroqDjsAPA3vip9",
 | 
			
		||||
      "id": "seti_1P3xogDEQaroqDjsymtrjvw3",
 | 
			
		||||
      "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_1P3qryDEQaroqDjsf3QpIjxa_secret_PteAILCtg6iKCCOKkjkrvx5m0DQLx9s",
 | 
			
		||||
  "client_secret": "seti_1P3xoWDEQaroqDjsjun1APdg_secret_PtlLdKZaWI6yHOIxgRahZyszneKAMN2",
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": "cus_NORMALIZED0001",
 | 
			
		||||
  "description": null,
 | 
			
		||||
  "flow_directions": null,
 | 
			
		||||
  "id": "seti_1P3qryDEQaroqDjsf3QpIjxa",
 | 
			
		||||
  "id": "seti_1P3xoWDEQaroqDjsjun1APdg",
 | 
			
		||||
  "last_setup_error": null,
 | 
			
		||||
  "latest_attempt": "setatt_1P3qryDEQaroqDjsEFhVbMSv",
 | 
			
		||||
  "latest_attempt": "setatt_1P3xoWDEQaroqDjsEpDMKwrD",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "mandate": null,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_action": null,
 | 
			
		||||
  "object": "setup_intent",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "payment_method": "pm_1P3qrxDEQaroqDjsSMu7oYhJ",
 | 
			
		||||
  "payment_method": "pm_1P3xoWDEQaroqDjswQ3u9wD6",
 | 
			
		||||
  "payment_method_configuration_details": null,
 | 
			
		||||
  "payment_method_options": {
 | 
			
		||||
    "card": {
 | 
			
		||||
 
 | 
			
		||||
@@ -2,21 +2,21 @@
 | 
			
		||||
  "application": null,
 | 
			
		||||
  "automatic_payment_methods": null,
 | 
			
		||||
  "cancellation_reason": null,
 | 
			
		||||
  "client_secret": "seti_1P3qs9DEQaroqDjs7ywzQvkg_secret_PteAmMyJ2n2RMJej2jceqxOPtwFmIN3",
 | 
			
		||||
  "client_secret": "seti_1P3xohDEQaroqDjs37QtI6HA_secret_PtlL42gx7D0toBdLQv3iPDhurS6AKfc",
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": "cus_NORMALIZED0001",
 | 
			
		||||
  "description": null,
 | 
			
		||||
  "flow_directions": null,
 | 
			
		||||
  "id": "seti_1P3qs9DEQaroqDjs7ywzQvkg",
 | 
			
		||||
  "id": "seti_1P3xohDEQaroqDjs37QtI6HA",
 | 
			
		||||
  "last_setup_error": null,
 | 
			
		||||
  "latest_attempt": "setatt_1P3qs9DEQaroqDjsyH0V23JT",
 | 
			
		||||
  "latest_attempt": "setatt_1P3xohDEQaroqDjsKp7xvbz0",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "mandate": null,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_action": null,
 | 
			
		||||
  "object": "setup_intent",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "payment_method": "pm_1P3qs9DEQaroqDjsUjzz4o9v",
 | 
			
		||||
  "payment_method": "pm_1P3xohDEQaroqDjs5gOxcCJy",
 | 
			
		||||
  "payment_method_configuration_details": null,
 | 
			
		||||
  "payment_method_options": {
 | 
			
		||||
    "card": {
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "customer_email": null,
 | 
			
		||||
  "expires_at": 1000000000,
 | 
			
		||||
  "id": "cs_test_NORMALIZED021qCEL41EtAj90XjEz4fYr09sqGzdQnDyFXx9OxASavrZd9",
 | 
			
		||||
  "id": "cs_test_NORMALIZED02lrnU857WzkPqmzwLYjsGw4df1EkzURddneRnlfqWBcoBNR",
 | 
			
		||||
  "invoice": null,
 | 
			
		||||
  "invoice_creation": null,
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
    "enabled": false
 | 
			
		||||
  },
 | 
			
		||||
  "recovered_from": null,
 | 
			
		||||
  "setup_intent": "seti_1P3qrwDEQaroqDjssVFqKGHU",
 | 
			
		||||
  "setup_intent": "seti_1P3xoVDEQaroqDjsyJaHf9MX",
 | 
			
		||||
  "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_NORMALIZED021qCEL41EtAj90XjEz4fYr09sqGzdQnDyFXx9OxASavrZd9#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
  "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02lrnU857WzkPqmzwLYjsGw4df1EkzURddneRnlfqWBcoBNR#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "customer_email": null,
 | 
			
		||||
  "expires_at": 1000000000,
 | 
			
		||||
  "id": "cs_test_NORMALIZED035PppZqbB6q1uVh0KBWbjam3fFjh7L6EHE8D3z0RLJxZCnQ",
 | 
			
		||||
  "id": "cs_test_NORMALIZED03wUCks2KPzHx8cgewYXbqyP7pGi4kPexHvZAr5gtJVXQGI2",
 | 
			
		||||
  "invoice": null,
 | 
			
		||||
  "invoice_creation": null,
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
    "enabled": false
 | 
			
		||||
  },
 | 
			
		||||
  "recovered_from": null,
 | 
			
		||||
  "setup_intent": "seti_1P3qs8DEQaroqDjsAPA3vip9",
 | 
			
		||||
  "setup_intent": "seti_1P3xogDEQaroqDjsymtrjvw3",
 | 
			
		||||
  "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_NORMALIZED035PppZqbB6q1uVh0KBWbjam3fFjh7L6EHE8D3z0RLJxZCnQ#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
  "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03wUCks2KPzHx8cgewYXbqyP7pGi4kPexHvZAr5gtJVXQGI2#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "customer_email": null,
 | 
			
		||||
      "expires_at": 1000000000,
 | 
			
		||||
      "id": "cs_test_NORMALIZED021qCEL41EtAj90XjEz4fYr09sqGzdQnDyFXx9OxASavrZd9",
 | 
			
		||||
      "id": "cs_test_NORMALIZED02lrnU857WzkPqmzwLYjsGw4df1EkzURddneRnlfqWBcoBNR",
 | 
			
		||||
      "invoice": null,
 | 
			
		||||
      "invoice_creation": null,
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
@@ -66,7 +66,7 @@
 | 
			
		||||
        "enabled": false
 | 
			
		||||
      },
 | 
			
		||||
      "recovered_from": null,
 | 
			
		||||
      "setup_intent": "seti_1P3qrwDEQaroqDjssVFqKGHU",
 | 
			
		||||
      "setup_intent": "seti_1P3xoVDEQaroqDjsyJaHf9MX",
 | 
			
		||||
      "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_NORMALIZED021qCEL41EtAj90XjEz4fYr09sqGzdQnDyFXx9OxASavrZd9#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
      "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED02lrnU857WzkPqmzwLYjsGw4df1EkzURddneRnlfqWBcoBNR#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "customer_email": null,
 | 
			
		||||
      "expires_at": 1000000000,
 | 
			
		||||
      "id": "cs_test_NORMALIZED035PppZqbB6q1uVh0KBWbjam3fFjh7L6EHE8D3z0RLJxZCnQ",
 | 
			
		||||
      "id": "cs_test_NORMALIZED03wUCks2KPzHx8cgewYXbqyP7pGi4kPexHvZAr5gtJVXQGI2",
 | 
			
		||||
      "invoice": null,
 | 
			
		||||
      "invoice_creation": null,
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
@@ -66,7 +66,7 @@
 | 
			
		||||
        "enabled": false
 | 
			
		||||
      },
 | 
			
		||||
      "recovered_from": null,
 | 
			
		||||
      "setup_intent": "seti_1P3qs8DEQaroqDjsAPA3vip9",
 | 
			
		||||
      "setup_intent": "seti_1P3xogDEQaroqDjsymtrjvw3",
 | 
			
		||||
      "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_NORMALIZED035PppZqbB6q1uVh0KBWbjam3fFjh7L6EHE8D3z0RLJxZCnQ#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
      "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED03wUCks2KPzHx8cgewYXbqyP7pGi4kPexHvZAr5gtJVXQGI2#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@
 | 
			
		||||
  "invoice_prefix": "NORMA01",
 | 
			
		||||
  "invoice_settings": {
 | 
			
		||||
    "custom_fields": null,
 | 
			
		||||
    "default_payment_method": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
    "default_payment_method": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
    "footer": null,
 | 
			
		||||
    "rendering_options": null
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
      "id": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
      "id": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
      "id": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
      "id": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
      "id": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
      "id": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -5,49 +5,94 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qrQDEQaroqDjsIp9IJNaj_secret_Pte9sWyl57z3u5rg3cy1akCDLjnvc7x",
 | 
			
		||||
          "after_expiration": null,
 | 
			
		||||
          "allow_promotion_codes": null,
 | 
			
		||||
          "amount_subtotal": null,
 | 
			
		||||
          "amount_total": null,
 | 
			
		||||
          "automatic_tax": {
 | 
			
		||||
            "enabled": false,
 | 
			
		||||
            "liability": null,
 | 
			
		||||
            "status": null
 | 
			
		||||
          },
 | 
			
		||||
          "billing_address_collection": "required",
 | 
			
		||||
          "cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=true&tier=1",
 | 
			
		||||
          "client_reference_id": null,
 | 
			
		||||
          "client_secret": null,
 | 
			
		||||
          "consent": null,
 | 
			
		||||
          "consent_collection": null,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "currency_conversion": null,
 | 
			
		||||
          "custom_fields": [],
 | 
			
		||||
          "custom_text": {
 | 
			
		||||
            "after_submit": null,
 | 
			
		||||
            "shipping_address": null,
 | 
			
		||||
            "submit": null,
 | 
			
		||||
            "terms_of_service_acceptance": null
 | 
			
		||||
          },
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qrQDEQaroqDjsIp9IJNaj",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qrQDEQaroqDjsUaZ2GDA7",
 | 
			
		||||
          "customer_creation": null,
 | 
			
		||||
          "customer_details": {
 | 
			
		||||
            "address": null,
 | 
			
		||||
            "email": "hamlet@zulip.com",
 | 
			
		||||
            "name": null,
 | 
			
		||||
            "phone": null,
 | 
			
		||||
            "tax_exempt": null,
 | 
			
		||||
            "tax_ids": null
 | 
			
		||||
          },
 | 
			
		||||
          "customer_email": null,
 | 
			
		||||
          "expires_at": 1000000000,
 | 
			
		||||
          "id": "cs_test_NORMALIZED01NFqwvyk22wjGr9hpxIRxBbgihLrwAhg7oh9NGRm5rJKkJk",
 | 
			
		||||
          "invoice": null,
 | 
			
		||||
          "invoice_creation": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qrQDEQaroqDjsGhWSunU8",
 | 
			
		||||
          "locale": null,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "type": "card_update",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
          },
 | 
			
		||||
          "mode": "setup",
 | 
			
		||||
          "object": "checkout.session",
 | 
			
		||||
          "payment_intent": null,
 | 
			
		||||
          "payment_link": null,
 | 
			
		||||
          "payment_method_collection": "always",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "succeeded",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
          "payment_status": "no_payment_required",
 | 
			
		||||
          "phone_number_collection": {
 | 
			
		||||
            "enabled": false
 | 
			
		||||
          },
 | 
			
		||||
          "recovered_from": null,
 | 
			
		||||
          "setup_intent": "seti_1P3bKRDEQaroqDjs7dCxKw1m",
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "shipping_address_collection": null,
 | 
			
		||||
          "shipping_options": [],
 | 
			
		||||
          "shipping_rate": null,
 | 
			
		||||
          "status": "expired",
 | 
			
		||||
          "submit_type": null,
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "success_url": "http://zulip.testserver/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
 | 
			
		||||
          "total_details": null,
 | 
			
		||||
          "ui_mode": "hosted",
 | 
			
		||||
          "url": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrRDEQaroqDjsJU9SSjtM",
 | 
			
		||||
      "id": "evt_1P3xnzDEQaroqDjsOFIvBbeh",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "57c21105-311c-423c-b78d-f7d8d87399a3"
 | 
			
		||||
        "id": null,
 | 
			
		||||
        "idempotency_key": null
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.succeeded"
 | 
			
		||||
      "type": "checkout.session.expired"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": true,
 | 
			
		||||
 
 | 
			
		||||
@@ -5,53 +5,83 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "amount": 100,
 | 
			
		||||
          "amount_capturable": 0,
 | 
			
		||||
          "amount_details": {
 | 
			
		||||
            "tip": {}
 | 
			
		||||
          },
 | 
			
		||||
          "amount_received": 0,
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "application_fee_amount": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "canceled_at": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "capture_method": "automatic",
 | 
			
		||||
          "charges": {
 | 
			
		||||
            "data": [],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 0,
 | 
			
		||||
            "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
 | 
			
		||||
          },
 | 
			
		||||
          "client_secret": "pi_NORMALIZED00000000000001_secret_nkomeO2rdDO1LSnRBjtxnlCe2",
 | 
			
		||||
          "confirmation_method": "automatic",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip.testserver b295e764-9ad",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0003",
 | 
			
		||||
          "invoice_prefix": "NORMA02",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrRDEQaroqDjsqW7SoNbt",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "description": "Payment for Invoice",
 | 
			
		||||
          "id": "pi_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "last_payment_error": null,
 | 
			
		||||
          "latest_charge": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "remote_realm_host": "zulip.testserver",
 | 
			
		||||
            "remote_realm_uuid": "b295e764-9ad6-4b87-80a6-d989edf084da"
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "payment_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "installments": null,
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
            "cashapp": {},
 | 
			
		||||
            "wechat_pay": {
 | 
			
		||||
              "app_id": null,
 | 
			
		||||
              "client": null
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "ach_credit_transfer",
 | 
			
		||||
            "card",
 | 
			
		||||
            "cashapp",
 | 
			
		||||
            "wechat_pay"
 | 
			
		||||
          ],
 | 
			
		||||
          "processing": null,
 | 
			
		||||
          "receipt_email": "hamlet@zulip.com",
 | 
			
		||||
          "review": null,
 | 
			
		||||
          "setup_future_usage": null,
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "default_payment_method": null
 | 
			
		||||
          }
 | 
			
		||||
          "source": null,
 | 
			
		||||
          "statement_descriptor": "Zulip Cloud Standard",
 | 
			
		||||
          "statement_descriptor_suffix": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "transfer_group": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrTDEQaroqDjszxbpyd2y",
 | 
			
		||||
      "id": "evt_3P3xo1DEQaroqDjs0gYKiIBn",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0002",
 | 
			
		||||
        "idempotency_key": "35345ec8-ebeb-4a71-84b8-528ee967acc2"
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "f26bef31-fe35-4b4a-9a9c-815c32f542a4"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
      "type": "payment_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
@@ -101,7 +131,7 @@
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": null,
 | 
			
		||||
          "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice_pdf": null,
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
@@ -119,7 +149,7 @@
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000001",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
@@ -165,13 +195,14 @@
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "6",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "12"
 | 
			
		||||
          },
 | 
			
		||||
@@ -227,13 +258,13 @@
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrTDEQaroqDjs6gaHarvr",
 | 
			
		||||
      "id": "evt_1P3xo1DEQaroqDjsXpRvEKTy",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0003",
 | 
			
		||||
        "idempotency_key": "5565849e-3337-4ddc-bfa5-0f67d0866698"
 | 
			
		||||
        "id": "req_NORMALIZED0002",
 | 
			
		||||
        "idempotency_key": "31c24874-aa96-4ad4-b74f-ef79a89fd12f"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.created"
 | 
			
		||||
    },
 | 
			
		||||
@@ -265,7 +296,7 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "customer_address": null,
 | 
			
		||||
          "customer_email": "hamlet@zulip.com",
 | 
			
		||||
          "customer_name": null,
 | 
			
		||||
@@ -285,7 +316,7 @@
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": null,
 | 
			
		||||
          "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice_pdf": null,
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
@@ -303,7 +334,7 @@
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
@@ -349,7 +380,7 @@
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
@@ -405,13 +436,13 @@
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrTDEQaroqDjsVx1fHb5H",
 | 
			
		||||
      "id": "evt_1P3xo0DEQaroqDjsdoUWgbYp",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0004",
 | 
			
		||||
        "idempotency_key": "8841fe60-9689-4908-a7e3-dfc85c99993c"
 | 
			
		||||
        "id": "req_NORMALIZED0003",
 | 
			
		||||
        "idempotency_key": "25d867d6-bdea-472f-a21c-cbdced3375b3"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.created"
 | 
			
		||||
    },
 | 
			
		||||
@@ -467,13 +498,13 @@
 | 
			
		||||
          "unit_amount_decimal": "8000"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrTDEQaroqDjsXAWA5Pmr",
 | 
			
		||||
      "id": "evt_1P3xo0DEQaroqDjs4lPjDGPl",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "29350b58-a6f5-490e-940d-c9c5b34b279a"
 | 
			
		||||
        "id": "req_NORMALIZED0004",
 | 
			
		||||
        "idempotency_key": "d0800b21-f3a6-4023-8f50-7a65176e3db6"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoiceitem.created"
 | 
			
		||||
    },
 | 
			
		||||
@@ -496,7 +527,7 @@
 | 
			
		||||
          "invoice_prefix": "NORMA01",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
            "default_payment_method": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
@@ -519,128 +550,13 @@
 | 
			
		||||
          "default_currency": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrTDEQaroqDjskH5DGJpP",
 | 
			
		||||
      "id": "evt_1P3xo0DEQaroqDjsY3hdJMCW",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "29350b58-a6f5-490e-940d-c9c5b34b279a"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "amount": 100,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "date": 1000000000,
 | 
			
		||||
          "description": "Zulip Cloud Standard - renewal",
 | 
			
		||||
          "discountable": false,
 | 
			
		||||
          "discounts": [],
 | 
			
		||||
          "id": "ii_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "invoiceitem",
 | 
			
		||||
          "period": {
 | 
			
		||||
            "end": 1388631845,
 | 
			
		||||
            "start": 1357095845
 | 
			
		||||
          },
 | 
			
		||||
          "plan": null,
 | 
			
		||||
          "price": {
 | 
			
		||||
            "active": false,
 | 
			
		||||
            "billing_scheme": "per_unit",
 | 
			
		||||
            "created": 1000000000,
 | 
			
		||||
            "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": 100,
 | 
			
		||||
            "unit_amount_decimal": "100"
 | 
			
		||||
          },
 | 
			
		||||
          "proration": false,
 | 
			
		||||
          "quantity": 1,
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "tax_rates": [],
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "unit_amount": 100,
 | 
			
		||||
          "unit_amount_decimal": "100"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrSDEQaroqDjsJvCZCcbs",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0006",
 | 
			
		||||
        "idempotency_key": "397cd632-bfb8-4b54-9466-3923a4474d0a"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoiceitem.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0002",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrQDEQaroqDjsGhWSunU8",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "realm_id": "1",
 | 
			
		||||
            "realm_str": "zulip"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "default_payment_method": null
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrSDEQaroqDjsWwxFBN2m",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0007",
 | 
			
		||||
        "idempotency_key": "60293d77-8bb2-4eaf-805c-dc79a0a20662"
 | 
			
		||||
        "id": "req_NORMALIZED0004",
 | 
			
		||||
        "idempotency_key": "d0800b21-f3a6-4023-8f50-7a65176e3db6"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
@@ -652,21 +568,21 @@
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qrRDEQaroqDjsQ6Qg7qyB_secret_Pte9084ALTeIrYiHZz8OCsBflTIEaxY",
 | 
			
		||||
          "client_secret": "seti_1P3xnzDEQaroqDjsHoMGILnf_secret_PtlKe9Lr1i0ITg1edwlYnOkmtuqNyNM",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qrRDEQaroqDjsQ6Qg7qyB",
 | 
			
		||||
          "id": "seti_1P3xnzDEQaroqDjsHoMGILnf",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qrRDEQaroqDjsXxue3Jvs",
 | 
			
		||||
          "latest_attempt": "setatt_1P3xnzDEQaroqDjsbUxO9lwH",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qrRDEQaroqDjsqW7SoNbt",
 | 
			
		||||
          "payment_method": "pm_1P3xnzDEQaroqDjsyUQ5zLuC",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
@@ -683,13 +599,13 @@
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrSDEQaroqDjsyuiM6Qlo",
 | 
			
		||||
      "id": "evt_1P3xo0DEQaroqDjsFLrPA6aj",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0008",
 | 
			
		||||
        "idempotency_key": "e6ccc50b-25fa-43d8-abe0-f821a6ef610b"
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "c7a96458-f4df-486f-9d17-31f0767a9005"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.succeeded"
 | 
			
		||||
    },
 | 
			
		||||
@@ -738,24 +654,139 @@
 | 
			
		||||
            "wallet": null
 | 
			
		||||
          },
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "id": "pm_1P3qrRDEQaroqDjsqW7SoNbt",
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "id": "pm_1P3xnzDEQaroqDjsyUQ5zLuC",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "payment_method",
 | 
			
		||||
          "type": "card"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrSDEQaroqDjsUNmeyx22",
 | 
			
		||||
      "id": "evt_1P3xo0DEQaroqDjstYyoSnSh",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0008",
 | 
			
		||||
        "idempotency_key": "e6ccc50b-25fa-43d8-abe0-f821a6ef610b"
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "c7a96458-f4df-486f-9d17-31f0767a9005"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_method.attached"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "amount": 100,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "date": 1000000000,
 | 
			
		||||
          "description": "Zulip Cloud Standard - renewal",
 | 
			
		||||
          "discountable": false,
 | 
			
		||||
          "discounts": [],
 | 
			
		||||
          "id": "ii_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "invoiceitem",
 | 
			
		||||
          "period": {
 | 
			
		||||
            "end": 1388631845,
 | 
			
		||||
            "start": 1357095845
 | 
			
		||||
          },
 | 
			
		||||
          "plan": null,
 | 
			
		||||
          "price": {
 | 
			
		||||
            "active": false,
 | 
			
		||||
            "billing_scheme": "per_unit",
 | 
			
		||||
            "created": 1000000000,
 | 
			
		||||
            "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": 100,
 | 
			
		||||
            "unit_amount_decimal": "100"
 | 
			
		||||
          },
 | 
			
		||||
          "proration": false,
 | 
			
		||||
          "quantity": 1,
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "tax_rates": [],
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "unit_amount": 100,
 | 
			
		||||
          "unit_amount_decimal": "100"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xo0DEQaroqDjsyaoXni0D",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0006",
 | 
			
		||||
        "idempotency_key": "544761f2-9299-4003-8482-110212f0e4c7"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoiceitem.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0005",
 | 
			
		||||
          "invoice_prefix": "NORMA02",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3xnxDEQaroqDjs8saiW0oV",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "realm_id": "1",
 | 
			
		||||
            "realm_str": "zulip"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "default_payment_method": null
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xo0DEQaroqDjsUo1xhVwL",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0007",
 | 
			
		||||
        "idempotency_key": "d63e03de-03fb-4fd1-86c3-20f4c0462ed8"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
@@ -764,21 +795,21 @@
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3qrRDEQaroqDjsQ6Qg7qyB_secret_Pte9084ALTeIrYiHZz8OCsBflTIEaxY",
 | 
			
		||||
          "client_secret": "seti_1P3xnzDEQaroqDjsHoMGILnf_secret_PtlKe9Lr1i0ITg1edwlYnOkmtuqNyNM",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3qrRDEQaroqDjsQ6Qg7qyB",
 | 
			
		||||
          "id": "seti_1P3xnzDEQaroqDjsHoMGILnf",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": "setatt_1P3qrRDEQaroqDjsXxue3Jvs",
 | 
			
		||||
          "latest_attempt": "setatt_1P3xnzDEQaroqDjsbUxO9lwH",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": "pm_1P3qrRDEQaroqDjsqW7SoNbt",
 | 
			
		||||
          "payment_method": "pm_1P3xnzDEQaroqDjsyUQ5zLuC",
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
@@ -795,13 +826,13 @@
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrSDEQaroqDjsCULS3kkX",
 | 
			
		||||
      "id": "evt_1P3xo0DEQaroqDjsauHx5M1t",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0008",
 | 
			
		||||
        "idempotency_key": "e6ccc50b-25fa-43d8-abe0-f821a6ef610b"
 | 
			
		||||
        "id": "req_NORMALIZED0005",
 | 
			
		||||
        "idempotency_key": "c7a96458-f4df-486f-9d17-31f0767a9005"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -5,184 +5,98 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "account_country": "US",
 | 
			
		||||
          "account_name": "Kandra Labs, Inc.",
 | 
			
		||||
          "account_tax_ids": null,
 | 
			
		||||
          "amount_due": 48000,
 | 
			
		||||
          "amount_paid": 0,
 | 
			
		||||
          "amount_remaining": 48000,
 | 
			
		||||
          "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": "charge_automatically",
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3xo3DEQaroqDjsJmwfP4le_secret_PtlKeH7fflZFhpRcLAyrw6FrpSytCy4",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "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": [],
 | 
			
		||||
          "customer": "cus_NORMALIZED0006",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "discounts": [],
 | 
			
		||||
          "due_date": null,
 | 
			
		||||
          "effective_at": null,
 | 
			
		||||
          "ending_balance": null,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": null,
 | 
			
		||||
          "id": "in_NORMALIZED00000000000003",
 | 
			
		||||
          "invoice_pdf": null,
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
          "last_finalization_error": null,
 | 
			
		||||
          "latest_revision": null,
 | 
			
		||||
          "lines": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 48000,
 | 
			
		||||
                "amount_excluding_tax": 48000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Cloud Standard",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000003",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000003",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3xo3DEQaroqDjsJmwfP4le",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1000000000,
 | 
			
		||||
                  "start": 1000000000
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "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": 6,
 | 
			
		||||
                "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_NORMALIZED00000000000003/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "6",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
          },
 | 
			
		||||
          "next_payment_attempt": null,
 | 
			
		||||
          "number": null,
 | 
			
		||||
          "object": "invoice",
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "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": "auto"
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "rendering_options": null,
 | 
			
		||||
          "shipping_cost": null,
 | 
			
		||||
          "shipping_details": null,
 | 
			
		||||
          "starting_balance": 0,
 | 
			
		||||
          "statement_descriptor": "Zulip Cloud Standard",
 | 
			
		||||
          "status": "draft",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "finalized_at": null,
 | 
			
		||||
            "marked_uncollectible_at": null,
 | 
			
		||||
            "paid_at": null,
 | 
			
		||||
            "voided_at": null
 | 
			
		||||
          },
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "subscription_details": {
 | 
			
		||||
            "metadata": null
 | 
			
		||||
          },
 | 
			
		||||
          "subtotal": 48000,
 | 
			
		||||
          "subtotal_excluding_tax": 48000,
 | 
			
		||||
          "tax": null,
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "total": 48000,
 | 
			
		||||
          "total_discount_amounts": [],
 | 
			
		||||
          "total_excluding_tax": 48000,
 | 
			
		||||
          "total_tax_amounts": [],
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrVDEQaroqDjsuO8zkmzq",
 | 
			
		||||
      "id": "evt_1P3xo3DEQaroqDjs1G7QjWC6",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0008",
 | 
			
		||||
        "idempotency_key": "db0c1b01-6d28-456c-ba81-5f35f4e75491"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "client_secret": "seti_1P3xo3DEQaroqDjspG2zYyDN_secret_PtlKvD12TP6W3w7WpSpw4ICRZ1f0gKo",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "customer": "cus_NORMALIZED0007",
 | 
			
		||||
          "description": null,
 | 
			
		||||
          "flow_directions": null,
 | 
			
		||||
          "id": "seti_1P3xo3DEQaroqDjspG2zYyDN",
 | 
			
		||||
          "last_setup_error": null,
 | 
			
		||||
          "latest_attempt": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "mandate": null,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "setup_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card"
 | 
			
		||||
          ],
 | 
			
		||||
          "single_use_mandate": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "usage": "off_session"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xo3DEQaroqDjsXAdfUyEt",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0009",
 | 
			
		||||
        "idempotency_key": "8e546d41-4d51-46de-9609-a40b4e4d446c"
 | 
			
		||||
        "idempotency_key": "c436a86c-44c1-4ce9-95a1-c734ced45a0d"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.created"
 | 
			
		||||
      "type": "setup_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
@@ -199,7 +113,55 @@
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0005",
 | 
			
		||||
          "id": "cus_NORMALIZED0006",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "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": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xo2DEQaroqDjsnSFHHJa1",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0010",
 | 
			
		||||
        "idempotency_key": "aa584a5f-a735-45c1-9b64-6064b148e760"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0007",
 | 
			
		||||
          "invoice_prefix": "NORMA04",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
@@ -222,130 +184,16 @@
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrVDEQaroqDjsPj4QK1nB",
 | 
			
		||||
      "id": "evt_1P3xo2DEQaroqDjs5z0yDkh3",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0010",
 | 
			
		||||
        "idempotency_key": "e64f0733-9b5a-406f-a5d3-f50e76353043"
 | 
			
		||||
        "id": "req_NORMALIZED0011",
 | 
			
		||||
        "idempotency_key": "7d9a7132-fdd8-4769-a682-104a182cf0a0"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "amount": 48000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "date": 1000000000,
 | 
			
		||||
          "description": "Zulip Cloud Standard",
 | 
			
		||||
          "discountable": false,
 | 
			
		||||
          "discounts": [],
 | 
			
		||||
          "id": "ii_NORMALIZED00000000000003",
 | 
			
		||||
          "invoice": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "object": "invoiceitem",
 | 
			
		||||
          "period": {
 | 
			
		||||
            "end": 1000000000,
 | 
			
		||||
            "start": 1000000000
 | 
			
		||||
          },
 | 
			
		||||
          "plan": null,
 | 
			
		||||
          "price": {
 | 
			
		||||
            "active": false,
 | 
			
		||||
            "billing_scheme": "per_unit",
 | 
			
		||||
            "created": 1000000000,
 | 
			
		||||
            "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,
 | 
			
		||||
          "quantity": 6,
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "tax_rates": [],
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "unit_amount": 8000,
 | 
			
		||||
          "unit_amount_decimal": "8000"
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrUDEQaroqDjsHZGBZ1nT",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0011",
 | 
			
		||||
        "idempotency_key": "47263dec-1138-4207-be80-2b2129d000c6"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoiceitem.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "default_currency": "usd",
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0002",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrQDEQaroqDjsGhWSunU8",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "realm_id": "1",
 | 
			
		||||
            "realm_str": "zulip"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrUDEQaroqDjsCiTVxqGj",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0011",
 | 
			
		||||
        "idempotency_key": "47263dec-1138-4207-be80-2b2129d000c6"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
@@ -393,9 +241,9 @@
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5VVlzNkp3eEhsdTJoak9UMWNnMU1QOEN1MDg1LDEwMzI1Njc2OA02005LJE0slP?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5VVlzNkp3eEhsdTJoak9UMWNnMU1QOEN1MDg1LDEwMzI1Njc2OA02005LJE0slP/pdf?s=ap",
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLbWRXQmxBNUw2bXB6aDdnMTNWUXBtTnVzcHVnLDEwMzI4MzQ2Mg0200fKFrHxnz?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLbWRXQmxBNUw2bXB6aDdnMTNWUXBtTnVzcHVnLDEwMzI4MzQ2Mg0200fKFrHxnz/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
@@ -412,7 +260,7 @@
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000001",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
@@ -458,13 +306,14 @@
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "6",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "12"
 | 
			
		||||
          },
 | 
			
		||||
@@ -474,7 +323,7 @@
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000002",
 | 
			
		||||
          "payment_settings": {
 | 
			
		||||
            "default_mandate": null,
 | 
			
		||||
            "payment_method_options": null,
 | 
			
		||||
@@ -520,13 +369,13 @@
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrUDEQaroqDjsApo4fWAi",
 | 
			
		||||
      "id": "evt_1P3xo2DEQaroqDjsLcu7PHrl",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0012",
 | 
			
		||||
        "idempotency_key": "7cc3b9d5-8c1b-42eb-939f-a611b3974061"
 | 
			
		||||
        "idempotency_key": "e8eb3d83-a3be-4072-976c-42ec69c47794"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.finalized"
 | 
			
		||||
    },
 | 
			
		||||
@@ -577,9 +426,9 @@
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5VVlzNkp3eEhsdTJoak9UMWNnMU1QOEN1MDg1LDEwMzI1Njc2OA02005LJE0slP?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5VVlzNkp3eEhsdTJoak9UMWNnMU1QOEN1MDg1LDEwMzI1Njc2OA02005LJE0slP/pdf?s=ap",
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLbWRXQmxBNUw2bXB6aDdnMTNWUXBtTnVzcHVnLDEwMzI4MzQ2Mg0200fKFrHxnz?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLbWRXQmxBNUw2bXB6aDdnMTNWUXBtTnVzcHVnLDEwMzI4MzQ2Mg0200fKFrHxnz/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
@@ -596,7 +445,7 @@
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000001",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
@@ -642,13 +491,14 @@
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "6",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "12"
 | 
			
		||||
          },
 | 
			
		||||
@@ -658,7 +508,7 @@
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000002",
 | 
			
		||||
          "payment_settings": {
 | 
			
		||||
            "default_mandate": null,
 | 
			
		||||
            "payment_method_options": null,
 | 
			
		||||
@@ -721,13 +571,13 @@
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrUDEQaroqDjsnmAg0kJ3",
 | 
			
		||||
      "id": "evt_1P3xo2DEQaroqDjswIlvFBwO",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0012",
 | 
			
		||||
        "idempotency_key": "7cc3b9d5-8c1b-42eb-939f-a611b3974061"
 | 
			
		||||
        "idempotency_key": "e8eb3d83-a3be-4072-976c-42ec69c47794"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.updated"
 | 
			
		||||
    },
 | 
			
		||||
@@ -753,16 +603,16 @@
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 0,
 | 
			
		||||
            "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
 | 
			
		||||
            "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
 | 
			
		||||
          },
 | 
			
		||||
          "client_secret": "pi_NORMALIZED00000000000001_secret_hFMdZ3IosZzSHC49L6OEMOjxA",
 | 
			
		||||
          "client_secret": "pi_NORMALIZED00000000000002_secret_zXnapcmjICRoYwmwjbAopIRib",
 | 
			
		||||
          "confirmation_method": "automatic",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "customer": "cus_NORMALIZED0001",
 | 
			
		||||
          "description": "Payment for Invoice",
 | 
			
		||||
          "id": "pi_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "id": "pi_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "last_payment_error": null,
 | 
			
		||||
          "latest_charge": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
@@ -798,16 +648,69 @@
 | 
			
		||||
          "transfer_group": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_3P3qrUDEQaroqDjs1Hk8HmAP",
 | 
			
		||||
      "id": "evt_3P3xo1DEQaroqDjs1deuxsNr",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0012",
 | 
			
		||||
        "idempotency_key": "7cc3b9d5-8c1b-42eb-939f-a611b3974061"
 | 
			
		||||
        "idempotency_key": "e8eb3d83-a3be-4072-976c-42ec69c47794"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_intent.created"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip.testserver f27ccad7-fd5",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0004",
 | 
			
		||||
          "invoice_prefix": "NORMA05",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3xnzDEQaroqDjsyUQ5zLuC",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "remote_realm_host": "zulip.testserver",
 | 
			
		||||
            "remote_realm_uuid": "f27ccad7-fd5b-42cf-947a-3763c39673b7"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "default_payment_method": null
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xo1DEQaroqDjsmEJqiGA6",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0013",
 | 
			
		||||
        "idempotency_key": "6f22462a-0086-46cf-a804-3c513c8e0159"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
@@ -836,7 +739,7 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "customer_address": null,
 | 
			
		||||
          "customer_email": "hamlet@zulip.com",
 | 
			
		||||
          "customer_name": null,
 | 
			
		||||
@@ -855,9 +758,9 @@
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5WHgzdU1IaWwyRGhEYVp5YjE0dmhXWWhOSjRyLDEwMzI1Njc2OA0200S1AlGWJa?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5WHgzdU1IaWwyRGhEYVp5YjE0dmhXWWhOSjRyLDEwMzI1Njc2OA0200S1AlGWJa/pdf?s=ap",
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLYWQ3VWtyUklJWERQVU9LWVA3QU1pRkoxWGFULDEwMzI4MzQ2Mg0200OLE1PArW?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLYWQ3VWtyUklJWERQVU9LWVA3QU1pRkoxWGFULDEwMzI4MzQ2Mg0200OLE1PArW/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
@@ -874,7 +777,7 @@
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
@@ -920,7 +823,7 @@
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
@@ -930,7 +833,7 @@
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000002",
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
          "payment_settings": {
 | 
			
		||||
            "default_mandate": null,
 | 
			
		||||
            "payment_method_options": null,
 | 
			
		||||
@@ -976,13 +879,13 @@
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrUDEQaroqDjshvuEgU3F",
 | 
			
		||||
      "id": "evt_1P3xo2DEQaroqDjsVZZACoRF",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0013",
 | 
			
		||||
        "idempotency_key": "88fc3d37-0ac0-4963-8c51-0e4cd0ca705f"
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "f26bef31-fe35-4b4a-9a9c-815c32f542a4"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.finalized"
 | 
			
		||||
    },
 | 
			
		||||
@@ -1014,7 +917,7 @@
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "customer_address": null,
 | 
			
		||||
          "customer_email": "hamlet@zulip.com",
 | 
			
		||||
          "customer_name": null,
 | 
			
		||||
@@ -1033,9 +936,9 @@
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5WHgzdU1IaWwyRGhEYVp5YjE0dmhXWWhOSjRyLDEwMzI1Njc2OA0200S1AlGWJa?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5WHgzdU1IaWwyRGhEYVp5YjE0dmhXWWhOSjRyLDEwMzI1Njc2OA0200S1AlGWJa/pdf?s=ap",
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLYWQ3VWtyUklJWERQVU9LWVA3QU1pRkoxWGFULDEwMzI4MzQ2MQ0200opRnAtJz?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLYWQ3VWtyUklJWERQVU9LWVA3QU1pRkoxWGFULDEwMzI4MzQ2MQ0200opRnAtJz/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
@@ -1052,7 +955,7 @@
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000002",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
@@ -1098,7 +1001,7 @@
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
@@ -1108,7 +1011,7 @@
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000002",
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
          "payment_settings": {
 | 
			
		||||
            "default_mandate": null,
 | 
			
		||||
            "payment_method_options": null,
 | 
			
		||||
@@ -1171,98 +1074,15 @@
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrUDEQaroqDjse72PPOTs",
 | 
			
		||||
      "id": "evt_1P3xo2DEQaroqDjscVOhbBOf",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0013",
 | 
			
		||||
        "idempotency_key": "88fc3d37-0ac0-4963-8c51-0e4cd0ca705f"
 | 
			
		||||
        "id": "req_NORMALIZED0001",
 | 
			
		||||
        "idempotency_key": "f26bef31-fe35-4b4a-9a9c-815c32f542a4"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.updated"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "amount": 100,
 | 
			
		||||
          "amount_capturable": 0,
 | 
			
		||||
          "amount_details": {
 | 
			
		||||
            "tip": {}
 | 
			
		||||
          },
 | 
			
		||||
          "amount_received": 0,
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "application_fee_amount": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "canceled_at": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "capture_method": "automatic",
 | 
			
		||||
          "charges": {
 | 
			
		||||
            "data": [],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 0,
 | 
			
		||||
            "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
 | 
			
		||||
          },
 | 
			
		||||
          "client_secret": "pi_NORMALIZED00000000000002_secret_DMFWb5ZikSJu24V6HpZ2He9gm",
 | 
			
		||||
          "confirmation_method": "automatic",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "description": "Payment for Invoice",
 | 
			
		||||
          "id": "pi_NORMALIZED00000000000002",
 | 
			
		||||
          "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
          "last_payment_error": null,
 | 
			
		||||
          "latest_charge": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "payment_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "installments": null,
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            },
 | 
			
		||||
            "cashapp": {},
 | 
			
		||||
            "wechat_pay": {
 | 
			
		||||
              "app_id": null,
 | 
			
		||||
              "client": null
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "ach_credit_transfer",
 | 
			
		||||
            "card",
 | 
			
		||||
            "cashapp",
 | 
			
		||||
            "wechat_pay"
 | 
			
		||||
          ],
 | 
			
		||||
          "processing": null,
 | 
			
		||||
          "receipt_email": "hamlet@zulip.com",
 | 
			
		||||
          "review": null,
 | 
			
		||||
          "setup_future_usage": null,
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "source": null,
 | 
			
		||||
          "statement_descriptor": "Zulip Cloud Standard",
 | 
			
		||||
          "statement_descriptor_suffix": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "transfer_group": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_3P3qrTDEQaroqDjs1QRY7lvS",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0013",
 | 
			
		||||
        "idempotency_key": "88fc3d37-0ac0-4963-8c51-0e4cd0ca705f"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_intent.created"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": true,
 | 
			
		||||
 
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -5,725 +5,77 @@
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "account_country": "US",
 | 
			
		||||
          "account_name": "Kandra Labs, Inc.",
 | 
			
		||||
          "account_tax_ids": null,
 | 
			
		||||
          "amount_due": 1850,
 | 
			
		||||
          "amount_paid": 0,
 | 
			
		||||
          "amount_remaining": 1850,
 | 
			
		||||
          "amount_shipping": 0,
 | 
			
		||||
          "amount": 1850,
 | 
			
		||||
          "amount_capturable": 0,
 | 
			
		||||
          "amount_details": {
 | 
			
		||||
            "tip": {}
 | 
			
		||||
          },
 | 
			
		||||
          "amount_received": 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": "charge_automatically",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "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": null,
 | 
			
		||||
          "effective_at": 1000000000,
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5TzgzVTZKYUJSSFAwM0taODdwV2xsdk1IMUtSLDEwMzI1Njc3MQ0200siKAg6dC?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000004",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5TzgzVTZKYUJSSFAwM0taODdwV2xsdk1IMUtSLDEwMzI1Njc3MQ0200siKAg6dC/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
          "last_finalization_error": null,
 | 
			
		||||
          "latest_revision": null,
 | 
			
		||||
          "lines": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": -2000,
 | 
			
		||||
                "amount_excluding_tax": -2000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "$20.00/month new customer discount",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000004",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000005",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0004",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": -2000,
 | 
			
		||||
                  "unit_amount_decimal": "-2000"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 1,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "-2000"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 3850,
 | 
			
		||||
                "amount_excluding_tax": 3850,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Basic",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000005",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000004",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0003",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": 350,
 | 
			
		||||
                  "unit_amount_decimal": "350"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 11,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "350"
 | 
			
		||||
              }
 | 
			
		||||
            ],
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "canceled_at": null,
 | 
			
		||||
          "cancellation_reason": null,
 | 
			
		||||
          "capture_method": "automatic",
 | 
			
		||||
          "charges": {
 | 
			
		||||
            "data": [],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 2,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
 | 
			
		||||
            "total_count": 0,
 | 
			
		||||
            "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000003"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "2",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "11",
 | 
			
		||||
            "plan_tier": "103"
 | 
			
		||||
          },
 | 
			
		||||
          "next_payment_attempt": null,
 | 
			
		||||
          "number": "NORMALI-0004",
 | 
			
		||||
          "object": "invoice",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000004",
 | 
			
		||||
          "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 Basic",
 | 
			
		||||
          "status": "open",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "finalized_at": 1000000000,
 | 
			
		||||
            "marked_uncollectible_at": null,
 | 
			
		||||
            "paid_at": null,
 | 
			
		||||
            "voided_at": null
 | 
			
		||||
          },
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "subscription_details": {
 | 
			
		||||
            "metadata": null
 | 
			
		||||
          },
 | 
			
		||||
          "subtotal": 1850,
 | 
			
		||||
          "subtotal_excluding_tax": 1850,
 | 
			
		||||
          "tax": null,
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "total": 1850,
 | 
			
		||||
          "total_discount_amounts": [],
 | 
			
		||||
          "total_excluding_tax": 1850,
 | 
			
		||||
          "total_tax_amounts": [],
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrYDEQaroqDjssfMLbvqz",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0020",
 | 
			
		||||
        "idempotency_key": "48cb5757-c254-48c5-a708-50d23a20ca52"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.finalized"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "account_country": "US",
 | 
			
		||||
          "account_name": "Kandra Labs, Inc.",
 | 
			
		||||
          "account_tax_ids": null,
 | 
			
		||||
          "amount_due": 1850,
 | 
			
		||||
          "amount_paid": 0,
 | 
			
		||||
          "amount_remaining": 1850,
 | 
			
		||||
          "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": "charge_automatically",
 | 
			
		||||
          "client_secret": "pi_NORMALIZED00000000000003_secret_S7ZwcZs1LjjeOYdyezfX2kSQv",
 | 
			
		||||
          "confirmation_method": "automatic",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0003",
 | 
			
		||||
          "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": null,
 | 
			
		||||
          "effective_at": 1000000000,
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5TzgzVTZKYUJSSFAwM0taODdwV2xsdk1IMUtSLDEwMzI1Njc3MQ0200siKAg6dC?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000004",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5TzgzVTZKYUJSSFAwM0taODdwV2xsdk1IMUtSLDEwMzI1Njc3MQ0200siKAg6dC/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
          "last_finalization_error": null,
 | 
			
		||||
          "latest_revision": null,
 | 
			
		||||
          "lines": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": -2000,
 | 
			
		||||
                "amount_excluding_tax": -2000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "$20.00/month new customer discount",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000004",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000005",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0004",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": -2000,
 | 
			
		||||
                  "unit_amount_decimal": "-2000"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 1,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "-2000"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 3850,
 | 
			
		||||
                "amount_excluding_tax": 3850,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Basic",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000005",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000004",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0003",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": 350,
 | 
			
		||||
                  "unit_amount_decimal": "350"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 11,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "350"
 | 
			
		||||
              }
 | 
			
		||||
            ],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 2,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "2",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "11",
 | 
			
		||||
            "plan_tier": "103"
 | 
			
		||||
          },
 | 
			
		||||
          "next_payment_attempt": null,
 | 
			
		||||
          "number": "NORMALI-0004",
 | 
			
		||||
          "object": "invoice",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000004",
 | 
			
		||||
          "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 Basic",
 | 
			
		||||
          "status": "open",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "finalized_at": 1000000000,
 | 
			
		||||
            "marked_uncollectible_at": null,
 | 
			
		||||
            "paid_at": null,
 | 
			
		||||
            "voided_at": null
 | 
			
		||||
          },
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "subscription_details": {
 | 
			
		||||
            "metadata": null
 | 
			
		||||
          },
 | 
			
		||||
          "subtotal": 1850,
 | 
			
		||||
          "subtotal_excluding_tax": 1850,
 | 
			
		||||
          "tax": null,
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "total": 1850,
 | 
			
		||||
          "total_discount_amounts": [],
 | 
			
		||||
          "total_excluding_tax": 1850,
 | 
			
		||||
          "total_tax_amounts": [],
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "effective_at": null,
 | 
			
		||||
          "ending_balance": null,
 | 
			
		||||
          "hosted_invoice_url": null,
 | 
			
		||||
          "invoice_pdf": null,
 | 
			
		||||
          "number": null,
 | 
			
		||||
          "payment_intent": null,
 | 
			
		||||
          "rendering": {
 | 
			
		||||
            "pdf": {
 | 
			
		||||
              "page_size": "auto"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "status": "draft",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "finalized_at": null
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrXDEQaroqDjsHk5htrXV",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0020",
 | 
			
		||||
        "idempotency_key": "48cb5757-c254-48c5-a708-50d23a20ca52"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.updated"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "default_currency": "usd",
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": true,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0002",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrQDEQaroqDjsGhWSunU8",
 | 
			
		||||
            "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": {
 | 
			
		||||
          "delinquent": false
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrXDEQaroqDjsn48SCvIa",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0018",
 | 
			
		||||
        "idempotency_key": "30a99196-a31c-4b05-8108-e93fcd22a7eb"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "account_country": "US",
 | 
			
		||||
          "account_name": "Kandra Labs, Inc.",
 | 
			
		||||
          "account_tax_ids": null,
 | 
			
		||||
          "amount_due": 48000,
 | 
			
		||||
          "amount_paid": 0,
 | 
			
		||||
          "amount_remaining": 48000,
 | 
			
		||||
          "amount_shipping": 0,
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "application_fee_amount": null,
 | 
			
		||||
          "attempt_count": 1,
 | 
			
		||||
          "attempted": true,
 | 
			
		||||
          "auto_advance": false,
 | 
			
		||||
          "automatic_tax": {
 | 
			
		||||
            "enabled": false,
 | 
			
		||||
            "liability": null,
 | 
			
		||||
            "status": null
 | 
			
		||||
          },
 | 
			
		||||
          "billing_reason": "manual",
 | 
			
		||||
          "charge": "ch_NORMALIZED00000000000002",
 | 
			
		||||
          "collection_method": "charge_automatically",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "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": null,
 | 
			
		||||
          "effective_at": 1000000000,
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5ellUejZDRnVkNlFTamFhZ1IyakszbGJpMkwwLDEwMzI1Njc3Mg0200UOcTtZes?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000003",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5ellUejZDRnVkNlFTamFhZ1IyakszbGJpMkwwLDEwMzI1Njc3Mg0200UOcTtZes/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
          "last_finalization_error": null,
 | 
			
		||||
          "latest_revision": null,
 | 
			
		||||
          "lines": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 48000,
 | 
			
		||||
                "amount_excluding_tax": 48000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Cloud Standard",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000003",
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "description": "Payment for Invoice",
 | 
			
		||||
          "id": "pi_NORMALIZED00000000000003",
 | 
			
		||||
          "invoice": "in_NORMALIZED00000000000003",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
          "last_payment_error": null,
 | 
			
		||||
          "latest_charge": null,
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1000000000,
 | 
			
		||||
                  "start": 1000000000
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "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": 6,
 | 
			
		||||
                "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_NORMALIZED00000000000003/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "6",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
          },
 | 
			
		||||
          "next_payment_attempt": null,
 | 
			
		||||
          "number": "NORMALI-0005",
 | 
			
		||||
          "object": "invoice",
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "payment_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000003",
 | 
			
		||||
          "payment_settings": {
 | 
			
		||||
            "default_mandate": null,
 | 
			
		||||
            "payment_method_options": null,
 | 
			
		||||
            "payment_method_types": null
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "installments": null,
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            },
 | 
			
		||||
          "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"
 | 
			
		||||
            }
 | 
			
		||||
            "cashapp": {}
 | 
			
		||||
          },
 | 
			
		||||
          "rendering_options": null,
 | 
			
		||||
          "shipping_cost": null,
 | 
			
		||||
          "shipping_details": null,
 | 
			
		||||
          "starting_balance": 0,
 | 
			
		||||
          "statement_descriptor": "Zulip Cloud Standard",
 | 
			
		||||
          "status": "open",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "finalized_at": 1000000000,
 | 
			
		||||
            "marked_uncollectible_at": null,
 | 
			
		||||
            "paid_at": null,
 | 
			
		||||
            "voided_at": null
 | 
			
		||||
          },
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "subscription_details": {
 | 
			
		||||
            "metadata": null
 | 
			
		||||
          },
 | 
			
		||||
          "subtotal": 48000,
 | 
			
		||||
          "subtotal_excluding_tax": 48000,
 | 
			
		||||
          "tax": null,
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "total": 48000,
 | 
			
		||||
          "total_discount_amounts": [],
 | 
			
		||||
          "total_excluding_tax": 48000,
 | 
			
		||||
          "total_tax_amounts": [],
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card",
 | 
			
		||||
            "cashapp"
 | 
			
		||||
          ],
 | 
			
		||||
          "processing": null,
 | 
			
		||||
          "receipt_email": "hamlet@zulip.com",
 | 
			
		||||
          "review": null,
 | 
			
		||||
          "setup_future_usage": null,
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "source": null,
 | 
			
		||||
          "statement_descriptor": "Zulip Basic",
 | 
			
		||||
          "statement_descriptor_suffix": null,
 | 
			
		||||
          "status": "requires_payment_method",
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "attempt_count": 0,
 | 
			
		||||
          "attempted": false,
 | 
			
		||||
          "charge": null
 | 
			
		||||
          "transfer_group": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrYDEQaroqDjsivjVNZJV",
 | 
			
		||||
      "id": "evt_3P3xo5DEQaroqDjs1BgmjFcf",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0018",
 | 
			
		||||
        "idempotency_key": "30a99196-a31c-4b05-8108-e93fcd22a7eb"
 | 
			
		||||
        "id": "req_NORMALIZED0020",
 | 
			
		||||
        "idempotency_key": "3a5391d8-b8e1-43f2-8b01-45ff2afd6f09"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.updated"
 | 
			
		||||
      "type": "payment_intent.created"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -15,11 +15,11 @@
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0005",
 | 
			
		||||
          "invoice_prefix": "NORMA04",
 | 
			
		||||
          "id": "cus_NORMALIZED0006",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrWDEQaroqDjstsnyK52O",
 | 
			
		||||
            "default_payment_method": "pm_1P3xo4DEQaroqDjsoRSnOjom",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
@@ -43,255 +43,13 @@
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrYDEQaroqDjsNLkWgres",
 | 
			
		||||
      "id": "evt_1P3xo6DEQaroqDjsed4K18p1",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0023",
 | 
			
		||||
        "idempotency_key": "954e9119-f3be-4488-b6e5-9815b6a26f4d"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "amount": 48000,
 | 
			
		||||
          "amount_capturable": 0,
 | 
			
		||||
          "amount_details": {
 | 
			
		||||
            "tip": {}
 | 
			
		||||
          },
 | 
			
		||||
          "amount_received": 0,
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "application_fee_amount": null,
 | 
			
		||||
          "automatic_payment_methods": null,
 | 
			
		||||
          "canceled_at": 1000000000,
 | 
			
		||||
          "cancellation_reason": "void_invoice",
 | 
			
		||||
          "capture_method": "automatic",
 | 
			
		||||
          "charges": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 48000,
 | 
			
		||||
                "amount_captured": 0,
 | 
			
		||||
                "amount_refunded": 0,
 | 
			
		||||
                "application": null,
 | 
			
		||||
                "application_fee": null,
 | 
			
		||||
                "application_fee_amount": null,
 | 
			
		||||
                "balance_transaction": null,
 | 
			
		||||
                "billing_details": {
 | 
			
		||||
                  "address": {
 | 
			
		||||
                    "city": "San Francisco",
 | 
			
		||||
                    "country": "US",
 | 
			
		||||
                    "line1": "123 Main St",
 | 
			
		||||
                    "line2": null,
 | 
			
		||||
                    "postal_code": "94105",
 | 
			
		||||
                    "state": "CA"
 | 
			
		||||
                  },
 | 
			
		||||
                  "email": null,
 | 
			
		||||
                  "name": "John Doe",
 | 
			
		||||
                  "phone": null
 | 
			
		||||
                },
 | 
			
		||||
                "calculated_statement_descriptor": "ZULIP CLOUD STANDARD",
 | 
			
		||||
                "captured": false,
 | 
			
		||||
                "created": 1000000000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "customer": "cus_NORMALIZED0002",
 | 
			
		||||
                "description": "Payment for Invoice",
 | 
			
		||||
                "destination": null,
 | 
			
		||||
                "dispute": null,
 | 
			
		||||
                "disputed": false,
 | 
			
		||||
                "failure_balance_transaction": null,
 | 
			
		||||
                "failure_code": "card_declined",
 | 
			
		||||
                "failure_message": "Your card was declined.",
 | 
			
		||||
                "fraud_details": {},
 | 
			
		||||
                "id": "ch_NORMALIZED00000000000002",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000003",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "charge",
 | 
			
		||||
                "on_behalf_of": null,
 | 
			
		||||
                "order": null,
 | 
			
		||||
                "outcome": {
 | 
			
		||||
                  "network_status": "declined_by_network",
 | 
			
		||||
                  "reason": "generic_decline",
 | 
			
		||||
                  "risk_level": "normal",
 | 
			
		||||
                  "risk_score": 0,
 | 
			
		||||
                  "seller_message": "The bank did not return any further details with this decline.",
 | 
			
		||||
                  "type": "issuer_declined"
 | 
			
		||||
                },
 | 
			
		||||
                "paid": false,
 | 
			
		||||
                "payment_intent": "pi_NORMALIZED00000000000003",
 | 
			
		||||
                "payment_method": "pm_1P3qrQDEQaroqDjsGhWSunU8",
 | 
			
		||||
                "payment_method_details": {
 | 
			
		||||
                  "card": {
 | 
			
		||||
                    "amount_authorized": null,
 | 
			
		||||
                    "brand": "visa",
 | 
			
		||||
                    "checks": {
 | 
			
		||||
                      "address_line1_check": null,
 | 
			
		||||
                      "address_postal_code_check": null,
 | 
			
		||||
                      "cvc_check": "pass"
 | 
			
		||||
                    },
 | 
			
		||||
                    "country": "US",
 | 
			
		||||
                    "exp_month": 4,
 | 
			
		||||
                    "exp_year": 2025,
 | 
			
		||||
                    "extended_authorization": {
 | 
			
		||||
                      "status": "disabled"
 | 
			
		||||
                    },
 | 
			
		||||
                    "fingerprint": "NORMALIZED000002",
 | 
			
		||||
                    "funding": "credit",
 | 
			
		||||
                    "incremental_authorization": {
 | 
			
		||||
                      "status": "unavailable"
 | 
			
		||||
                    },
 | 
			
		||||
                    "installments": null,
 | 
			
		||||
                    "last4": "0341",
 | 
			
		||||
                    "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": null,
 | 
			
		||||
                "refunded": false,
 | 
			
		||||
                "refunds": {
 | 
			
		||||
                  "data": [],
 | 
			
		||||
                  "has_more": false,
 | 
			
		||||
                  "object": "list",
 | 
			
		||||
                  "total_count": 0,
 | 
			
		||||
                  "url": "/v1/charges/ch_NORMALIZED00000000000002/refunds"
 | 
			
		||||
                },
 | 
			
		||||
                "review": null,
 | 
			
		||||
                "shipping": null,
 | 
			
		||||
                "source": null,
 | 
			
		||||
                "source_transfer": null,
 | 
			
		||||
                "statement_descriptor": "Zulip Cloud Standard",
 | 
			
		||||
                "statement_descriptor_suffix": null,
 | 
			
		||||
                "status": "failed",
 | 
			
		||||
                "transfer_data": null,
 | 
			
		||||
                "transfer_group": null
 | 
			
		||||
              }
 | 
			
		||||
            ],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000003"
 | 
			
		||||
          },
 | 
			
		||||
          "client_secret": "pi_NORMALIZED00000000000003_secret_CwVmGvEmbR3Rmc8bz3nAp0Hac",
 | 
			
		||||
          "confirmation_method": "automatic",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "description": "Payment for Invoice",
 | 
			
		||||
          "id": "pi_NORMALIZED00000000000003",
 | 
			
		||||
          "invoice": "in_NORMALIZED00000000000003",
 | 
			
		||||
          "last_payment_error": null,
 | 
			
		||||
          "latest_charge": "ch_NORMALIZED00000000000002",
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {},
 | 
			
		||||
          "next_action": null,
 | 
			
		||||
          "object": "payment_intent",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "payment_method": null,
 | 
			
		||||
          "payment_method_configuration_details": null,
 | 
			
		||||
          "payment_method_options": {
 | 
			
		||||
            "card": {
 | 
			
		||||
              "installments": null,
 | 
			
		||||
              "mandate_options": null,
 | 
			
		||||
              "network": null,
 | 
			
		||||
              "request_three_d_secure": "automatic"
 | 
			
		||||
            },
 | 
			
		||||
            "cashapp": {}
 | 
			
		||||
          },
 | 
			
		||||
          "payment_method_types": [
 | 
			
		||||
            "card",
 | 
			
		||||
            "cashapp"
 | 
			
		||||
          ],
 | 
			
		||||
          "processing": null,
 | 
			
		||||
          "receipt_email": "hamlet@zulip.com",
 | 
			
		||||
          "review": null,
 | 
			
		||||
          "setup_future_usage": null,
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "source": null,
 | 
			
		||||
          "statement_descriptor": "Zulip Cloud Standard",
 | 
			
		||||
          "statement_descriptor_suffix": null,
 | 
			
		||||
          "status": "canceled",
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "transfer_group": null
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_3P3qrVDEQaroqDjs0sCrxbNV",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0024",
 | 
			
		||||
        "idempotency_key": "f0434937-c5e1-47cd-b7b2-99dd54d3ac8c"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "payment_intent.canceled"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "default_currency": "usd",
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0002",
 | 
			
		||||
          "invoice_prefix": "NORMA03",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3qrQDEQaroqDjsGhWSunU8",
 | 
			
		||||
            "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": {
 | 
			
		||||
          "delinquent": true
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrYDEQaroqDjs7fyugELq",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0024",
 | 
			
		||||
        "idempotency_key": "f0434937-c5e1-47cd-b7b2-99dd54d3ac8c"
 | 
			
		||||
        "id": "req_NORMALIZED0021",
 | 
			
		||||
        "idempotency_key": "f126fa52-6fd9-47f8-a363-fb08993b3df1"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    },
 | 
			
		||||
@@ -303,14 +61,14 @@
 | 
			
		||||
          "account_country": "US",
 | 
			
		||||
          "account_name": "Kandra Labs, Inc.",
 | 
			
		||||
          "account_tax_ids": null,
 | 
			
		||||
          "amount_due": 48000,
 | 
			
		||||
          "amount_due": 1850,
 | 
			
		||||
          "amount_paid": 0,
 | 
			
		||||
          "amount_remaining": 48000,
 | 
			
		||||
          "amount_remaining": 1850,
 | 
			
		||||
          "amount_shipping": 0,
 | 
			
		||||
          "application": null,
 | 
			
		||||
          "application_fee_amount": null,
 | 
			
		||||
          "attempt_count": 1,
 | 
			
		||||
          "attempted": true,
 | 
			
		||||
          "attempt_count": 0,
 | 
			
		||||
          "attempted": false,
 | 
			
		||||
          "auto_advance": false,
 | 
			
		||||
          "automatic_tax": {
 | 
			
		||||
            "enabled": false,
 | 
			
		||||
@@ -318,12 +76,12 @@
 | 
			
		||||
            "status": null
 | 
			
		||||
          },
 | 
			
		||||
          "billing_reason": "manual",
 | 
			
		||||
          "charge": "ch_NORMALIZED00000000000002",
 | 
			
		||||
          "charge": null,
 | 
			
		||||
          "collection_method": "charge_automatically",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0002",
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "customer_address": null,
 | 
			
		||||
          "customer_email": "hamlet@zulip.com",
 | 
			
		||||
          "customer_name": null,
 | 
			
		||||
@@ -342,9 +100,9 @@
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5ellUejZDRnVkNlFTamFhZ1IyakszbGJpMkwwLDEwMzI1Njc3Mg0200UOcTtZes?s=ap",
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLRmVlQVFra3FCeVJ2R2laS2VyTmJIcHRCNFdTLDEwMzI4MzQ2Ng0200qkFXMOz4?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000003",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5ellUejZDRnVkNlFTamFhZ1IyakszbGJpMkwwLDEwMzI1Njc3Mg0200UOcTtZes/pdf?s=ap",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLRmVlQVFra3FCeVJ2R2laS2VyTmJIcHRCNFdTLDEwMzI4MzQ2Ng0200qkFXMOz4/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
@@ -353,10 +111,10 @@
 | 
			
		||||
          "lines": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 48000,
 | 
			
		||||
                "amount_excluding_tax": 48000,
 | 
			
		||||
                "amount": -2000,
 | 
			
		||||
                "amount_excluding_tax": -2000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Cloud Standard",
 | 
			
		||||
                "description": "$20.00/month new customer discount",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
@@ -367,8 +125,8 @@
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1000000000,
 | 
			
		||||
                  "start": 1000000000
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
@@ -377,48 +135,99 @@
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000001",
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0001",
 | 
			
		||||
                  "product": "prod_NORMALIZED0003",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": 8000,
 | 
			
		||||
                  "unit_amount_decimal": "8000"
 | 
			
		||||
                  "unit_amount": -2000,
 | 
			
		||||
                  "unit_amount_decimal": "-2000"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 6,
 | 
			
		||||
                "quantity": 1,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "8000"
 | 
			
		||||
                "unit_amount_excluding_tax": "-2000"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 3850,
 | 
			
		||||
                "amount_excluding_tax": 3850,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Basic",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000003",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0004",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": 350,
 | 
			
		||||
                  "unit_amount_decimal": "350"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 11,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "350"
 | 
			
		||||
              }
 | 
			
		||||
            ],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 1,
 | 
			
		||||
            "total_count": 2,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "1",
 | 
			
		||||
            "billing_schedule": "2",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "6",
 | 
			
		||||
            "plan_tier": "1",
 | 
			
		||||
            "user_id": "10"
 | 
			
		||||
            "licenses": "11",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "103"
 | 
			
		||||
          },
 | 
			
		||||
          "next_payment_attempt": null,
 | 
			
		||||
          "number": "NORMALI-0005",
 | 
			
		||||
          "number": "NORMALI-0003",
 | 
			
		||||
          "object": "invoice",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
@@ -445,43 +254,289 @@
 | 
			
		||||
          "shipping_cost": null,
 | 
			
		||||
          "shipping_details": null,
 | 
			
		||||
          "starting_balance": 0,
 | 
			
		||||
          "statement_descriptor": "Zulip Cloud Standard",
 | 
			
		||||
          "status": "void",
 | 
			
		||||
          "statement_descriptor": "Zulip Basic",
 | 
			
		||||
          "status": "open",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "finalized_at": 1000000000,
 | 
			
		||||
            "marked_uncollectible_at": null,
 | 
			
		||||
            "paid_at": null,
 | 
			
		||||
            "voided_at": 1000000000
 | 
			
		||||
            "voided_at": null
 | 
			
		||||
          },
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "subscription_details": {
 | 
			
		||||
            "metadata": null
 | 
			
		||||
          },
 | 
			
		||||
          "subtotal": 48000,
 | 
			
		||||
          "subtotal_excluding_tax": 48000,
 | 
			
		||||
          "subtotal": 1850,
 | 
			
		||||
          "subtotal_excluding_tax": 1850,
 | 
			
		||||
          "tax": null,
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "total": 48000,
 | 
			
		||||
          "total": 1850,
 | 
			
		||||
          "total_discount_amounts": [],
 | 
			
		||||
          "total_excluding_tax": 48000,
 | 
			
		||||
          "total_excluding_tax": 1850,
 | 
			
		||||
          "total_tax_amounts": [],
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xo6DEQaroqDjskWGe6MKF",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0020",
 | 
			
		||||
        "idempotency_key": "3a5391d8-b8e1-43f2-8b01-45ff2afd6f09"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.finalized"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "account_country": "US",
 | 
			
		||||
          "account_name": "Kandra Labs, Inc.",
 | 
			
		||||
          "account_tax_ids": null,
 | 
			
		||||
          "amount_due": 1850,
 | 
			
		||||
          "amount_paid": 0,
 | 
			
		||||
          "amount_remaining": 1850,
 | 
			
		||||
          "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": "charge_automatically",
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": "usd",
 | 
			
		||||
          "custom_fields": null,
 | 
			
		||||
          "customer": "cus_NORMALIZED0004",
 | 
			
		||||
          "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": null,
 | 
			
		||||
          "effective_at": 1000000000,
 | 
			
		||||
          "ending_balance": 0,
 | 
			
		||||
          "footer": null,
 | 
			
		||||
          "from_invoice": null,
 | 
			
		||||
          "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLRmVlQVFra3FCeVJ2R2laS2VyTmJIcHRCNFdTLDEwMzI4MzQ2Ng0200qkFXMOz4?s=ap",
 | 
			
		||||
          "id": "in_NORMALIZED00000000000003",
 | 
			
		||||
          "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLRmVlQVFra3FCeVJ2R2laS2VyTmJIcHRCNFdTLDEwMzI4MzQ2Ng0200qkFXMOz4/pdf?s=ap",
 | 
			
		||||
          "issuer": {
 | 
			
		||||
            "type": "self"
 | 
			
		||||
          },
 | 
			
		||||
          "last_finalization_error": null,
 | 
			
		||||
          "latest_revision": null,
 | 
			
		||||
          "lines": {
 | 
			
		||||
            "data": [
 | 
			
		||||
              {
 | 
			
		||||
                "amount": -2000,
 | 
			
		||||
                "amount_excluding_tax": -2000,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "$20.00/month new customer discount",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000003",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000003",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000003",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000003",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0003",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": -2000,
 | 
			
		||||
                  "unit_amount_decimal": "-2000"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 1,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "-2000"
 | 
			
		||||
              },
 | 
			
		||||
              {
 | 
			
		||||
                "amount": 3850,
 | 
			
		||||
                "amount_excluding_tax": 3850,
 | 
			
		||||
                "currency": "usd",
 | 
			
		||||
                "description": "Zulip Basic",
 | 
			
		||||
                "discount_amounts": [],
 | 
			
		||||
                "discountable": false,
 | 
			
		||||
                "discounts": [],
 | 
			
		||||
                "id": "il_NORMALIZED00000000000004",
 | 
			
		||||
                "invoice": "in_NORMALIZED00000000000003",
 | 
			
		||||
                "invoice_item": "ii_NORMALIZED00000000000004",
 | 
			
		||||
                "livemode": false,
 | 
			
		||||
                "metadata": {},
 | 
			
		||||
                "object": "line_item",
 | 
			
		||||
                "period": {
 | 
			
		||||
                  "end": 1328151845,
 | 
			
		||||
                  "start": 1325473445
 | 
			
		||||
                },
 | 
			
		||||
                "plan": null,
 | 
			
		||||
                "price": {
 | 
			
		||||
                  "active": false,
 | 
			
		||||
                  "billing_scheme": "per_unit",
 | 
			
		||||
                  "created": 1000000000,
 | 
			
		||||
                  "currency": "usd",
 | 
			
		||||
                  "custom_unit_amount": null,
 | 
			
		||||
                  "id": "price_NORMALIZED00000000000004",
 | 
			
		||||
                  "livemode": false,
 | 
			
		||||
                  "lookup_key": null,
 | 
			
		||||
                  "metadata": {},
 | 
			
		||||
                  "nickname": null,
 | 
			
		||||
                  "object": "price",
 | 
			
		||||
                  "product": "prod_NORMALIZED0004",
 | 
			
		||||
                  "recurring": null,
 | 
			
		||||
                  "tax_behavior": "unspecified",
 | 
			
		||||
                  "tiers_mode": null,
 | 
			
		||||
                  "transform_quantity": null,
 | 
			
		||||
                  "type": "one_time",
 | 
			
		||||
                  "unit_amount": 350,
 | 
			
		||||
                  "unit_amount_decimal": "350"
 | 
			
		||||
                },
 | 
			
		||||
                "proration": false,
 | 
			
		||||
                "proration_details": {
 | 
			
		||||
                  "credited_items": null
 | 
			
		||||
                },
 | 
			
		||||
                "quantity": 11,
 | 
			
		||||
                "subscription": null,
 | 
			
		||||
                "tax_amounts": [],
 | 
			
		||||
                "tax_rates": [],
 | 
			
		||||
                "type": "invoiceitem",
 | 
			
		||||
                "unit_amount_excluding_tax": "350"
 | 
			
		||||
              }
 | 
			
		||||
            ],
 | 
			
		||||
            "has_more": false,
 | 
			
		||||
            "object": "list",
 | 
			
		||||
            "total_count": 2,
 | 
			
		||||
            "url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "billing_schedule": "2",
 | 
			
		||||
            "license_management": "automatic",
 | 
			
		||||
            "licenses": "11",
 | 
			
		||||
            "on_free_trial": "False",
 | 
			
		||||
            "plan_tier": "103"
 | 
			
		||||
          },
 | 
			
		||||
          "next_payment_attempt": null,
 | 
			
		||||
          "number": "NORMALI-0003",
 | 
			
		||||
          "object": "invoice",
 | 
			
		||||
          "on_behalf_of": null,
 | 
			
		||||
          "paid": false,
 | 
			
		||||
          "paid_out_of_band": false,
 | 
			
		||||
          "payment_intent": "pi_NORMALIZED00000000000003",
 | 
			
		||||
          "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 Basic",
 | 
			
		||||
          "status": "open",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "finalized_at": 1000000000,
 | 
			
		||||
            "marked_uncollectible_at": null,
 | 
			
		||||
            "paid_at": null,
 | 
			
		||||
            "voided_at": null
 | 
			
		||||
          },
 | 
			
		||||
          "subscription": null,
 | 
			
		||||
          "subscription_details": {
 | 
			
		||||
            "metadata": null
 | 
			
		||||
          },
 | 
			
		||||
          "subtotal": 1850,
 | 
			
		||||
          "subtotal_excluding_tax": 1850,
 | 
			
		||||
          "tax": null,
 | 
			
		||||
          "test_clock": null,
 | 
			
		||||
          "total": 1850,
 | 
			
		||||
          "total_discount_amounts": [],
 | 
			
		||||
          "total_excluding_tax": 1850,
 | 
			
		||||
          "total_tax_amounts": [],
 | 
			
		||||
          "transfer_data": null,
 | 
			
		||||
          "webhooks_delivered_at": 1000000000
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "status": "open",
 | 
			
		||||
          "effective_at": null,
 | 
			
		||||
          "ending_balance": null,
 | 
			
		||||
          "hosted_invoice_url": null,
 | 
			
		||||
          "invoice_pdf": null,
 | 
			
		||||
          "number": null,
 | 
			
		||||
          "payment_intent": null,
 | 
			
		||||
          "rendering": {
 | 
			
		||||
            "pdf": {
 | 
			
		||||
              "page_size": "auto"
 | 
			
		||||
            }
 | 
			
		||||
          },
 | 
			
		||||
          "status": "draft",
 | 
			
		||||
          "status_transitions": {
 | 
			
		||||
            "voided_at": null
 | 
			
		||||
            "finalized_at": null
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3qrYDEQaroqDjspjPn5F2d",
 | 
			
		||||
      "id": "evt_1P3xo6DEQaroqDjsOnoi5xBz",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0024",
 | 
			
		||||
        "idempotency_key": "f0434937-c5e1-47cd-b7b2-99dd54d3ac8c"
 | 
			
		||||
        "id": "req_NORMALIZED0020",
 | 
			
		||||
        "idempotency_key": "3a5391d8-b8e1-43f2-8b01-45ff2afd6f09"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "invoice.updated"
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,59 @@
 | 
			
		||||
{
 | 
			
		||||
  "data": [],
 | 
			
		||||
  "data": [
 | 
			
		||||
    {
 | 
			
		||||
      "api_version": "2020-08-27",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "data": {
 | 
			
		||||
        "object": {
 | 
			
		||||
          "address": null,
 | 
			
		||||
          "balance": 0,
 | 
			
		||||
          "created": 1000000000,
 | 
			
		||||
          "currency": null,
 | 
			
		||||
          "default_currency": null,
 | 
			
		||||
          "default_source": null,
 | 
			
		||||
          "delinquent": false,
 | 
			
		||||
          "description": "zulip (Zulip Dev)",
 | 
			
		||||
          "discount": null,
 | 
			
		||||
          "email": "hamlet@zulip.com",
 | 
			
		||||
          "id": "cus_NORMALIZED0007",
 | 
			
		||||
          "invoice_prefix": "NORMA04",
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "custom_fields": null,
 | 
			
		||||
            "default_payment_method": "pm_1P3xo4DEQaroqDjs8vyP35po",
 | 
			
		||||
            "footer": null,
 | 
			
		||||
            "rendering_options": null
 | 
			
		||||
          },
 | 
			
		||||
          "livemode": false,
 | 
			
		||||
          "metadata": {
 | 
			
		||||
            "realm_id": "1",
 | 
			
		||||
            "realm_str": "zulip"
 | 
			
		||||
          },
 | 
			
		||||
          "name": null,
 | 
			
		||||
          "next_invoice_sequence": 1,
 | 
			
		||||
          "object": "customer",
 | 
			
		||||
          "phone": null,
 | 
			
		||||
          "preferred_locales": [],
 | 
			
		||||
          "shipping": null,
 | 
			
		||||
          "tax_exempt": "none",
 | 
			
		||||
          "test_clock": null
 | 
			
		||||
        },
 | 
			
		||||
        "previous_attributes": {
 | 
			
		||||
          "invoice_settings": {
 | 
			
		||||
            "default_payment_method": null
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      "id": "evt_1P3xo6DEQaroqDjsO7UNc0fb",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "object": "event",
 | 
			
		||||
      "pending_webhooks": 0,
 | 
			
		||||
      "request": {
 | 
			
		||||
        "id": "req_NORMALIZED0022",
 | 
			
		||||
        "idempotency_key": "5726aa30-cb05-43e5-a4b5-a662e576617f"
 | 
			
		||||
      },
 | 
			
		||||
      "type": "customer.updated"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
  "object": "list",
 | 
			
		||||
  "url": "/v1/events"
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,7 @@
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": null,
 | 
			
		||||
  "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
  "invoice_pdf": null,
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
@@ -60,7 +60,7 @@
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000001",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
@@ -106,13 +106,14 @@
 | 
			
		||||
    "has_more": false,
 | 
			
		||||
    "object": "list",
 | 
			
		||||
    "total_count": 1,
 | 
			
		||||
    "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
    "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
  },
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "12"
 | 
			
		||||
  },
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5VVlzNkp3eEhsdTJoak9UMWNnMU1QOEN1MDg1LDEwMzI1Njc2OA02005LJE0slP?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5VVlzNkp3eEhsdTJoak9UMWNnMU1QOEN1MDg1LDEwMzI1Njc2OA02005LJE0slP/pdf?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLbWRXQmxBNUw2bXB6aDdnMTNWUXBtTnVzcHVnLDEwMzI4MzQ2MQ0200ycc5anMW?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLbWRXQmxBNUw2bXB6aDdnMTNWUXBtTnVzcHVnLDEwMzI4MzQ2MQ0200ycc5anMW/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -60,7 +60,7 @@
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000001",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
@@ -106,13 +106,14 @@
 | 
			
		||||
    "has_more": false,
 | 
			
		||||
    "object": "list",
 | 
			
		||||
    "total_count": 1,
 | 
			
		||||
    "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
    "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
  },
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "12"
 | 
			
		||||
  },
 | 
			
		||||
@@ -122,7 +123,7 @@
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": false,
 | 
			
		||||
  "paid_out_of_band": false,
 | 
			
		||||
  "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
  "payment_intent": "pi_NORMALIZED00000000000002",
 | 
			
		||||
  "payment_settings": {
 | 
			
		||||
    "default_mandate": null,
 | 
			
		||||
    "payment_method_options": null,
 | 
			
		||||
 
 | 
			
		||||
@@ -41,9 +41,9 @@
 | 
			
		||||
  "ending_balance": 0,
 | 
			
		||||
  "footer": null,
 | 
			
		||||
  "from_invoice": null,
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5VVlzNkp3eEhsdTJoak9UMWNnMU1QOEN1MDg1LDEwMzI1Njc3MA02008dd1gX41?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000001",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QdGU5VVlzNkp3eEhsdTJoak9UMWNnMU1QOEN1MDg1LDEwMzI1Njc3MA02008dd1gX41/pdf?s=ap",
 | 
			
		||||
  "hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLbWRXQmxBNUw2bXB6aDdnMTNWUXBtTnVzcHVnLDEwMzI4MzQ2Mw0200N6WFwamt?s=ap",
 | 
			
		||||
  "id": "in_NORMALIZED00000000000002",
 | 
			
		||||
  "invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED02a3dERVFhcm9xRGpzLF9QdGxLbWRXQmxBNUw2bXB6aDdnMTNWUXBtTnVzcHVnLDEwMzI4MzQ2Mw0200N6WFwamt/pdf?s=ap",
 | 
			
		||||
  "issuer": {
 | 
			
		||||
    "type": "self"
 | 
			
		||||
  },
 | 
			
		||||
@@ -60,7 +60,7 @@
 | 
			
		||||
        "discountable": false,
 | 
			
		||||
        "discounts": [],
 | 
			
		||||
        "id": "il_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000001",
 | 
			
		||||
        "invoice": "in_NORMALIZED00000000000002",
 | 
			
		||||
        "invoice_item": "ii_NORMALIZED00000000000001",
 | 
			
		||||
        "livemode": false,
 | 
			
		||||
        "metadata": {},
 | 
			
		||||
@@ -106,13 +106,14 @@
 | 
			
		||||
    "has_more": false,
 | 
			
		||||
    "object": "list",
 | 
			
		||||
    "total_count": 1,
 | 
			
		||||
    "url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
 | 
			
		||||
    "url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
 | 
			
		||||
  },
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {
 | 
			
		||||
    "billing_schedule": "1",
 | 
			
		||||
    "license_management": "automatic",
 | 
			
		||||
    "licenses": "6",
 | 
			
		||||
    "on_free_trial": "False",
 | 
			
		||||
    "plan_tier": "1",
 | 
			
		||||
    "user_id": "12"
 | 
			
		||||
  },
 | 
			
		||||
@@ -122,7 +123,7 @@
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "paid": true,
 | 
			
		||||
  "paid_out_of_band": false,
 | 
			
		||||
  "payment_intent": "pi_NORMALIZED00000000000001",
 | 
			
		||||
  "payment_intent": "pi_NORMALIZED00000000000002",
 | 
			
		||||
  "payment_settings": {
 | 
			
		||||
    "default_mandate": null,
 | 
			
		||||
    "payment_method_options": null,
 | 
			
		||||
 
 | 
			
		||||
@@ -40,7 +40,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": null,
 | 
			
		||||
  "id": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
  "id": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "object": "payment_method",
 | 
			
		||||
 
 | 
			
		||||
@@ -2,21 +2,21 @@
 | 
			
		||||
  "application": null,
 | 
			
		||||
  "automatic_payment_methods": null,
 | 
			
		||||
  "cancellation_reason": null,
 | 
			
		||||
  "client_secret": "seti_1P3qrODEQaroqDjs4kBXbgn4_secret_Pte9253ueI07bInr2jstspGHGrRsWZs",
 | 
			
		||||
  "client_secret": "seti_1P3xnwDEQaroqDjs3bO3TSoh_secret_PtlKTGT6g71Cnjs96NBlhEZIO0qqaeZ",
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": "cus_NORMALIZED0001",
 | 
			
		||||
  "description": null,
 | 
			
		||||
  "flow_directions": null,
 | 
			
		||||
  "id": "seti_1P3qrODEQaroqDjs4kBXbgn4",
 | 
			
		||||
  "id": "seti_1P3xnwDEQaroqDjs3bO3TSoh",
 | 
			
		||||
  "last_setup_error": null,
 | 
			
		||||
  "latest_attempt": "setatt_1P3qrPDEQaroqDjs0lUb8KFE",
 | 
			
		||||
  "latest_attempt": "setatt_1P3xnwDEQaroqDjsnlDiMI7l",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "mandate": null,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_action": null,
 | 
			
		||||
  "object": "setup_intent",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "payment_method": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
  "payment_method": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
  "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_1P3qrMDEQaroqDjstt67kIkA_secret_Pte9XfEIjKz00S3YytzLb8obK1K3Tuj",
 | 
			
		||||
      "client_secret": "seti_1P3xnuDEQaroqDjsOWTKW2o6_secret_PtlKyJCdGMqOor5TfZKejxwovl3uRav",
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "description": null,
 | 
			
		||||
      "flow_directions": null,
 | 
			
		||||
      "id": "seti_1P3qrMDEQaroqDjstt67kIkA",
 | 
			
		||||
      "id": "seti_1P3xnuDEQaroqDjsOWTKW2o6",
 | 
			
		||||
      "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_1P3qrODEQaroqDjs4kBXbgn4_secret_Pte9253ueI07bInr2jstspGHGrRsWZs",
 | 
			
		||||
  "client_secret": "seti_1P3xnwDEQaroqDjs3bO3TSoh_secret_PtlKTGT6g71Cnjs96NBlhEZIO0qqaeZ",
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "customer": "cus_NORMALIZED0001",
 | 
			
		||||
  "description": null,
 | 
			
		||||
  "flow_directions": null,
 | 
			
		||||
  "id": "seti_1P3qrODEQaroqDjs4kBXbgn4",
 | 
			
		||||
  "id": "seti_1P3xnwDEQaroqDjs3bO3TSoh",
 | 
			
		||||
  "last_setup_error": null,
 | 
			
		||||
  "latest_attempt": "setatt_1P3qrPDEQaroqDjs0lUb8KFE",
 | 
			
		||||
  "latest_attempt": "setatt_1P3xnwDEQaroqDjsnlDiMI7l",
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "mandate": null,
 | 
			
		||||
  "metadata": {},
 | 
			
		||||
  "next_action": null,
 | 
			
		||||
  "object": "setup_intent",
 | 
			
		||||
  "on_behalf_of": null,
 | 
			
		||||
  "payment_method": "pm_1P3qrODEQaroqDjsgVj2DCr7",
 | 
			
		||||
  "payment_method": "pm_1P3xnwDEQaroqDjsMEYktok9",
 | 
			
		||||
  "payment_method_configuration_details": null,
 | 
			
		||||
  "payment_method_options": {
 | 
			
		||||
    "card": {
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "customer_email": null,
 | 
			
		||||
  "expires_at": 1000000000,
 | 
			
		||||
  "id": "cs_test_NORMALIZED02o8DbN91y6QHbpvDIeIkEfEHuIWVYwkpTpFeeCgvDazCcJv",
 | 
			
		||||
  "id": "cs_test_NORMALIZED043MCUCGgfOn6k4EkTx4Krg1v0i3WBBxGi0LvOczjolfqiae",
 | 
			
		||||
  "invoice": null,
 | 
			
		||||
  "invoice_creation": null,
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
@@ -64,7 +64,7 @@
 | 
			
		||||
    "enabled": false
 | 
			
		||||
  },
 | 
			
		||||
  "recovered_from": null,
 | 
			
		||||
  "setup_intent": "seti_1P3qrMDEQaroqDjstt67kIkA",
 | 
			
		||||
  "setup_intent": "seti_1P3xnuDEQaroqDjsOWTKW2o6",
 | 
			
		||||
  "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_NORMALIZED02o8DbN91y6QHbpvDIeIkEfEHuIWVYwkpTpFeeCgvDazCcJv#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
  "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED043MCUCGgfOn6k4EkTx4Krg1v0i3WBBxGi0LvOczjolfqiae#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@
 | 
			
		||||
      },
 | 
			
		||||
      "customer_email": null,
 | 
			
		||||
      "expires_at": 1000000000,
 | 
			
		||||
      "id": "cs_test_NORMALIZED02o8DbN91y6QHbpvDIeIkEfEHuIWVYwkpTpFeeCgvDazCcJv",
 | 
			
		||||
      "id": "cs_test_NORMALIZED043MCUCGgfOn6k4EkTx4Krg1v0i3WBBxGi0LvOczjolfqiae",
 | 
			
		||||
      "invoice": null,
 | 
			
		||||
      "invoice_creation": null,
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
@@ -66,7 +66,7 @@
 | 
			
		||||
        "enabled": false
 | 
			
		||||
      },
 | 
			
		||||
      "recovered_from": null,
 | 
			
		||||
      "setup_intent": "seti_1P3qrMDEQaroqDjstt67kIkA",
 | 
			
		||||
      "setup_intent": "seti_1P3xnuDEQaroqDjsOWTKW2o6",
 | 
			
		||||
      "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_NORMALIZED02o8DbN91y6QHbpvDIeIkEfEHuIWVYwkpTpFeeCgvDazCcJv#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
      "url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED043MCUCGgfOn6k4EkTx4Krg1v0i3WBBxGi0LvOczjolfqiae#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "has_more": false,
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,33 @@
 | 
			
		||||
{
 | 
			
		||||
  "address": null,
 | 
			
		||||
  "balance": 0,
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "currency": null,
 | 
			
		||||
  "default_currency": null,
 | 
			
		||||
  "default_source": null,
 | 
			
		||||
  "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": 1,
 | 
			
		||||
  "object": "customer",
 | 
			
		||||
  "phone": null,
 | 
			
		||||
  "preferred_locales": [],
 | 
			
		||||
  "shipping": null,
 | 
			
		||||
  "tax_exempt": "none",
 | 
			
		||||
  "test_clock": null
 | 
			
		||||
}
 | 
			
		||||
@@ -0,0 +1,33 @@
 | 
			
		||||
{
 | 
			
		||||
  "address": null,
 | 
			
		||||
  "balance": 0,
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "currency": null,
 | 
			
		||||
  "default_currency": null,
 | 
			
		||||
  "default_source": null,
 | 
			
		||||
  "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": "pm_1P3xnxDEQaroqDjs8saiW0oV",
 | 
			
		||||
    "footer": null,
 | 
			
		||||
    "rendering_options": null
 | 
			
		||||
  },
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {
 | 
			
		||||
    "realm_id": "1",
 | 
			
		||||
    "realm_str": "zulip"
 | 
			
		||||
  },
 | 
			
		||||
  "name": null,
 | 
			
		||||
  "next_invoice_sequence": 1,
 | 
			
		||||
  "object": "customer",
 | 
			
		||||
  "phone": null,
 | 
			
		||||
  "preferred_locales": [],
 | 
			
		||||
  "shipping": null,
 | 
			
		||||
  "tax_exempt": "none",
 | 
			
		||||
  "test_clock": null
 | 
			
		||||
}
 | 
			
		||||
@@ -0,0 +1,80 @@
 | 
			
		||||
{
 | 
			
		||||
  "address": null,
 | 
			
		||||
  "balance": 0,
 | 
			
		||||
  "created": 1000000000,
 | 
			
		||||
  "currency": null,
 | 
			
		||||
  "default_currency": null,
 | 
			
		||||
  "default_source": null,
 | 
			
		||||
  "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": {
 | 
			
		||||
      "billing_details": {
 | 
			
		||||
        "address": {
 | 
			
		||||
          "city": "San Francisco",
 | 
			
		||||
          "country": "US",
 | 
			
		||||
          "line1": "123 Main St",
 | 
			
		||||
          "line2": null,
 | 
			
		||||
          "postal_code": "94105",
 | 
			
		||||
          "state": "CA"
 | 
			
		||||
        },
 | 
			
		||||
        "email": null,
 | 
			
		||||
        "name": "John Doe",
 | 
			
		||||
        "phone": null
 | 
			
		||||
      },
 | 
			
		||||
      "card": {
 | 
			
		||||
        "brand": "visa",
 | 
			
		||||
        "checks": {
 | 
			
		||||
          "address_line1_check": null,
 | 
			
		||||
          "address_postal_code_check": null,
 | 
			
		||||
          "cvc_check": "pass"
 | 
			
		||||
        },
 | 
			
		||||
        "country": "US",
 | 
			
		||||
        "display_brand": "visa",
 | 
			
		||||
        "exp_month": 4,
 | 
			
		||||
        "exp_year": 2025,
 | 
			
		||||
        "fingerprint": "NORMALIZED000001",
 | 
			
		||||
        "funding": "credit",
 | 
			
		||||
        "generated_from": null,
 | 
			
		||||
        "last4": "4242",
 | 
			
		||||
        "networks": {
 | 
			
		||||
          "available": [
 | 
			
		||||
            "visa"
 | 
			
		||||
          ],
 | 
			
		||||
          "preferred": null
 | 
			
		||||
        },
 | 
			
		||||
        "three_d_secure_usage": {
 | 
			
		||||
          "supported": true
 | 
			
		||||
        },
 | 
			
		||||
        "wallet": null
 | 
			
		||||
      },
 | 
			
		||||
      "created": 1000000000,
 | 
			
		||||
      "customer": "cus_NORMALIZED0001",
 | 
			
		||||
      "id": "pm_1P3xnxDEQaroqDjs8saiW0oV",
 | 
			
		||||
      "livemode": false,
 | 
			
		||||
      "metadata": {},
 | 
			
		||||
      "object": "payment_method",
 | 
			
		||||
      "type": "card"
 | 
			
		||||
    },
 | 
			
		||||
    "footer": null,
 | 
			
		||||
    "rendering_options": null
 | 
			
		||||
  },
 | 
			
		||||
  "livemode": false,
 | 
			
		||||
  "metadata": {
 | 
			
		||||
    "realm_id": "1",
 | 
			
		||||
    "realm_str": "zulip"
 | 
			
		||||
  },
 | 
			
		||||
  "name": null,
 | 
			
		||||
  "next_invoice_sequence": 1,
 | 
			
		||||
  "object": "customer",
 | 
			
		||||
  "phone": null,
 | 
			
		||||
  "preferred_locales": [],
 | 
			
		||||
  "shipping": null,
 | 
			
		||||
  "tax_exempt": "none",
 | 
			
		||||
  "test_clock": null
 | 
			
		||||
}
 | 
			
		||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user