mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
billing: Migrate to Stripe hosted checkout page.
This commit is contained in:
@@ -34,7 +34,6 @@ from zerver.lib.utils import assert_is_not_none
|
|||||||
from zerver.models import Realm, RealmAuditLog, UserProfile, get_system_bot
|
from zerver.models import Realm, RealmAuditLog, UserProfile, get_system_bot
|
||||||
from zproject.config import get_secret
|
from zproject.config import get_secret
|
||||||
|
|
||||||
STRIPE_PUBLISHABLE_KEY = get_secret("stripe_publishable_key")
|
|
||||||
stripe.api_key = get_secret("stripe_secret_key")
|
stripe.api_key = get_secret("stripe_secret_key")
|
||||||
|
|
||||||
BILLING_LOG_PATH = os.path.join(
|
BILLING_LOG_PATH = os.path.join(
|
||||||
@@ -223,6 +222,14 @@ class StripeConnectionError(BillingError):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class UpgradeWithExistingPlanError(BillingError):
|
||||||
|
def __init__(self) -> None:
|
||||||
|
super().__init__(
|
||||||
|
"subscribing with existing subscription",
|
||||||
|
"The organization is already subscribed to a plan. Please reload the billing page.",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class InvalidBillingSchedule(Exception):
|
class InvalidBillingSchedule(Exception):
|
||||||
def __init__(self, billing_schedule: int) -> None:
|
def __init__(self, billing_schedule: int) -> None:
|
||||||
self.message = f"Unknown billing_schedule: {billing_schedule}"
|
self.message = f"Unknown billing_schedule: {billing_schedule}"
|
||||||
@@ -238,13 +245,6 @@ class InvalidTier(Exception):
|
|||||||
def catch_stripe_errors(func: CallableT) -> CallableT:
|
def catch_stripe_errors(func: CallableT) -> CallableT:
|
||||||
@wraps(func)
|
@wraps(func)
|
||||||
def wrapped(*args: object, **kwargs: object) -> object:
|
def wrapped(*args: object, **kwargs: object) -> object:
|
||||||
if settings.DEVELOPMENT and not settings.TEST_SUITE: # nocoverage
|
|
||||||
if STRIPE_PUBLISHABLE_KEY is None:
|
|
||||||
raise BillingError(
|
|
||||||
"missing stripe config",
|
|
||||||
"Missing Stripe config. "
|
|
||||||
"See https://zulip.readthedocs.io/en/latest/subsystems/billing.html.",
|
|
||||||
)
|
|
||||||
try:
|
try:
|
||||||
return func(*args, **kwargs)
|
return func(*args, **kwargs)
|
||||||
# See https://stripe.com/docs/api/python#error_handling, though
|
# See https://stripe.com/docs/api/python#error_handling, though
|
||||||
@@ -283,11 +283,13 @@ def catch_stripe_errors(func: CallableT) -> CallableT:
|
|||||||
|
|
||||||
@catch_stripe_errors
|
@catch_stripe_errors
|
||||||
def stripe_get_customer(stripe_customer_id: str) -> stripe.Customer:
|
def stripe_get_customer(stripe_customer_id: str) -> stripe.Customer:
|
||||||
return stripe.Customer.retrieve(stripe_customer_id, expand=["default_source", "sources"])
|
return stripe.Customer.retrieve(
|
||||||
|
stripe_customer_id, expand=["invoice_settings", "invoice_settings.default_payment_method"]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@catch_stripe_errors
|
@catch_stripe_errors
|
||||||
def do_create_stripe_customer(user: UserProfile, stripe_token: Optional[str] = None) -> Customer:
|
def do_create_stripe_customer(user: UserProfile, payment_method: Optional[str] = None) -> Customer:
|
||||||
realm = user.realm
|
realm = user.realm
|
||||||
# We could do a better job of handling race conditions here, but if two
|
# We could do a better job of handling race conditions here, but if two
|
||||||
# people from a realm try to upgrade at exactly the same time, the main
|
# people from a realm try to upgrade at exactly the same time, the main
|
||||||
@@ -297,7 +299,10 @@ def do_create_stripe_customer(user: UserProfile, stripe_token: Optional[str] = N
|
|||||||
description=f"{realm.string_id} ({realm.name})",
|
description=f"{realm.string_id} ({realm.name})",
|
||||||
email=user.delivery_email,
|
email=user.delivery_email,
|
||||||
metadata={"realm_id": realm.id, "realm_str": realm.string_id},
|
metadata={"realm_id": realm.id, "realm_str": realm.string_id},
|
||||||
source=stripe_token,
|
payment_method=payment_method,
|
||||||
|
)
|
||||||
|
stripe.Customer.modify(
|
||||||
|
stripe_customer.id, invoice_settings={"default_payment_method": payment_method}
|
||||||
)
|
)
|
||||||
event_time = timestamp_to_datetime(stripe_customer.created)
|
event_time = timestamp_to_datetime(stripe_customer.created)
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
@@ -307,7 +312,7 @@ def do_create_stripe_customer(user: UserProfile, stripe_token: Optional[str] = N
|
|||||||
event_type=RealmAuditLog.STRIPE_CUSTOMER_CREATED,
|
event_type=RealmAuditLog.STRIPE_CUSTOMER_CREATED,
|
||||||
event_time=event_time,
|
event_time=event_time,
|
||||||
)
|
)
|
||||||
if stripe_token is not None:
|
if payment_method is not None:
|
||||||
RealmAuditLog.objects.create(
|
RealmAuditLog.objects.create(
|
||||||
realm=user.realm,
|
realm=user.realm,
|
||||||
acting_user=user,
|
acting_user=user,
|
||||||
@@ -324,17 +329,17 @@ def do_create_stripe_customer(user: UserProfile, stripe_token: Optional[str] = N
|
|||||||
|
|
||||||
|
|
||||||
@catch_stripe_errors
|
@catch_stripe_errors
|
||||||
def do_replace_payment_source(
|
def do_replace_payment_method(
|
||||||
user: UserProfile, stripe_token: str, pay_invoices: bool = False
|
user: UserProfile, payment_method: str, pay_invoices: bool = False
|
||||||
) -> stripe.Customer:
|
) -> None:
|
||||||
customer = get_customer_by_realm(user.realm)
|
customer = get_customer_by_realm(user.realm)
|
||||||
assert customer is not None # for mypy
|
assert customer is not None # for mypy
|
||||||
assert customer.stripe_customer_id is not None # for mypy
|
assert customer.stripe_customer_id is not None # for mypy
|
||||||
|
|
||||||
stripe_customer = stripe_get_customer(customer.stripe_customer_id)
|
stripe.Customer.modify(
|
||||||
stripe_customer.source = stripe_token
|
customer.stripe_customer_id, invoice_settings={"default_payment_method": payment_method}
|
||||||
# Deletes existing card: https://stripe.com/docs/api#update_customer-source
|
)
|
||||||
updated_stripe_customer = stripe.Customer.save(stripe_customer)
|
|
||||||
RealmAuditLog.objects.create(
|
RealmAuditLog.objects.create(
|
||||||
realm=user.realm,
|
realm=user.realm,
|
||||||
acting_user=user,
|
acting_user=user,
|
||||||
@@ -343,27 +348,30 @@ def do_replace_payment_source(
|
|||||||
)
|
)
|
||||||
if pay_invoices:
|
if pay_invoices:
|
||||||
for stripe_invoice in stripe.Invoice.list(
|
for stripe_invoice in stripe.Invoice.list(
|
||||||
collection_method="charge_automatically", customer=stripe_customer.id, status="open"
|
collection_method="charge_automatically",
|
||||||
|
customer=customer.stripe_customer_id,
|
||||||
|
status="open",
|
||||||
):
|
):
|
||||||
# The user will get either a receipt or a "failed payment" email, but the in-app
|
# The user will get either a receipt or a "failed payment" email, but the in-app
|
||||||
# messaging could be clearer here (e.g. it could explicitly tell the user that there
|
# messaging could be clearer here (e.g. it could explicitly tell the user that there
|
||||||
# were payment(s) and that they succeeded or failed).
|
# were payment(s) and that they succeeded or failed).
|
||||||
# Worth fixing if we notice that a lot of cards end up failing at this step.
|
# Worth fixing if we notice that a lot of cards end up failing at this step.
|
||||||
stripe.Invoice.pay(stripe_invoice)
|
stripe.Invoice.pay(stripe_invoice)
|
||||||
return updated_stripe_customer
|
|
||||||
|
|
||||||
|
|
||||||
def stripe_customer_has_credit_card_as_default_source(stripe_customer: stripe.Customer) -> bool:
|
def stripe_customer_has_credit_card_as_default_payment_method(
|
||||||
if not stripe_customer.default_source:
|
stripe_customer: stripe.Customer,
|
||||||
|
) -> bool:
|
||||||
|
if not stripe_customer.invoice_settings.default_payment_method:
|
||||||
return False
|
return False
|
||||||
return stripe_customer.default_source.object == "card"
|
return stripe_customer.invoice_settings.default_payment_method.type == "card"
|
||||||
|
|
||||||
|
|
||||||
def customer_has_credit_card_as_default_source(customer: Customer) -> bool:
|
def customer_has_credit_card_as_default_payment_method(customer: Customer) -> bool:
|
||||||
if not customer.stripe_customer_id:
|
if not customer.stripe_customer_id:
|
||||||
return False
|
return False
|
||||||
stripe_customer = stripe_get_customer(customer.stripe_customer_id)
|
stripe_customer = stripe_get_customer(customer.stripe_customer_id)
|
||||||
return stripe_customer_has_credit_card_as_default_source(stripe_customer)
|
return stripe_customer_has_credit_card_as_default_payment_method(stripe_customer)
|
||||||
|
|
||||||
|
|
||||||
# event_time should roughly be timezone_now(). Not designed to handle
|
# event_time should roughly be timezone_now(). Not designed to handle
|
||||||
@@ -508,15 +516,16 @@ def make_end_of_cycle_updates_if_needed(
|
|||||||
|
|
||||||
# Returns Customer instead of stripe_customer so that we don't make a Stripe
|
# Returns Customer instead of stripe_customer so that we don't make a Stripe
|
||||||
# API call if there's nothing to update
|
# API call if there's nothing to update
|
||||||
|
@catch_stripe_errors
|
||||||
def update_or_create_stripe_customer(
|
def update_or_create_stripe_customer(
|
||||||
user: UserProfile, stripe_token: Optional[str] = None
|
user: UserProfile, payment_method: Optional[str] = None
|
||||||
) -> Customer:
|
) -> Customer:
|
||||||
realm = user.realm
|
realm = user.realm
|
||||||
customer = get_customer_by_realm(realm)
|
customer = get_customer_by_realm(realm)
|
||||||
if customer is None or customer.stripe_customer_id is None:
|
if customer is None or customer.stripe_customer_id is None:
|
||||||
return do_create_stripe_customer(user, stripe_token=stripe_token)
|
return do_create_stripe_customer(user, payment_method=payment_method)
|
||||||
if stripe_token is not None:
|
if payment_method is not None:
|
||||||
do_replace_payment_source(user, stripe_token)
|
do_replace_payment_method(user, payment_method, True)
|
||||||
return customer
|
return customer
|
||||||
|
|
||||||
|
|
||||||
@@ -595,6 +604,18 @@ def is_free_trial_offer_enabled() -> bool:
|
|||||||
return settings.FREE_TRIAL_DAYS not in (None, 0)
|
return settings.FREE_TRIAL_DAYS not in (None, 0)
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_realm_does_not_have_active_plan(realm: Customer) -> None:
|
||||||
|
if get_current_plan_by_realm(realm) is not None:
|
||||||
|
# Unlikely race condition from two people upgrading (clicking "Make payment")
|
||||||
|
# at exactly the same time. Doesn't fully resolve the race condition, but having
|
||||||
|
# a check here reduces the likelihood.
|
||||||
|
billing_logger.warning(
|
||||||
|
"Upgrade of %s failed because of existing active plan.",
|
||||||
|
realm.string_id,
|
||||||
|
)
|
||||||
|
raise UpgradeWithExistingPlanError()
|
||||||
|
|
||||||
|
|
||||||
# Only used for cloud signups
|
# Only used for cloud signups
|
||||||
@catch_stripe_errors
|
@catch_stripe_errors
|
||||||
def process_initial_upgrade(
|
def process_initial_upgrade(
|
||||||
@@ -602,27 +623,13 @@ def process_initial_upgrade(
|
|||||||
licenses: int,
|
licenses: int,
|
||||||
automanage_licenses: bool,
|
automanage_licenses: bool,
|
||||||
billing_schedule: int,
|
billing_schedule: int,
|
||||||
stripe_token: Optional[str],
|
charge_automatically: bool,
|
||||||
|
free_trial: bool,
|
||||||
) -> None:
|
) -> None:
|
||||||
realm = user.realm
|
realm = user.realm
|
||||||
customer = update_or_create_stripe_customer(user, stripe_token=stripe_token)
|
customer = update_or_create_stripe_customer(user)
|
||||||
assert customer.stripe_customer_id is not None # for mypy
|
assert customer.stripe_customer_id is not None # for mypy
|
||||||
|
ensure_realm_does_not_have_active_plan(customer.realm)
|
||||||
charge_automatically = stripe_token is not None
|
|
||||||
free_trial = is_free_trial_offer_enabled()
|
|
||||||
|
|
||||||
if get_current_plan_by_customer(customer) is not None:
|
|
||||||
# Unlikely race condition from two people upgrading (clicking "Make payment")
|
|
||||||
# at exactly the same time. Doesn't fully resolve the race condition, but having
|
|
||||||
# a check here reduces the likelihood.
|
|
||||||
billing_logger.warning(
|
|
||||||
"Customer %s trying to upgrade, but has an active subscription",
|
|
||||||
customer,
|
|
||||||
)
|
|
||||||
raise BillingError(
|
|
||||||
"subscribing with existing subscription", str(BillingError.TRY_RELOADING)
|
|
||||||
)
|
|
||||||
|
|
||||||
(
|
(
|
||||||
billing_cycle_anchor,
|
billing_cycle_anchor,
|
||||||
next_invoice_date,
|
next_invoice_date,
|
||||||
@@ -635,32 +642,6 @@ def process_initial_upgrade(
|
|||||||
customer.default_discount,
|
customer.default_discount,
|
||||||
free_trial,
|
free_trial,
|
||||||
)
|
)
|
||||||
# The main design constraint in this function is that if you upgrade with a credit card, and the
|
|
||||||
# charge fails, everything should be rolled back as if nothing had happened. This is because we
|
|
||||||
# expect frequent card failures on initial signup.
|
|
||||||
# Hence, if we're going to charge a card, do it at the beginning, even if we later may have to
|
|
||||||
# adjust the number of licenses.
|
|
||||||
if charge_automatically:
|
|
||||||
if not free_trial:
|
|
||||||
stripe_charge = stripe.Charge.create(
|
|
||||||
amount=price_per_license * licenses,
|
|
||||||
currency="usd",
|
|
||||||
customer=customer.stripe_customer_id,
|
|
||||||
description=f"Upgrade to Zulip Standard, ${price_per_license/100} x {licenses}",
|
|
||||||
receipt_email=user.delivery_email,
|
|
||||||
statement_descriptor="Zulip Standard",
|
|
||||||
)
|
|
||||||
# Not setting a period start and end, but maybe we should? Unclear what will make things
|
|
||||||
# most similar to the renewal case from an accounting perspective.
|
|
||||||
assert isinstance(stripe_charge.source, stripe.Card)
|
|
||||||
description = f"Payment (Card ending in {stripe_charge.source.last4})"
|
|
||||||
stripe.InvoiceItem.create(
|
|
||||||
amount=price_per_license * licenses * -1,
|
|
||||||
currency="usd",
|
|
||||||
customer=customer.stripe_customer_id,
|
|
||||||
description=description,
|
|
||||||
discountable=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
# TODO: The correctness of this relies on user creation, deactivation, etc being
|
# TODO: The correctness of this relies on user creation, deactivation, etc being
|
||||||
# in a transaction.atomic() with the relevant RealmAuditLog entries
|
# in a transaction.atomic() with the relevant RealmAuditLog entries
|
||||||
|
|||||||
176
corporate/lib/stripe_event_handler.py
Normal file
176
corporate/lib/stripe_event_handler.py
Normal file
@@ -0,0 +1,176 @@
|
|||||||
|
import logging
|
||||||
|
from typing import Any, Callable, Union
|
||||||
|
|
||||||
|
import stripe
|
||||||
|
from django.conf import settings
|
||||||
|
|
||||||
|
from corporate.lib.stripe import (
|
||||||
|
BillingError,
|
||||||
|
UpgradeWithExistingPlanError,
|
||||||
|
ensure_realm_does_not_have_active_plan,
|
||||||
|
process_initial_upgrade,
|
||||||
|
update_or_create_stripe_customer,
|
||||||
|
)
|
||||||
|
from corporate.models import Event, PaymentIntent, Session
|
||||||
|
from zerver.models import get_user_by_delivery_email
|
||||||
|
|
||||||
|
billing_logger = logging.getLogger("corporate.stripe")
|
||||||
|
|
||||||
|
|
||||||
|
def error_handler(
|
||||||
|
func: Callable[[Any, Any], None],
|
||||||
|
) -> Callable[[Union[stripe.checkout.Session, stripe.PaymentIntent], Event], None]:
|
||||||
|
def wrapper(
|
||||||
|
stripe_object: Union[stripe.checkout.Session, stripe.PaymentIntent], event: Event
|
||||||
|
) -> None:
|
||||||
|
event.status = Event.EVENT_HANDLER_STARTED
|
||||||
|
event.save(update_fields=["status"])
|
||||||
|
|
||||||
|
try:
|
||||||
|
func(stripe_object, event.content_object)
|
||||||
|
except BillingError as e:
|
||||||
|
billing_logger.warning(
|
||||||
|
"BillingError in %s event handler: %s. stripe_object_id=%s, customer_id=%s metadata=%s",
|
||||||
|
event.type,
|
||||||
|
e.error_description,
|
||||||
|
stripe_object.id,
|
||||||
|
stripe_object.customer,
|
||||||
|
stripe_object.metadata,
|
||||||
|
)
|
||||||
|
event.status = Event.EVENT_HANDLER_FAILED
|
||||||
|
event.handler_error = {
|
||||||
|
"message": e.msg,
|
||||||
|
"description": e.error_description,
|
||||||
|
}
|
||||||
|
event.save(update_fields=["status", "handler_error"])
|
||||||
|
except Exception:
|
||||||
|
billing_logger.exception(
|
||||||
|
"Uncaught exception in %s event handler:",
|
||||||
|
event.type,
|
||||||
|
stack_info=True,
|
||||||
|
)
|
||||||
|
event.status = Event.EVENT_HANDLER_FAILED
|
||||||
|
event.handler_error = {
|
||||||
|
"description": f"uncaught exception in {event.type} event handler",
|
||||||
|
"message": BillingError.CONTACT_SUPPORT.format(email=settings.ZULIP_ADMINISTRATOR),
|
||||||
|
}
|
||||||
|
event.save(update_fields=["status", "handler_error"])
|
||||||
|
else:
|
||||||
|
event.status = Event.EVENT_HANDLER_SUCCEEDED
|
||||||
|
event.save()
|
||||||
|
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
|
@error_handler
|
||||||
|
def handle_checkout_session_completed_event(
|
||||||
|
stripe_session: stripe.checkout.Session, session: Session
|
||||||
|
) -> None:
|
||||||
|
session.status = Session.COMPLETED
|
||||||
|
session.save()
|
||||||
|
|
||||||
|
stripe_setup_intent = stripe.SetupIntent.retrieve(stripe_session.setup_intent)
|
||||||
|
stripe_customer = stripe.Customer.retrieve(stripe_setup_intent.customer)
|
||||||
|
user = get_user_by_delivery_email(stripe_customer.email, session.customer.realm)
|
||||||
|
payment_method = stripe_setup_intent.payment_method
|
||||||
|
|
||||||
|
if session.type in [
|
||||||
|
Session.UPGRADE_FROM_BILLING_PAGE,
|
||||||
|
Session.RETRY_UPGRADE_WITH_ANOTHER_PAYMENT_METHOD,
|
||||||
|
]:
|
||||||
|
ensure_realm_does_not_have_active_plan(user.realm)
|
||||||
|
update_or_create_stripe_customer(user, payment_method)
|
||||||
|
session.payment_intent.status = PaymentIntent.PROCESSING
|
||||||
|
session.payment_intent.last_payment_error = ()
|
||||||
|
session.payment_intent.save(update_fields=["status", "last_payment_error"])
|
||||||
|
try:
|
||||||
|
stripe.PaymentIntent.confirm(
|
||||||
|
session.payment_intent.stripe_payment_intent_id,
|
||||||
|
payment_method=payment_method,
|
||||||
|
off_session=True,
|
||||||
|
)
|
||||||
|
except stripe.error.CardError:
|
||||||
|
pass
|
||||||
|
elif session.type in [
|
||||||
|
Session.FREE_TRIAL_UPGRADE_FROM_BILLING_PAGE,
|
||||||
|
Session.FREE_TRIAL_UPGRADE_FROM_ONBOARDING_PAGE,
|
||||||
|
]:
|
||||||
|
ensure_realm_does_not_have_active_plan(user.realm)
|
||||||
|
update_or_create_stripe_customer(user, payment_method)
|
||||||
|
process_initial_upgrade(
|
||||||
|
user,
|
||||||
|
int(stripe_setup_intent.metadata["licenses"]),
|
||||||
|
stripe_setup_intent.metadata["license_management"] == "automatic",
|
||||||
|
int(stripe_setup_intent.metadata["billing_schedule"]),
|
||||||
|
charge_automatically=True,
|
||||||
|
free_trial=True,
|
||||||
|
)
|
||||||
|
elif session.type in [Session.CARD_UPDATE_FROM_BILLING_PAGE]:
|
||||||
|
update_or_create_stripe_customer(user, payment_method)
|
||||||
|
|
||||||
|
|
||||||
|
@error_handler
|
||||||
|
def handle_payment_intent_succeeded_event(
|
||||||
|
stripe_payment_intent: stripe.PaymentIntent, payment_intent: PaymentIntent
|
||||||
|
) -> None:
|
||||||
|
payment_intent.status = PaymentIntent.SUCCEEDED
|
||||||
|
payment_intent.save()
|
||||||
|
metadata = stripe_payment_intent.metadata
|
||||||
|
user = get_user_by_delivery_email(metadata["user_email"], payment_intent.customer.realm)
|
||||||
|
|
||||||
|
description = ""
|
||||||
|
for charge in stripe_payment_intent.charges:
|
||||||
|
description = f"Payment (Card ending in {charge.payment_method_details.card.last4})"
|
||||||
|
break
|
||||||
|
|
||||||
|
stripe.InvoiceItem.create(
|
||||||
|
amount=stripe_payment_intent.amount * -1,
|
||||||
|
currency="usd",
|
||||||
|
customer=stripe_payment_intent.customer,
|
||||||
|
description=description,
|
||||||
|
discountable=False,
|
||||||
|
)
|
||||||
|
try:
|
||||||
|
ensure_realm_does_not_have_active_plan(user.realm)
|
||||||
|
except UpgradeWithExistingPlanError as e:
|
||||||
|
stripe_invoice = stripe.Invoice.create(
|
||||||
|
auto_advance=True,
|
||||||
|
collection_method="charge_automatically",
|
||||||
|
customer=stripe_payment_intent.customer,
|
||||||
|
days_until_due=None,
|
||||||
|
statement_descriptor="Zulip Standard Credit",
|
||||||
|
)
|
||||||
|
stripe.Invoice.finalize_invoice(stripe_invoice)
|
||||||
|
raise e
|
||||||
|
|
||||||
|
process_initial_upgrade(
|
||||||
|
user,
|
||||||
|
int(metadata["licenses"]),
|
||||||
|
metadata["license_management"] == "automatic",
|
||||||
|
int(metadata["billing_schedule"]),
|
||||||
|
True,
|
||||||
|
False,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@error_handler
|
||||||
|
def handle_payment_intent_payment_failed_event(
|
||||||
|
stripe_payment_intent: stripe.PaymentIntent, payment_intent: Event
|
||||||
|
) -> None:
|
||||||
|
payment_intent.status = PaymentIntent.get_status_integer_from_status_text(
|
||||||
|
stripe_payment_intent.status
|
||||||
|
)
|
||||||
|
billing_logger.info(
|
||||||
|
"Stripe payment intent failed: %s %s %s %s",
|
||||||
|
payment_intent.customer.realm.string_id,
|
||||||
|
stripe_payment_intent.last_payment_error.get("type"),
|
||||||
|
stripe_payment_intent.last_payment_error.get("code"),
|
||||||
|
stripe_payment_intent.last_payment_error.get("param"),
|
||||||
|
)
|
||||||
|
payment_intent.last_payment_error = {
|
||||||
|
"description": stripe_payment_intent.last_payment_error.get("type"),
|
||||||
|
}
|
||||||
|
payment_intent.last_payment_error["message"] = stripe_payment_intent.last_payment_error.get(
|
||||||
|
"message"
|
||||||
|
)
|
||||||
|
payment_intent.save(update_fields=["status", "last_payment_error"])
|
||||||
85
corporate/migrations/0015_event_paymentintent_session.py
Normal file
85
corporate/migrations/0015_event_paymentintent_session.py
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
# Generated by Django 3.2.9 on 2021-11-04 16:23
|
||||||
|
|
||||||
|
import django.db.models.deletion
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
("contenttypes", "0002_remove_content_type_name"),
|
||||||
|
("corporate", "0014_customerplan_end_date"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name="PaymentIntent",
|
||||||
|
fields=[
|
||||||
|
(
|
||||||
|
"id",
|
||||||
|
models.AutoField(
|
||||||
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
("stripe_payment_intent_id", models.CharField(max_length=255, unique=True)),
|
||||||
|
("status", models.SmallIntegerField()),
|
||||||
|
("last_payment_error", models.JSONField(default=None, null=True)),
|
||||||
|
(
|
||||||
|
"customer",
|
||||||
|
models.ForeignKey(
|
||||||
|
on_delete=django.db.models.deletion.CASCADE, to="corporate.customer"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name="Session",
|
||||||
|
fields=[
|
||||||
|
(
|
||||||
|
"id",
|
||||||
|
models.AutoField(
|
||||||
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
("stripe_session_id", models.CharField(max_length=255, unique=True)),
|
||||||
|
("type", models.SmallIntegerField()),
|
||||||
|
("status", models.SmallIntegerField(default=1)),
|
||||||
|
(
|
||||||
|
"customer",
|
||||||
|
models.ForeignKey(
|
||||||
|
on_delete=django.db.models.deletion.CASCADE, to="corporate.customer"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"payment_intent",
|
||||||
|
models.ForeignKey(
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
to="corporate.paymentintent",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name="Event",
|
||||||
|
fields=[
|
||||||
|
(
|
||||||
|
"id",
|
||||||
|
models.AutoField(
|
||||||
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
("stripe_event_id", models.CharField(max_length=255)),
|
||||||
|
("type", models.CharField(max_length=255)),
|
||||||
|
("status", models.SmallIntegerField(default=1)),
|
||||||
|
("object_id", models.PositiveIntegerField(db_index=True)),
|
||||||
|
("handler_error", models.JSONField(default=None, null=True)),
|
||||||
|
(
|
||||||
|
"content_type",
|
||||||
|
models.ForeignKey(
|
||||||
|
on_delete=django.db.models.deletion.CASCADE, to="contenttypes.contenttype"
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
import datetime
|
import datetime
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from typing import Optional
|
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 import models
|
||||||
from django.db.models import CASCADE
|
from django.db.models import CASCADE
|
||||||
|
|
||||||
@@ -36,6 +38,141 @@ def get_customer_by_realm(realm: Realm) -> Optional[Customer]:
|
|||||||
return Customer.objects.filter(realm=realm).first()
|
return Customer.objects.filter(realm=realm).first()
|
||||||
|
|
||||||
|
|
||||||
|
class Event(models.Model):
|
||||||
|
stripe_event_id = models.CharField(max_length=255)
|
||||||
|
|
||||||
|
type = models.CharField(max_length=255)
|
||||||
|
|
||||||
|
RECEIVED = 1
|
||||||
|
EVENT_HANDLER_STARTED = 30
|
||||||
|
EVENT_HANDLER_FAILED = 40
|
||||||
|
EVENT_HANDLER_SUCCEEDED = 50
|
||||||
|
status = models.SmallIntegerField(default=RECEIVED)
|
||||||
|
|
||||||
|
content_type = models.ForeignKey(ContentType, on_delete=models.CASCADE)
|
||||||
|
object_id = models.PositiveIntegerField(db_index=True)
|
||||||
|
content_object = GenericForeignKey("content_type", "object_id")
|
||||||
|
|
||||||
|
handler_error = models.JSONField(default=None, null=True)
|
||||||
|
|
||||||
|
def get_event_handler_details_as_dict(self) -> Dict[str, Any]:
|
||||||
|
details_dict = {}
|
||||||
|
details_dict["status"] = {
|
||||||
|
Event.RECEIVED: "not_started",
|
||||||
|
Event.EVENT_HANDLER_STARTED: "started",
|
||||||
|
Event.EVENT_HANDLER_FAILED: "failed",
|
||||||
|
Event.EVENT_HANDLER_SUCCEEDED: "succeeded",
|
||||||
|
}[self.status]
|
||||||
|
if self.handler_error:
|
||||||
|
details_dict["error"] = self.handler_error
|
||||||
|
return details_dict
|
||||||
|
|
||||||
|
|
||||||
|
def get_last_associated_event_by_type(
|
||||||
|
content_object: Union["PaymentIntent", "Session"], event_type: str
|
||||||
|
) -> Optional[Event]:
|
||||||
|
content_type = ContentType.objects.get_for_model(type(content_object))
|
||||||
|
return Event.objects.filter(
|
||||||
|
content_type=content_type, object_id=content_object.id, type=event_type
|
||||||
|
).last()
|
||||||
|
|
||||||
|
|
||||||
|
class Session(models.Model):
|
||||||
|
customer: Customer = models.ForeignKey(Customer, on_delete=CASCADE)
|
||||||
|
stripe_session_id: str = models.CharField(max_length=255, unique=True)
|
||||||
|
payment_intent = models.ForeignKey("PaymentIntent", null=True, on_delete=CASCADE)
|
||||||
|
|
||||||
|
UPGRADE_FROM_BILLING_PAGE = 1
|
||||||
|
RETRY_UPGRADE_WITH_ANOTHER_PAYMENT_METHOD = 10
|
||||||
|
FREE_TRIAL_UPGRADE_FROM_BILLING_PAGE = 20
|
||||||
|
FREE_TRIAL_UPGRADE_FROM_ONBOARDING_PAGE = 30
|
||||||
|
CARD_UPDATE_FROM_BILLING_PAGE = 40
|
||||||
|
type: int = models.SmallIntegerField()
|
||||||
|
|
||||||
|
CREATED = 1
|
||||||
|
COMPLETED = 10
|
||||||
|
status: int = models.SmallIntegerField(default=CREATED)
|
||||||
|
|
||||||
|
def get_status_as_string(self) -> str:
|
||||||
|
return {Session.CREATED: "created", Session.COMPLETED: "completed"}[self.status]
|
||||||
|
|
||||||
|
def get_type_as_string(self) -> str:
|
||||||
|
return {
|
||||||
|
Session.UPGRADE_FROM_BILLING_PAGE: "upgrade_from_billing_page",
|
||||||
|
Session.RETRY_UPGRADE_WITH_ANOTHER_PAYMENT_METHOD: "retry_upgrade_with_another_payment_method",
|
||||||
|
Session.FREE_TRIAL_UPGRADE_FROM_BILLING_PAGE: "free_trial_upgrade_from_billing_page",
|
||||||
|
Session.FREE_TRIAL_UPGRADE_FROM_ONBOARDING_PAGE: "free_trial_upgrade_from_onboarding_page",
|
||||||
|
Session.CARD_UPDATE_FROM_BILLING_PAGE: "card_update_from_billing_page",
|
||||||
|
}[self.type]
|
||||||
|
|
||||||
|
def to_dict(self) -> Dict[str, Any]:
|
||||||
|
session_dict: Dict[str, Any] = {}
|
||||||
|
|
||||||
|
session_dict["status"] = self.get_status_as_string()
|
||||||
|
session_dict["type"] = self.get_type_as_string()
|
||||||
|
if self.payment_intent:
|
||||||
|
session_dict["stripe_payment_intent_id"] = self.payment_intent.stripe_payment_intent_id
|
||||||
|
event = self.get_last_associated_event()
|
||||||
|
if event is not None:
|
||||||
|
session_dict["event_handler"] = event.get_event_handler_details_as_dict()
|
||||||
|
return session_dict
|
||||||
|
|
||||||
|
def get_last_associated_event(self) -> Optional[Event]:
|
||||||
|
if self.status == Session.CREATED:
|
||||||
|
return None
|
||||||
|
return get_last_associated_event_by_type(self, "checkout.session.completed")
|
||||||
|
|
||||||
|
|
||||||
|
class PaymentIntent(models.Model):
|
||||||
|
customer: Customer = models.ForeignKey(Customer, on_delete=CASCADE)
|
||||||
|
stripe_payment_intent_id: str = models.CharField(max_length=255, unique=True)
|
||||||
|
|
||||||
|
REQUIRES_PAYMENT_METHOD = 1
|
||||||
|
REQUIRES_CONFIRMATION = 20
|
||||||
|
REQUIRES_ACTION = 30
|
||||||
|
PROCESSING = 40
|
||||||
|
REQUIRES_CAPTURE = 50
|
||||||
|
CANCELLED = 60
|
||||||
|
SUCCEEDED = 70
|
||||||
|
|
||||||
|
status: int = models.SmallIntegerField()
|
||||||
|
last_payment_error = models.JSONField(default=None, null=True)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def get_status_integer_from_status_text(cls, status_text: str) -> int:
|
||||||
|
return getattr(cls, status_text.upper())
|
||||||
|
|
||||||
|
def get_status_as_string(self) -> str:
|
||||||
|
return {
|
||||||
|
PaymentIntent.REQUIRES_PAYMENT_METHOD: "requires_payment_method",
|
||||||
|
PaymentIntent.REQUIRES_CONFIRMATION: "requires_confirmation",
|
||||||
|
PaymentIntent.REQUIRES_ACTION: "requires_action",
|
||||||
|
PaymentIntent.PROCESSING: "processing",
|
||||||
|
PaymentIntent.REQUIRES_CAPTURE: "requires_capture",
|
||||||
|
PaymentIntent.CANCELLED: "cancelled",
|
||||||
|
PaymentIntent.SUCCEEDED: "succeeded",
|
||||||
|
}[self.status]
|
||||||
|
|
||||||
|
def get_last_associated_event(self) -> Optional[Event]:
|
||||||
|
if self.status == PaymentIntent.SUCCEEDED:
|
||||||
|
event_type = "payment_intent.succeeded"
|
||||||
|
elif self.status == PaymentIntent.REQUIRES_PAYMENT_METHOD:
|
||||||
|
event_type = "payment_intent.payment_failed"
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
return get_last_associated_event_by_type(self, event_type)
|
||||||
|
|
||||||
|
def to_dict(self) -> Dict[str, Any]:
|
||||||
|
payment_intent_dict: Dict[str, Any] = {}
|
||||||
|
payment_intent_dict["status"] = self.get_status_as_string()
|
||||||
|
event = self.get_last_associated_event()
|
||||||
|
if self.last_payment_error:
|
||||||
|
payment_intent_dict["last_payment_error"] = self.last_payment_error
|
||||||
|
if event is not None:
|
||||||
|
payment_intent_dict["event_handler"] = event.get_event_handler_details_as_dict()
|
||||||
|
return payment_intent_dict
|
||||||
|
|
||||||
|
|
||||||
class CustomerPlan(models.Model):
|
class CustomerPlan(models.Model):
|
||||||
"""
|
"""
|
||||||
This is for storing most of the fiddly details
|
This is for storing most of the fiddly details
|
||||||
|
|||||||
@@ -1,117 +0,0 @@
|
|||||||
{
|
|
||||||
"amount": 7200,
|
|
||||||
"amount_captured": 7200,
|
|
||||||
"amount_refunded": 0,
|
|
||||||
"application": null,
|
|
||||||
"application_fee": null,
|
|
||||||
"application_fee_amount": null,
|
|
||||||
"balance_transaction": "txn_NORMALIZED00000000000001",
|
|
||||||
"billing_details": {
|
|
||||||
"address": {
|
|
||||||
"city": "Pacific",
|
|
||||||
"country": "United States",
|
|
||||||
"line1": "Under the sea,",
|
|
||||||
"line2": null,
|
|
||||||
"postal_code": "33333",
|
|
||||||
"state": null
|
|
||||||
},
|
|
||||||
"email": null,
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"phone": null
|
|
||||||
},
|
|
||||||
"calculated_statement_descriptor": "STRIPE* ZULIP STANDARD",
|
|
||||||
"captured": true,
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"description": "Upgrade to Zulip Standard, $12.0 x 6",
|
|
||||||
"destination": null,
|
|
||||||
"dispute": null,
|
|
||||||
"disputed": false,
|
|
||||||
"failure_code": null,
|
|
||||||
"failure_message": null,
|
|
||||||
"fraud_details": {},
|
|
||||||
"id": "ch_NORMALIZED00000000000001",
|
|
||||||
"invoice": null,
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "charge",
|
|
||||||
"on_behalf_of": null,
|
|
||||||
"order": null,
|
|
||||||
"outcome": {
|
|
||||||
"network_status": "approved_by_network",
|
|
||||||
"reason": null,
|
|
||||||
"risk_level": "normal",
|
|
||||||
"risk_score": 0,
|
|
||||||
"seller_message": "Payment complete.",
|
|
||||||
"type": "authorized"
|
|
||||||
},
|
|
||||||
"paid": true,
|
|
||||||
"payment_intent": null,
|
|
||||||
"payment_method": "card_NORMALIZED00000000000001",
|
|
||||||
"payment_method_details": {
|
|
||||||
"card": {
|
|
||||||
"brand": "visa",
|
|
||||||
"checks": {
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_postal_code_check": "pass",
|
|
||||||
"cvc_check": "pass"
|
|
||||||
},
|
|
||||||
"country": "US",
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"installments": null,
|
|
||||||
"last4": "4242",
|
|
||||||
"network": "visa",
|
|
||||||
"three_d_secure": null,
|
|
||||||
"wallet": null
|
|
||||||
},
|
|
||||||
"type": "card"
|
|
||||||
},
|
|
||||||
"receipt_email": "hamlet@zulip.com",
|
|
||||||
"receipt_number": null,
|
|
||||||
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000001/rcpt_NORMALIZED000000000000000000001",
|
|
||||||
"refunded": false,
|
|
||||||
"refunds": {
|
|
||||||
"data": [],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 0,
|
|
||||||
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
|
||||||
},
|
|
||||||
"review": null,
|
|
||||||
"shipping": null,
|
|
||||||
"source": {
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"source_transfer": null,
|
|
||||||
"statement_descriptor": "Zulip Standard",
|
|
||||||
"statement_descriptor_suffix": "Zulip Standard",
|
|
||||||
"status": "succeeded",
|
|
||||||
"transfer_data": null,
|
|
||||||
"transfer_group": null
|
|
||||||
}
|
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
{
|
|
||||||
"amount": 36000,
|
|
||||||
"amount_captured": 36000,
|
|
||||||
"amount_refunded": 0,
|
|
||||||
"application": null,
|
|
||||||
"application_fee": null,
|
|
||||||
"application_fee_amount": null,
|
|
||||||
"balance_transaction": "txn_NORMALIZED00000000000002",
|
|
||||||
"billing_details": {
|
|
||||||
"address": {
|
|
||||||
"city": "Pacific",
|
|
||||||
"country": "United States",
|
|
||||||
"line1": "Under the sea,",
|
|
||||||
"line2": null,
|
|
||||||
"postal_code": "33333",
|
|
||||||
"state": null
|
|
||||||
},
|
|
||||||
"email": null,
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"phone": null
|
|
||||||
},
|
|
||||||
"calculated_statement_descriptor": "STRIPE* ZULIP STANDARD",
|
|
||||||
"captured": true,
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"description": "Upgrade to Zulip Standard, $60.0 x 6",
|
|
||||||
"destination": null,
|
|
||||||
"dispute": null,
|
|
||||||
"disputed": false,
|
|
||||||
"failure_code": null,
|
|
||||||
"failure_message": null,
|
|
||||||
"fraud_details": {},
|
|
||||||
"id": "ch_NORMALIZED00000000000002",
|
|
||||||
"invoice": null,
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "charge",
|
|
||||||
"on_behalf_of": null,
|
|
||||||
"order": null,
|
|
||||||
"outcome": {
|
|
||||||
"network_status": "approved_by_network",
|
|
||||||
"reason": null,
|
|
||||||
"risk_level": "normal",
|
|
||||||
"risk_score": 0,
|
|
||||||
"seller_message": "Payment complete.",
|
|
||||||
"type": "authorized"
|
|
||||||
},
|
|
||||||
"paid": true,
|
|
||||||
"payment_intent": null,
|
|
||||||
"payment_method": "card_NORMALIZED00000000000002",
|
|
||||||
"payment_method_details": {
|
|
||||||
"card": {
|
|
||||||
"brand": "visa",
|
|
||||||
"checks": {
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_postal_code_check": "pass",
|
|
||||||
"cvc_check": "pass"
|
|
||||||
},
|
|
||||||
"country": "US",
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"installments": null,
|
|
||||||
"last4": "4242",
|
|
||||||
"network": "visa",
|
|
||||||
"three_d_secure": null,
|
|
||||||
"wallet": null
|
|
||||||
},
|
|
||||||
"type": "card"
|
|
||||||
},
|
|
||||||
"receipt_email": "hamlet@zulip.com",
|
|
||||||
"receipt_number": null,
|
|
||||||
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000002/rcpt_NORMALIZED000000000000000000002",
|
|
||||||
"refunded": false,
|
|
||||||
"refunds": {
|
|
||||||
"data": [],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 0,
|
|
||||||
"url": "/v1/charges/ch_NORMALIZED00000000000002/refunds"
|
|
||||||
},
|
|
||||||
"review": null,
|
|
||||||
"shipping": null,
|
|
||||||
"source": {
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000002",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"source_transfer": null,
|
|
||||||
"statement_descriptor": "Zulip Standard",
|
|
||||||
"statement_descriptor_suffix": "Zulip Standard",
|
|
||||||
"status": "succeeded",
|
|
||||||
"transfer_data": null,
|
|
||||||
"transfer_group": null
|
|
||||||
}
|
|
||||||
@@ -10,18 +10,18 @@
|
|||||||
"balance_transaction": "txn_NORMALIZED00000000000001",
|
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||||
"billing_details": {
|
"billing_details": {
|
||||||
"address": {
|
"address": {
|
||||||
"city": "Pacific",
|
"city": null,
|
||||||
"country": "United States",
|
"country": null,
|
||||||
"line1": "Under the sea,",
|
"line1": null,
|
||||||
"line2": null,
|
"line2": null,
|
||||||
"postal_code": "33333",
|
"postal_code": null,
|
||||||
"state": null
|
"state": null
|
||||||
},
|
},
|
||||||
"email": null,
|
"email": null,
|
||||||
"name": "Ada Starr",
|
"name": null,
|
||||||
"phone": null
|
"phone": null
|
||||||
},
|
},
|
||||||
"calculated_statement_descriptor": "STRIPE* ZULIP STANDARD",
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
"captured": true,
|
"captured": true,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
@@ -36,7 +36,17 @@
|
|||||||
"id": "ch_NORMALIZED00000000000001",
|
"id": "ch_NORMALIZED00000000000001",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
"object": "charge",
|
"object": "charge",
|
||||||
"on_behalf_of": null,
|
"on_behalf_of": null,
|
||||||
"order": null,
|
"order": null,
|
||||||
@@ -49,14 +59,14 @@
|
|||||||
"type": "authorized"
|
"type": "authorized"
|
||||||
},
|
},
|
||||||
"paid": true,
|
"paid": true,
|
||||||
"payment_intent": null,
|
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||||
"payment_method": "card_NORMALIZED00000000000001",
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
"payment_method_details": {
|
"payment_method_details": {
|
||||||
"card": {
|
"card": {
|
||||||
"brand": "visa",
|
"brand": "visa",
|
||||||
"checks": {
|
"checks": {
|
||||||
"address_line1_check": "pass",
|
"address_line1_check": null,
|
||||||
"address_postal_code_check": "pass",
|
"address_postal_code_check": null,
|
||||||
"cvc_check": "pass"
|
"cvc_check": "pass"
|
||||||
},
|
},
|
||||||
"country": "US",
|
"country": "US",
|
||||||
@@ -85,34 +95,10 @@
|
|||||||
},
|
},
|
||||||
"review": null,
|
"review": null,
|
||||||
"shipping": null,
|
"shipping": null,
|
||||||
"source": {
|
"source": null,
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"source_transfer": null,
|
"source_transfer": null,
|
||||||
"statement_descriptor": "Zulip Standard",
|
"statement_descriptor": "Zulip Standard",
|
||||||
"statement_descriptor_suffix": "Zulip Standard",
|
"statement_descriptor_suffix": null,
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"transfer_group": null
|
"transfer_group": null
|
||||||
|
|||||||
@@ -10,18 +10,18 @@
|
|||||||
"balance_transaction": "txn_NORMALIZED00000000000002",
|
"balance_transaction": "txn_NORMALIZED00000000000002",
|
||||||
"billing_details": {
|
"billing_details": {
|
||||||
"address": {
|
"address": {
|
||||||
"city": "Pacific",
|
"city": null,
|
||||||
"country": "United States",
|
"country": null,
|
||||||
"line1": "Under the sea,",
|
"line1": null,
|
||||||
"line2": null,
|
"line2": null,
|
||||||
"postal_code": "33333",
|
"postal_code": null,
|
||||||
"state": null
|
"state": null
|
||||||
},
|
},
|
||||||
"email": null,
|
"email": null,
|
||||||
"name": "Ada Starr",
|
"name": null,
|
||||||
"phone": null
|
"phone": null
|
||||||
},
|
},
|
||||||
"calculated_statement_descriptor": "STRIPE* ZULIP STANDARD",
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
"captured": true,
|
"captured": true,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
@@ -36,7 +36,17 @@
|
|||||||
"id": "ch_NORMALIZED00000000000002",
|
"id": "ch_NORMALIZED00000000000002",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
"object": "charge",
|
"object": "charge",
|
||||||
"on_behalf_of": null,
|
"on_behalf_of": null,
|
||||||
"order": null,
|
"order": null,
|
||||||
@@ -49,14 +59,14 @@
|
|||||||
"type": "authorized"
|
"type": "authorized"
|
||||||
},
|
},
|
||||||
"paid": true,
|
"paid": true,
|
||||||
"payment_intent": null,
|
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||||
"payment_method": "card_NORMALIZED00000000000002",
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
"payment_method_details": {
|
"payment_method_details": {
|
||||||
"card": {
|
"card": {
|
||||||
"brand": "visa",
|
"brand": "visa",
|
||||||
"checks": {
|
"checks": {
|
||||||
"address_line1_check": "pass",
|
"address_line1_check": null,
|
||||||
"address_postal_code_check": "pass",
|
"address_postal_code_check": null,
|
||||||
"cvc_check": "pass"
|
"cvc_check": "pass"
|
||||||
},
|
},
|
||||||
"country": "US",
|
"country": "US",
|
||||||
@@ -85,34 +95,10 @@
|
|||||||
},
|
},
|
||||||
"review": null,
|
"review": null,
|
||||||
"shipping": null,
|
"shipping": null,
|
||||||
"source": {
|
"source": null,
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000002",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"source_transfer": null,
|
"source_transfer": null,
|
||||||
"statement_descriptor": "Zulip Standard",
|
"statement_descriptor": "Zulip Standard",
|
||||||
"statement_descriptor_suffix": "Zulip Standard",
|
"statement_descriptor_suffix": null,
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"transfer_group": null
|
"transfer_group": null
|
||||||
@@ -127,18 +113,18 @@
|
|||||||
"balance_transaction": "txn_NORMALIZED00000000000001",
|
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||||
"billing_details": {
|
"billing_details": {
|
||||||
"address": {
|
"address": {
|
||||||
"city": "Pacific",
|
"city": null,
|
||||||
"country": "United States",
|
"country": null,
|
||||||
"line1": "Under the sea,",
|
"line1": null,
|
||||||
"line2": null,
|
"line2": null,
|
||||||
"postal_code": "33333",
|
"postal_code": null,
|
||||||
"state": null
|
"state": null
|
||||||
},
|
},
|
||||||
"email": null,
|
"email": null,
|
||||||
"name": "Ada Starr",
|
"name": null,
|
||||||
"phone": null
|
"phone": null
|
||||||
},
|
},
|
||||||
"calculated_statement_descriptor": "STRIPE* ZULIP STANDARD",
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
"captured": true,
|
"captured": true,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
@@ -153,7 +139,17 @@
|
|||||||
"id": "ch_NORMALIZED00000000000001",
|
"id": "ch_NORMALIZED00000000000001",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
"object": "charge",
|
"object": "charge",
|
||||||
"on_behalf_of": null,
|
"on_behalf_of": null,
|
||||||
"order": null,
|
"order": null,
|
||||||
@@ -166,14 +162,14 @@
|
|||||||
"type": "authorized"
|
"type": "authorized"
|
||||||
},
|
},
|
||||||
"paid": true,
|
"paid": true,
|
||||||
"payment_intent": null,
|
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||||
"payment_method": "card_NORMALIZED00000000000001",
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
"payment_method_details": {
|
"payment_method_details": {
|
||||||
"card": {
|
"card": {
|
||||||
"brand": "visa",
|
"brand": "visa",
|
||||||
"checks": {
|
"checks": {
|
||||||
"address_line1_check": "pass",
|
"address_line1_check": null,
|
||||||
"address_postal_code_check": "pass",
|
"address_postal_code_check": null,
|
||||||
"cvc_check": "pass"
|
"cvc_check": "pass"
|
||||||
},
|
},
|
||||||
"country": "US",
|
"country": "US",
|
||||||
@@ -202,34 +198,10 @@
|
|||||||
},
|
},
|
||||||
"review": null,
|
"review": null,
|
||||||
"shipping": null,
|
"shipping": null,
|
||||||
"source": {
|
"source": null,
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"source_transfer": null,
|
"source_transfer": null,
|
||||||
"statement_descriptor": "Zulip Standard",
|
"statement_descriptor": "Zulip Standard",
|
||||||
"statement_descriptor_suffix": "Zulip Standard",
|
"statement_descriptor_suffix": null,
|
||||||
"status": "succeeded",
|
"status": "succeeded",
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"transfer_group": null
|
"transfer_group": null
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"balance": 0,
|
"balance": 0,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": null,
|
"currency": null,
|
||||||
"default_source": "card_NORMALIZED00000000000001",
|
"default_source": null,
|
||||||
"delinquent": false,
|
"delinquent": false,
|
||||||
"description": "zulip (Zulip Dev)",
|
"description": "zulip (Zulip Dev)",
|
||||||
"discount": null,
|
"discount": null,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"balance": 0,
|
"balance": 0,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": null,
|
"currency": null,
|
||||||
"default_source": "card_NORMALIZED00000000000001",
|
"default_source": null,
|
||||||
"delinquent": false,
|
"delinquent": false,
|
||||||
"description": "zulip (Zulip Dev)",
|
"description": "zulip (Zulip Dev)",
|
||||||
"discount": null,
|
"discount": null,
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
"balance": 0,
|
"balance": 0,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"default_source": "card_NORMALIZED00000000000002",
|
"default_source": null,
|
||||||
"delinquent": false,
|
"delinquent": false,
|
||||||
"description": "zulip (Zulip Dev)",
|
"description": "zulip (Zulip Dev)",
|
||||||
"discount": null,
|
"discount": null,
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
"invoice_prefix": "NORMA01",
|
"invoice_prefix": "NORMA01",
|
||||||
"invoice_settings": {
|
"invoice_settings": {
|
||||||
"custom_fields": null,
|
"custom_fields": null,
|
||||||
"default_payment_method": null,
|
"default_payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
"footer": null
|
"footer": null
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
@@ -2,32 +2,8 @@
|
|||||||
"address": null,
|
"address": null,
|
||||||
"balance": 0,
|
"balance": 0,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": null,
|
||||||
"default_source": {
|
"default_source": null,
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"delinquent": false,
|
"delinquent": false,
|
||||||
"description": "zulip (Zulip Dev)",
|
"description": "zulip (Zulip Dev)",
|
||||||
"discount": null,
|
"discount": null,
|
||||||
@@ -45,43 +21,10 @@
|
|||||||
"realm_str": "zulip"
|
"realm_str": "zulip"
|
||||||
},
|
},
|
||||||
"name": null,
|
"name": null,
|
||||||
"next_invoice_sequence": 2,
|
"next_invoice_sequence": 1,
|
||||||
"object": "customer",
|
"object": "customer",
|
||||||
"phone": null,
|
"phone": null,
|
||||||
"preferred_locales": [],
|
"preferred_locales": [],
|
||||||
"shipping": null,
|
"shipping": null,
|
||||||
"sources": {
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 1,
|
|
||||||
"url": "/v1/customers/cus_NORMALIZED0001/sources"
|
|
||||||
},
|
|
||||||
"tax_exempt": "none"
|
"tax_exempt": "none"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,196 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 0,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 0,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": true,
|
||||||
|
"auto_advance": false,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"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,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED000000000000000180j7F",
|
||||||
|
"id": "in_NORMALIZED00000000000001",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED000000000000000180j7F/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 48000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000001",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": -48000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Payment (Card ending in 4242)",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000002",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000002",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": -48000,
|
||||||
|
"unit_amount_decimal": "-48000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 1,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 2,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0001",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "paid",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": 1000000000,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 0,
|
||||||
|
"tax": null,
|
||||||
|
"total": 0,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6uA4KHR4JzRvHrJlx11S",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 1,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0001",
|
||||||
|
"idempotency_key": "ec9c13e3-3653-4487-9495-bfb3f037ab7f"
|
||||||
|
},
|
||||||
|
"type": "invoice.payment_succeeded"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,702 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 7200,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 7200,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"canceled_at": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"capture_method": "automatic",
|
||||||
|
"charges": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 7200,
|
||||||
|
"amount_captured": 7200,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $12.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000001/rcpt_NORMALIZED000000000000000000001",
|
||||||
|
"refunded": false,
|
||||||
|
"refunds": {
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 0,
|
||||||
|
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
||||||
|
},
|
||||||
|
"review": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"source_transfer": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
|
||||||
|
},
|
||||||
|
"client_secret": "pi_NORMALIZED00000000000001_secret_9VY1UxiA1u2E4iwWriDWdKWb2",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $12.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq6zA4KHR4JzRv050KO5J6",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 2,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0002",
|
||||||
|
"idempotency_key": "8e523cb2-1aac-4161-a7bb-aaae35a948a9"
|
||||||
|
},
|
||||||
|
"type": "payment_intent.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 7200,
|
||||||
|
"amount_captured": 7200,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $12.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000001/rcpt_NORMALIZED000000000000000000001",
|
||||||
|
"refunded": false,
|
||||||
|
"refunds": {
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 0,
|
||||||
|
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
||||||
|
},
|
||||||
|
"review": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"source_transfer": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq6zA4KHR4JzRv0wGvTlkQ",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 2,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0002",
|
||||||
|
"idempotency_key": "8e523cb2-1aac-4161-a7bb-aaae35a948a9"
|
||||||
|
},
|
||||||
|
"type": "charge.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"footer": 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"
|
||||||
|
},
|
||||||
|
"previous_attributes": {
|
||||||
|
"invoice_settings": {
|
||||||
|
"default_payment_method": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq74A4KHR4JzRvm93ZKSdv",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 1,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0003",
|
||||||
|
"idempotency_key": "0dd55235-9a02-4ebe-bc91-edbbd3e1681a"
|
||||||
|
},
|
||||||
|
"type": "customer.updated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq71A4KHR4JzRvGNPaENVK_secret_K86JwqacIutOEOSjrEfAOZWcYc7BcSI",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq71A4KHR4JzRvGNPaENVK",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq71A4KHR4JzRvCn2k1wNg",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq72A4KHR4JzRvNe7mNYyB",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0004",
|
||||||
|
"idempotency_key": "ab1469b0-b668-4ecc-bde9-bd50661b02c6"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq72A4KHR4JzRv7kD6MOJr",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0004",
|
||||||
|
"idempotency_key": "ab1469b0-b668-4ecc-bde9-bd50661b02c6"
|
||||||
|
},
|
||||||
|
"type": "payment_method.attached"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq71A4KHR4JzRvGNPaENVK_secret_K86JwqacIutOEOSjrEfAOZWcYc7BcSI",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq71A4KHR4JzRvGNPaENVK",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq71A4KHR4JzRvCn2k1wNg",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq72A4KHR4JzRvAGYaiiBM",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0004",
|
||||||
|
"idempotency_key": "ab1469b0-b668-4ecc-bde9-bd50661b02c6"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq6zA4KHR4JzRv5oPqvFXV_secret_K86JgWJKzWddYfQ09PLQRh8OEFpsiRe",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq6zA4KHR4JzRv5oPqvFXV",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq70A4KHR4JzRvTwfHByZw",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0005",
|
||||||
|
"idempotency_key": "f8a3352d-0e9a-4d56-b7cc-14b3e8599413"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 7200,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": 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_9VY1UxiA1u2E4iwWriDWdKWb2",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $12.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq6zA4KHR4JzRv01AviF4k",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0006",
|
||||||
|
"idempotency_key": "50112eb4-9dca-4a47-8f51-a0585edf8f37"
|
||||||
|
},
|
||||||
|
"type": "payment_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6yA4KHR4JzRv4oSDpYVk",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0007",
|
||||||
|
"idempotency_key": "8c153a11-8f3b-4612-8f31-525678a20fb1"
|
||||||
|
},
|
||||||
|
"type": "customer.created"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,196 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 0,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 0,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": true,
|
||||||
|
"auto_advance": false,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "charge_automatically",
|
||||||
|
"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": [],
|
||||||
|
"description": null,
|
||||||
|
"discount": null,
|
||||||
|
"discounts": [],
|
||||||
|
"due_date": null,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i",
|
||||||
|
"id": "in_NORMALIZED00000000000002",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 7200,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000003",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000003",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": 1200,
|
||||||
|
"unit_amount_decimal": "1200"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 6,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": -7200,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Payment (Card ending in 4242)",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000004",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000004",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": -7200,
|
||||||
|
"unit_amount_decimal": "-7200"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 1,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 2,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0003",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "paid",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": 1000000000,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 0,
|
||||||
|
"tax": null,
|
||||||
|
"total": 0,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7BA4KHR4JzRvNqxiA1Mo",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0008",
|
||||||
|
"idempotency_key": "7166c4bd-ba4f-4bc3-b397-f69459033432"
|
||||||
|
},
|
||||||
|
"type": "invoice.payment_succeeded"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,657 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 36000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 36000,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"canceled_at": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"capture_method": "automatic",
|
||||||
|
"charges": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 36000,
|
||||||
|
"amount_captured": 36000,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000002",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $60.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000002/rcpt_NORMALIZED000000000000000000002",
|
||||||
|
"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 Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
|
||||||
|
},
|
||||||
|
"client_secret": "pi_NORMALIZED00000000000002_secret_4AXq7WiHGUXFdtcaeAHpf3UVs",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $60.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq7EA4KHR4JzRv0N1QkUG3",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 1,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0012",
|
||||||
|
"idempotency_key": "5b361be1-7a7d-4795-a37a-e9a208672371"
|
||||||
|
},
|
||||||
|
"type": "payment_intent.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 36000,
|
||||||
|
"amount_captured": 36000,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000002",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $60.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000002/rcpt_NORMALIZED000000000000000000002",
|
||||||
|
"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 Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq7EA4KHR4JzRv0IC9Qe9t",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 2,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0012",
|
||||||
|
"idempotency_key": "5b361be1-7a7d-4795-a37a-e9a208672371"
|
||||||
|
},
|
||||||
|
"type": "charge.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"footer": 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"
|
||||||
|
},
|
||||||
|
"previous_attributes": {
|
||||||
|
"invoice_settings": {
|
||||||
|
"default_payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7JA4KHR4JzRvXhpFcEbo",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0013",
|
||||||
|
"idempotency_key": "f410ad9b-4dde-4f6d-9bcd-1a03198f7b78"
|
||||||
|
},
|
||||||
|
"type": "customer.updated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7GA4KHR4JzRv01GUDkwn_secret_K86JHEXUhIQjgeL6YUOYbu78g7K1wgz",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7GA4KHR4JzRv01GUDkwn",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq7GA4KHR4JzRvIxxtRvFQ",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7HA4KHR4JzRvKiXTFVzJ",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0014",
|
||||||
|
"idempotency_key": "13cbf013-3957-408b-8a63-d745f64794f5"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7HA4KHR4JzRvZLUMooxc",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0014",
|
||||||
|
"idempotency_key": "13cbf013-3957-408b-8a63-d745f64794f5"
|
||||||
|
},
|
||||||
|
"type": "payment_method.attached"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7GA4KHR4JzRv01GUDkwn_secret_K86JHEXUhIQjgeL6YUOYbu78g7K1wgz",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7GA4KHR4JzRv01GUDkwn",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq7GA4KHR4JzRvIxxtRvFQ",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7HA4KHR4JzRvVIjEE36V",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0014",
|
||||||
|
"idempotency_key": "13cbf013-3957-408b-8a63-d745f64794f5"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7EA4KHR4JzRvnIlHU7L0_secret_K86JTEZqWx10YlEVyd9XMsLPbmFm2Qf",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7EA4KHR4JzRvnIlHU7L0",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7FA4KHR4JzRvhIWraTUX",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0015",
|
||||||
|
"idempotency_key": "e88981a2-e582-4a10-946b-9b7b6b71e10f"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 36000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": 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_4AXq7WiHGUXFdtcaeAHpf3UVs",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $60.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq7EA4KHR4JzRv0ptaVTHc",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0016",
|
||||||
|
"idempotency_key": "ff8644c4-4950-4486-b9a0-e686371e72b6"
|
||||||
|
},
|
||||||
|
"type": "payment_intent.created"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 0,
|
"amount_due": 0,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
"ending_balance": null,
|
"ending_balance": null,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": null,
|
"hosted_invoice_url": null,
|
||||||
"id": "in_NORMALIZED00000000000001",
|
"id": "in_NORMALIZED00000000000002",
|
||||||
"invoice_pdf": null,
|
"invoice_pdf": null,
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000001",
|
"id": "il_NORMALIZED00000000000003",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000001",
|
"invoice_item": "ii_NORMALIZED00000000000003",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -64,14 +64,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000001",
|
"id": "price_NORMALIZED00000000000003",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0001",
|
"product": "prod_NORMALIZED0003",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -92,8 +93,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000002",
|
"id": "il_NORMALIZED00000000000004",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
"invoice_item": "ii_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -107,14 +108,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000002",
|
"id": "price_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0002",
|
"product": "prod_NORMALIZED0004",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -132,7 +134,7 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 2,
|
"total_count": 2,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -168,5 +170,5 @@
|
|||||||
"total_discount_amounts": [],
|
"total_discount_amounts": [],
|
||||||
"total_tax_amounts": [],
|
"total_tax_amounts": [],
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"webhooks_delivered_at": 1000000000
|
"webhooks_delivered_at": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 0,
|
"amount_due": 0,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
"ending_balance": null,
|
"ending_balance": null,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": null,
|
"hosted_invoice_url": null,
|
||||||
"id": "in_NORMALIZED00000000000002",
|
"id": "in_NORMALIZED00000000000003",
|
||||||
"invoice_pdf": null,
|
"invoice_pdf": null,
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000003",
|
"id": "il_NORMALIZED00000000000005",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000003",
|
"invoice_item": "ii_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -64,14 +64,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000003",
|
"id": "price_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0003",
|
"product": "prod_NORMALIZED0005",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -92,8 +93,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000004",
|
"id": "il_NORMALIZED00000000000006",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000004",
|
"invoice_item": "ii_NORMALIZED00000000000006",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -107,14 +108,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000004",
|
"id": "price_NORMALIZED00000000000006",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0004",
|
"product": "prod_NORMALIZED0006",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -132,7 +134,7 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 2,
|
"total_count": 2,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -168,5 +170,5 @@
|
|||||||
"total_discount_amounts": [],
|
"total_discount_amounts": [],
|
||||||
"total_tax_amounts": [],
|
"total_tax_amounts": [],
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"webhooks_delivered_at": 1000000000
|
"webhooks_delivered_at": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 24000,
|
"amount_due": 24000,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
"ending_balance": null,
|
"ending_balance": null,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": null,
|
"hosted_invoice_url": null,
|
||||||
"id": "in_NORMALIZED00000000000003",
|
"id": "in_NORMALIZED00000000000004",
|
||||||
"invoice_pdf": null,
|
"invoice_pdf": null,
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000005",
|
"id": "il_NORMALIZED00000000000007",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000005",
|
"invoice_item": "ii_NORMALIZED00000000000007",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -64,14 +64,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000005",
|
"id": "price_NORMALIZED00000000000007",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0005",
|
"product": "prod_NORMALIZED0007",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -89,7 +90,7 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 1,
|
"total_count": 1,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -125,5 +126,5 @@
|
|||||||
"total_discount_amounts": [],
|
"total_discount_amounts": [],
|
||||||
"total_tax_amounts": [],
|
"total_tax_amounts": [],
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"webhooks_delivered_at": 1000000000
|
"webhooks_delivered_at": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 0,
|
"amount_due": 0,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -36,9 +36,9 @@
|
|||||||
"due_date": null,
|
"due_date": null,
|
||||||
"ending_balance": 0,
|
"ending_balance": 0,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001WK1Jr",
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i",
|
||||||
"id": "in_NORMALIZED00000000000001",
|
"id": "in_NORMALIZED00000000000002",
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001WK1Jr/pdf",
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i/pdf",
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
"data": [
|
"data": [
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000001",
|
"id": "il_NORMALIZED00000000000003",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000001",
|
"invoice_item": "ii_NORMALIZED00000000000003",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -64,14 +64,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000001",
|
"id": "price_NORMALIZED00000000000003",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0001",
|
"product": "prod_NORMALIZED0003",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -92,8 +93,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000002",
|
"id": "il_NORMALIZED00000000000004",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
"invoice_item": "ii_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -107,14 +108,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000002",
|
"id": "price_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0002",
|
"product": "prod_NORMALIZED0004",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -132,12 +134,12 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 2,
|
"total_count": 2,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"next_payment_attempt": null,
|
"next_payment_attempt": null,
|
||||||
"number": "NORMALI-0001",
|
"number": "NORMALI-0003",
|
||||||
"object": "invoice",
|
"object": "invoice",
|
||||||
"on_behalf_of": null,
|
"on_behalf_of": null,
|
||||||
"paid": true,
|
"paid": true,
|
||||||
@@ -168,5 +170,5 @@
|
|||||||
"total_discount_amounts": [],
|
"total_discount_amounts": [],
|
||||||
"total_tax_amounts": [],
|
"total_tax_amounts": [],
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"webhooks_delivered_at": 1000000000
|
"webhooks_delivered_at": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 0,
|
"amount_due": 0,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -36,9 +36,9 @@
|
|||||||
"due_date": null,
|
"due_date": null,
|
||||||
"ending_balance": 0,
|
"ending_balance": 0,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000002690Fc",
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003rB7PI",
|
||||||
"id": "in_NORMALIZED00000000000002",
|
"id": "in_NORMALIZED00000000000003",
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000002690Fc/pdf",
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003rB7PI/pdf",
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
"data": [
|
"data": [
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000003",
|
"id": "il_NORMALIZED00000000000005",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000003",
|
"invoice_item": "ii_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -64,14 +64,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000003",
|
"id": "price_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0003",
|
"product": "prod_NORMALIZED0005",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -92,8 +93,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000004",
|
"id": "il_NORMALIZED00000000000006",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000004",
|
"invoice_item": "ii_NORMALIZED00000000000006",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -107,14 +108,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000004",
|
"id": "price_NORMALIZED00000000000006",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0004",
|
"product": "prod_NORMALIZED0006",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -132,12 +134,12 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 2,
|
"total_count": 2,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"next_payment_attempt": null,
|
"next_payment_attempt": null,
|
||||||
"number": "NORMALI-0002",
|
"number": "NORMALI-0004",
|
||||||
"object": "invoice",
|
"object": "invoice",
|
||||||
"on_behalf_of": null,
|
"on_behalf_of": null,
|
||||||
"paid": true,
|
"paid": true,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 24000,
|
"amount_due": 24000,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -36,9 +36,9 @@
|
|||||||
"due_date": null,
|
"due_date": null,
|
||||||
"ending_balance": 0,
|
"ending_balance": 0,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003Nv3oI",
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000004A1tY0",
|
||||||
"id": "in_NORMALIZED00000000000003",
|
"id": "in_NORMALIZED00000000000004",
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003Nv3oI/pdf",
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000004A1tY0/pdf",
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
"data": [
|
"data": [
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000005",
|
"id": "il_NORMALIZED00000000000007",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000005",
|
"invoice_item": "ii_NORMALIZED00000000000007",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -64,14 +64,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000005",
|
"id": "price_NORMALIZED00000000000007",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0005",
|
"product": "prod_NORMALIZED0007",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -89,16 +90,16 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 1,
|
"total_count": 1,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"next_payment_attempt": 1000000000,
|
"next_payment_attempt": 1000000000,
|
||||||
"number": "NORMALI-0003",
|
"number": "NORMALI-0005",
|
||||||
"object": "invoice",
|
"object": "invoice",
|
||||||
"on_behalf_of": null,
|
"on_behalf_of": null,
|
||||||
"paid": false,
|
"paid": false,
|
||||||
"payment_intent": "pi_NORMALIZED00000000000001",
|
"payment_intent": "pi_NORMALIZED00000000000003",
|
||||||
"payment_settings": {
|
"payment_settings": {
|
||||||
"payment_method_options": null,
|
"payment_method_options": null,
|
||||||
"payment_method_types": null
|
"payment_method_types": null
|
||||||
@@ -125,5 +126,5 @@
|
|||||||
"total_discount_amounts": [],
|
"total_discount_amounts": [],
|
||||||
"total_tax_amounts": [],
|
"total_tax_amounts": [],
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"webhooks_delivered_at": 1000000000
|
"webhooks_delivered_at": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,178 +1,5 @@
|
|||||||
{
|
{
|
||||||
"data": [
|
"data": [],
|
||||||
{
|
|
||||||
"account_country": "US",
|
|
||||||
"account_name": null,
|
|
||||||
"account_tax_ids": null,
|
|
||||||
"amount_due": 0,
|
|
||||||
"amount_paid": 0,
|
|
||||||
"amount_remaining": 0,
|
|
||||||
"application_fee_amount": null,
|
|
||||||
"attempt_count": 0,
|
|
||||||
"attempted": true,
|
|
||||||
"auto_advance": false,
|
|
||||||
"automatic_tax": {
|
|
||||||
"enabled": false,
|
|
||||||
"status": null
|
|
||||||
},
|
|
||||||
"billing_reason": "manual",
|
|
||||||
"charge": null,
|
|
||||||
"collection_method": "charge_automatically",
|
|
||||||
"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": [],
|
|
||||||
"description": null,
|
|
||||||
"discount": null,
|
|
||||||
"discounts": [],
|
|
||||||
"due_date": null,
|
|
||||||
"ending_balance": 0,
|
|
||||||
"footer": null,
|
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001WK1Jr",
|
|
||||||
"id": "in_NORMALIZED00000000000001",
|
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001WK1Jr/pdf",
|
|
||||||
"last_finalization_error": null,
|
|
||||||
"lines": {
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"amount": 7200,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Zulip Standard",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000001",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000001",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1000000000,
|
|
||||||
"start": 1000000000
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000001",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0001",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": 1200,
|
|
||||||
"unit_amount_decimal": "1200"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 6,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"amount": -7200,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Payment (Card ending in 4242)",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000002",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1000000000,
|
|
||||||
"start": 1000000000
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000002",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0002",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": -7200,
|
|
||||||
"unit_amount_decimal": "-7200"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 1,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 2,
|
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
|
||||||
},
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"next_payment_attempt": null,
|
|
||||||
"number": "NORMALI-0001",
|
|
||||||
"object": "invoice",
|
|
||||||
"on_behalf_of": null,
|
|
||||||
"paid": true,
|
|
||||||
"payment_intent": null,
|
|
||||||
"payment_settings": {
|
|
||||||
"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,
|
|
||||||
"starting_balance": 0,
|
|
||||||
"statement_descriptor": "Zulip Standard",
|
|
||||||
"status": "paid",
|
|
||||||
"status_transitions": {
|
|
||||||
"finalized_at": 1000000000,
|
|
||||||
"marked_uncollectible_at": null,
|
|
||||||
"paid_at": 1000000000,
|
|
||||||
"voided_at": null
|
|
||||||
},
|
|
||||||
"subscription": null,
|
|
||||||
"subtotal": 0,
|
|
||||||
"tax": null,
|
|
||||||
"total": 0,
|
|
||||||
"total_discount_amounts": [],
|
|
||||||
"total_tax_amounts": [],
|
|
||||||
"transfer_data": null,
|
|
||||||
"webhooks_delivered_at": 1000000000
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"url": "/v1/invoices"
|
"url": "/v1/invoices"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"data": [
|
"data": [
|
||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 0,
|
"amount_due": 0,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -38,14 +38,14 @@
|
|||||||
"due_date": null,
|
"due_date": null,
|
||||||
"ending_balance": 0,
|
"ending_balance": 0,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000002690Fc",
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i",
|
||||||
"id": "in_NORMALIZED00000000000002",
|
"id": "in_NORMALIZED00000000000002",
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000002690Fc/pdf",
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i/pdf",
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
"data": [
|
"data": [
|
||||||
{
|
{
|
||||||
"amount": 36000,
|
"amount": 7200,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"description": "Zulip Standard",
|
"description": "Zulip Standard",
|
||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
@@ -57,8 +57,8 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
"period": {
|
"period": {
|
||||||
"end": 1357095845,
|
"end": 1000000000,
|
||||||
"start": 1325473445
|
"start": 1000000000
|
||||||
},
|
},
|
||||||
"plan": null,
|
"plan": null,
|
||||||
"price": {
|
"price": {
|
||||||
@@ -74,11 +74,12 @@
|
|||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0003",
|
"product": "prod_NORMALIZED0003",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
"unit_amount": 6000,
|
"unit_amount": 1200,
|
||||||
"unit_amount_decimal": "6000"
|
"unit_amount_decimal": "1200"
|
||||||
},
|
},
|
||||||
"proration": false,
|
"proration": false,
|
||||||
"quantity": 6,
|
"quantity": 6,
|
||||||
@@ -88,7 +89,7 @@
|
|||||||
"type": "invoiceitem"
|
"type": "invoiceitem"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amount": -36000,
|
"amount": -7200,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"description": "Payment (Card ending in 4242)",
|
"description": "Payment (Card ending in 4242)",
|
||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
@@ -117,178 +118,7 @@
|
|||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0004",
|
"product": "prod_NORMALIZED0004",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
"tiers_mode": null,
|
"tax_behavior": "unspecified",
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": -36000,
|
|
||||||
"unit_amount_decimal": "-36000"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 1,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 2,
|
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
|
||||||
},
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"next_payment_attempt": null,
|
|
||||||
"number": "NORMALI-0002",
|
|
||||||
"object": "invoice",
|
|
||||||
"on_behalf_of": null,
|
|
||||||
"paid": true,
|
|
||||||
"payment_intent": null,
|
|
||||||
"payment_settings": {
|
|
||||||
"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,
|
|
||||||
"starting_balance": 0,
|
|
||||||
"statement_descriptor": "Zulip Standard",
|
|
||||||
"status": "paid",
|
|
||||||
"status_transitions": {
|
|
||||||
"finalized_at": 1000000000,
|
|
||||||
"marked_uncollectible_at": null,
|
|
||||||
"paid_at": 1000000000,
|
|
||||||
"voided_at": null
|
|
||||||
},
|
|
||||||
"subscription": null,
|
|
||||||
"subtotal": 0,
|
|
||||||
"tax": null,
|
|
||||||
"total": 0,
|
|
||||||
"total_discount_amounts": [],
|
|
||||||
"total_tax_amounts": [],
|
|
||||||
"transfer_data": null,
|
|
||||||
"webhooks_delivered_at": 1000000000
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account_country": "US",
|
|
||||||
"account_name": null,
|
|
||||||
"account_tax_ids": null,
|
|
||||||
"amount_due": 0,
|
|
||||||
"amount_paid": 0,
|
|
||||||
"amount_remaining": 0,
|
|
||||||
"application_fee_amount": null,
|
|
||||||
"attempt_count": 0,
|
|
||||||
"attempted": true,
|
|
||||||
"auto_advance": false,
|
|
||||||
"automatic_tax": {
|
|
||||||
"enabled": false,
|
|
||||||
"status": null
|
|
||||||
},
|
|
||||||
"billing_reason": "manual",
|
|
||||||
"charge": null,
|
|
||||||
"collection_method": "charge_automatically",
|
|
||||||
"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": [],
|
|
||||||
"description": null,
|
|
||||||
"discount": null,
|
|
||||||
"discounts": [],
|
|
||||||
"due_date": null,
|
|
||||||
"ending_balance": 0,
|
|
||||||
"footer": null,
|
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001WK1Jr",
|
|
||||||
"id": "in_NORMALIZED00000000000001",
|
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001WK1Jr/pdf",
|
|
||||||
"last_finalization_error": null,
|
|
||||||
"lines": {
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"amount": 7200,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Zulip Standard",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000001",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000001",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1000000000,
|
|
||||||
"start": 1000000000
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000001",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0001",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": 1200,
|
|
||||||
"unit_amount_decimal": "1200"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 6,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"amount": -7200,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Payment (Card ending in 4242)",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000002",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1000000000,
|
|
||||||
"start": 1000000000
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000002",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0002",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -306,12 +136,12 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 2,
|
"total_count": 2,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"next_payment_attempt": null,
|
"next_payment_attempt": null,
|
||||||
"number": "NORMALI-0001",
|
"number": "NORMALI-0003",
|
||||||
"object": "invoice",
|
"object": "invoice",
|
||||||
"on_behalf_of": null,
|
"on_behalf_of": null,
|
||||||
"paid": true,
|
"paid": true,
|
||||||
|
|||||||
@@ -1,479 +1,5 @@
|
|||||||
{
|
{
|
||||||
"data": [
|
"data": [],
|
||||||
{
|
|
||||||
"account_country": "US",
|
|
||||||
"account_name": null,
|
|
||||||
"account_tax_ids": null,
|
|
||||||
"amount_due": 24000,
|
|
||||||
"amount_paid": 0,
|
|
||||||
"amount_remaining": 24000,
|
|
||||||
"application_fee_amount": null,
|
|
||||||
"attempt_count": 0,
|
|
||||||
"attempted": false,
|
|
||||||
"auto_advance": true,
|
|
||||||
"automatic_tax": {
|
|
||||||
"enabled": false,
|
|
||||||
"status": null
|
|
||||||
},
|
|
||||||
"billing_reason": "manual",
|
|
||||||
"charge": null,
|
|
||||||
"collection_method": "charge_automatically",
|
|
||||||
"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": [],
|
|
||||||
"description": null,
|
|
||||||
"discount": null,
|
|
||||||
"discounts": [],
|
|
||||||
"due_date": null,
|
|
||||||
"ending_balance": 0,
|
|
||||||
"footer": null,
|
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003Nv3oI",
|
|
||||||
"id": "in_NORMALIZED00000000000003",
|
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003Nv3oI/pdf",
|
|
||||||
"last_finalization_error": null,
|
|
||||||
"lines": {
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"amount": 24000,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Zulip Standard - renewal",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000005",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000005",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1388631845,
|
|
||||||
"start": 1357095845
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000005",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0005",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": 4000,
|
|
||||||
"unit_amount_decimal": "4000"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 6,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 1,
|
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
|
|
||||||
},
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"next_payment_attempt": 1000000000,
|
|
||||||
"number": "NORMALI-0003",
|
|
||||||
"object": "invoice",
|
|
||||||
"on_behalf_of": null,
|
|
||||||
"paid": false,
|
|
||||||
"payment_intent": "pi_NORMALIZED00000000000001",
|
|
||||||
"payment_settings": {
|
|
||||||
"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,
|
|
||||||
"starting_balance": 0,
|
|
||||||
"statement_descriptor": "Zulip Standard",
|
|
||||||
"status": "open",
|
|
||||||
"status_transitions": {
|
|
||||||
"finalized_at": 1000000000,
|
|
||||||
"marked_uncollectible_at": null,
|
|
||||||
"paid_at": null,
|
|
||||||
"voided_at": null
|
|
||||||
},
|
|
||||||
"subscription": null,
|
|
||||||
"subtotal": 24000,
|
|
||||||
"tax": null,
|
|
||||||
"total": 24000,
|
|
||||||
"total_discount_amounts": [],
|
|
||||||
"total_tax_amounts": [],
|
|
||||||
"transfer_data": null,
|
|
||||||
"webhooks_delivered_at": 1000000000
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account_country": "US",
|
|
||||||
"account_name": null,
|
|
||||||
"account_tax_ids": null,
|
|
||||||
"amount_due": 0,
|
|
||||||
"amount_paid": 0,
|
|
||||||
"amount_remaining": 0,
|
|
||||||
"application_fee_amount": null,
|
|
||||||
"attempt_count": 0,
|
|
||||||
"attempted": true,
|
|
||||||
"auto_advance": false,
|
|
||||||
"automatic_tax": {
|
|
||||||
"enabled": false,
|
|
||||||
"status": null
|
|
||||||
},
|
|
||||||
"billing_reason": "manual",
|
|
||||||
"charge": null,
|
|
||||||
"collection_method": "charge_automatically",
|
|
||||||
"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": [],
|
|
||||||
"description": null,
|
|
||||||
"discount": null,
|
|
||||||
"discounts": [],
|
|
||||||
"due_date": null,
|
|
||||||
"ending_balance": 0,
|
|
||||||
"footer": null,
|
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000002690Fc",
|
|
||||||
"id": "in_NORMALIZED00000000000002",
|
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000002690Fc/pdf",
|
|
||||||
"last_finalization_error": null,
|
|
||||||
"lines": {
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"amount": 36000,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Zulip Standard",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000003",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000003",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1357095845,
|
|
||||||
"start": 1325473445
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000003",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0003",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": 6000,
|
|
||||||
"unit_amount_decimal": "6000"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 6,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"amount": -36000,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Payment (Card ending in 4242)",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000004",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000004",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1000000000,
|
|
||||||
"start": 1000000000
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000004",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0004",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": -36000,
|
|
||||||
"unit_amount_decimal": "-36000"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 1,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 2,
|
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
|
||||||
},
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"next_payment_attempt": null,
|
|
||||||
"number": "NORMALI-0002",
|
|
||||||
"object": "invoice",
|
|
||||||
"on_behalf_of": null,
|
|
||||||
"paid": true,
|
|
||||||
"payment_intent": null,
|
|
||||||
"payment_settings": {
|
|
||||||
"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,
|
|
||||||
"starting_balance": 0,
|
|
||||||
"statement_descriptor": "Zulip Standard",
|
|
||||||
"status": "paid",
|
|
||||||
"status_transitions": {
|
|
||||||
"finalized_at": 1000000000,
|
|
||||||
"marked_uncollectible_at": null,
|
|
||||||
"paid_at": 1000000000,
|
|
||||||
"voided_at": null
|
|
||||||
},
|
|
||||||
"subscription": null,
|
|
||||||
"subtotal": 0,
|
|
||||||
"tax": null,
|
|
||||||
"total": 0,
|
|
||||||
"total_discount_amounts": [],
|
|
||||||
"total_tax_amounts": [],
|
|
||||||
"transfer_data": null,
|
|
||||||
"webhooks_delivered_at": 1000000000
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"account_country": "US",
|
|
||||||
"account_name": null,
|
|
||||||
"account_tax_ids": null,
|
|
||||||
"amount_due": 0,
|
|
||||||
"amount_paid": 0,
|
|
||||||
"amount_remaining": 0,
|
|
||||||
"application_fee_amount": null,
|
|
||||||
"attempt_count": 0,
|
|
||||||
"attempted": true,
|
|
||||||
"auto_advance": false,
|
|
||||||
"automatic_tax": {
|
|
||||||
"enabled": false,
|
|
||||||
"status": null
|
|
||||||
},
|
|
||||||
"billing_reason": "manual",
|
|
||||||
"charge": null,
|
|
||||||
"collection_method": "charge_automatically",
|
|
||||||
"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": [],
|
|
||||||
"description": null,
|
|
||||||
"discount": null,
|
|
||||||
"discounts": [],
|
|
||||||
"due_date": null,
|
|
||||||
"ending_balance": 0,
|
|
||||||
"footer": null,
|
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001WK1Jr",
|
|
||||||
"id": "in_NORMALIZED00000000000001",
|
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001WK1Jr/pdf",
|
|
||||||
"last_finalization_error": null,
|
|
||||||
"lines": {
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"amount": 7200,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Zulip Standard",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000001",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000001",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1000000000,
|
|
||||||
"start": 1000000000
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000001",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0001",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": 1200,
|
|
||||||
"unit_amount_decimal": "1200"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 6,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"amount": -7200,
|
|
||||||
"currency": "usd",
|
|
||||||
"description": "Payment (Card ending in 4242)",
|
|
||||||
"discount_amounts": [],
|
|
||||||
"discountable": false,
|
|
||||||
"discounts": [],
|
|
||||||
"id": "il_NORMALIZED00000000000002",
|
|
||||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "line_item",
|
|
||||||
"period": {
|
|
||||||
"end": 1000000000,
|
|
||||||
"start": 1000000000
|
|
||||||
},
|
|
||||||
"plan": null,
|
|
||||||
"price": {
|
|
||||||
"active": false,
|
|
||||||
"billing_scheme": "per_unit",
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"id": "price_NORMALIZED00000000000002",
|
|
||||||
"livemode": false,
|
|
||||||
"lookup_key": null,
|
|
||||||
"metadata": {},
|
|
||||||
"nickname": null,
|
|
||||||
"object": "price",
|
|
||||||
"product": "prod_NORMALIZED0002",
|
|
||||||
"recurring": null,
|
|
||||||
"tiers_mode": null,
|
|
||||||
"transform_quantity": null,
|
|
||||||
"type": "one_time",
|
|
||||||
"unit_amount": -7200,
|
|
||||||
"unit_amount_decimal": "-7200"
|
|
||||||
},
|
|
||||||
"proration": false,
|
|
||||||
"quantity": 1,
|
|
||||||
"subscription": null,
|
|
||||||
"tax_amounts": [],
|
|
||||||
"tax_rates": [],
|
|
||||||
"type": "invoiceitem"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 2,
|
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
|
||||||
},
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"next_payment_attempt": null,
|
|
||||||
"number": "NORMALI-0001",
|
|
||||||
"object": "invoice",
|
|
||||||
"on_behalf_of": null,
|
|
||||||
"paid": true,
|
|
||||||
"payment_intent": null,
|
|
||||||
"payment_settings": {
|
|
||||||
"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,
|
|
||||||
"starting_balance": 0,
|
|
||||||
"statement_descriptor": "Zulip Standard",
|
|
||||||
"status": "paid",
|
|
||||||
"status_transitions": {
|
|
||||||
"finalized_at": 1000000000,
|
|
||||||
"marked_uncollectible_at": null,
|
|
||||||
"paid_at": 1000000000,
|
|
||||||
"voided_at": null
|
|
||||||
},
|
|
||||||
"subscription": null,
|
|
||||||
"subtotal": 0,
|
|
||||||
"tax": null,
|
|
||||||
"total": 0,
|
|
||||||
"total_discount_amounts": [],
|
|
||||||
"total_tax_amounts": [],
|
|
||||||
"transfer_data": null,
|
|
||||||
"webhooks_delivered_at": 1000000000
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"url": "/v1/invoices"
|
"url": "/v1/invoices"
|
||||||
|
|||||||
@@ -0,0 +1,355 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 0,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 0,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": true,
|
||||||
|
"auto_advance": false,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "charge_automatically",
|
||||||
|
"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": [],
|
||||||
|
"description": null,
|
||||||
|
"discount": null,
|
||||||
|
"discounts": [],
|
||||||
|
"due_date": null,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003rB7PI",
|
||||||
|
"id": "in_NORMALIZED00000000000003",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003rB7PI/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 36000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000005",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000005",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1357095845,
|
||||||
|
"start": 1325473445
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"id": "price_NORMALIZED00000000000005",
|
||||||
|
"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": 6000,
|
||||||
|
"unit_amount_decimal": "6000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 6,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": -36000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Payment (Card ending in 4242)",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000006",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000006",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"id": "price_NORMALIZED00000000000006",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0006",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": -36000,
|
||||||
|
"unit_amount_decimal": "-36000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 1,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 2,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0004",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "paid",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": 1000000000,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 0,
|
||||||
|
"tax": null,
|
||||||
|
"total": 0,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": 1000000000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 0,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 0,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": true,
|
||||||
|
"auto_advance": false,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "charge_automatically",
|
||||||
|
"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": [],
|
||||||
|
"description": null,
|
||||||
|
"discount": null,
|
||||||
|
"discounts": [],
|
||||||
|
"due_date": null,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i",
|
||||||
|
"id": "in_NORMALIZED00000000000002",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 7200,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000003",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000003",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": 1200,
|
||||||
|
"unit_amount_decimal": "1200"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 6,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": -7200,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Payment (Card ending in 4242)",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000004",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000004",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": -7200,
|
||||||
|
"unit_amount_decimal": "-7200"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 1,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 2,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0003",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "paid",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": 1000000000,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 0,
|
||||||
|
"tax": null,
|
||||||
|
"total": 0,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": 1000000000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/invoices"
|
||||||
|
}
|
||||||
@@ -0,0 +1,485 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 24000,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 24000,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": false,
|
||||||
|
"auto_advance": true,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "charge_automatically",
|
||||||
|
"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": [],
|
||||||
|
"description": null,
|
||||||
|
"discount": null,
|
||||||
|
"discounts": [],
|
||||||
|
"due_date": null,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000004A1tY0",
|
||||||
|
"id": "in_NORMALIZED00000000000004",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000004A1tY0/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 24000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard - renewal",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000007",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000007",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1388631845,
|
||||||
|
"start": 1357095845
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"id": "price_NORMALIZED00000000000007",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0007",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": 4000,
|
||||||
|
"unit_amount_decimal": "4000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 6,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000004/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": 1000000000,
|
||||||
|
"number": "NORMALI-0005",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": false,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000003",
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "open",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": null,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 24000,
|
||||||
|
"tax": null,
|
||||||
|
"total": 24000,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 0,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 0,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": true,
|
||||||
|
"auto_advance": false,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "charge_automatically",
|
||||||
|
"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": [],
|
||||||
|
"description": null,
|
||||||
|
"discount": null,
|
||||||
|
"discounts": [],
|
||||||
|
"due_date": null,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003rB7PI",
|
||||||
|
"id": "in_NORMALIZED00000000000003",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000003rB7PI/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 36000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000005",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000005",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1357095845,
|
||||||
|
"start": 1325473445
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"id": "price_NORMALIZED00000000000005",
|
||||||
|
"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": 6000,
|
||||||
|
"unit_amount_decimal": "6000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 6,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": -36000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Payment (Card ending in 4242)",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000006",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000006",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"id": "price_NORMALIZED00000000000006",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0006",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": -36000,
|
||||||
|
"unit_amount_decimal": "-36000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 1,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 2,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000003/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0004",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "paid",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": 1000000000,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 0,
|
||||||
|
"tax": null,
|
||||||
|
"total": 0,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": 1000000000
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 0,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 0,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": true,
|
||||||
|
"auto_advance": false,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "charge_automatically",
|
||||||
|
"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": [],
|
||||||
|
"description": null,
|
||||||
|
"discount": null,
|
||||||
|
"discounts": [],
|
||||||
|
"due_date": null,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i",
|
||||||
|
"id": "in_NORMALIZED00000000000002",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED00000000000000022BN9i/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 7200,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000003",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000003",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": 1200,
|
||||||
|
"unit_amount_decimal": "1200"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 6,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": -7200,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Payment (Card ending in 4242)",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000004",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000004",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": -7200,
|
||||||
|
"unit_amount_decimal": "-7200"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 1,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 2,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0003",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "paid",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": 1000000000,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 0,
|
||||||
|
"tax": null,
|
||||||
|
"total": 0,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": 1000000000
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/invoices"
|
||||||
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Payment (Card ending in 4242)",
|
"description": "Payment (Card ending in 4242)",
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "ii_NORMALIZED00000000000002",
|
"id": "ii_NORMALIZED00000000000004",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -21,14 +21,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000002",
|
"id": "price_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0002",
|
"product": "prod_NORMALIZED0004",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Zulip Standard",
|
"description": "Zulip Standard",
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "ii_NORMALIZED00000000000001",
|
"id": "ii_NORMALIZED00000000000003",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -21,14 +21,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000001",
|
"id": "price_NORMALIZED00000000000003",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0001",
|
"product": "prod_NORMALIZED0003",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Payment (Card ending in 4242)",
|
"description": "Payment (Card ending in 4242)",
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "ii_NORMALIZED00000000000004",
|
"id": "ii_NORMALIZED00000000000006",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -21,14 +21,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000004",
|
"id": "price_NORMALIZED00000000000006",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0004",
|
"product": "prod_NORMALIZED0006",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Zulip Standard",
|
"description": "Zulip Standard",
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "ii_NORMALIZED00000000000003",
|
"id": "ii_NORMALIZED00000000000005",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -21,14 +21,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000003",
|
"id": "price_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0003",
|
"product": "prod_NORMALIZED0005",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Zulip Standard - renewal",
|
"description": "Zulip Standard - renewal",
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "ii_NORMALIZED00000000000005",
|
"id": "ii_NORMALIZED00000000000007",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -21,14 +21,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000005",
|
"id": "price_NORMALIZED00000000000007",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0005",
|
"product": "prod_NORMALIZED0007",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
|
|||||||
@@ -0,0 +1,166 @@
|
|||||||
|
{
|
||||||
|
"amount": 7200,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 7200,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"canceled_at": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"capture_method": "automatic",
|
||||||
|
"charges": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 7200,
|
||||||
|
"amount_captured": 7200,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $12.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000001/rcpt_NORMALIZED000000000000000000001",
|
||||||
|
"refunded": false,
|
||||||
|
"refunds": {
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 0,
|
||||||
|
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
||||||
|
},
|
||||||
|
"review": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"source_transfer": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000001"
|
||||||
|
},
|
||||||
|
"client_secret": "pi_NORMALIZED00000000000001_secret_9VY1UxiA1u2E4iwWriDWdKWb2",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $12.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,166 @@
|
|||||||
|
{
|
||||||
|
"amount": 36000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 36000,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"canceled_at": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"capture_method": "automatic",
|
||||||
|
"charges": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 36000,
|
||||||
|
"amount_captured": 36000,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000002",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $60.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000002/rcpt_NORMALIZED000000000000000000002",
|
||||||
|
"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 Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
|
||||||
|
},
|
||||||
|
"client_secret": "pi_NORMALIZED00000000000002_secret_4AXq7WiHGUXFdtcaeAHpf3UVs",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $60.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
"amount": 7200,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": 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_9VY1UxiA1u2E4iwWriDWdKWb2",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $12.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
"amount": 36000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": 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_4AXq7WiHGUXFdtcaeAHpf3UVs",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $60.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "unchecked"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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": null,
|
||||||
|
"id": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "unchecked"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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": null,
|
||||||
|
"id": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq71A4KHR4JzRvGNPaENVK_secret_K86JwqacIutOEOSjrEfAOZWcYc7BcSI",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq71A4KHR4JzRvGNPaENVK",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq71A4KHR4JzRvCn2k1wNg",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7GA4KHR4JzRv01GUDkwn_secret_K86JHEXUhIQjgeL6YUOYbu78g7K1wgz",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7GA4KHR4JzRv01GUDkwn",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq7GA4KHR4JzRvIxxtRvFQ",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq6zA4KHR4JzRv5oPqvFXV_secret_K86JgWJKzWddYfQ09PLQRh8OEFpsiRe",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq6zA4KHR4JzRv5oPqvFXV",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/setup_intents"
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7EA4KHR4JzRvnIlHU7L0_secret_K86JTEZqWx10YlEVyd9XMsLPbmFm2Qf",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7EA4KHR4JzRvnIlHU7L0",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/setup_intents"
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq71A4KHR4JzRvGNPaENVK_secret_K86JwqacIutOEOSjrEfAOZWcYc7BcSI",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq71A4KHR4JzRvGNPaENVK",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq71A4KHR4JzRvCn2k1wNg",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq70A4KHR4JzRvJD7AOnGo",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7GA4KHR4JzRv01GUDkwn_secret_K86JHEXUhIQjgeL6YUOYbu78g7K1wgz",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7GA4KHR4JzRv01GUDkwn",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq7GA4KHR4JzRvIxxtRvFQ",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7FA4KHR4JzRvD3uADAGe",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"card": {
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "unchecked",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "unchecked",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"cvc_check": "unchecked",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"client_ip": "0.0.0.0",
|
|
||||||
"created": 1000000000,
|
|
||||||
"id": "tok_NORMALIZED00000000000001",
|
|
||||||
"livemode": false,
|
|
||||||
"object": "token",
|
|
||||||
"type": "card",
|
|
||||||
"used": false
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"card": {
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "unchecked",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "unchecked",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"cvc_check": "unchecked",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000002",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"client_ip": "0.0.0.0",
|
|
||||||
"created": 1000000000,
|
|
||||||
"id": "tok_NORMALIZED00000000000002",
|
|
||||||
"livemode": false,
|
|
||||||
"object": "token",
|
|
||||||
"type": "card",
|
|
||||||
"used": false
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": null,
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"currency": null,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_details": null,
|
||||||
|
"customer_email": null,
|
||||||
|
"id": "cs_test_NORMALIZED01zoLVbq58FwDo05HkLqVDxh05uvFf4JyQbzhy7EsO6UjEnY",
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_method_options": {},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"setup_intent": "seti_1JTq6zA4KHR4JzRv5oPqvFXV",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"url": "https://checkout.stripe.com/pay/cs_test_NORMALIZED01zoLVbq58FwDo05HkLqVDxh05uvFf4JyQbzhy7EsO6UjEnY#fidkdWxOYHwnPyd1blpxYHZxWjA0T0NCb2ZEMU5NVzFPf1dzRlZLQXBfNm9%2FUm9kXGcydWZXamJSYV9MMjdWPUBwdTdQXzVQbWFfdGl8dUB8YWRRSFFrRnI8VlFVTVF9UTNXUVJoVzNAf2hKNTVmdnxiaDZ3QicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": null,
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"currency": null,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_details": null,
|
||||||
|
"customer_email": null,
|
||||||
|
"id": "cs_test_NORMALIZED02LW3lsSGGgkk9iQ4xg6bU2NH4WRGG5IaIhvrxKIhwvQAWP0",
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_method_options": {},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"setup_intent": "seti_1JTq7EA4KHR4JzRvnIlHU7L0",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"url": "https://checkout.stripe.com/pay/cs_test_NORMALIZED02LW3lsSGGgkk9iQ4xg6bU2NH4WRGG5IaIhvrxKIhwvQAWP0#fidkdWxOYHwnPyd1blpxYHZxWjA0T0NCb2ZEMU5NVzFPf1dzRlZLQXBfNm9%2FUm9kXGcydWZXamJSYV9MMjdWPUBwdTdQXzVQbWFfdGl8dUB8YWRRSFFrRnI8VlFVTVF9UTNXUVJoVzNAf2hKNTVmdnxiaDZ3QicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": null,
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"currency": null,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_details": null,
|
||||||
|
"customer_email": null,
|
||||||
|
"id": "cs_test_NORMALIZED01zoLVbq58FwDo05HkLqVDxh05uvFf4JyQbzhy7EsO6UjEnY",
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "1200",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_method_options": {},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"setup_intent": "seti_1JTq6zA4KHR4JzRv5oPqvFXV",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"url": "https://checkout.stripe.com/pay/cs_test_NORMALIZED01zoLVbq58FwDo05HkLqVDxh05uvFf4JyQbzhy7EsO6UjEnY#fidkdWxOYHwnPyd1blpxYHZxWjA0T0NCb2ZEMU5NVzFPf1dzRlZLQXBfNm9%2FUm9kXGcydWZXamJSYV9MMjdWPUBwdTdQXzVQbWFfdGl8dUB8YWRRSFFrRnI8VlFVTVF9UTNXUVJoVzNAf2hKNTVmdnxiaDZ3QicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/checkout/sessions"
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": null,
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"currency": null,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_details": null,
|
||||||
|
"customer_email": null,
|
||||||
|
"id": "cs_test_NORMALIZED02LW3lsSGGgkk9iQ4xg6bU2NH4WRGG5IaIhvrxKIhwvQAWP0",
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "6000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_method_options": {},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"setup_intent": "seti_1JTq7EA4KHR4JzRvnIlHU7L0",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"url": "https://checkout.stripe.com/pay/cs_test_NORMALIZED02LW3lsSGGgkk9iQ4xg6bU2NH4WRGG5IaIhvrxKIhwvQAWP0#fidkdWxOYHwnPyd1blpxYHZxWjA0T0NCb2ZEMU5NVzFPf1dzRlZLQXBfNm9%2FUm9kXGcydWZXamJSYV9MMjdWPUBwdTdQXzVQbWFfdGl8dUB8YWRRSFFrRnI8VlFVTVF9UTNXUVJoVzNAf2hKNTVmdnxiaDZ3QicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/checkout/sessions"
|
||||||
|
}
|
||||||
@@ -1,117 +0,0 @@
|
|||||||
{
|
|
||||||
"amount": 48000,
|
|
||||||
"amount_captured": 48000,
|
|
||||||
"amount_refunded": 0,
|
|
||||||
"application": null,
|
|
||||||
"application_fee": null,
|
|
||||||
"application_fee_amount": null,
|
|
||||||
"balance_transaction": "txn_NORMALIZED00000000000001",
|
|
||||||
"billing_details": {
|
|
||||||
"address": {
|
|
||||||
"city": "Pacific",
|
|
||||||
"country": "United States",
|
|
||||||
"line1": "Under the sea,",
|
|
||||||
"line2": null,
|
|
||||||
"postal_code": "33333",
|
|
||||||
"state": null
|
|
||||||
},
|
|
||||||
"email": null,
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"phone": null
|
|
||||||
},
|
|
||||||
"calculated_statement_descriptor": "STRIPE* ZULIP STANDARD",
|
|
||||||
"captured": true,
|
|
||||||
"created": 1000000000,
|
|
||||||
"currency": "usd",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
|
||||||
"destination": null,
|
|
||||||
"dispute": null,
|
|
||||||
"disputed": false,
|
|
||||||
"failure_code": null,
|
|
||||||
"failure_message": null,
|
|
||||||
"fraud_details": {},
|
|
||||||
"id": "ch_NORMALIZED00000000000001",
|
|
||||||
"invoice": null,
|
|
||||||
"livemode": false,
|
|
||||||
"metadata": {},
|
|
||||||
"object": "charge",
|
|
||||||
"on_behalf_of": null,
|
|
||||||
"order": null,
|
|
||||||
"outcome": {
|
|
||||||
"network_status": "approved_by_network",
|
|
||||||
"reason": null,
|
|
||||||
"risk_level": "normal",
|
|
||||||
"risk_score": 0,
|
|
||||||
"seller_message": "Payment complete.",
|
|
||||||
"type": "authorized"
|
|
||||||
},
|
|
||||||
"paid": true,
|
|
||||||
"payment_intent": null,
|
|
||||||
"payment_method": "card_NORMALIZED00000000000001",
|
|
||||||
"payment_method_details": {
|
|
||||||
"card": {
|
|
||||||
"brand": "visa",
|
|
||||||
"checks": {
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_postal_code_check": "pass",
|
|
||||||
"cvc_check": "pass"
|
|
||||||
},
|
|
||||||
"country": "US",
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"installments": null,
|
|
||||||
"last4": "4242",
|
|
||||||
"network": "visa",
|
|
||||||
"three_d_secure": null,
|
|
||||||
"wallet": null
|
|
||||||
},
|
|
||||||
"type": "card"
|
|
||||||
},
|
|
||||||
"receipt_email": "hamlet@zulip.com",
|
|
||||||
"receipt_number": null,
|
|
||||||
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000001/rcpt_NORMALIZED000000000000000000001",
|
|
||||||
"refunded": false,
|
|
||||||
"refunds": {
|
|
||||||
"data": [],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 0,
|
|
||||||
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
|
||||||
},
|
|
||||||
"review": null,
|
|
||||||
"shipping": null,
|
|
||||||
"source": {
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"source_transfer": null,
|
|
||||||
"statement_descriptor": "Zulip Standard",
|
|
||||||
"statement_descriptor_suffix": "Zulip Standard",
|
|
||||||
"status": "succeeded",
|
|
||||||
"transfer_data": null,
|
|
||||||
"transfer_group": null
|
|
||||||
}
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
"balance": 0,
|
"balance": 0,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": null,
|
"currency": null,
|
||||||
"default_source": "card_NORMALIZED00000000000001",
|
"default_source": null,
|
||||||
"delinquent": false,
|
"delinquent": false,
|
||||||
"description": "zulip (Zulip Dev)",
|
"description": "zulip (Zulip Dev)",
|
||||||
"discount": null,
|
"discount": null,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"balance": 0,
|
"balance": 0,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": null,
|
"currency": null,
|
||||||
"default_source": "card_NORMALIZED00000000000002",
|
"default_source": null,
|
||||||
"delinquent": false,
|
"delinquent": false,
|
||||||
"description": "zulip (Zulip Dev)",
|
"description": "zulip (Zulip Dev)",
|
||||||
"discount": null,
|
"discount": null,
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -2,32 +2,8 @@
|
|||||||
"address": null,
|
"address": null,
|
||||||
"balance": 0,
|
"balance": 0,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": null,
|
||||||
"default_source": {
|
"default_source": null,
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"delinquent": false,
|
"delinquent": false,
|
||||||
"description": "zulip (Zulip Dev)",
|
"description": "zulip (Zulip Dev)",
|
||||||
"discount": null,
|
"discount": null,
|
||||||
@@ -45,43 +21,10 @@
|
|||||||
"realm_str": "zulip"
|
"realm_str": "zulip"
|
||||||
},
|
},
|
||||||
"name": null,
|
"name": null,
|
||||||
"next_invoice_sequence": 2,
|
"next_invoice_sequence": 1,
|
||||||
"object": "customer",
|
"object": "customer",
|
||||||
"phone": null,
|
"phone": null,
|
||||||
"preferred_locales": [],
|
"preferred_locales": [],
|
||||||
"shipping": null,
|
"shipping": null,
|
||||||
"sources": {
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 1,
|
|
||||||
"url": "/v1/customers/cus_NORMALIZED0001/sources"
|
|
||||||
},
|
|
||||||
"tax_exempt": "none"
|
"tax_exempt": "none"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,31 +3,7 @@
|
|||||||
"balance": 0,
|
"balance": 0,
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"default_source": {
|
"default_source": null,
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"delinquent": false,
|
"delinquent": false,
|
||||||
"description": "zulip (Zulip Dev)",
|
"description": "zulip (Zulip Dev)",
|
||||||
"discount": null,
|
"discount": null,
|
||||||
@@ -36,7 +12,53 @@
|
|||||||
"invoice_prefix": "NORMA01",
|
"invoice_prefix": "NORMA01",
|
||||||
"invoice_settings": {
|
"invoice_settings": {
|
||||||
"custom_fields": null,
|
"custom_fields": null,
|
||||||
"default_payment_method": null,
|
"default_payment_method": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
"footer": null
|
"footer": null
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
@@ -50,38 +72,5 @@
|
|||||||
"phone": null,
|
"phone": null,
|
||||||
"preferred_locales": [],
|
"preferred_locales": [],
|
||||||
"shipping": null,
|
"shipping": null,
|
||||||
"sources": {
|
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "pass",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "pass",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"customer": "cus_NORMALIZED0001",
|
|
||||||
"cvc_check": "pass",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"has_more": false,
|
|
||||||
"object": "list",
|
|
||||||
"total_count": 1,
|
|
||||||
"url": "/v1/customers/cus_NORMALIZED0001/sources"
|
|
||||||
},
|
|
||||||
"tax_exempt": "none"
|
"tax_exempt": "none"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,76 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,240 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 80697,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 80697,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": false,
|
||||||
|
"auto_advance": true,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"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,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED00000000000000016lvg5",
|
||||||
|
"id": "in_NORMALIZED00000000000001",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED00000000000000016lvg5/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 7255,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Additional license (Feb 5, 2013 - Jan 2, 2014)",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000001",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1388631845,
|
||||||
|
"start": 1360033445
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": 7255,
|
||||||
|
"unit_amount_decimal": "7255"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 1,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": 56000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard - renewal",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000002",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000002",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1388631845,
|
||||||
|
"start": 1357095845
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"id": "price_NORMALIZED00000000000002",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0002",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": 8000,
|
||||||
|
"unit_amount_decimal": "8000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 7,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amount": 17442,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Additional license (Apr 11, 2012 - Jan 2, 2013)",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000003",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000003",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1357095845,
|
||||||
|
"start": 1334113445
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": 5814,
|
||||||
|
"unit_amount_decimal": "5814"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 3,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 3,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": 1000000000,
|
||||||
|
"number": "NORMALI-0001",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": false,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "open",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": null,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 80697,
|
||||||
|
"tax": null,
|
||||||
|
"total": 80697,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6hA4KHR4JzRvk0KY7bxM",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 1,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0001",
|
||||||
|
"idempotency_key": "4947a2ae-0c39-4c4d-b33b-56d18236fc9e"
|
||||||
|
},
|
||||||
|
"type": "invoice.finalized"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,702 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 48000,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"canceled_at": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"capture_method": "automatic",
|
||||||
|
"charges": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_captured": 48000,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000001/rcpt_NORMALIZED000000000000000000001",
|
||||||
|
"refunded": false,
|
||||||
|
"refunds": {
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 0,
|
||||||
|
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
||||||
|
},
|
||||||
|
"review": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"source_transfer": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
|
||||||
|
},
|
||||||
|
"client_secret": "pi_NORMALIZED00000000000002_secret_uEB0xxEN8swDrWnrBArdaWcxS",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq6jA4KHR4JzRv0KbCb1du",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0002",
|
||||||
|
"idempotency_key": "4d8e1a93-7832-4c86-9da5-3f8fc3415bde"
|
||||||
|
},
|
||||||
|
"type": "payment_intent.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_captured": 48000,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000001/rcpt_NORMALIZED000000000000000000001",
|
||||||
|
"refunded": false,
|
||||||
|
"refunds": {
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 0,
|
||||||
|
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
||||||
|
},
|
||||||
|
"review": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"source_transfer": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq6jA4KHR4JzRv0AFbJ5E3",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 1,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0002",
|
||||||
|
"idempotency_key": "4d8e1a93-7832-4c86-9da5-3f8fc3415bde"
|
||||||
|
},
|
||||||
|
"type": "charge.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"footer": 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"
|
||||||
|
},
|
||||||
|
"previous_attributes": {
|
||||||
|
"invoice_settings": {
|
||||||
|
"default_payment_method": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6pA4KHR4JzRvbB6ucSWy",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0003",
|
||||||
|
"idempotency_key": "7076808f-b366-4769-a49e-6cc47bf245c8"
|
||||||
|
},
|
||||||
|
"type": "customer.updated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq6mA4KHR4JzRvrvHpvikn_secret_K86JW3ygqxVHUvvPKcQli5exoUIfsPn",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq6mA4KHR4JzRvrvHpvikn",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq6mA4KHR4JzRvSi3YRAAH",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6nA4KHR4JzRvoQsMaTEs",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0004",
|
||||||
|
"idempotency_key": "90edbd03-5700-4972-9d55-c6241aa94461"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6mA4KHR4JzRvmWhTJ0Bk",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0004",
|
||||||
|
"idempotency_key": "90edbd03-5700-4972-9d55-c6241aa94461"
|
||||||
|
},
|
||||||
|
"type": "payment_method.attached"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq6mA4KHR4JzRvrvHpvikn_secret_K86JW3ygqxVHUvvPKcQli5exoUIfsPn",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq6mA4KHR4JzRvrvHpvikn",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq6mA4KHR4JzRvSi3YRAAH",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6mA4KHR4JzRvq9W8RJ9T",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0004",
|
||||||
|
"idempotency_key": "90edbd03-5700-4972-9d55-c6241aa94461"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq6kA4KHR4JzRvwNeR6z0V_secret_K86JasH6AR9TILn78XCCnxhzoxyMIEO",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq6kA4KHR4JzRvwNeR6z0V",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6kA4KHR4JzRvkSlZUGEX",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0005",
|
||||||
|
"idempotency_key": "844785a2-316d-4ed5-9f19-f3e3f47b4088"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": 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_uEB0xxEN8swDrWnrBArdaWcxS",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq6jA4KHR4JzRv0Aj4ums0",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0006",
|
||||||
|
"idempotency_key": "dd8d0f96-f2e5-4d0e-8859-447ea4cf25e0"
|
||||||
|
},
|
||||||
|
"type": "payment_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq6jA4KHR4JzRvIJ0Jpblr",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0007",
|
||||||
|
"idempotency_key": "bdffcc3b-39f6-4430-8806-a84943f85d6d"
|
||||||
|
},
|
||||||
|
"type": "customer.created"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 0,
|
"amount_due": 0,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
"ending_balance": null,
|
"ending_balance": null,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": null,
|
"hosted_invoice_url": null,
|
||||||
"id": "in_NORMALIZED00000000000001",
|
"id": "in_NORMALIZED00000000000002",
|
||||||
"invoice_pdf": null,
|
"invoice_pdf": null,
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000001",
|
"id": "il_NORMALIZED00000000000004",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000001",
|
"invoice_item": "ii_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -64,14 +64,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000001",
|
"id": "price_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0001",
|
"product": "prod_NORMALIZED0004",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -92,8 +93,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000002",
|
"id": "il_NORMALIZED00000000000005",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
"invoice_item": "ii_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -107,14 +108,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000002",
|
"id": "price_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0002",
|
"product": "prod_NORMALIZED0005",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -132,7 +134,7 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 2,
|
"total_count": 2,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -168,5 +170,5 @@
|
|||||||
"total_discount_amounts": [],
|
"total_discount_amounts": [],
|
||||||
"total_tax_amounts": [],
|
"total_tax_amounts": [],
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"webhooks_delivered_at": 1000000000
|
"webhooks_delivered_at": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"account_country": "US",
|
"account_country": "US",
|
||||||
"account_name": null,
|
"account_name": "NORMALIZED-1",
|
||||||
"account_tax_ids": null,
|
"account_tax_ids": null,
|
||||||
"amount_due": 0,
|
"amount_due": 0,
|
||||||
"amount_paid": 0,
|
"amount_paid": 0,
|
||||||
@@ -36,9 +36,9 @@
|
|||||||
"due_date": null,
|
"due_date": null,
|
||||||
"ending_balance": 0,
|
"ending_balance": 0,
|
||||||
"footer": null,
|
"footer": null,
|
||||||
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED00000000000000015sJxq",
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED000000000000000280j7F",
|
||||||
"id": "in_NORMALIZED00000000000001",
|
"id": "in_NORMALIZED00000000000002",
|
||||||
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED00000000000000015sJxq/pdf",
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED000000000000000280j7F/pdf",
|
||||||
"last_finalization_error": null,
|
"last_finalization_error": null,
|
||||||
"lines": {
|
"lines": {
|
||||||
"data": [
|
"data": [
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000001",
|
"id": "il_NORMALIZED00000000000004",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000001",
|
"invoice_item": "ii_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -64,14 +64,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000001",
|
"id": "price_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0001",
|
"product": "prod_NORMALIZED0004",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -92,8 +93,8 @@
|
|||||||
"discount_amounts": [],
|
"discount_amounts": [],
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "il_NORMALIZED00000000000002",
|
"id": "il_NORMALIZED00000000000005",
|
||||||
"invoice_item": "ii_NORMALIZED00000000000002",
|
"invoice_item": "ii_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"object": "line_item",
|
"object": "line_item",
|
||||||
@@ -107,14 +108,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000002",
|
"id": "price_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0002",
|
"product": "prod_NORMALIZED0005",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
@@ -132,12 +134,12 @@
|
|||||||
"has_more": false,
|
"has_more": false,
|
||||||
"object": "list",
|
"object": "list",
|
||||||
"total_count": 2,
|
"total_count": 2,
|
||||||
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
"url": "/v1/invoices/in_NORMALIZED00000000000002/lines"
|
||||||
},
|
},
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"next_payment_attempt": null,
|
"next_payment_attempt": null,
|
||||||
"number": "NORMALI-0001",
|
"number": "NORMALI-0003",
|
||||||
"object": "invoice",
|
"object": "invoice",
|
||||||
"on_behalf_of": null,
|
"on_behalf_of": null,
|
||||||
"paid": true,
|
"paid": true,
|
||||||
@@ -168,5 +170,5 @@
|
|||||||
"total_discount_amounts": [],
|
"total_discount_amounts": [],
|
||||||
"total_tax_amounts": [],
|
"total_tax_amounts": [],
|
||||||
"transfer_data": null,
|
"transfer_data": null,
|
||||||
"webhooks_delivered_at": 1000000000
|
"webhooks_delivered_at": null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Payment (Card ending in 4242)",
|
"description": "Payment (Card ending in 4242)",
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "ii_NORMALIZED00000000000002",
|
"id": "ii_NORMALIZED00000000000005",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -21,14 +21,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000002",
|
"id": "price_NORMALIZED00000000000005",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0002",
|
"product": "prod_NORMALIZED0005",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"description": "Zulip Standard",
|
"description": "Zulip Standard",
|
||||||
"discountable": false,
|
"discountable": false,
|
||||||
"discounts": [],
|
"discounts": [],
|
||||||
"id": "ii_NORMALIZED00000000000001",
|
"id": "ii_NORMALIZED00000000000004",
|
||||||
"invoice": null,
|
"invoice": null,
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@@ -21,14 +21,15 @@
|
|||||||
"billing_scheme": "per_unit",
|
"billing_scheme": "per_unit",
|
||||||
"created": 1000000000,
|
"created": 1000000000,
|
||||||
"currency": "usd",
|
"currency": "usd",
|
||||||
"id": "price_NORMALIZED00000000000001",
|
"id": "price_NORMALIZED00000000000004",
|
||||||
"livemode": false,
|
"livemode": false,
|
||||||
"lookup_key": null,
|
"lookup_key": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"nickname": null,
|
"nickname": null,
|
||||||
"object": "price",
|
"object": "price",
|
||||||
"product": "prod_NORMALIZED0001",
|
"product": "prod_NORMALIZED0004",
|
||||||
"recurring": null,
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
"tiers_mode": null,
|
"tiers_mode": null,
|
||||||
"transform_quantity": null,
|
"transform_quantity": null,
|
||||||
"type": "one_time",
|
"type": "one_time",
|
||||||
|
|||||||
@@ -0,0 +1,166 @@
|
|||||||
|
{
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 48000,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"canceled_at": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"capture_method": "automatic",
|
||||||
|
"charges": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_captured": 48000,
|
||||||
|
"amount_refunded": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"balance_transaction": "txn_NORMALIZED00000000000001",
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"calculated_statement_descriptor": "ZULIP STANDARD",
|
||||||
|
"captured": true,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"destination": null,
|
||||||
|
"dispute": null,
|
||||||
|
"disputed": false,
|
||||||
|
"failure_code": null,
|
||||||
|
"failure_message": null,
|
||||||
|
"fraud_details": {},
|
||||||
|
"id": "ch_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"object": "charge",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"order": null,
|
||||||
|
"outcome": {
|
||||||
|
"network_status": "approved_by_network",
|
||||||
|
"reason": null,
|
||||||
|
"risk_level": "normal",
|
||||||
|
"risk_score": 0,
|
||||||
|
"seller_message": "Payment complete.",
|
||||||
|
"type": "authorized"
|
||||||
|
},
|
||||||
|
"paid": true,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000002",
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_details": {
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"installments": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"network": "visa",
|
||||||
|
"three_d_secure": null,
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"receipt_number": null,
|
||||||
|
"receipt_url": "https://pay.stripe.com/receipts/acct_NORMALIZED000001/ch_NORMALIZED00000000000001/rcpt_NORMALIZED000000000000000000001",
|
||||||
|
"refunded": false,
|
||||||
|
"refunds": {
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 0,
|
||||||
|
"url": "/v1/charges/ch_NORMALIZED00000000000001/refunds"
|
||||||
|
},
|
||||||
|
"review": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"source_transfer": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/charges?payment_intent=pi_NORMALIZED00000000000002"
|
||||||
|
},
|
||||||
|
"client_secret": "pi_NORMALIZED00000000000002_secret_uEB0xxEN8swDrWnrBArdaWcxS",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": 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_uEB0xxEN8swDrWnrBArdaWcxS",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "unchecked"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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": null,
|
||||||
|
"id": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq6mA4KHR4JzRvrvHpvikn_secret_K86JW3ygqxVHUvvPKcQli5exoUIfsPn",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq6mA4KHR4JzRvrvHpvikn",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq6mA4KHR4JzRvSi3YRAAH",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq6kA4KHR4JzRvwNeR6z0V_secret_K86JasH6AR9TILn78XCCnxhzoxyMIEO",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq6kA4KHR4JzRvwNeR6z0V",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/setup_intents"
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq6mA4KHR4JzRvrvHpvikn_secret_K86JW3ygqxVHUvvPKcQli5exoUIfsPn",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq6mA4KHR4JzRvrvHpvikn",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq6mA4KHR4JzRvSi3YRAAH",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq6lA4KHR4JzRvP3jwXaxq",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
{
|
|
||||||
"card": {
|
|
||||||
"address_city": "Pacific",
|
|
||||||
"address_country": "United States",
|
|
||||||
"address_line1": "Under the sea,",
|
|
||||||
"address_line1_check": "unchecked",
|
|
||||||
"address_line2": null,
|
|
||||||
"address_state": null,
|
|
||||||
"address_zip": "33333",
|
|
||||||
"address_zip_check": "unchecked",
|
|
||||||
"brand": "Visa",
|
|
||||||
"country": "US",
|
|
||||||
"cvc_check": "unchecked",
|
|
||||||
"dynamic_last4": null,
|
|
||||||
"exp_month": 3,
|
|
||||||
"exp_year": 2033,
|
|
||||||
"fingerprint": "NORMALIZED000001",
|
|
||||||
"funding": "credit",
|
|
||||||
"id": "card_NORMALIZED00000000000001",
|
|
||||||
"last4": "4242",
|
|
||||||
"metadata": {},
|
|
||||||
"name": "Ada Starr",
|
|
||||||
"object": "card",
|
|
||||||
"tokenization_method": null
|
|
||||||
},
|
|
||||||
"client_ip": "0.0.0.0",
|
|
||||||
"created": 1000000000,
|
|
||||||
"id": "tok_NORMALIZED00000000000001",
|
|
||||||
"livemode": false,
|
|
||||||
"object": "token",
|
|
||||||
"type": "card",
|
|
||||||
"used": false
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": null,
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"currency": null,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_details": null,
|
||||||
|
"customer_email": null,
|
||||||
|
"id": "cs_test_NORMALIZED01cHilg8ji41h2QbrPhiScuswiAlPkEsUR4RJqK7AuLOfikn",
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_method_options": {},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"setup_intent": "seti_1JTq6kA4KHR4JzRvwNeR6z0V",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"url": "https://checkout.stripe.com/pay/cs_test_NORMALIZED01cHilg8ji41h2QbrPhiScuswiAlPkEsUR4RJqK7AuLOfikn#fidkdWxOYHwnPyd1blpxYHZxWjA0T0NCb2ZEMU5NVzFPf1dzRlZLQXBfNm9%2FUm9kXGcydWZXamJSYV9MMjdWPUBwdTdQXzVQbWFfdGl8dUB8YWRRSFFrRnI8VlFVTVF9UTNXUVJoVzNAf2hKNTVmdnxiaDZ3QicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": null,
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"currency": null,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_details": null,
|
||||||
|
"customer_email": null,
|
||||||
|
"id": "cs_test_NORMALIZED01cHilg8ji41h2QbrPhiScuswiAlPkEsUR4RJqK7AuLOfikn",
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_method_options": {},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"setup_intent": "seti_1JTq6kA4KHR4JzRvwNeR6z0V",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"url": "https://checkout.stripe.com/pay/cs_test_NORMALIZED01cHilg8ji41h2QbrPhiScuswiAlPkEsUR4RJqK7AuLOfikn#fidkdWxOYHwnPyd1blpxYHZxWjA0T0NCb2ZEMU5NVzFPf1dzRlZLQXBfNm9%2FUm9kXGcydWZXamJSYV9MMjdWPUBwdTdQXzVQbWFfdGl8dUB8YWRRSFFrRnI8VlFVTVF9UTNXUVJoVzNAf2hKNTVmdnxiaDZ3QicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/checkout/sessions"
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,152 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "NORMALIZED-1",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 24000,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 24000,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": false,
|
||||||
|
"auto_advance": true,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"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,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001A1tY0",
|
||||||
|
"id": "in_NORMALIZED00000000000001",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/invst_NORMALIZED0000000000000001A1tY0/pdf",
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 24000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Standard - renewal",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000001",
|
||||||
|
"invoice_item": "ii_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "line_item",
|
||||||
|
"period": {
|
||||||
|
"end": 1388631845,
|
||||||
|
"start": 1357095845
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"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": 4000,
|
||||||
|
"unit_amount_decimal": "4000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 6,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"next_payment_attempt": 1000000000,
|
||||||
|
"number": "NORMALI-0001",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": false,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||||
|
"payment_settings": {
|
||||||
|
"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,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"status": "open",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": null,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subtotal": 24000,
|
||||||
|
"tax": null,
|
||||||
|
"total": 24000,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7UA4KHR4JzRvIV7w7Gm7",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 2,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0001",
|
||||||
|
"idempotency_key": "e614fe00-2fb2-4711-8d1c-bfe76fb67902"
|
||||||
|
},
|
||||||
|
"type": "invoice.finalized"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,353 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7ZA4KHR4JzRvKoHGUZ4R_secret_K86KqPKeVoLQcDacIc6WefFx7JiiLNU",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7ZA4KHR4JzRvKoHGUZ4R",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq7ZA4KHR4JzRvGClaMCcE",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7YA4KHR4JzRvxrCAGzvl",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7aA4KHR4JzRvND5z29VH",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0002",
|
||||||
|
"idempotency_key": "619d91e8-b79f-4adc-886f-8cc41092f329"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.succeeded"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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_1JTq7YA4KHR4JzRvxrCAGzvl",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7aA4KHR4JzRv1u2aVxfO",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 1,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0002",
|
||||||
|
"idempotency_key": "619d91e8-b79f-4adc-886f-8cc41092f329"
|
||||||
|
},
|
||||||
|
"type": "payment_method.attached"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7ZA4KHR4JzRvKoHGUZ4R_secret_K86KqPKeVoLQcDacIc6WefFx7JiiLNU",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7ZA4KHR4JzRvKoHGUZ4R",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq7ZA4KHR4JzRvGClaMCcE",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7YA4KHR4JzRvxrCAGzvl",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7aA4KHR4JzRvZ39jaKwm",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0002",
|
||||||
|
"idempotency_key": "619d91e8-b79f-4adc-886f-8cc41092f329"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7XA4KHR4JzRvEqDBiz9a_secret_K86KhiSu3gN9pL3q2zcSNHxyV2tkgIr",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7XA4KHR4JzRvEqDBiz9a",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7YA4KHR4JzRvO5wUjZrb",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0003",
|
||||||
|
"idempotency_key": "e9b0e410-779c-4cbd-b58b-15d9db65de2a"
|
||||||
|
},
|
||||||
|
"type": "setup_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": 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_n57BTvra91BWVZvEHM2WVXFGy",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_3JTq7XA4KHR4JzRv1OPD4jZj",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0004",
|
||||||
|
"idempotency_key": "f72078f6-e698-45b4-8735-4e5cc1f29413"
|
||||||
|
},
|
||||||
|
"type": "payment_intent.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"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
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1JTq7WA4KHR4JzRvpDvduAF5",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0005",
|
||||||
|
"idempotency_key": "febec2f5-61e7-4f28-9344-05f11484e803"
|
||||||
|
},
|
||||||
|
"type": "customer.created"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
"amount": 48000,
|
||||||
|
"amount_capturable": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": 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_n57BTvra91BWVZvEHM2WVXFGy",
|
||||||
|
"confirmation_method": "automatic",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": "Upgrade to Zulip Standard, $80.0 x 6",
|
||||||
|
"id": "pi_NORMALIZED00000000000002",
|
||||||
|
"invoice": null,
|
||||||
|
"last_payment_error": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "payment_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"installments": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"receipt_email": "hamlet@zulip.com",
|
||||||
|
"review": null,
|
||||||
|
"setup_future_usage": null,
|
||||||
|
"shipping": null,
|
||||||
|
"source": null,
|
||||||
|
"statement_descriptor": "Zulip Standard",
|
||||||
|
"statement_descriptor_suffix": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"transfer_data": null,
|
||||||
|
"transfer_group": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "unchecked"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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": null,
|
||||||
|
"id": "pm_1JTq7YA4KHR4JzRvxrCAGzvl",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7ZA4KHR4JzRvKoHGUZ4R_secret_K86KqPKeVoLQcDacIc6WefFx7JiiLNU",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7ZA4KHR4JzRvKoHGUZ4R",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq7ZA4KHR4JzRvGClaMCcE",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7YA4KHR4JzRvxrCAGzvl",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7XA4KHR4JzRvEqDBiz9a_secret_K86KhiSu3gN9pL3q2zcSNHxyV2tkgIr",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7XA4KHR4JzRvEqDBiz9a",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/setup_intents"
|
||||||
|
}
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1JTq7ZA4KHR4JzRvKoHGUZ4R_secret_K86KqPKeVoLQcDacIc6WefFx7JiiLNU",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"id": "seti_1JTq7ZA4KHR4JzRvKoHGUZ4R",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1JTq7ZA4KHR4JzRvGClaMCcE",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1JTq7YA4KHR4JzRvxrCAGzvl",
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": null,
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"currency": null,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_details": null,
|
||||||
|
"customer_email": null,
|
||||||
|
"id": "cs_test_NORMALIZED01SeDXTXQq7DK7QsX0tHNYKz3hA41pDiw0GVEX6carKtyyzN",
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_method_options": {},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"setup_intent": "seti_1JTq7XA4KHR4JzRvEqDBiz9a",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"url": "https://checkout.stripe.com/pay/cs_test_NORMALIZED01SeDXTXQq7DK7QsX0tHNYKz3hA41pDiw0GVEX6carKtyyzN#fidkdWxOYHwnPyd1blpxYHZxWjA0T0NCb2ZEMU5NVzFPf1dzRlZLQXBfNm9%2FUm9kXGcydWZXamJSYV9MMjdWPUBwdTdQXzVQbWFfdGl8dUB8YWRRSFFrRnI8VlFVTVF9UTNXUVJoVzNAf2hKNTVmdnxiaDZ3QicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": null,
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"currency": null,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_details": null,
|
||||||
|
"customer_email": null,
|
||||||
|
"id": "cs_test_NORMALIZED01SeDXTXQq7DK7QsX0tHNYKz3hA41pDiw0GVEX6carKtyyzN",
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"billing_modality": "charge_automatically",
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "automatic",
|
||||||
|
"licenses": "6",
|
||||||
|
"price_per_license": "8000",
|
||||||
|
"realm_str": "zulip",
|
||||||
|
"seat_count": "6",
|
||||||
|
"type": "upgrade",
|
||||||
|
"user_email": "hamlet@zulip.com"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_method_options": {},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"setup_intent": "seti_1JTq7XA4KHR4JzRvEqDBiz9a",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"url": "https://checkout.stripe.com/pay/cs_test_NORMALIZED01SeDXTXQq7DK7QsX0tHNYKz3hA41pDiw0GVEX6carKtyyzN#fidkdWxOYHwnPyd1blpxYHZxWjA0T0NCb2ZEMU5NVzFPf1dzRlZLQXBfNm9%2FUm9kXGcydWZXamJSYV9MMjdWPUBwdTdQXzVQbWFfdGl8dUB8YWRRSFFrRnI8VlFVTVF9UTNXUVJoVzNAf2hKNTVmdnxiaDZ3QicpJ2N3amhWYHdzYHcnP3F3cGApJ2lkfGpwcVF8dWAnPyd2bGtiaWBaZmppcGhrJyknYGtkZ2lgVWlkZmBtamlhYHd2Jz9xd3BgeCUl"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/checkout/sessions"
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "iago@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": null,
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "iago@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0002",
|
||||||
|
"invoice_prefix": "NORMA02",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": null,
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "iago@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": null,
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "iago@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0002",
|
||||||
|
"invoice_prefix": "NORMA02",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": "pm_1JPM8CA4KHR4JzRvJB86Fwmq",
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "iago@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": null,
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "iago@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0002",
|
||||||
|
"invoice_prefix": "NORMA02",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": null,
|
||||||
|
"country": null,
|
||||||
|
"line1": null,
|
||||||
|
"line2": null,
|
||||||
|
"postal_code": null,
|
||||||
|
"state": null
|
||||||
|
},
|
||||||
|
"email": null,
|
||||||
|
"name": null,
|
||||||
|
"phone": null
|
||||||
|
},
|
||||||
|
"card": {
|
||||||
|
"brand": "visa",
|
||||||
|
"checks": {
|
||||||
|
"address_line1_check": null,
|
||||||
|
"address_postal_code_check": null,
|
||||||
|
"cvc_check": "pass"
|
||||||
|
},
|
||||||
|
"country": "US",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2033,
|
||||||
|
"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_NORMALIZED0002",
|
||||||
|
"id": "pm_1JPM8CA4KHR4JzRvJB86Fwmq",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"footer": 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"
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user