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
@@ -0,0 +1,30 @@
namespace IntegratoR.SampleFunction.Domain.DTOs.SmokeTest;

/// <summary>
/// Inputs for the LedgerJournalBatchSmokeTest HTTP trigger, which exercises the configurable,
/// chunked <c>$batch</c> write path (v3.0.0) against a live D365 F&amp;O sandbox: chunked atomic
/// create, atomic-changeset rollback, continue-on-error partial accept, and batch delete.
/// </summary>
/// <param name="Company">The D365 legal entity (DataAreaId) to create the journal in.</param>
/// <param name="JournalName">The journal name setup (e.g. "GenJrn").</param>
/// <param name="AccountDisplayValue">Debit account, must exist in the sandbox COA.</param>
/// <param name="OffsetAccountDisplayValue">Credit account, must exist in the sandbox COA.</param>
/// <param name="Amount">Amount posted on each line.</param>
/// <param name="CurrencyCode">ISO currency code (e.g. "USD", "EUR").</param>
/// <param name="LineCount">
/// How many lines to batch-create (default 6). Must be at least 2 so the update tests have
/// distinct lines to target.
/// </param>
/// <param name="ChunkSize">
/// The per-chunk operation cap for the create step (default 2), set deliberately small so the
/// create splits across several <c>$batch</c> changesets and the chunking path is exercised.
/// </param>
public sealed record LedgerJournalBatchSmokeTestRequest(
string Company,
string JournalName,
string AccountDisplayValue,
string OffsetAccountDisplayValue,
decimal Amount,
string CurrencyCode,
int LineCount = 6,
int ChunkSize = 2);
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace IntegratoR.SampleFunction.Domain.DTOs.SmokeTest;

/// <summary>
/// Result of the LedgerJournalBatchSmokeTest HTTP trigger. <see cref="Success"/> is <c>true</c>
/// only when every step succeeded; <see cref="Steps"/> carries the per-step outcome so a caller
/// can see exactly which batch phase (chunked create, atomic rollback, continue-on-error partial,
/// batch delete) passed or failed.
/// </summary>
public sealed record LedgerJournalBatchSmokeTestResponse(
bool Success,
string? CreatedJournalBatchNumber,
IReadOnlyList<SmokeTestStep> Steps);
Loading
Loading