-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update sdk with new relationships api
- Loading branch information
1 parent
1639d16
commit 1d12c7f
Showing
13 changed files
with
91 additions
and
142 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
7 changes: 0 additions & 7 deletions
7
ConsumerApi.Sdk/Endpoints/Relationships/Types/OptionalDateRange.cs
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
ConsumerApi.Sdk/Endpoints/Relationships/Types/Relationship.cs
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
ConsumerApi.Sdk/Endpoints/Relationships/Types/RelationshipAuditLogEntryDTO.cs
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,11 @@ | ||
namespace Backbone.ConsumerApi.Sdk.Endpoints.Relationships.Types; | ||
|
||
public class RelationshipAuditLogEntryDTO | ||
{ | ||
public required DateTime CreatedAt { get; set; } | ||
public required string CreatedBy { get; set; } | ||
public required string CreatedByDevice { get; set; } | ||
public required string Reason { get; set; } | ||
public required string? OldStatus { get; set; } | ||
public required string NewStatus { get; set; } | ||
} |
14 changes: 14 additions & 0 deletions
14
ConsumerApi.Sdk/Endpoints/Relationships/Types/RelationshipDTO.cs
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,14 @@ | ||
namespace Backbone.ConsumerApi.Sdk.Endpoints.Relationships.Types; | ||
|
||
public class RelationshipDTO | ||
{ | ||
public required string Id { get; set; } | ||
public required string RelationshipTemplateId { get; set; } | ||
public required string From { get; set; } | ||
public required string To { get; set; } | ||
public byte[]? CreationContent { get; set; } | ||
public byte[]? CreationResponseContent { get; set; } | ||
public DateTime CreatedAt { get; set; } | ||
public required string Status { get; set; } | ||
public required List<RelationshipAuditLogEntryDTO> AuditLog { get; set; } | ||
} |
43 changes: 0 additions & 43 deletions
43
ConsumerApi.Sdk/Endpoints/Relationships/Types/RelationshipMetadata.cs
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
ConsumerApi.Sdk/Endpoints/Relationships/Types/RelationshipMetadataDTO.cs
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,16 @@ | ||
namespace Backbone.ConsumerApi.Sdk.Endpoints.Relationships.Types; | ||
|
||
public class RelationshipMetadataDTO | ||
{ | ||
public required string Id { get; set; } | ||
public required string RelationshipTemplateId { get; set; } | ||
|
||
public required string From { get; set; } | ||
public required string To { get; set; } | ||
|
||
public required DateTime CreatedAt { get; set; } | ||
|
||
public required string Status { get; set; } | ||
|
||
public required List<RelationshipAuditLogEntryDTO> AuditLog { get; set; } | ||
} |
6 changes: 6 additions & 0 deletions
6
ConsumerApi.Sdk/Endpoints/Relationships/Types/Requests/AcceptRelationshipRequest.cs
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,6 @@ | ||
namespace Backbone.ConsumerApi.Sdk.Endpoints.Relationships.Types.Requests; | ||
|
||
public class AcceptRelationshipRequest | ||
{ | ||
public byte[]? CreationResponseContent { get; set; } = Array.Empty<byte>(); | ||
} |
6 changes: 0 additions & 6 deletions
6
ConsumerApi.Sdk/Endpoints/Relationships/Types/Requests/CompleteRelationshipChangeRequest.cs
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
ConsumerApi.Sdk/Endpoints/Relationships/Types/Requests/RejectRelationshipRequest.cs
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,6 @@ | ||
namespace Backbone.ConsumerApi.Sdk.Endpoints.Relationships.Types.Requests; | ||
|
||
public class RejectRelationshipRequest | ||
{ | ||
public byte[]? CreationResponseContent { get; set; } = Array.Empty<byte>(); | ||
} |
6 changes: 6 additions & 0 deletions
6
ConsumerApi.Sdk/Endpoints/Relationships/Types/Requests/RevokeRelationshipRequest.cs
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,6 @@ | ||
namespace Backbone.ConsumerApi.Sdk.Endpoints.Relationships.Types.Requests; | ||
|
||
public class RevokeRelationshipRequest | ||
{ | ||
public byte[]? CreationResponseContent { get; set; } = Array.Empty<byte>(); | ||
} |
5 changes: 0 additions & 5 deletions
5
ConsumerApi.Sdk/Endpoints/Relationships/Types/Responses/ListRelationshipChangesResponse.cs
This file was deleted.
Oops, something went wrong.
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