-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A haskell API binding for shopify.com -- -- A haskell API binding for shopify.com @package shopify @version 0 module Network.Shopify.Types type ShopifyID = Int64 class JsonExtending a jsonExtender :: JsonExtending a => a -> [Pair] data ShopifyMeta ShopifyMeta :: ShopifyID -> UTCTime -> UTCTime -> ShopifyMeta [metaId] :: ShopifyMeta -> ShopifyID [metaCreated] :: ShopifyMeta -> UTCTime [metaUpdated] :: ShopifyMeta -> UTCTime data ShopifyDate ShopifyDate :: UTCTime -> ShopifyDate [actualTime] :: ShopifyDate -> UTCTime dateToQuery :: UTCTime -> Maybe ByteString type ProductID = ShopifyID type LineItemID = ShopifyID type CollectionID = ShopifyID type OrderID = ShopifyID type Sku = Text instance GHC.Show.Show Network.Shopify.Types.ShopifyMeta instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Types.ShopifyDate instance Data.Aeson.Types.ToJSON.ToJSON Network.Shopify.Types.ShopifyDate instance Network.Shopify.Types.JsonExtending Network.Shopify.Types.ShopifyMeta instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Types.ShopifyMeta module Network.Shopify.Permissions data ShopifyScopes ScopeContent :: ShopifyAccessLevel -> ShopifyScopes ScopeThemes :: ShopifyAccessLevel -> ShopifyScopes ScopeProducts :: ShopifyAccessLevel -> ShopifyScopes ScopeCustomers :: ShopifyAccessLevel -> ShopifyScopes ScopeOrders :: ShopifyAccessLevel -> ShopifyScopes ScopeScriptTags :: ShopifyAccessLevel -> ShopifyScopes ScopeShipping :: ShopifyAccessLevel -> ShopifyScopes data ShopifyAccessLevel ShopifyRead :: ShopifyAccessLevel ShopifyWrite :: ShopifyAccessLevel instance GHC.Classes.Eq Network.Shopify.Permissions.ShopifyScopes instance GHC.Classes.Eq Network.Shopify.Permissions.ShopifyAccessLevel instance GHC.Show.Show Network.Shopify.Permissions.ShopifyAccessLevel instance GHC.Show.Show Network.Shopify.Permissions.ShopifyScopes module Network.Shopify.Metafield data MetaFields data MetaValue MetaString :: Text -> MetaValue MetaInt :: Integer -> MetaValue type MetaNamespace = Text emptyMeta :: MetaFields setMeta :: MetaNamespace -> Text -> MetaValue -> MetaFields -> MetaFields lookupMeta :: MetaNamespace -> Text -> MetaFields -> Maybe MetaValue lookupMetaString :: MetaNamespace -> Text -> MetaFields -> Maybe Text instance GHC.Show.Show Network.Shopify.Metafield.MetaFields instance GHC.Show.Show Network.Shopify.Metafield.MetaValue instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Metafield.MetaFields instance Data.Aeson.Types.ToJSON.ToJSON Network.Shopify.Metafield.MetaFields module Network.Shopify.Connection data ShopifyConfig ShopifyConfig :: String -> ByteString -> ByteString -> Maybe ByteString -> ShopifyConfig [scStoreName] :: ShopifyConfig -> String [scApiKey] :: ShopifyConfig -> ByteString [scSharedSecret] :: ShopifyConfig -> ByteString [scRedirectUrl] :: ShopifyConfig -> Maybe ByteString type Shopify = ReaderT ShopifyConfig IO shopifyGet :: FromJSON r => String -> (a -> ByteString) -> a -> Shopify r shopifySet :: FromJSON r => String -> Bool -> Value -> Shopify r shopifyDelete :: FromJSON r => String -> Shopify r instance GHC.Show.Show Network.Shopify.Connection.ShopifyConfig module Network.Shopify.Orders data Order Order :: ShopifyMeta -> Text -> Int64 -> Int64 -> Text -> Text -> Maybe Text -> Bool -> Maybe Text -> Address -> Address -> [OrderShipping] -> [ShopifyProperty] -> [LineItem] -> Bool -> [TaxLine] -> Centi -> [DiscountCode] -> Centi -> Centi -> Centi -> Text -> Centi -> Centi -> Int -> FinancialStatus -> OrderFulfillmentStatus -> [OrderFulfillment] -> Maybe UTCTime -> Maybe UTCTime -> Maybe Text -> Order [oMeta] :: Order -> ShopifyMeta [oEmail] :: Order -> Text [oNumber] :: Order -> Int64 [oOrderNum] :: Order -> Int64 [oOrderName] :: Order -> Text [oToken] :: Order -> Text [oNote] :: Order -> Maybe Text [oAcceptsMarketing] :: Order -> Bool [oReferrer] :: Order -> Maybe Text [oBillingAddress] :: Order -> Address [oShippingAddress] :: Order -> Address [oShippings] :: Order -> [OrderShipping] [oProperties] :: Order -> [ShopifyProperty] [oItems] :: Order -> [LineItem] [oTaxesIncluded] :: Order -> Bool [oTaxLines] :: Order -> [TaxLine] [oTotalTax] :: Order -> Centi [oDiscounts] :: Order -> [DiscountCode] [oTotalDiscounts] :: Order -> Centi [oTotalLineItemsPrice] :: Order -> Centi [oSubtotal] :: Order -> Centi [oCurrency] :: Order -> Text [oTotalPrice] :: Order -> Centi [oTotalPriceUSD] :: Order -> Centi [oGrams] :: Order -> Int [oFinancialStatus] :: Order -> FinancialStatus [oFulfillmentStatus] :: Order -> OrderFulfillmentStatus [oFulfillments] :: Order -> [OrderFulfillment] [oClosedAt] :: Order -> Maybe UTCTime [oCancelledAt] :: Order -> Maybe UTCTime [oCancelReason] :: Order -> Maybe Text data Address Address :: Text -> Text -> Text -> Maybe Text -> Text -> Maybe Text -> Text -> Text -> Text -> Maybe Text -> Text -> Text -> Maybe Text -> Maybe (Double, Double) -> Address [aFirstName] :: Address -> Text [aLastName] :: Address -> Text [aName] :: Address -> Text [aCompany] :: Address -> Maybe Text [aStreet1] :: Address -> Text [aStreet2] :: Address -> Maybe Text [aCity] :: Address -> Text [aProvince] :: Address -> Text [aProvinceCode] :: Address -> Text [aZip] :: Address -> Maybe Text [aCountry] :: Address -> Text [aCountryCode] :: Address -> Text [aPhone] :: Address -> Maybe Text [aLatLong] :: Address -> Maybe (Double, Double) data LineItem LineItem :: LineItemID -> Int -> Centi -> Text -> Int -> Text -> Text -> Bool -> [ShopifyProperty] -> LineItem [liId] :: LineItem -> LineItemID [liGrams] :: LineItem -> Int [liPrice] :: LineItem -> Centi [liSku] :: LineItem -> Text [liQuantity] :: LineItem -> Int [liTitle] :: LineItem -> Text [liName] :: LineItem -> Text [liShips] :: LineItem -> Bool [liProperties] :: LineItem -> [ShopifyProperty] data OrderShipping OrderShipping :: Text -> Centi -> Text -> Text -> OrderShipping [osCode] :: OrderShipping -> Text [osPrice] :: OrderShipping -> Centi [osSource] :: OrderShipping -> Text [osTitle] :: OrderShipping -> Text data ShopifyProperty ShopifyProperty :: Text -> Text -> ShopifyProperty [spName] :: ShopifyProperty -> Text [spValue] :: ShopifyProperty -> Text data OrderFulfillmentStatus OrderFulfillmentStatusNil :: OrderFulfillmentStatus OrderFulfillmentStatusPartial :: OrderFulfillmentStatus OrderFulfillmentStatusFulfilled :: OrderFulfillmentStatus OrderFulfillmentStatusRestocked :: OrderFulfillmentStatus data OrderFulfillment OrderFulfillment :: ShopifyMeta -> OrderFulfillmentStatus -> [LineItem] -> Maybe Text -> Maybe Text -> FulfillmentService -> OrderFulfillment [fMeta] :: OrderFulfillment -> ShopifyMeta [fStatus] :: OrderFulfillment -> OrderFulfillmentStatus [fLineItems] :: OrderFulfillment -> [LineItem] [fTrackingUrl] :: OrderFulfillment -> Maybe Text [fTrackingNumber] :: OrderFulfillment -> Maybe Text [fService] :: OrderFulfillment -> FulfillmentService data DiscountCode DiscountCode :: Text -> Centi -> DiscountCode [dcCode] :: DiscountCode -> Text [dcAmount] :: DiscountCode -> Centi data TaxLine TaxLine :: Text -> Double -> Centi -> TaxLine [tlTitle] :: TaxLine -> Text [tlRate] :: TaxLine -> Double [tlPRice] :: TaxLine -> Centi data OrderQuery OQCreatedBefore :: UTCTime -> OrderQuery OQCreatedAfter :: UTCTime -> OrderQuery OQFinancialStatus :: FinancialStatus -> OrderQuery OQFulfillmentStatus :: FulfillmentStatus -> OrderQuery OQGreaterThen :: OrderID -> OrderQuery OQStatus :: OrderStatus -> OrderQuery OQUpdatedBefore :: UTCTime -> OrderQuery OQUpdatedAfter :: UTCTime -> OrderQuery data OrderStatus OrderOpen :: OrderStatus OrderClosed :: OrderStatus OrderCancelled :: OrderStatus data FinancialStatus FinancialStatusNull :: FinancialStatus FinancialStatusPending :: FinancialStatus FinancialStatusAuthorized :: FinancialStatus FinancialStatusPaid :: FinancialStatus FinancialStatusPartiallyPaid :: FinancialStatus FinancialStatusVoided :: FinancialStatus FinancialStatusPartialRefund :: FinancialStatus FinancialStatusRefunded :: FinancialStatus data FulfillmentStatus FulfillmentStatusNil :: FulfillmentStatus FulfillmentStatusPartial :: FulfillmentStatus FulfillmentStatusFulfilled :: FulfillmentStatus data TransactionFailed fulfillOrder :: Order -> Maybe TrackingNumber -> Shopify () captureOrder :: Order -> Shopify () queryOrder :: OrderID -> Shopify Order queryOrders :: [OrderQuery] -> Shopify [Order] instance GHC.Show.Show Network.Shopify.Orders.Order instance GHC.Show.Show Network.Shopify.Orders.OrderFulfillment instance GHC.Show.Show Network.Shopify.Orders.FulfillmentService instance GHC.Show.Show Network.Shopify.Orders.OrderFulfillmentStatus instance GHC.Show.Show Network.Shopify.Orders.OrderQuery instance GHC.Show.Show Network.Shopify.Orders.FulfillmentStatus instance GHC.Show.Show Network.Shopify.Orders.FinancialStatus instance GHC.Show.Show Network.Shopify.Orders.LineItem instance GHC.Show.Show Network.Shopify.Orders.TaxLine instance GHC.Show.Show Network.Shopify.Orders.ShopifyProperty instance GHC.Show.Show Network.Shopify.Orders.OrderShipping instance GHC.Show.Show Network.Shopify.Orders.DiscountCode instance GHC.Show.Show Network.Shopify.Orders.Address instance GHC.Show.Show Network.Shopify.Orders.TransactionFailed instance GHC.Show.Show Network.Shopify.Orders.Transaction instance GHC.Show.Show Network.Shopify.Orders.OrderStatus instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.Transaction instance GHC.Exception.Exception Network.Shopify.Orders.TransactionFailed instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.Order instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.Address instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.DiscountCode instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.OrderShipping instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.ShopifyProperty instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.TaxLine instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.LineItem instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.FinancialStatus instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.OrderFulfillmentStatus instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.OrderFulfillment instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Orders.FulfillmentService module Network.Shopify.Products data Product a Product :: Title -> Maybe Text -> ProductType -> Text -> Vendor -> Set Text -> [a] -> [ProductImage] -> [Text] -> MetaFields -> Product a [pTitle] :: Product a -> Title [pNameTag] :: Product a -> Maybe Text [pType] :: Product a -> ProductType [pHtml] :: Product a -> Text [pVendor] :: Product a -> Vendor [pTags] :: Product a -> Set Text [pVariants] :: Product a -> [a] [pImages] :: Product a -> [ProductImage] [pOptions] :: Product a -> [Text] [pMetaFields] :: Product a -> MetaFields data ProductWithMeta PWM :: ShopifyMeta -> Maybe UTCTime -> Product VariantWithMeta -> ProductWithMeta [pwmMeta] :: ProductWithMeta -> ShopifyMeta [pwmPublished] :: ProductWithMeta -> Maybe UTCTime [pwmProduct] :: ProductWithMeta -> Product VariantWithMeta data ProductVariant ProductVariant :: Sku -> Text -> Centi -> Int -> Int -> InventoryManagement -> InventoryPolicy -> Bool -> Bool -> Maybe Text -> Maybe Text -> Maybe Text -> ProductVariant [pvSku] :: ProductVariant -> Sku [pvTitle] :: ProductVariant -> Text [pvPrice] :: ProductVariant -> Centi [pvGrams] :: ProductVariant -> Int [pvInventory] :: ProductVariant -> Int [pvInventoryManagement] :: ProductVariant -> InventoryManagement [pvInventoryPolicy] :: ProductVariant -> InventoryPolicy [pvTaxable] :: ProductVariant -> Bool [pvShips] :: ProductVariant -> Bool [pvOption1] :: ProductVariant -> Maybe Text [pvOption2] :: ProductVariant -> Maybe Text [pvOption3] :: ProductVariant -> Maybe Text data VariantWithMeta VWM :: ShopifyMeta -> ProductID -> ProductVariant -> VariantWithMeta [variantMeta] :: VariantWithMeta -> ShopifyMeta [variantProductID] :: VariantWithMeta -> ProductID [variantVariant] :: VariantWithMeta -> ProductVariant data ProductImage ProductImageRemote :: ShopifyMeta -> ProductID -> Text -> ProductImage [piMeta] :: ProductImage -> ShopifyMeta [piProductID] :: ProductImage -> ProductID [piSrc] :: ProductImage -> Text ProductImageLocal :: ByteString -> Text -> ProductImage [piData] :: ProductImage -> ByteString [piFilename] :: ProductImage -> Text data InventoryPolicy InvPolicyContinue :: InventoryPolicy InvPolicyDeny :: InventoryPolicy data InventoryManagement InvManagedShopify :: InventoryManagement InvManagedShipwire :: InventoryManagement InvManagedAmazon :: InventoryManagement InvManagedWebgistix :: InventoryManagement queryProduct :: ProductID -> Shopify ProductWithMeta queryProductMetaFields :: ProductID -> Shopify MetaFields queryProducts :: [ProductQuery] -> Shopify [ProductWithMeta] data ProductQuery PQCollection :: CollectionID -> ProductQuery PQCreatedBefore :: UTCTime -> ProductQuery PQCreatedAfter :: UTCTime -> ProductQuery PQHandle :: Text -> ProductQuery PQType :: ProductType -> ProductQuery PQPublishedBefore :: UTCTime -> ProductQuery PQPublishedAfter :: UTCTime -> ProductQuery PQPublished :: Bool -> ProductQuery PQVendor :: Vendor -> ProductQuery PQUpdatedBefore :: UTCTime -> ProductQuery PQUpdatedAfter :: UTCTime -> ProductQuery PQIdGreaterThen :: ProductID -> ProductQuery createProduct :: Product ProductVariant -> Shopify ProductWithMeta updateProduct :: ProductWithMeta -> Product ProductVariant -> Shopify ProductWithMeta deleteProduct :: ProductWithMeta -> Shopify () updateStock :: ShopifyID -> Int -> Shopify () instance GHC.Show.Show Network.Shopify.Products.ProductWithMeta instance GHC.Show.Show Network.Shopify.Products.VariantWithMeta instance GHC.Show.Show Network.Shopify.Products.ProductMaybeMetaVariant instance GHC.Show.Show Network.Shopify.Products.VariantWithMaybeMeta instance GHC.Show.Show Network.Shopify.Products.ProductVariant instance GHC.Show.Show Network.Shopify.Products.InventoryManagement instance GHC.Show.Show Network.Shopify.Products.InventoryPolicy instance GHC.Show.Show a => GHC.Show.Show (Network.Shopify.Products.Product a) instance GHC.Show.Show Network.Shopify.Products.ProductImage instance GHC.Show.Show Network.Shopify.Products.ProductQuery instance Data.Aeson.Types.FromJSON.FromJSON a => Data.Aeson.Types.FromJSON.FromJSON (Network.Shopify.Products.Positioned a) instance Network.Shopify.Types.JsonExtending a => Data.Aeson.Types.ToJSON.ToJSON (Network.Shopify.Products.Positioned a) instance Data.Aeson.Types.ToJSON.ToJSON Network.Shopify.Products.ProductMaybeMetaVariant instance Data.Aeson.Types.ToJSON.ToJSON (Network.Shopify.Products.Product Network.Shopify.Products.ProductVariant) instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Products.ProductWithMeta instance Data.Aeson.Types.FromJSON.FromJSON a => Data.Aeson.Types.FromJSON.FromJSON (Network.Shopify.Products.Product a) instance Network.Shopify.Types.JsonExtending a => Network.Shopify.Types.JsonExtending (Network.Shopify.Products.Product a) instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Products.ProductOption instance Data.Aeson.Types.ToJSON.ToJSON Network.Shopify.Products.ProductOption instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Products.ProductImage instance Data.Aeson.Types.ToJSON.ToJSON Network.Shopify.Products.ProductImage instance Network.Shopify.Types.JsonExtending Network.Shopify.Products.ProductImage instance Network.Shopify.Types.JsonExtending Network.Shopify.Products.VariantWithMaybeMeta instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Products.VariantWithMeta instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Products.ProductVariant instance Network.Shopify.Types.JsonExtending Network.Shopify.Products.ProductVariant instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Products.InventoryPolicy instance Data.Aeson.Types.ToJSON.ToJSON Network.Shopify.Products.InventoryPolicy instance Data.Aeson.Types.FromJSON.FromJSON Network.Shopify.Products.InventoryManagement instance Data.Aeson.Types.ToJSON.ToJSON Network.Shopify.Products.InventoryManagement module Network.Shopify