Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Paiwise.ISellEDalerService Interface Reference

Interface for information about a service provider that users can use to sell eDaler. More...

Inheritance diagram for Paiwise.ISellEDalerService:
Paiwise.IServiceProvider Waher.Runtime.Inventory.IProcessingSupport< CaseInsensitiveString > Paiwise.Internal.SellEDalerPaymentService TAG.Payments.NeuroCredits.NeuroCreditsService TAG.Payments.Script.Providers.SellEDaler.SellEDalerService

Public Member Functions

Task< bool > CanSellEDaler (CaseInsensitiveString AccountName)
 If the service provider can be used to process a request to sell eDaler of a certain amount, for a given account. More...
 
Task< PaymentResultSellEDaler (IDictionary< CaseInsensitiveString, object > ContractParameters, IDictionary< CaseInsensitiveString, CaseInsensitiveString > IdentityProperties, decimal Amount, string Currency, string SuccessUrl, string FailureUrl, string CancelUrl, ClientUrlEventHandler ClientUrlCallback, object State)
 Processes payment for selling eDaler. More...
 
Task< IDictionary< CaseInsensitiveString, object >[]> GetPaymentOptionsForSellingEDaler (IDictionary< CaseInsensitiveString, CaseInsensitiveString > IdentityProperties, string SuccessUrl, string FailureUrl, string CancelUrl, ClientUrlEventHandler ClientUrlCallback, object State)
 Gets available payment options for selling eDaler. More...
 
Grade Supports (T Object)
 If the interface understands objects such as Object . More...
 

Properties

string SellEDalerTemplateContractId [get]
 Contract ID of Template, for selling e-Daler More...
 
ISellEDalerServiceProvider SellEDalerServiceProvider [get]
 Reference to service provider. More...
 
string Id [get]
 ID of service provider. More...
 
string Name [get]
 Displayable name of service provider. More...
 
string IconUrl [get]
 Optional URL to icon of service provider. More...
 
int IconWidth [get]
 Width of icon, if available. More...
 
int IconHeight [get]
 Height of icon, if available. More...
 

Detailed Description

Interface for information about a service provider that users can use to sell eDaler.

Definition at line 12 of file ISellEDalerService.cs.

Member Function Documentation

◆ CanSellEDaler()

Task< bool > Paiwise.ISellEDalerService.CanSellEDaler ( CaseInsensitiveString  AccountName)

If the service provider can be used to process a request to sell eDaler of a certain amount, for a given account.

Parameters
AccountNameAccount Name
Returns
If service provider can be used.

Implemented in Paiwise.Internal.SellEDalerPaymentService, TAG.Payments.NeuroCredits.NeuroCreditsService, and TAG.Payments.Script.Providers.SellEDaler.SellEDalerService.

◆ GetPaymentOptionsForSellingEDaler()

Task< IDictionary< CaseInsensitiveString, object >[]> Paiwise.ISellEDalerService.GetPaymentOptionsForSellingEDaler ( IDictionary< CaseInsensitiveString, CaseInsensitiveString IdentityProperties,
string  SuccessUrl,
string  FailureUrl,
string  CancelUrl,
ClientUrlEventHandler  ClientUrlCallback,
object  State 
)

Gets available payment options for selling eDaler.

Parameters
IdentityPropertiesProperties engraved into the legal identity that will perform the request.
SuccessUrlOptional Success URL the service provider can open on the client from a client web page, if getting options has succeeded.
FailureUrlOptional Failure URL the service provider can open on the client from a client web page, if getting options has succeeded.
CancelUrlOptional Cancel URL the service provider can open on the client from a client web page, if getting options has succeeded.
ClientUrlCallbackMethod to call if the payment service requests an URL to be displayed on the client.
StateState object to pass on the callback method.
Returns
Array of dictionaries, each dictionary representing a set of parameters that can be selected in the contract to sign.

Implemented in Paiwise.Internal.SellEDalerPaymentService, TAG.Payments.NeuroCredits.NeuroCreditsService, and TAG.Payments.Script.Providers.SellEDaler.SellEDalerService.

◆ SellEDaler()

Task< PaymentResult > Paiwise.ISellEDalerService.SellEDaler ( IDictionary< CaseInsensitiveString, object >  ContractParameters,
IDictionary< CaseInsensitiveString, CaseInsensitiveString IdentityProperties,
decimal  Amount,
string  Currency,
string  SuccessUrl,
string  FailureUrl,
string  CancelUrl,
ClientUrlEventHandler  ClientUrlCallback,
object  State 
)

Processes payment for selling eDaler.

Parameters
ContractParametersParameters available in the contract authorizing the payment.
IdentityPropertiesProperties engraved into the legal identity signing the payment request.
AmountAmount of eDaler to be sold.
CurrencyDesired Currency
SuccessUrlOptional Success URL the service provider can open on the client from a client web page, if payment has succeeded.
FailureUrlOptional Failure URL the service provider can open on the client from a client web page, if payment has succeeded.
CancelUrlOptional Cancel URL the service provider can open on the client from a client web page, if payment has succeeded.
ClientUrlCallbackMethod to call if the payment service requests an URL to be displayed on the client.
StateState object to pass on the callback method.
Returns
Result of operation.

Implemented in Paiwise.Internal.SellEDalerPaymentService, TAG.Payments.NeuroCredits.NeuroCreditsService, and TAG.Payments.Script.Providers.SellEDaler.SellEDalerService.

◆ Supports()

Grade Waher.Runtime.Inventory.IProcessingSupport< T >.Supports ( Object)
inherited

If the interface understands objects such as Object .

Parameters
ObjectObject
Returns
How well objects of this type are supported.

Property Documentation

◆ IconHeight

◆ IconUrl

◆ IconWidth

◆ Id

◆ Name

◆ SellEDalerServiceProvider

ISellEDalerServiceProvider Paiwise.ISellEDalerService.SellEDalerServiceProvider
get

◆ SellEDalerTemplateContractId

string Paiwise.ISellEDalerService.SellEDalerTemplateContractId
get

The documentation for this interface was generated from the following file: