API/Autodoc/Files/RustorePaymentException.cs.en.md


Namespaces

Name

Classes

Name
class RuStore::PayClient::RuStorePaymentException — Payment client error information.
class RuStore::PayClient::RuStorePaymentException::ApplicationSchemeWasNotProvided — Application scheme was not provided.
class RuStore::PayClient::RuStorePaymentException::EmptyPaymentTokenException — Payment token retrieval error.
class RuStore::PayClient::RuStorePaymentException::ProductPurchaseCancelled — Product purchase cancelled (user closed the payment sheet).
class RuStore::PayClient::RuStorePaymentException::ProductPurchaseException — Product purchase error (unable to set purchase status).
class RuStore::PayClient::RuStorePaymentException::RuStorePayClientAlreadyExist — SDK reinitialization error.
class RuStore::PayClient::RuStorePaymentException::RuStorePayClientNotCreated — Attempt to access public SDK interfaces before initialization.
class RuStore::PayClient::RuStorePaymentException::RuStorePayInvalidActivePurchase — Payment process started for an unknown product type.
class RuStore::PayClient::RuStorePaymentException::RuStorePayInvalidConsoleAppId — Required parameter console_app_id_value for SDK initialization is not set.
class RuStore::PayClient::RuStorePaymentException::RuStorePaySignatureException — Invalid response signature (occurs when attempting fraudulent actions).
class RuStore::PayClient::RuStorePaymentException::RuStorePaymentCommonException — General SDK error.
class RuStore::PayClient::RuStorePaymentException::RuStorePaymentNetworkException — SDK network interaction error.
class RuStore::PayClient::RuStorePaymentException::InvalidCardBindingIdException — Error paying with saved card.

Source code

#nullable enable

namespace RuStore.PayClient {

    public class RuStorePaymentException : RuStoreError {

        public virtual RuStoreError? cause { get; }

        public RuStorePaymentException(string name, string description, RuStoreError? cause) {
            this.name = name;
            this.description = description;
            this.cause = cause;
        }

        public sealed class ApplicationSchemeWasNotProvided : RuStorePaymentException {
            public ApplicationSchemeWasNotProvided(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }

        public sealed class EmptyPaymentTokenException : RuStorePaymentException {
            public EmptyPaymentTokenException(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }

        public sealed class ProductPurchaseCancelled : RuStorePaymentException {

            public ProductType? productType { get; }

            public PurchaseId? purchaseId { get; }

            public PurchaseType? purchaseType { get; }

            public ProductPurchaseCancelled(string name, string description, RuStoreError? cause, ProductType? productType, PurchaseId? purchaseId, PurchaseType? purchaseType)
                : base(name, description, cause) {

                this.productType = productType;
                this.purchaseId = purchaseId;
                this.purchaseType = purchaseType;
            }
        }

        public sealed class ProductPurchaseException : RuStorePaymentException {

            public InvoiceId? invoiceId { get; }

            public OrderId? orderId { get; }

            public ProductId? productId { get; }

            public ProductType? productType { get; }

            public PurchaseId? purchaseId { get; }

            public PurchaseType? purchaseType { get; }

            public Quantity? quantity { get; }

            public bool? sandbox { get; }

            public ProductPurchaseException(
                string name,
                string description,
                RuStoreError cause,
                InvoiceId? invoiceId,
                OrderId? orderId,
                ProductId? productId,
                ProductType? productType,
                PurchaseId? purchaseId,
                PurchaseType? purchaseType,
                Quantity? quantity,
                bool? sandbox)
                : base(name, description, cause) {

                this.invoiceId = invoiceId;
                this.orderId = orderId;
                this.productId = productId;
                this.productType = productType;
                this.purchaseId = purchaseId;
                this.purchaseType = purchaseType;
                this.quantity = quantity;
                this.sandbox = sandbox;
            }
        }

        public class RuStorePayClientAlreadyExist : RuStorePaymentException {
            public RuStorePayClientAlreadyExist(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }

        public sealed class RuStorePayClientNotCreated : RuStorePaymentException {
            public RuStorePayClientNotCreated(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }

        public sealed class RuStorePayInvalidActivePurchase : RuStorePaymentException {
            public RuStorePayInvalidActivePurchase(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }

        public sealed class RuStorePayInvalidConsoleAppId : RuStorePaymentException {
            public RuStorePayInvalidConsoleAppId(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }

        public sealed class RuStorePaySignatureException : RuStorePaymentException {
            public RuStorePaySignatureException(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }

        public sealed class RuStorePaymentCommonException : RuStorePaymentException {
            public RuStorePaymentCommonException(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }

        public class RuStorePaymentNetworkException : RuStorePaymentException {

            public string? code { get; }

            public string id { get; }

            public RuStorePaymentNetworkException(string? code, string id, string name, string description, RuStoreError? cause)
                : base (name, description, cause) {

                this.code = code;
                this.id = id;
            }
        }

        public class InvalidCardBindingIdException : RuStorePaymentException {
            public InvalidCardBindingIdException(string name, string description, RuStoreError? cause)
                : base(name, description, cause) { }
        }
    }
}
Назад