Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "financial.atomic:transact:3.11.8"
implementation "financial.atomic:transact:3.13.0"
}
16 changes: 11 additions & 5 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ class MyApp extends StatefulWidget {
class _MyAppState extends State<MyApp> {
void _onButtonPressed() {
final AtomicConfig config = AtomicConfig(
scope: 'user-link',
publicToken: '',
tasks: [AtomicTask(product: AtomicProductType.deposit)],
theme: AtomicTheme(dark: true),
);
publicToken: '',
scope: 'pay-link',
product: AtomicProductType.switchPayment,
theme: AtomicTheme(dark: true),
tasks: [
AtomicTask(product: AtomicProductType.switchPayment),
],
deeplink: AtomicDeeplink(
step: AtomicDeeplinkStep.search_company,
// payments: ['phone-bill'],
));

Atomic.transact(
config: config,
Expand Down
2 changes: 1 addition & 1 deletion ios/atomic_transact_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ A new flutter plugin project.
s.swift_version = '5.0'

# Atomic dependency
s.dependency 'AtomicSDK', '3.20.6'
s.dependency 'AtomicSDK', '3.23.0'

end
9 changes: 7 additions & 2 deletions lib/src/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,15 @@ class AtomicDeeplink {
/// Required if the step is login_payroll.
final String? connectorId;

/// Required if the step is pay_now. Accepts a list of payment types.
final List<String>? payments;

AtomicDeeplink({
required this.step,
this.companyId,
this.companyName,
this.connectorId,
this.payments,
});

/// Returns a JSON object representation.
Expand All @@ -91,6 +95,7 @@ class AtomicDeeplink {
'companyId': companyId,
'companyName': companyName,
'connectorId': connectorId,
'payments': payments,
}..removeWhere((key, value) => value == null);
}
}
Expand Down Expand Up @@ -287,8 +292,8 @@ class AtomicConfig {
'publicToken': publicToken,
'scope': scope,
'tasks': tasks?.map((e) => e.toJson()).toList(),
'product': product?.name,
'additionalProduct': additionalProduct?.name,
'product': product?.productName,
'additionalProduct': additionalProduct?.productName,
'distribution': distribution?.toJson(),
'linkedAccount': linkedAccount,
'theme': theme?.toJson(),
Expand Down
3 changes: 3 additions & 0 deletions lib/src/types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ enum AtomicDeeplinkStep {

/// This value requires companyName and connectorId.
login_payroll,

/// This value requires payments parameter.
pay_now,
}

enum AtomicTransactCompletionType {
Expand Down