mirror of
https://github.com/bitwarden/server.git
synced 2026-02-05 08:33:10 +08:00
* Add Gateway columns to Provider table * Add ProviderId column to Transaction table * Create ProviderPlan table * Matt's feedback * Rui's feedback * Fixed Gateway parameter on Provider
49 lines
1.4 KiB
Transact-SQL
49 lines
1.4 KiB
Transact-SQL
CREATE PROCEDURE [dbo].[Provider_Update]
|
|
@Id UNIQUEIDENTIFIER,
|
|
@Name NVARCHAR(50),
|
|
@BusinessName NVARCHAR(50),
|
|
@BusinessAddress1 NVARCHAR(50),
|
|
@BusinessAddress2 NVARCHAR(50),
|
|
@BusinessAddress3 NVARCHAR(50),
|
|
@BusinessCountry VARCHAR(2),
|
|
@BusinessTaxNumber NVARCHAR(30),
|
|
@BillingEmail NVARCHAR(256),
|
|
@BillingPhone NVARCHAR(50) = NULL,
|
|
@Status TINYINT,
|
|
@Type TINYINT = 0,
|
|
@UseEvents BIT,
|
|
@Enabled BIT,
|
|
@CreationDate DATETIME2(7),
|
|
@RevisionDate DATETIME2(7),
|
|
@Gateway TINYINT = 0,
|
|
@GatewayCustomerId VARCHAR(50) = NULL,
|
|
@GatewaySubscriptionId VARCHAR(50) = NULL
|
|
AS
|
|
BEGIN
|
|
SET NOCOUNT ON
|
|
|
|
UPDATE
|
|
[dbo].[Provider]
|
|
SET
|
|
[Name] = @Name,
|
|
[BusinessName] = @BusinessName,
|
|
[BusinessAddress1] = @BusinessAddress1,
|
|
[BusinessAddress2] = @BusinessAddress2,
|
|
[BusinessAddress3] = @BusinessAddress3,
|
|
[BusinessCountry] = @BusinessCountry,
|
|
[BusinessTaxNumber] = @BusinessTaxNumber,
|
|
[BillingEmail] = @BillingEmail,
|
|
[BillingPhone] = @BillingPhone,
|
|
[Status] = @Status,
|
|
[Type] = @Type,
|
|
[UseEvents] = @UseEvents,
|
|
[Enabled] = @Enabled,
|
|
[CreationDate] = @CreationDate,
|
|
[RevisionDate] = @RevisionDate,
|
|
[Gateway] = @Gateway,
|
|
[GatewayCustomerId] = @GatewayCustomerId,
|
|
[GatewaySubscriptionId] = @GatewaySubscriptionId
|
|
WHERE
|
|
[Id] = @Id
|
|
END
|