MethodChannelAnsaFlutterSdk class

An implementation of AnsaFlutterSdkPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretProviderChannel MethodChannel
The method channel used to interact with the secret provider.
final

Methods

addBalance({required AddBalanceRequest request, String? idempotencyKey}) Future<BalanceUpdate>
Add balance for a customer.
override
addPaymentMethod({required String customerId, required AddPaymentMethodType paymentMethodType, String? idempotencyKey}) Future<PaymentMethod>
Add a payment method for a customer.
override
deletePaymentMethod({required String customerId, required String paymentMethodId, String? idempotencyKey}) Future<void>
Delete a payment method for a customer.
override
getAppReloadConfig({required String customerId}) Future<UserReloadConfiguration>
Get the reload configuration for a customer.
override
getAutoReloadConfiguration({required String customerId}) Future<AutoReloadConfig>
Get the auto reload configuration for a customer.
override
getCardArtUrls() Future<List<String>>
Get the card art URLs.
override
getCustomer({required String customerId}) Future<Customer>
Get the customer data.
override
getMerchant({required String merchantId}) Future<Merchant>
Get the merchant data.
override
getPaymentMethods({required String customerId}) Future<List<PaymentMethod>>
Get the payment methods for a customer.
override
getTransactions({required String customerId, String? cursor}) Future<TransactionResult>
Set the reload configuration for a customer.
override
initializeSdk({required String publishableKey, required Future<String?> clientSecretProvider(String customerId)}) Future<void>
Initializes the SDK with the provided publishable key and client secret provider.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAutoReloadConfiguration({required AutoReloadConfigurationRequest request}) Future<AutoReloadConfig>
Set the auto reload configuration for a customer.
override
toString() String
A string representation of this object.
inherited
useBalance({required UseBalanceRequest request, String? idempotencyKey}) Future<BalanceUpdate>
Use balance for a customer.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited