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

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

Inheritance diagram for Paiwise.IBuyEDalerService:
Paiwise.IServiceProvider Waher.Runtime.Inventory.IProcessingSupport< CaseInsensitiveString > Paiwise.Internal.BuyEDalerPaymentService TAG.Payments.NeuroCredits.NeuroCreditsService TAG.Payments.Script.Providers.BuyEDaler.BuyEDalerService

Public Member Functions

Task< bool > CanBuyEDaler (CaseInsensitiveString AccountName)
 If the service provider can be used to process a request to buy eDaler of a certain amount, for a given account. More...
 
Task< PaymentResultBuyEDaler (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 buying eDaler. More...
 
Task< IDictionary< CaseInsensitiveString, object >[]> GetPaymentOptionsForBuyingEDaler (IDictionary< CaseInsensitiveString, CaseInsensitiveString > IdentityProperties, string SuccessUrl, string FailureUrl, string CancelUrl, ClientUrlEventHandler ClientUrlCallback, object State)
 Gets available payment options for buying eDaler. More...
 
Grade Supports (T Object)
 If the interface understands objects such as Object . More...
 

Properties

string BuyEDalerTemplateContractId [get]
 Contract ID of Template, for buying e-Daler More...
 
IBuyEDalerServiceProvider BuyEDalerServiceProvider [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 buy eDaler.

Definition at line 12 of file IBuyEDalerService.cs.

Member Function Documentation

◆ BuyEDaler()

Task< PaymentResult > Paiwise.IBuyEDalerService.BuyEDaler ( 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 buying eDaler.

Parameters
ContractParametersParameters available in the contract authorizing the payment.
IdentityPropertiesProperties engraved into the legal identity signing the payment request.
AmountAmount to be paid.
CurrencyCurrency
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.BuyEDalerPaymentService, TAG.Payments.NeuroCredits.NeuroCreditsService, and TAG.Payments.Script.Providers.BuyEDaler.BuyEDalerService.

◆ CanBuyEDaler()

Task< bool > Paiwise.IBuyEDalerService.CanBuyEDaler ( CaseInsensitiveString  AccountName)

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

Parameters
AccountNameAccount Name
Returns
If service provider can be used.

Implemented in Paiwise.Internal.BuyEDalerPaymentService, TAG.Payments.NeuroCredits.NeuroCreditsService, and TAG.Payments.Script.Providers.BuyEDaler.BuyEDalerService.

◆ GetPaymentOptionsForBuyingEDaler()

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

Gets available payment options for buying 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.BuyEDalerPaymentService, TAG.Payments.NeuroCredits.NeuroCreditsService, and TAG.Payments.Script.Providers.BuyEDaler.BuyEDalerService.

◆ 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

◆ BuyEDalerServiceProvider

IBuyEDalerServiceProvider Paiwise.IBuyEDalerService.BuyEDalerServiceProvider
get

◆ BuyEDalerTemplateContractId

string Paiwise.IBuyEDalerService.BuyEDalerTemplateContractId
get

◆ IconHeight

◆ IconUrl

◆ IconWidth

◆ Id

◆ Name


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