KYCService class
Implements SEP-0012 - KYC API. See <https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0012.md" target="_blank">KYC API
Constructors
-
KYCService(String _serviceAddress, {Client? httpClient, Map<
String, String> ? httpRequestHeaders})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpClient ↔ Client
-
getter/setter pair
-
httpRequestHeaders
↔ Map<
String, String> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deleteCustomer(
String account, String? memo, String? memoType, String jwt) → Future< Response> -
Delete all personal information that the anchor has stored about a given customer.
account
is the Stellar account ID (G...) of the customer to delete. If account does not uniquely identify an individual customer (a shared account), the client should include thememo
andmemoType
fields in the request. This request must be authenticated (via SEP-10) as coming from the owner of the account that will be deleted -jwt
. -
getCustomerInfo(
GetCustomerInfoRequest request) → Future< GetCustomerInfoResponse> - Check the status of a customers info (customer GET) This endpoint allows clients to:
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putCustomerCallback(
PutCustomerCallbackRequest request) → Future< Response> - Allow the wallet to provide a callback URL to the anchor. The provided callback URL will replace (and supercede) any previously-set callback URL for this account. See: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0012.md#customer-callback-put
-
putCustomerInfo(
PutCustomerInfoRequest request) → Future< PutCustomerInfoResponse> - Upload customer information to an anchor in an authenticated and idempotent fashion.
-
putCustomerVerification(
PutCustomerVerificationRequest request) → Future< GetCustomerInfoResponse> - This endpoint allows servers to accept data values, usually confirmation codes, that verify a previously provided field via PUT /customer, such as mobile_number or email_address. See: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0012.md#customer-put-verification
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDomain(
String domain, {Client? httpClient, Map< String, String> ? httpRequestHeaders}) → Future<KYCService>