Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class AssignCommand
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public AssignCommand1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class Completion
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public Completion1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ public partial class Completion1
[Required]
public SynchronizerTime SynchronizerTime { get; set; } = null!;

/// <summary>
/// <para>The traffic cost paid by this participant node for the confirmation request for the submitted command.</para>
/// <para>Commands whose execution is rejected before their corresponding confirmation request is ordered by the synchronizer will report a paid traffic cost of zero. If a confirmation request is ordered for a command, but the request fails (e.g., due to contention with a concurrent contract archival), the traffic cost is paid and reported on the failed completion for the request.</para>
/// <para>If you want to correlate the traffic cost of a successful completion with the transaction that resulted from the command, you can use the &lt;c&gt;offset&lt;/c&gt; field to retrieve the transaction using &lt;c&gt;UpdateService.GetUpdateByOffset&lt;/c&gt; on the same participant node; or alternatively use the &lt;c&gt;update_id&lt;/c&gt; field to retrieve the transaction using &lt;c&gt;UpdateService.GetUpdateById&lt;/c&gt; on any participant node that sees the transaction.</para>
/// <para>Note: for completions processed before the participant started serving traffic cost on the Ledger API, this field will be set to zero. Additionally, the total cost incurred by the submitting node for the submission of the transaction may be greater than the reported cost, for example if retries were issued due to failed submissions to the synchronizer. The cost reported here is the one paid for ordering the confirmation request.</para>
/// <para>Optional</para>
/// </summary>
[JsonPropertyName("paidTrafficCost")]
public long? PaidTrafficCost { get; set; }

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class InterfaceFilter
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public InterfaceFilter1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,20 @@ public partial class JsReassignment
[Required]
public string SynchronizerId { get; set; } = null!;

/// <summary>
/// <para>The traffic cost that this participant node paid for the corresponding (un)assignment request.</para>
/// <para>Not set for transactions that were</para>
/// <list type="bullet">
/// <item><description>initiated by another participant</description></item>
/// <item><description>initiated offline via the repair service</description></item>
/// <item><description>processed before the participant started serving traffic cost on the Ledger API</description></item>
/// <item><description>returned as part of a query filtering for a non submitting party</description></item>
/// </list>
/// <para>Optional: can be empty</para>
/// </summary>
[JsonPropertyName("paidTrafficCost")]
public long? PaidTrafficCost { get; set; }

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ public partial class JsTransaction
[JsonPropertyName("externalTransactionHash")]
public string ExternalTransactionHash { get; set; } = null!;

/// <summary>
/// <para>The traffic cost that this participant node paid for the confirmation request for this transaction.</para>
/// <para>Not set for transactions that were</para>
/// <list type="bullet">
/// <item><description>initiated by another participant</description></item>
/// <item><description>initiated offline via the repair service</description></item>
/// <item><description>processed before the participant started serving traffic cost on the Ledger API</description></item>
/// <item><description>returned as part of a query filtering for a non submitting party</description></item>
/// </list>
/// <para>Optional: can be empty</para>
/// </summary>
[JsonPropertyName("paidTrafficCost")]
public long? PaidTrafficCost { get; set; }

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class JsUnassignedEvent
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public UnassignedEvent Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public partial class OffsetCheckpoint
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public OffsetCheckpoint1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public partial class OffsetCheckpoint2
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public OffsetCheckpoint1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public partial class OffsetCheckpoint3
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public OffsetCheckpoint1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public partial class ParticipantAuthorizationAdded
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public ParticipantAuthorizationAdded1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public partial class ParticipantAuthorizationChanged
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public ParticipantAuthorizationChanged1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public partial class ParticipantAuthorizationRevoked
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public ParticipantAuthorizationRevoked1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class Reassignment
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public JsReassignment Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class Reassignment1
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public JsReassignment Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class TemplateFilter
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public TemplateFilter1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public partial class TopologyTransaction
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public JsTopologyTransaction Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class Transaction
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public JsTransaction Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class TransactionTree
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public JsTransactionTree Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class UnassignCommand
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public UnassignCommand1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public partial class WildcardFilter
/// <summary>
/// </summary>
[JsonPropertyName("value")]
[Required]
public WildcardFilter1 Value { get; set; } = null!;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ public partial class FeatureSupportResponse
{
/// <summary>
/// </summary>
[JsonPropertyName("no_holding_fees_on_transfers")]
[Required]
public bool NoHoldingFeesOnTransfers { get; set; }
[JsonPropertyName("dummy")]
public bool? Dummy { get; set; }

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ public partial class WalletFeatureSupportResponse
[Required]
public bool TransferPreapprovalDescription { get; set; }

/// <summary>
/// </summary>
[JsonPropertyName("no_holding_fees_on_transfers")]
[Required]
public bool NoHoldingFeesOnTransfers { get; set; }

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// <auto-generated>
// Generated from OpenAPI components by generate-components-cs.py
// </auto-generated>

#nullable enable

using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;

namespace Trakx.Canton.ApiClient.Contracts.Utilities
{
/// <summary>
/// <para>Additional metadata associated with the transfer.</para>
/// </summary>
[GeneratedCode("OpenAPIComponentsGen", "1.0.0")]
public partial class TransferMeta
{
/// <summary>
/// <para>Arbitrary key-value metadata attached to the transfer.</para>
/// </summary>
[JsonPropertyName("values")]
[Required]
public System.Collections.Generic.IDictionary<string, string> Values { get; set; } = null!;

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
// <auto-generated>
// Generated from OpenAPI components by generate-components-cs.py
// </auto-generated>

#nullable enable

using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;

namespace Trakx.Canton.ApiClient.Contracts.Utilities
{
/// <summary>
/// <para>The transfer payload containing transaction details known only to the sender and receiver.</para>
/// </summary>
[GeneratedCode("OpenAPIComponentsGen", "1.0.0")]
public partial class TransferObject
{
/// <summary>
/// <para>The party ID of the transfer sender.</para>
/// </summary>
[JsonPropertyName("sender")]
[Required]
public string Sender { get; set; } = null!;

/// <summary>
/// <para>The party ID of the transfer receiver.</para>
/// </summary>
[JsonPropertyName("receiver")]
[Required]
public string Receiver { get; set; } = null!;

/// <summary>
/// <para>The transfer amount as a decimal string.</para>
/// </summary>
[JsonPropertyName("amount")]
[Required]
public string Amount { get; set; } = null!;

/// <summary>
/// </summary>
[JsonPropertyName("instrumentId")]
[Required]
public InstrumentId InstrumentId { get; set; } = null!;

/// <summary>
/// <para>The timestamp when the transfer was requested.</para>
/// </summary>
[JsonPropertyName("requestedAt")]
[Required]
public DateTimeOffset RequestedAt { get; set; }

/// <summary>
/// <para>The deadline by which the transfer must be executed.</para>
/// </summary>
[JsonPropertyName("executeBefore")]
[Required]
public DateTimeOffset ExecuteBefore { get; set; }

/// <summary>
/// <para>Contract IDs of the holdings used as inputs for the transfer.</para>
/// </summary>
[JsonPropertyName("inputHoldingCids")]
[Required]
public System.Collections.Generic.IList<string> InputHoldingCids { get; set; } = new List<string>();

/// <summary>
/// </summary>
[JsonPropertyName("meta")]
[Required]
public TransferMeta Meta { get; set; } = null!;

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// <auto-generated>
// Generated from OpenAPI components by generate-components-cs.py
// </auto-generated>

#nullable enable

using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;

namespace Trakx.Canton.ApiClient.Contracts.Utilities
{
/// <summary>
/// <para>The status of the transfer proof verification:</para>
/// <list type="bullet">
/// <item><description>`Success`: The proof is verified and the transfer was successfully concluded</description></item>
/// <item><description>`Failure`: The proof is verified, but the transfer did not successfully conclude.</description></item>
/// <item><description>`Pending`: The transaction is still in progress (e.g., a transfer offer has been sent but not yet accepted in a two-step flow).</description></item>
/// </list>
/// </summary>
[GeneratedCode("OpenAPIComponentsGen", "1.0.0")]
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum TransferProofStatus
{
/// <summary>
/// </summary>
[EnumMember(Value = "Success")]
Success = 0,
/// <summary>
/// </summary>
[EnumMember(Value = "Failure")]
Failure = 1,
/// <summary>
/// </summary>
[EnumMember(Value = "Pending")]
Pending = 2,
}

}
Loading
Loading