
The removal of the parameterized constructor leaves the non-nullable properties MerchantAccount and SetupToken uninitialized. In a #nullable enable context, this will generate compiler warnings (CS8618). Since these are required fields, they should be initialized to avoid a null state.
public CreateSessionRequest()
{
MerchantAccount = default!;
SetupToken = default!;
OnCreated();
}
Originally posted by @gemini-code-assist[bot] in #1558 (comment)
The removal of the parameterized constructor leaves the non-nullable properties
MerchantAccountandSetupTokenuninitialized. In a#nullable enablecontext, this will generate compiler warnings (CS8618). Since these are required fields, they should be initialized to avoid a null state.Originally posted by @gemini-code-assist[bot] in #1558 (comment)