#Goltan-Product

1 messages · Page 1 of 1 (latest)

crimson pollen
#

metadata is also a good use, tho

eager fulcrum
#

I was trying to reduce traffic and perform the filtering server side; not having a name filter seemed an obvious omission

#

also... every single Inventory platform that I have worked on has a Product Code column

#

//Does Product already exist?
var stripeProductId = new ProductService().List(new ProductListOptions { }).FirstOrDefault(p => p.Name == product.Name)?.Id;
//Find the Price
if (!string.IsNullOrEmpty(stripeProductId)) {
product.AlternateProductId = new PriceService().List(new PriceListOptions { Limit = 3, Product = stripeProductId }).FirstOrDefault()?.Id;
}

#

works but could be faster...

crimson pollen
#

Yeah, unfortunately we don't have the filter parameter today, sorry :/

eager fulcrum
#

suggestion: add Meta to all list methods - wouldn't that be cool!