Table of Contents

Class ApDepositUrlWithRequestedValueRequest

Namespace
AkashicPaySDK.Model
Assembly
AkashicPaySDK.dll

Represents a request to generate a deposit URL with a specific currency and amount. This is used when a user intends to deposit a pre-defined amount in a selected currency.

public class ApDepositUrlWithRequestedValueRequest : ApValidatableRequest
Inheritance
ApDepositUrlWithRequestedValueRequest
Inherited Members

Properties

Identifier

Unique identifier for the user or wallet initiating the deposit. Must not be null or empty.

public string Identifier { get; }

Property Value

string

ReceiveCurrencies

Optional list of currencies to be shown in the deposit interface. Only USDT, TRX, and ETH are supported.

public List<ApCurrencySymbol>? ReceiveCurrencies { get; }

Property Value

List<ApCurrencySymbol>

RedirectUrl

Optional URL to redirect to after user completes deposit

public string? RedirectUrl { get; }

Property Value

string

ReferenceId

Optional reference ID to help track or correlate the deposit request.

public string? ReferenceId { get; }

Property Value

string

RequestedAmount

The exact amount the user wants to deposit. This is a required field and must be greater than zero.

public double? RequestedAmount { get; }

Property Value

double?

RequestedCurrency

The currency in which the user is requesting to deposit. This is a required field.

public ApCurrencySymbol? RequestedCurrency { get; }

Property Value

ApCurrencySymbol?

Methods

Validate()

Validates the request fields.

Subclasses should override this method to implement custom validation logic. If any parameter is invalid, this method should throw an APException.

public override void Validate()