MethodChannelAnsaFlutterSdk class
An implementation of AnsaFlutterSdkPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- AnsaFlutterSdkPlatform
- MethodChannelAnsaFlutterSdk
Constructors
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
-
final
Methods
-
addBalance(
{required AddBalanceRequest request, String? idempotencyKey}) → Future< BalanceUpdate> -
override
-
addPaymentMethod(
{required String customerId, required AddPaymentMethodType paymentMethodType, String? idempotencyKey}) → Future< PaymentMethod> -
override
-
deletePaymentMethod(
{required String customerId, required String paymentMethodId, String? idempotencyKey}) → Future< void> -
override
-
getAppReloadConfig(
{required String customerId}) → Future< UserReloadConfiguration> -
override
-
getAutoReloadConfiguration(
{required String customerId}) → Future< AutoReloadConfig> -
override
-
getCardArtUrls(
) → Future< List< String> > -
override
-
getCustomer(
{required String customerId}) → Future< Customer> -
Get the customer data.
override
-
getMerchant(
{required String merchantId}) → Future< Merchant> -
override
-
getPaymentMethods(
{required String customerId}) → Future< List< PaymentMethod> > -
override
-
getTransactions(
{required String customerId, String? cursor}) → Future< TransactionResult> -
override
-
initializeSdk(
{required String publishableKey}) → Future< void> -
Initialize the SDK with the publishable key and client secret.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAutoReloadConfiguration(
{required AutoReloadConfigurationRequest request}) → Future< AutoReloadConfig> -
override
-
setupClientSecretProvider(
Future< String?> clientSecretProvider(String customerId)) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
useBalance(
{required UseBalanceRequest request, String? idempotencyKey}) → Future< BalanceUpdate> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited