mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
stripe: Revive an old test case for payment method.
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": null,
|
||||||
|
"footer": null,
|
||||||
|
"rendering_options": null
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"realm_id": "1",
|
||||||
|
"realm_str": "zulip"
|
||||||
|
},
|
||||||
|
"name": null,
|
||||||
|
"next_invoice_sequence": 1,
|
||||||
|
"object": "customer",
|
||||||
|
"phone": null,
|
||||||
|
"preferred_locales": [],
|
||||||
|
"shipping": null,
|
||||||
|
"tax_exempt": "none",
|
||||||
|
"test_clock": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"footer": null,
|
||||||
|
"rendering_options": null
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"realm_id": "1",
|
||||||
|
"realm_str": "zulip"
|
||||||
|
},
|
||||||
|
"name": null,
|
||||||
|
"next_invoice_sequence": 1,
|
||||||
|
"object": "customer",
|
||||||
|
"phone": null,
|
||||||
|
"preferred_locales": [],
|
||||||
|
"shipping": null,
|
||||||
|
"tax_exempt": "none",
|
||||||
|
"test_clock": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": 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",
|
||||||
|
"display_brand": "visa",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2025,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"generated_from": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"networks": {
|
||||||
|
"available": [
|
||||||
|
"visa"
|
||||||
|
],
|
||||||
|
"preferred": null
|
||||||
|
},
|
||||||
|
"three_d_secure_usage": {
|
||||||
|
"supported": true
|
||||||
|
},
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"id": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"footer": null,
|
||||||
|
"rendering_options": null
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"realm_id": "1",
|
||||||
|
"realm_str": "zulip"
|
||||||
|
},
|
||||||
|
"name": null,
|
||||||
|
"next_invoice_sequence": 1,
|
||||||
|
"object": "customer",
|
||||||
|
"phone": null,
|
||||||
|
"preferred_locales": [],
|
||||||
|
"shipping": null,
|
||||||
|
"tax_exempt": "none",
|
||||||
|
"test_clock": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": 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",
|
||||||
|
"display_brand": "visa",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2025,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"generated_from": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"networks": {
|
||||||
|
"available": [
|
||||||
|
"visa"
|
||||||
|
],
|
||||||
|
"preferred": null
|
||||||
|
},
|
||||||
|
"three_d_secure_usage": {
|
||||||
|
"supported": true
|
||||||
|
},
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"id": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"footer": null,
|
||||||
|
"rendering_options": null
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"realm_id": "1",
|
||||||
|
"realm_str": "zulip"
|
||||||
|
},
|
||||||
|
"name": null,
|
||||||
|
"next_invoice_sequence": 1,
|
||||||
|
"object": "customer",
|
||||||
|
"phone": null,
|
||||||
|
"preferred_locales": [],
|
||||||
|
"shipping": null,
|
||||||
|
"tax_exempt": "none",
|
||||||
|
"test_clock": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": {
|
||||||
|
"billing_details": {
|
||||||
|
"address": {
|
||||||
|
"city": 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",
|
||||||
|
"display_brand": "visa",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2025,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"generated_from": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"networks": {
|
||||||
|
"available": [
|
||||||
|
"visa"
|
||||||
|
],
|
||||||
|
"preferred": null
|
||||||
|
},
|
||||||
|
"three_d_secure_usage": {
|
||||||
|
"supported": true
|
||||||
|
},
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"id": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"footer": null,
|
||||||
|
"rendering_options": null
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"realm_id": "1",
|
||||||
|
"realm_str": "zulip"
|
||||||
|
},
|
||||||
|
"name": null,
|
||||||
|
"next_invoice_sequence": 1,
|
||||||
|
"object": "customer",
|
||||||
|
"phone": null,
|
||||||
|
"preferred_locales": [],
|
||||||
|
"shipping": null,
|
||||||
|
"tax_exempt": "none",
|
||||||
|
"test_clock": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"default_currency": "usd",
|
||||||
|
"default_source": "src_NORMALIZED00000000000001",
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": {
|
||||||
|
"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",
|
||||||
|
"display_brand": "visa",
|
||||||
|
"exp_month": 3,
|
||||||
|
"exp_year": 2025,
|
||||||
|
"fingerprint": "NORMALIZED000001",
|
||||||
|
"funding": "credit",
|
||||||
|
"generated_from": null,
|
||||||
|
"last4": "4242",
|
||||||
|
"networks": {
|
||||||
|
"available": [
|
||||||
|
"visa"
|
||||||
|
],
|
||||||
|
"preferred": null
|
||||||
|
},
|
||||||
|
"three_d_secure_usage": {
|
||||||
|
"supported": true
|
||||||
|
},
|
||||||
|
"wallet": null
|
||||||
|
},
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"id": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "payment_method",
|
||||||
|
"type": "card"
|
||||||
|
},
|
||||||
|
"footer": null,
|
||||||
|
"rendering_options": null
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"realm_id": "1",
|
||||||
|
"realm_str": "zulip"
|
||||||
|
},
|
||||||
|
"name": null,
|
||||||
|
"next_invoice_sequence": 2,
|
||||||
|
"object": "customer",
|
||||||
|
"phone": null,
|
||||||
|
"preferred_locales": [],
|
||||||
|
"shipping": null,
|
||||||
|
"tax_exempt": "none",
|
||||||
|
"test_clock": null
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"default_currency": null,
|
||||||
|
"default_source": null,
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"footer": null,
|
||||||
|
"rendering_options": null
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"realm_id": "1",
|
||||||
|
"realm_str": "zulip"
|
||||||
|
},
|
||||||
|
"name": null,
|
||||||
|
"next_invoice_sequence": 1,
|
||||||
|
"object": "customer",
|
||||||
|
"phone": null,
|
||||||
|
"preferred_locales": [],
|
||||||
|
"shipping": null,
|
||||||
|
"tax_exempt": "none",
|
||||||
|
"test_clock": null
|
||||||
|
},
|
||||||
|
"previous_attributes": {
|
||||||
|
"invoice_settings": {
|
||||||
|
"default_payment_method": null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1OuZDWDEQaroqDjsc3M5wvaD",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0001",
|
||||||
|
"idempotency_key": "a78aaec4-aa36-404f-a04a-b68ba2839020"
|
||||||
|
},
|
||||||
|
"type": "customer.updated"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,301 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"ach_credit_transfer": {
|
||||||
|
"account_number": "test_NORMALIZED02",
|
||||||
|
"bank_name": "TEST BANK",
|
||||||
|
"fingerprint": "NORMALIZED000002",
|
||||||
|
"refund_account_holder_name": null,
|
||||||
|
"refund_account_holder_type": null,
|
||||||
|
"refund_routing_number": null,
|
||||||
|
"routing_number": "110000000",
|
||||||
|
"swift_code": "TSTEZ122"
|
||||||
|
},
|
||||||
|
"amount": null,
|
||||||
|
"client_secret": "src_client_secret_NORMALIZED00000000000001",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"flow": "receiver",
|
||||||
|
"id": "src_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "source",
|
||||||
|
"owner": {
|
||||||
|
"address": null,
|
||||||
|
"email": "amount_0@stripe.com",
|
||||||
|
"name": null,
|
||||||
|
"phone": null,
|
||||||
|
"verified_address": null,
|
||||||
|
"verified_email": null,
|
||||||
|
"verified_name": null,
|
||||||
|
"verified_phone": null
|
||||||
|
},
|
||||||
|
"receiver": {
|
||||||
|
"address": "000000000-test_NORMALIZED01",
|
||||||
|
"amount_charged": 0,
|
||||||
|
"amount_received": 0,
|
||||||
|
"amount_returned": 0,
|
||||||
|
"refund_attributes_method": "email",
|
||||||
|
"refund_attributes_status": "missing"
|
||||||
|
},
|
||||||
|
"statement_descriptor": null,
|
||||||
|
"status": "pending",
|
||||||
|
"type": "ach_credit_transfer",
|
||||||
|
"usage": "reusable"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1OuZDbDEQaroqDjsR6SeRD5f",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": null,
|
||||||
|
"idempotency_key": "c72bbc80-af54-49aa-8403-6f5d570a052e"
|
||||||
|
},
|
||||||
|
"type": "customer.source.created"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"address": null,
|
||||||
|
"balance": 0,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"default_currency": "usd",
|
||||||
|
"default_source": "src_NORMALIZED00000000000001",
|
||||||
|
"delinquent": false,
|
||||||
|
"description": "zulip (Zulip Dev)",
|
||||||
|
"discount": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"id": "cus_NORMALIZED0001",
|
||||||
|
"invoice_prefix": "NORMA01",
|
||||||
|
"invoice_settings": {
|
||||||
|
"custom_fields": null,
|
||||||
|
"default_payment_method": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"footer": null,
|
||||||
|
"rendering_options": null
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"realm_id": "1",
|
||||||
|
"realm_str": "zulip"
|
||||||
|
},
|
||||||
|
"name": null,
|
||||||
|
"next_invoice_sequence": 2,
|
||||||
|
"object": "customer",
|
||||||
|
"phone": null,
|
||||||
|
"preferred_locales": [],
|
||||||
|
"shipping": null,
|
||||||
|
"tax_exempt": "none",
|
||||||
|
"test_clock": null
|
||||||
|
},
|
||||||
|
"previous_attributes": {
|
||||||
|
"default_source": null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1OuZDbDEQaroqDjsKUyvH4FJ",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": null,
|
||||||
|
"idempotency_key": "c72bbc80-af54-49aa-8403-6f5d570a052e"
|
||||||
|
},
|
||||||
|
"type": "customer.updated"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api_version": "2020-08-27",
|
||||||
|
"created": 1000000000,
|
||||||
|
"data": {
|
||||||
|
"object": {
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "Kandra Labs, Inc.",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 984000,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 984000,
|
||||||
|
"amount_shipping": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": false,
|
||||||
|
"auto_advance": false,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"liability": null,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "send_invoice",
|
||||||
|
"created": 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": 1000000000,
|
||||||
|
"effective_at": 1000000000,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"from_invoice": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QazNLVWlQQllta0N5WU55TnE1ajdqRFJnbW1ocDI4LDEwMTA0Mzk5NQ0200ESyM1N7q?s=ap",
|
||||||
|
"id": "in_NORMALIZED00000000000001",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QazNLVWlQQllta0N5WU55TnE1ajdqRFJnbW1ocDI4LDEwMTA0Mzk5NQ0200ESyM1N7q/pdf?s=ap",
|
||||||
|
"issuer": {
|
||||||
|
"type": "self"
|
||||||
|
},
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"latest_revision": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 984000,
|
||||||
|
"amount_excluding_tax": 984000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Cloud Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000001",
|
||||||
|
"invoice": "in_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",
|
||||||
|
"custom_unit_amount": null,
|
||||||
|
"id": "price_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0001",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": 8000,
|
||||||
|
"unit_amount_decimal": "8000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"proration_details": {
|
||||||
|
"credited_items": null
|
||||||
|
},
|
||||||
|
"quantity": 123,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem",
|
||||||
|
"unit_amount_excluding_tax": "8000"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "manual",
|
||||||
|
"licenses": "123",
|
||||||
|
"plan_tier": "1",
|
||||||
|
"user_id": "10"
|
||||||
|
},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0001",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": true,
|
||||||
|
"paid_out_of_band": true,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"default_mandate": null,
|
||||||
|
"payment_method_options": null,
|
||||||
|
"payment_method_types": null
|
||||||
|
},
|
||||||
|
"period_end": 1000000000,
|
||||||
|
"period_start": 1000000000,
|
||||||
|
"post_payment_credit_notes_amount": 0,
|
||||||
|
"pre_payment_credit_notes_amount": 0,
|
||||||
|
"quote": null,
|
||||||
|
"receipt_number": null,
|
||||||
|
"rendering": {
|
||||||
|
"amount_tax_display": null,
|
||||||
|
"pdf": {
|
||||||
|
"page_size": "letter"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rendering_options": null,
|
||||||
|
"shipping_cost": null,
|
||||||
|
"shipping_details": null,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Cloud Standard",
|
||||||
|
"status": "paid",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": 1000000000,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subscription_details": {
|
||||||
|
"metadata": null
|
||||||
|
},
|
||||||
|
"subtotal": 984000,
|
||||||
|
"subtotal_excluding_tax": 984000,
|
||||||
|
"tax": null,
|
||||||
|
"test_clock": null,
|
||||||
|
"total": 984000,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_excluding_tax": 984000,
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": 1000000000
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"id": "evt_1OuZDbDEQaroqDjs9rPAnDz6",
|
||||||
|
"livemode": false,
|
||||||
|
"object": "event",
|
||||||
|
"pending_webhooks": 0,
|
||||||
|
"request": {
|
||||||
|
"id": "req_NORMALIZED0002",
|
||||||
|
"idempotency_key": "baa385af-2174-422c-a37b-270cbc226fe8"
|
||||||
|
},
|
||||||
|
"type": "invoice.paid"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/events"
|
||||||
|
}
|
||||||
@@ -0,0 +1,169 @@
|
|||||||
|
{
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "Kandra Labs, Inc.",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 984000,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 984000,
|
||||||
|
"amount_shipping": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": false,
|
||||||
|
"auto_advance": true,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"liability": null,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "send_invoice",
|
||||||
|
"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": 1000000000,
|
||||||
|
"effective_at": null,
|
||||||
|
"ending_balance": null,
|
||||||
|
"footer": null,
|
||||||
|
"from_invoice": null,
|
||||||
|
"hosted_invoice_url": null,
|
||||||
|
"id": "in_NORMALIZED00000000000001",
|
||||||
|
"invoice_pdf": null,
|
||||||
|
"issuer": {
|
||||||
|
"type": "self"
|
||||||
|
},
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"latest_revision": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 984000,
|
||||||
|
"amount_excluding_tax": 984000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Cloud Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000001",
|
||||||
|
"invoice": "in_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",
|
||||||
|
"custom_unit_amount": null,
|
||||||
|
"id": "price_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0001",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": 8000,
|
||||||
|
"unit_amount_decimal": "8000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"proration_details": {
|
||||||
|
"credited_items": null
|
||||||
|
},
|
||||||
|
"quantity": 123,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem",
|
||||||
|
"unit_amount_excluding_tax": "8000"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "manual",
|
||||||
|
"licenses": "123",
|
||||||
|
"plan_tier": "1",
|
||||||
|
"user_id": "10"
|
||||||
|
},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": null,
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": false,
|
||||||
|
"paid_out_of_band": false,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"default_mandate": null,
|
||||||
|
"payment_method_options": null,
|
||||||
|
"payment_method_types": null
|
||||||
|
},
|
||||||
|
"period_end": 1000000000,
|
||||||
|
"period_start": 1000000000,
|
||||||
|
"post_payment_credit_notes_amount": 0,
|
||||||
|
"pre_payment_credit_notes_amount": 0,
|
||||||
|
"quote": null,
|
||||||
|
"receipt_number": null,
|
||||||
|
"rendering": {
|
||||||
|
"amount_tax_display": null,
|
||||||
|
"pdf": {
|
||||||
|
"page_size": "auto"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rendering_options": null,
|
||||||
|
"shipping_cost": null,
|
||||||
|
"shipping_details": null,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Cloud Standard",
|
||||||
|
"status": "draft",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": null,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": null,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subscription_details": {
|
||||||
|
"metadata": null
|
||||||
|
},
|
||||||
|
"subtotal": 984000,
|
||||||
|
"subtotal_excluding_tax": 984000,
|
||||||
|
"tax": null,
|
||||||
|
"test_clock": null,
|
||||||
|
"total": 984000,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_excluding_tax": 984000,
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": 1000000000
|
||||||
|
}
|
||||||
@@ -0,0 +1,169 @@
|
|||||||
|
{
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "Kandra Labs, Inc.",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 984000,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 984000,
|
||||||
|
"amount_shipping": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": false,
|
||||||
|
"auto_advance": true,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"liability": null,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "send_invoice",
|
||||||
|
"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": 1000000000,
|
||||||
|
"effective_at": 1000000000,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"from_invoice": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QazNLVWlQQllta0N5WU55TnE1ajdqRFJnbW1ocDI4LDEwMTA0Mzk5NA0200LW9fI7jo?s=ap",
|
||||||
|
"id": "in_NORMALIZED00000000000001",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QazNLVWlQQllta0N5WU55TnE1ajdqRFJnbW1ocDI4LDEwMTA0Mzk5NA0200LW9fI7jo/pdf?s=ap",
|
||||||
|
"issuer": {
|
||||||
|
"type": "self"
|
||||||
|
},
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"latest_revision": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 984000,
|
||||||
|
"amount_excluding_tax": 984000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Cloud Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000001",
|
||||||
|
"invoice": "in_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",
|
||||||
|
"custom_unit_amount": null,
|
||||||
|
"id": "price_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0001",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": 8000,
|
||||||
|
"unit_amount_decimal": "8000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"proration_details": {
|
||||||
|
"credited_items": null
|
||||||
|
},
|
||||||
|
"quantity": 123,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem",
|
||||||
|
"unit_amount_excluding_tax": "8000"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "manual",
|
||||||
|
"licenses": "123",
|
||||||
|
"plan_tier": "1",
|
||||||
|
"user_id": "10"
|
||||||
|
},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0002",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": false,
|
||||||
|
"paid_out_of_band": false,
|
||||||
|
"payment_intent": "pi_NORMALIZED00000000000001",
|
||||||
|
"payment_settings": {
|
||||||
|
"default_mandate": null,
|
||||||
|
"payment_method_options": null,
|
||||||
|
"payment_method_types": null
|
||||||
|
},
|
||||||
|
"period_end": 1000000000,
|
||||||
|
"period_start": 1000000000,
|
||||||
|
"post_payment_credit_notes_amount": 0,
|
||||||
|
"pre_payment_credit_notes_amount": 0,
|
||||||
|
"quote": null,
|
||||||
|
"receipt_number": null,
|
||||||
|
"rendering": {
|
||||||
|
"amount_tax_display": null,
|
||||||
|
"pdf": {
|
||||||
|
"page_size": "letter"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rendering_options": null,
|
||||||
|
"shipping_cost": null,
|
||||||
|
"shipping_details": null,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Cloud Standard",
|
||||||
|
"status": "open",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": null,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subscription_details": {
|
||||||
|
"metadata": null
|
||||||
|
},
|
||||||
|
"subtotal": 984000,
|
||||||
|
"subtotal_excluding_tax": 984000,
|
||||||
|
"tax": null,
|
||||||
|
"test_clock": null,
|
||||||
|
"total": 984000,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_excluding_tax": 984000,
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": 1000000000
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"data": [],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/invoices"
|
||||||
|
}
|
||||||
@@ -0,0 +1,169 @@
|
|||||||
|
{
|
||||||
|
"account_country": "US",
|
||||||
|
"account_name": "Kandra Labs, Inc.",
|
||||||
|
"account_tax_ids": null,
|
||||||
|
"amount_due": 984000,
|
||||||
|
"amount_paid": 0,
|
||||||
|
"amount_remaining": 984000,
|
||||||
|
"amount_shipping": 0,
|
||||||
|
"application": null,
|
||||||
|
"application_fee_amount": null,
|
||||||
|
"attempt_count": 0,
|
||||||
|
"attempted": false,
|
||||||
|
"auto_advance": false,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"liability": null,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_reason": "manual",
|
||||||
|
"charge": null,
|
||||||
|
"collection_method": "send_invoice",
|
||||||
|
"created": 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": 1000000000,
|
||||||
|
"effective_at": 1000000000,
|
||||||
|
"ending_balance": 0,
|
||||||
|
"footer": null,
|
||||||
|
"from_invoice": null,
|
||||||
|
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QazNLVWlQQllta0N5WU55TnE1ajdqRFJnbW1ocDI4LDEwMTA0Mzk5NQ0200ESyM1N7q?s=ap",
|
||||||
|
"id": "in_NORMALIZED00000000000001",
|
||||||
|
"invoice_pdf": "https://pay.stripe.com/invoice/acct_NORMALIZED000001/test_NORMALIZED01a3dERVFhcm9xRGpzLF9QazNLVWlQQllta0N5WU55TnE1ajdqRFJnbW1ocDI4LDEwMTA0Mzk5NQ0200ESyM1N7q/pdf?s=ap",
|
||||||
|
"issuer": {
|
||||||
|
"type": "self"
|
||||||
|
},
|
||||||
|
"last_finalization_error": null,
|
||||||
|
"latest_revision": null,
|
||||||
|
"lines": {
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"amount": 984000,
|
||||||
|
"amount_excluding_tax": 984000,
|
||||||
|
"currency": "usd",
|
||||||
|
"description": "Zulip Cloud Standard",
|
||||||
|
"discount_amounts": [],
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "il_NORMALIZED00000000000001",
|
||||||
|
"invoice": "in_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",
|
||||||
|
"custom_unit_amount": null,
|
||||||
|
"id": "price_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0001",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": 8000,
|
||||||
|
"unit_amount_decimal": "8000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"proration_details": {
|
||||||
|
"credited_items": null
|
||||||
|
},
|
||||||
|
"quantity": 123,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_amounts": [],
|
||||||
|
"tax_rates": [],
|
||||||
|
"type": "invoiceitem",
|
||||||
|
"unit_amount_excluding_tax": "8000"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": false,
|
||||||
|
"object": "list",
|
||||||
|
"total_count": 1,
|
||||||
|
"url": "/v1/invoices/in_NORMALIZED00000000000001/lines"
|
||||||
|
},
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {
|
||||||
|
"billing_schedule": "1",
|
||||||
|
"license_management": "manual",
|
||||||
|
"licenses": "123",
|
||||||
|
"plan_tier": "1",
|
||||||
|
"user_id": "10"
|
||||||
|
},
|
||||||
|
"next_payment_attempt": null,
|
||||||
|
"number": "NORMALI-0002",
|
||||||
|
"object": "invoice",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"paid": true,
|
||||||
|
"paid_out_of_band": true,
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_settings": {
|
||||||
|
"default_mandate": null,
|
||||||
|
"payment_method_options": null,
|
||||||
|
"payment_method_types": null
|
||||||
|
},
|
||||||
|
"period_end": 1000000000,
|
||||||
|
"period_start": 1000000000,
|
||||||
|
"post_payment_credit_notes_amount": 0,
|
||||||
|
"pre_payment_credit_notes_amount": 0,
|
||||||
|
"quote": null,
|
||||||
|
"receipt_number": null,
|
||||||
|
"rendering": {
|
||||||
|
"amount_tax_display": null,
|
||||||
|
"pdf": {
|
||||||
|
"page_size": "letter"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rendering_options": null,
|
||||||
|
"shipping_cost": null,
|
||||||
|
"shipping_details": null,
|
||||||
|
"starting_balance": 0,
|
||||||
|
"statement_descriptor": "Zulip Cloud Standard",
|
||||||
|
"status": "paid",
|
||||||
|
"status_transitions": {
|
||||||
|
"finalized_at": 1000000000,
|
||||||
|
"marked_uncollectible_at": null,
|
||||||
|
"paid_at": 1000000000,
|
||||||
|
"voided_at": null
|
||||||
|
},
|
||||||
|
"subscription": null,
|
||||||
|
"subscription_details": {
|
||||||
|
"metadata": null
|
||||||
|
},
|
||||||
|
"subtotal": 984000,
|
||||||
|
"subtotal_excluding_tax": 984000,
|
||||||
|
"tax": null,
|
||||||
|
"test_clock": null,
|
||||||
|
"total": 984000,
|
||||||
|
"total_discount_amounts": [],
|
||||||
|
"total_excluding_tax": 984000,
|
||||||
|
"total_tax_amounts": [],
|
||||||
|
"transfer_data": null,
|
||||||
|
"webhooks_delivered_at": 1000000000
|
||||||
|
}
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
{
|
||||||
|
"amount": 984000,
|
||||||
|
"currency": "usd",
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"date": 1000000000,
|
||||||
|
"description": "Zulip Cloud Standard",
|
||||||
|
"discountable": false,
|
||||||
|
"discounts": [],
|
||||||
|
"id": "ii_NORMALIZED00000000000001",
|
||||||
|
"invoice": null,
|
||||||
|
"livemode": false,
|
||||||
|
"metadata": {},
|
||||||
|
"object": "invoiceitem",
|
||||||
|
"period": {
|
||||||
|
"end": 1000000000,
|
||||||
|
"start": 1000000000
|
||||||
|
},
|
||||||
|
"plan": null,
|
||||||
|
"price": {
|
||||||
|
"active": false,
|
||||||
|
"billing_scheme": "per_unit",
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": "usd",
|
||||||
|
"custom_unit_amount": null,
|
||||||
|
"id": "price_NORMALIZED00000000000001",
|
||||||
|
"livemode": false,
|
||||||
|
"lookup_key": null,
|
||||||
|
"metadata": {},
|
||||||
|
"nickname": null,
|
||||||
|
"object": "price",
|
||||||
|
"product": "prod_NORMALIZED0001",
|
||||||
|
"recurring": null,
|
||||||
|
"tax_behavior": "unspecified",
|
||||||
|
"tiers_mode": null,
|
||||||
|
"transform_quantity": null,
|
||||||
|
"type": "one_time",
|
||||||
|
"unit_amount": 8000,
|
||||||
|
"unit_amount_decimal": "8000"
|
||||||
|
},
|
||||||
|
"proration": false,
|
||||||
|
"quantity": 123,
|
||||||
|
"subscription": null,
|
||||||
|
"tax_rates": [],
|
||||||
|
"test_clock": null,
|
||||||
|
"unit_amount": 8000,
|
||||||
|
"unit_amount_decimal": "8000"
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"automatic_payment_methods": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1OuZDVDEQaroqDjsw4pkhDVU_secret_Pk3KVVp6PpO6PIdbXcYUgAFMuTCV4f0",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"flow_directions": null,
|
||||||
|
"id": "seti_1OuZDVDEQaroqDjsw4pkhDVU",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1OuZDVDEQaroqDjs49M66vE5",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"payment_method_configuration_details": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"mandate_options": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"automatic_payment_methods": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1OuZDTDEQaroqDjsPlHB9vVq_secret_Pk3KfnIFFv8EstD1n3t5UeXn0Z8RAdn",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"flow_directions": null,
|
||||||
|
"id": "seti_1OuZDTDEQaroqDjsPlHB9vVq",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": null,
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": null,
|
||||||
|
"payment_method_configuration_details": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"mandate_options": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "requires_payment_method",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/setup_intents"
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"application": null,
|
||||||
|
"automatic_payment_methods": null,
|
||||||
|
"cancellation_reason": null,
|
||||||
|
"client_secret": "seti_1OuZDVDEQaroqDjsw4pkhDVU_secret_Pk3KVVp6PpO6PIdbXcYUgAFMuTCV4f0",
|
||||||
|
"created": 1000000000,
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"description": null,
|
||||||
|
"flow_directions": null,
|
||||||
|
"id": "seti_1OuZDVDEQaroqDjsw4pkhDVU",
|
||||||
|
"last_setup_error": null,
|
||||||
|
"latest_attempt": "setatt_1OuZDVDEQaroqDjs49M66vE5",
|
||||||
|
"livemode": false,
|
||||||
|
"mandate": null,
|
||||||
|
"metadata": {},
|
||||||
|
"next_action": null,
|
||||||
|
"object": "setup_intent",
|
||||||
|
"on_behalf_of": null,
|
||||||
|
"payment_method": "pm_1OuZDVDEQaroqDjsJ8gQGzU2",
|
||||||
|
"payment_method_configuration_details": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"mandate_options": null,
|
||||||
|
"network": null,
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"single_use_mandate": null,
|
||||||
|
"status": "succeeded",
|
||||||
|
"usage": "off_session"
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
{
|
||||||
|
"after_expiration": null,
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"liability": null,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": "required",
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"client_secret": null,
|
||||||
|
"consent": null,
|
||||||
|
"consent_collection": null,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"currency_conversion": null,
|
||||||
|
"custom_fields": [],
|
||||||
|
"custom_text": {
|
||||||
|
"after_submit": null,
|
||||||
|
"shipping_address": null,
|
||||||
|
"submit": null,
|
||||||
|
"terms_of_service_acceptance": null
|
||||||
|
},
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_creation": null,
|
||||||
|
"customer_details": {
|
||||||
|
"address": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"name": null,
|
||||||
|
"phone": null,
|
||||||
|
"tax_exempt": null,
|
||||||
|
"tax_ids": null
|
||||||
|
},
|
||||||
|
"customer_email": null,
|
||||||
|
"expires_at": 1000000000,
|
||||||
|
"id": "cs_test_NORMALIZED0321rgqzDNlzCNsF5ldWGZKa0gtT2dXPAF67qfloytv6vlva",
|
||||||
|
"invoice": null,
|
||||||
|
"invoice_creation": null,
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"type": "card_update",
|
||||||
|
"user_id": "10"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_link": null,
|
||||||
|
"payment_method_collection": "always",
|
||||||
|
"payment_method_configuration_details": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"phone_number_collection": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"recovered_from": null,
|
||||||
|
"setup_intent": "seti_1OuZDTDEQaroqDjsPlHB9vVq",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"shipping_options": [],
|
||||||
|
"shipping_rate": null,
|
||||||
|
"status": "open",
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"ui_mode": "hosted",
|
||||||
|
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED0321rgqzDNlzCNsF5ldWGZKa0gtT2dXPAF67qfloytv6vlva#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
|
||||||
|
}
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"after_expiration": null,
|
||||||
|
"allow_promotion_codes": null,
|
||||||
|
"amount_subtotal": null,
|
||||||
|
"amount_total": null,
|
||||||
|
"automatic_tax": {
|
||||||
|
"enabled": false,
|
||||||
|
"liability": null,
|
||||||
|
"status": null
|
||||||
|
},
|
||||||
|
"billing_address_collection": "required",
|
||||||
|
"cancel_url": "http://zulip.testserver/upgrade/?manual_license_management=false&tier=1",
|
||||||
|
"client_reference_id": null,
|
||||||
|
"client_secret": null,
|
||||||
|
"consent": null,
|
||||||
|
"consent_collection": null,
|
||||||
|
"created": 1000000000,
|
||||||
|
"currency": null,
|
||||||
|
"currency_conversion": null,
|
||||||
|
"custom_fields": [],
|
||||||
|
"custom_text": {
|
||||||
|
"after_submit": null,
|
||||||
|
"shipping_address": null,
|
||||||
|
"submit": null,
|
||||||
|
"terms_of_service_acceptance": null
|
||||||
|
},
|
||||||
|
"customer": "cus_NORMALIZED0001",
|
||||||
|
"customer_creation": null,
|
||||||
|
"customer_details": {
|
||||||
|
"address": null,
|
||||||
|
"email": "hamlet@zulip.com",
|
||||||
|
"name": null,
|
||||||
|
"phone": null,
|
||||||
|
"tax_exempt": null,
|
||||||
|
"tax_ids": null
|
||||||
|
},
|
||||||
|
"customer_email": null,
|
||||||
|
"expires_at": 1000000000,
|
||||||
|
"id": "cs_test_NORMALIZED0321rgqzDNlzCNsF5ldWGZKa0gtT2dXPAF67qfloytv6vlva",
|
||||||
|
"invoice": null,
|
||||||
|
"invoice_creation": null,
|
||||||
|
"livemode": false,
|
||||||
|
"locale": null,
|
||||||
|
"metadata": {
|
||||||
|
"type": "card_update",
|
||||||
|
"user_id": "10"
|
||||||
|
},
|
||||||
|
"mode": "setup",
|
||||||
|
"object": "checkout.session",
|
||||||
|
"payment_intent": null,
|
||||||
|
"payment_link": null,
|
||||||
|
"payment_method_collection": "always",
|
||||||
|
"payment_method_configuration_details": null,
|
||||||
|
"payment_method_options": {
|
||||||
|
"card": {
|
||||||
|
"request_three_d_secure": "automatic"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"payment_method_types": [
|
||||||
|
"card"
|
||||||
|
],
|
||||||
|
"payment_status": "no_payment_required",
|
||||||
|
"phone_number_collection": {
|
||||||
|
"enabled": false
|
||||||
|
},
|
||||||
|
"recovered_from": null,
|
||||||
|
"setup_intent": "seti_1OuZDTDEQaroqDjsPlHB9vVq",
|
||||||
|
"shipping": null,
|
||||||
|
"shipping_address_collection": null,
|
||||||
|
"shipping_options": [],
|
||||||
|
"shipping_rate": null,
|
||||||
|
"status": "open",
|
||||||
|
"submit_type": null,
|
||||||
|
"subscription": null,
|
||||||
|
"success_url": "http://zulip.testserver/billing/event_status/?stripe_session_id={CHECKOUT_SESSION_ID}",
|
||||||
|
"total_details": null,
|
||||||
|
"ui_mode": "hosted",
|
||||||
|
"url": "https://checkout.stripe.com/c/pay/cs_test_NORMALIZED0321rgqzDNlzCNsF5ldWGZKa0gtT2dXPAF67qfloytv6vlva#fid1d2BpamRhQ2prcSc%2FJ1ZqcHdmYCVWZGt2JVV3aicpJ2R1bE5gfCc%2FJ3VuWnFgdnFaXVRmMU5zNkldQTY9SnNRY09XZml2UXNQJyknY3dqaFZgd3Ngdyc%2FcXdwYCknaWR8anBxUXx1YCc%2FJ3Zsa2JpYFpmamlwaGsnKSdga2RnaWBVaWRmYG1qaWFgd3YnP3F3cGB4JSUl"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"has_more": true,
|
||||||
|
"object": "list",
|
||||||
|
"url": "/v1/checkout/sessions"
|
||||||
|
}
|
||||||
@@ -2169,28 +2169,19 @@ class StripeTest(StripeTestCase):
|
|||||||
with self.assertRaises(signing.BadSignature):
|
with self.assertRaises(signing.BadSignature):
|
||||||
unsign_string(signed_string, "randomsalt")
|
unsign_string(signed_string, "randomsalt")
|
||||||
|
|
||||||
# This tests both the payment method string, and also is a very basic
|
|
||||||
# test that the various upgrade paths involving non-standard payment
|
|
||||||
# histories don't throw errors
|
|
||||||
@mock_stripe()
|
@mock_stripe()
|
||||||
def test_payment_method_string(self, *mocks: Mock) -> None:
|
def test_payment_method_string(self, *mocks: Mock) -> None:
|
||||||
pass
|
|
||||||
# If you sign up with a card, we should show your card as the payment method
|
|
||||||
# Already tested in test_initial_upgrade
|
|
||||||
|
|
||||||
# If you pay by invoice, your payment method should be
|
# If you pay by invoice, your payment method should be
|
||||||
# "Billed by invoice", even if you have a card on file
|
# "Invoice", even if you have a card on file.
|
||||||
# user = self.example_user("hamlet")
|
user = self.example_user("hamlet")
|
||||||
# billing_session = RealmBillingSession(user)
|
billing_session = RealmBillingSession(user)
|
||||||
# billing_session.create_stripe_customer()
|
billing_session.create_stripe_customer()
|
||||||
# self.login_user(user)
|
self.login_user(user)
|
||||||
# self.upgrade(invoice=True)
|
self.add_card_to_customer_for_upgrade()
|
||||||
# stripe_customer = stripe_get_customer(Customer.objects.get(realm=user.realm).stripe_customer_id)
|
self.upgrade(invoice=True)
|
||||||
# self.assertEqual('Billed by invoice', payment_method_string(stripe_customer))
|
response = self.client_get("/billing/")
|
||||||
|
self.assert_not_in_success_response(["Visa ending in"], response)
|
||||||
# If you sign up with a card and then downgrade, we still have your
|
self.assert_in_success_response(["Invoice", "You will receive an invoice for"], response)
|
||||||
# card on file, and should show it
|
|
||||||
# TODO
|
|
||||||
|
|
||||||
@mock_stripe()
|
@mock_stripe()
|
||||||
def test_replace_payment_method(self, *mocks: Mock) -> None:
|
def test_replace_payment_method(self, *mocks: Mock) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user