Converters

List of Available Converters

AccountConverter

Converts shopify customer information to Poq contract classes.

Methods
  • ConvertToShopifyCustomerRequest converts RegisterRequest to ShopifyCustomerRequest

  • ConvertToShopifyAccountDetailsResponse converts ShopifyCustomerResponse to ProfileResponse

  • ConvertToShopifyCustomerRequestSecure converts ProfileRequest to ShopifyCustomerRequest omitting security related fields.

ShopifyCategoryConverter

Converts list of ShopifyMenuItem obtained with ShopifyNavigationClient to NavigationCategory returned from /shop endpoint.

Methods
  • ToNavigationCategories converts ShopifyMenuItem to NavigationCategory

IdentifierConverter

Converts Shopify identifier from to Global ID

Methods
  • ToGidProductVariantId converts provided variant id long value to GID. If the provided value is not long literal it will be returned as result.

  • ToGidCollectionId converts provided collection id long value to GID. If the provided value is not long literal it will be returned as result.

  • ToGidProductId converts provided product id long value to GID. If the provided value is not long literal it will be returned as result.

  • FromGlobalId converts provided GID to long string literal.