-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from sherweb/TenantsWebhooks
Cumulus response updated
- Loading branch information
Showing
6 changed files
with
308 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Xtkl.NceTransferWebhooks.DTOs | ||
{ | ||
record TransferWebhookDto(string EventName, string ResourceUri, string ResourceName, string AuditUri, DateTime ResourceChangeUtcDate); | ||
} |
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,38 @@ | ||
using Swashbuckle.AspNetCore.Annotations; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Xtkl.NceTransferWebhooks.DTOs | ||
{ | ||
record CreateTransferDto | ||
{ | ||
[JsonRequired] | ||
[SwaggerSchema("The region of the tenant, restricted to 'CA', 'US', or 'EU'.")] | ||
[System.Text.Json.Serialization.JsonConverter(typeof(JsonStringEnumConverter))] | ||
public TenantRegion TenantRegion { get; init; } | ||
|
||
[JsonRequired] | ||
[SwaggerSchema("A GUID formatted customer ID that identifies the customer.")] | ||
public Guid CustomerId { get; init; } | ||
|
||
[JsonRequired] | ||
[SwaggerSchema("A GUID formatted partner ID that identifies the partner initiating the transfer.")] | ||
public Guid SourcePartnerTenantId { get; init; } | ||
|
||
[JsonRequired] | ||
[SwaggerSchema("The name of the partner's organization initiating the transfer.")] | ||
public string SourcePartnerName { get; init; } | ||
Check warning on line 23 in Xtkl.NceTransferWebhooks/DTOs/CreateTransferDto.cs GitHub Actions / build
|
||
|
||
[JsonRequired] | ||
[SwaggerSchema("The email ID of the customer to receive notifications of the transfer creation.")] | ||
public string CustomerEmailId { get; init; } | ||
Check warning on line 27 in Xtkl.NceTransferWebhooks/DTOs/CreateTransferDto.cs GitHub Actions / build
|
||
|
||
[SwaggerSchema("The name of the customer whose subscriptions are being transferred.")] | ||
public string CustomerName { get; init; } | ||
Check warning on line 30 in Xtkl.NceTransferWebhooks/DTOs/CreateTransferDto.cs GitHub Actions / build
|
||
|
||
[SwaggerSchema("A GUID formatted partner tenant ID that identifies the partner to whom the transfer is targeted.")] | ||
public Guid TargetPartnerTenantId { get; init; } | ||
|
||
[SwaggerSchema("The email ID of the partner to whom the transfer is targeted.")] | ||
public string TargetPartnerEmailId { get; init; } | ||
Check warning on line 36 in Xtkl.NceTransferWebhooks/DTOs/CreateTransferDto.cs GitHub Actions / build
|
||
} | ||
} |
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,13 @@ | ||
| ||
enum TenantRegion | ||
{ | ||
CA, // Canada | ||
US, // United States | ||
EU // Europe | ||
} | ||
|
||
enum TransferStatus | ||
{ | ||
Complete, | ||
Expired | ||
} |
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,25 @@ | ||
namespace Xtkl.NceTransferWebhooks.Model | ||
{ | ||
record Transfer( | ||
string id, | ||
string status, | ||
int transferType, | ||
string customerEmailId, | ||
DateTime createdTime, | ||
DateTime LastModifiedTime, | ||
DateTime? completedTime, | ||
DateTime? expirationTime, | ||
string customerName, | ||
string customerTenantId, | ||
string partnerTenantId, | ||
string sourcePartnerName, | ||
string sourcePartnerTenantId, | ||
string targetPartnerName, | ||
string targetPartnerTenantId, | ||
string argetPartnerEmailId, | ||
int transferDirection, | ||
bool ignoreEligibilityCheck, | ||
string lastModifiedUser | ||
); | ||
|
||
} |
Oops, something went wrong.