﻿namespace Stove.StoveSDK
{
    public class IAPError
    {
        /**
         * IAP's domain
         */
        public const string Domain = "com.stove.iap";

        /**
         * The payment was successful, but the user information is different
         * @since 2.0.0
         */
        public const int SuccessButUserMissMatchError = 40000;

        /**
         * Pending to verify payment or process item supply
         * @since 2.0.0
         */
        public const int WaitingError = 40001;

        /**
         * Error from market sdk
         * @since 2.0.0
         */
        public const int MarketError = 40002;

        /**
         * Market sdk initialize fail
         * @since 2.0.0
         */
        public const int InitializeError = 40003;

        /**
         * Invalid product information
         * @since 2.0.0
         */
        public const int InvalidProductError = 40004;

        /**
         * The currently set delivery method does not support this feature
         * @since 2.0.0
         */
        public const int NotSupportedError = 40005;

        /**
         * Payment completed but not verified
         * @since 2.0.0
         */
        public const int PurchasedError = 40006;

        /**
         * Initialization not in progress.
         * @since 2.0.0
         */
        public const int NotInitializedError = 40007;

        /**
         * Set initialization not in progress.
         * @since 2.0.0
         */ 
        public const int ListenerError = 40008;

        /**
         * Billing user information is not set
         * @since 2.0.0
         */
        public const int InvalidUserError = 40009;
    }
}

