1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00
Commit Graph

23 Commits

Author SHA1 Message Date
45f6ec1781 Families for enterprise/stripe integrations (#1699)
* Add PlanSponsorshipType to static store

* Add sponsorship type to token and creates sponsorship

* PascalCase properties

* Require sponsorship for remove

* Create subscription sponsorship helper class

* Handle Sponsored subscription changes

* Add sponsorship id to subscription metadata

* Make sponsoring references nullable

This state indicates that a sponsorship has lapsed, but was not able to
be reverted for billing reasons

* WIP: Validate and remove subscriptions

* Update sponsorships on organization and org user delete

* Add friendly name to organization sponsorship
2021-11-12 20:48:59 -05:00
18006591fc Add autoscale to SSO auto provision (#1642) 2021-10-19 07:00:44 -05:00
97b27220dd Use invoice to pay if subscription set to invoice (#1571)
* Use invoice to pay if subscription set to invoice

* Apply suggestions from code review

Co-authored-by: Addison Beck <abeck@bitwarden.com>

* PR review

Move to subscriber model for subscription updates.

Co-authored-by: Addison Beck <abeck@bitwarden.com>
2021-09-14 08:18:06 -05:00
785e788cb6 Support large organization sync (#1311)
* Increase organization max seat size from 30k to 2b (#1274)

* Increase organization max seat size from 30k to 2b

* PR review. Do not modify unless state matches expected

* Organization sync simultaneous event reporting (#1275)

* Split up azure messages according to max size

* Allow simultaneous login of organization user events

* Early resolve small event lists

* Clarify logic

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>

* Improve readability

This comes at the cost of multiple serializations, but the
 improvement in wire-time should more than make up for this
 on message where serialization time matters

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>

* Queue emails (#1286)

* Extract common Azure queue methods

* Do not use internal entity framework namespace

* Prefer IEnumerable to IList unless needed

All of these implementations were just using `Count == 1`,
which is easily replicated. This will be used when abstracting Azure queues

* Add model for azure queue message

* Abstract Azure queue for reuse

* Creat service to enqueue mail messages for later processing

Azure queue mail service uses Azure queues.
Blocking just blocks until all the work is done -- This is
how emailing works today

* Provide mail queue service to DI

* Queue organization invite emails for later processing

All emails can later be added to this queue

* Create Admin hosted service to process enqueued mail messages

* Prefer constructors to static generators

* Mass delete organization users (#1287)

* Add delete many to Organization Users

* Correct formatting

* Remove erroneous migration

* Clarify parameter name

* Formatting fixes

* Simplify bump account revision sproc

* Formatting fixes

* Match file names to objects

* Indicate if large import is expected

* Early pull all existing users we were planning on inviting (#1290)

* Early pull all existing users we were planning on inviting

* Improve sproc name

* Batch upsert org users (#1289)

* Add UpsertMany sprocs to OrganizationUser

* Add method to create TVPs from any object.

Uses DbOrder attribute to generate.
Sproc will fail unless TVP column order matches that of the db type

* Combine migrations

* Correct formatting

* Include sql objects in sql project

* Keep consisten parameter names

* Batch deletes for performance

* Correct formatting

* consolidate migrations

* Use batch methods in OrganizationImport

* Declare @BatchSize

* Transaction names limited to 32 chars

Drop sproc before creating it if it exists

* Update import tests

* Allow for more users in org upgrades

* Fix formatting

* Improve class hierarchy structure

* Use name tuple types

* Fix formatting

* Front load all reflection

* Format constructor

* Simplify ToTvp as class-specific extension

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2021-05-17 09:43:02 -05:00
b877c25234 Implemented tax collection for subscriptions (#1017)
* Implemented tax collection for subscriptions

* Cleanup for Sales Tax

* Cleanup for Sales Tax

* Changes a constraint to an index for checking purposes

* Added and implemented a ReadById method for TaxRate

* Code review fixes for Tax Rate implementation

* Code review fixes for Tax Rate implementation

* Made the SalesTax migration script rerunnable
2020-12-04 12:05:16 -05:00
0f28ac45f9 Consistency on TaxInfo use in service params 2020-06-18 10:41:55 -04:00
b7a500eb63 combined tax updates with other operations 2020-06-17 19:49:27 -04:00
d88838f19e API updates for tax info collection 2020-06-08 17:40:18 -04:00
b72744eafc alloe sub cancellation when deleting account 2019-09-20 13:45:47 -04:00
ff5a0ff0ce payment service support for iap 2019-09-19 23:30:16 -04:00
74bbeae776 adjust storage with payment intent/method handling 2019-08-10 12:59:32 -04:00
bc5322f4cf support for payment intent/method on org signup 2019-08-10 11:58:44 -04:00
00e808d731 payment intent/method support for incomplete status 2019-08-09 23:56:26 -04:00
5bfed59f9c upgrade org api 2019-03-21 21:36:03 -04:00
494b3f18b6 process credit from ipn 2019-02-20 16:03:38 -05:00
b036657d78 apis for subscription vs billing 2019-02-18 15:40:47 -05:00
f225b5d46a rename billing classes 2019-02-10 21:23:37 -05:00
d568b86e1e inject stripepaymentservice 2019-02-08 23:53:09 -05:00
952d624d72 change payment methods between stripe and paypal 2019-01-31 12:11:30 -05:00
e54a381dba setup: process paypal with stripe subscription 2019-01-29 13:12:11 -05:00
938b7f1230 premium renewal reminders job for braintree 2018-07-12 23:23:41 -04:00
082b53e133 refactor for addtnl. payment service (braintree) 2017-07-28 12:09:12 -04:00
2dc9c196c4 paymentservice with stripe & braintree implem. 2017-07-28 00:17:31 -04:00