square / connect-csharp-sdk

C# client library for the Square Connect APIs
https://docs.connect.squareup.com/
Apache License 2.0
27 stars 25 forks source link

ModifierLists for Item always null #72

Closed DanielGlos closed 6 years ago

DanielGlos commented 6 years ago

Hello, I'm trying to retrieve ModifiersLists for item but its still null althought they are set in Square app and assigned to the item. I'm able to get them with "itemsApi.ListModifierLists(squareLocationId)" call but shouldn't they be also retrieved with item when I do "itemsApi.ListItems(squareLocationId)" call ?

StephenJosey commented 6 years ago

@DanielGlos Our documentation says that ListItems returns an array of Items and "These objects do not include modifier_lists or fees fields. To get an item's associated modifier lists and fees, use the Retrieve Item endpoint."

Alternatively, you can use our V2 ListCatalog endpoint which does include the modifiers: https://github.com/square/connect-csharp-sdk/blob/master/docs/CatalogApi.md#listcatalog

DanielGlos commented 6 years ago

Hi, Thank you for your quick response and I'm sorry. Didn't noticed the description that it indeed shouldn't load also modifiers

Dňa pi 27. 7. 2018, 17:44 Stephen Josey notifications@github.com napísal(a):

@DanielGlos https://github.com/DanielGlos Our documentation says that ListItems returns an array of Items and "These objects do not include modifier_lists or fees fields. To get an item's associated modifier lists and fees, use the Retrieve Item endpoint."

Alternatively, you can use our V2 ListCatalog endpoint which does include the modifiers: https://github.com/square/connect-csharp-sdk/blob/master/docs/CatalogApi.md#listcatalog

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/square/connect-csharp-sdk/issues/72#issuecomment-408458484, or mute the thread https://github.com/notifications/unsubscribe-auth/AQb4w_DNHDOkfx5vvrSql6QEO4vG92Qdks5uKzVAgaJpZM4VjKa8 .

StephenJosey commented 6 years ago

No worries! I also forgot to point out where it is, sorry about that. See the documentation here: https://docs.connect.squareup.com/api/connect/v1#get-items

Of course, please let me know if you have additional questions or concerns! We definitely appreciate developers catching issues 👍 .