#luca-baldassarri_error

1 messages · Page 1 of 1 (latest)

knotty torrentBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1338910985443872860

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

pine tiger
#

Hello, good question, looking in to this. Can you send me the code that you are currently calling when creating an account here?

hallow carbon
#

RequestOptions requestOptions = BuildAuthStripeObject(request.ApiKey);

AccountCreateOptions accountOptions =
_mapper.Map<AccountCreateOptions>(request);

Account account = service.Create(accountOptions, requestOptions);

#

This is the map of accountCreateOptions

#

CreateMap<AccountOnboardingSessionRequest, AccountCreateOptions>()
.ForMember(y => y.DefaultCurrency, opt => opt.MapFrom(src => src.AccountDetails.Currency))
.ForMember(y => y.Country, opt => opt.MapFrom(src => src.AccountDetails.Country))
.ForMember(y => y.Email, opt => opt.MapFrom(src => src.AccountDetails.Email))
.AfterMap((src, dest, context) =>
{
dest.Company = context.Mapper.Map<AccountCompanyOptions>(src);

    dest.Capabilities = new AccountCapabilitiesOptions
    {
        CardPayments = new AccountCapabilitiesCardPaymentsOptions
        {
            Requested = true,
        },
        Transfers = new AccountCapabilitiesTransfersOptions
        {
            Requested = true,
        },
    };

    dest.Controller = new AccountControllerOptions
    {
        StripeDashboard = new AccountControllerStripeDashboardOptions
        {
            Type = "none"
        },
        Fees = new AccountControllerFeesOptions
        {
            Payer = "application"
        },
        Losses = new AccountControllerLossesOptions
        {
            Payments = "application"
        },
        RequirementCollection = "application",
    };
});
knotty torrentBOT
pine tiger
#

Apologies just getting back to this. What are you trying to pass in through AccountCompanyOptions?

hallow carbon
#

I value the Name field of AccountCompanyOptions object only

pine tiger
#

We could technically infer that from you passing that info alone, but we want your code to also pass that to make sure your intentions clearer

dense spoke
#

Hi hi! I’m going to be jumping in here; give me a moment to read back.