bold-commerce / go-shopify

Go client for the Shopify API
MIT License
330 stars 256 forks source link

Add Metafield accessor to Shop #227

Closed weirdian2k3 closed 1 year ago

weirdian2k3 commented 1 year ago

This adds an easy way to access the metafields on the shop resource.

In order to reuse the existing interfaces, the methods still accept a resource id, but we just ignore that value

metafields, err := client.Shop.ListMetafields(0, nil)
codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5ce8844) 100.00% compared to head (8ccec26) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #227 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 44 44 Lines 1912 1930 +18 ========================================= + Hits 1912 1930 +18 ``` | [Files Changed](https://app.codecov.io/gh/bold-commerce/go-shopify/pull/227?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bold+Commerce) | Coverage Δ | | |---|---|---| | [shop.go](https://app.codecov.io/gh/bold-commerce/go-shopify/pull/227?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bold+Commerce#diff-c2hvcC5nbw==) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.