1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 12:43:14 +00:00

Enable disabled provider on successful update payment method invocation (#6129)

This commit is contained in:
Alex Morask
2025-07-28 09:26:11 -05:00
committed by GitHub
parent cff34b9194
commit db4beb47f7
2 changed files with 18 additions and 2 deletions

View File

@@ -28,4 +28,10 @@ public class BillingCommandResult<T> : OneOfBase<T, BadRequest, Conflict, Unhand
public static implicit operator BillingCommandResult<T>(BadRequest badRequest) => new(badRequest);
public static implicit operator BillingCommandResult<T>(Conflict conflict) => new(conflict);
public static implicit operator BillingCommandResult<T>(Unhandled unhandled) => new(unhandled);
public Task TapAsync(Func<T, Task> f) => Match(
f,
_ => Task.CompletedTask,
_ => Task.CompletedTask,
_ => Task.CompletedTask);
}