AnsaFlutterSdkPlatform class abstract

An abstract class that defines the platform interface for the Ansa Flutter SDK.

Inheritance
  • Object
  • PlatformInterface
  • AnsaFlutterSdkPlatform
Implementers

Constructors

AnsaFlutterSdkPlatform()
Constructs an AnsaFlutterSdkPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Properties

instance AnsaFlutterSdkPlatform
The default instance of AnsaFlutterSdkPlatform to use.
getter/setter pair