Shopify / mobile-buy-sdk-android

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using their credit card.
MIT License
214 stars 137 forks source link

How can I get customer tags? #612

Closed Paul-Petrash closed 5 years ago

Paul-Petrash commented 5 years ago

Hi. How can I get the customer tags on this SDK, for applying discount? I found that there is an ability to get the customer tag via API, but it does not possible via SDK, is there way to do that ?

rebeccajfriedman commented 5 years ago

Customer tags is available on the Customer object - see Storefront.java for more details.

/**
* A list of tags assigned to the customer.
* Additional access scope required: unauthenticated_read_customer_tags.
*/
public CustomerQuery tags() {
    startField("tags");

    return this;
}