forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
billing: Support switching from monthly to annual plan.
- Loading branch information
Showing
46 changed files
with
5,981 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
...h_from_monthly_plan_to_annual_plan_for_automatic_license_management--Charge.create.1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"amount": 4800, | ||
"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": "ZULIP STANDARD", | ||
"captured": true, | ||
"created": 1000000000, | ||
"currency": "usd", | ||
"customer": "cus_NORMALIZED0001", | ||
"description": "Upgrade to Zulip Standard, $8.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": 00, | ||
"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": "[email protected]", | ||
"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": null, | ||
"status": "succeeded", | ||
"transfer_data": null, | ||
"transfer_group": null | ||
} |
80 changes: 80 additions & 0 deletions
80
...from_monthly_plan_to_annual_plan_for_automatic_license_management--Customer.create.1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"account_balance": 0, | ||
"address": null, | ||
"balance": 0, | ||
"created": 1000000000, | ||
"currency": null, | ||
"default_source": "card_NORMALIZED00000000000001", | ||
"delinquent": false, | ||
"description": "zulip (Zulip Dev)", | ||
"discount": null, | ||
"email": "[email protected]", | ||
"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, | ||
"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" | ||
}, | ||
"subscriptions": { | ||
"data": [], | ||
"has_more": false, | ||
"object": "list", | ||
"total_count": 0, | ||
"url": "/v1/customers/cus_NORMALIZED0001/subscriptions" | ||
}, | ||
"tax_exempt": "none", | ||
"tax_ids": { | ||
"data": [], | ||
"has_more": false, | ||
"object": "list", | ||
"total_count": 0, | ||
"url": "/v1/customers/cus_NORMALIZED0001/tax_ids" | ||
}, | ||
"tax_info": null, | ||
"tax_info_verification": null | ||
} |
Oops, something went wrong.