#FireCoder
1 messages · Page 1 of 1 (latest)
Hi there
Hello
What language are you using? And can you provide your full update Customer request code?
Hmm that looks fine. Are you seeing an error or just seeing null?
Well, right now I cannot get the red squiggles to go away. customer.StreetAddress is a string.
Oh I thought you said you changed that. What does it indicate when you hover over the red?
I originally had: updCustInfo.Address.Line1 = customer.StreetAddress; That was giving me a null ref.
Mmmk one sec — I'm not super familiar with .NET so gimme a moment
sure
Okay pretty sure https://github.com/stripe/stripe-dotnet/blob/1e2835878f5763d5bc5febd988499b4031ec3d15/src/Stripe.net/Services/Customers/CustomerUpdateOptions.cs is what we want to be looking at
So instead of dictionary try AddressOptions Address { get; set; }
Got it I think, based off your input.
var updCustOptions = new CustomerUpdateOptions
{
Address = new AddressOptions { City = customer.City },
};
Nice
Yeah, it was a bit confusing at first. Thank you for your assistance.
Glad you figured it out!