Transaction Detail Component
The TransactionDetailComponent
shows users information about a specific transaction and allows them to update its category or Brand, in case they are inaccurate.
To use this view, just call the TransactionDetailComponent
method of your LuneSDKManager
instance as shown in the example below. The method takes the id
of the transaction as an argument.
// TransactionDetailView.kt
import io.lunedata.lunesdk.library.classes.LuneSDKManager
@Composable
fun TransactionDetailComponent(
luneSDK: LuneSDKManager
) {
luneSDK.TransactionDetailComponent(id = transaction.id)
}
To use this view in a project with Activities and Fragments, set the data
property of your view to the transaction ID,
and the component
property should be set to LuneView.TransactionDetailComponent
, as shown in the example below.
// YourActivity.kt
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// Grab our luneView
val luneView = findViewById<LuneCompatManager>(R.id.luneLayout)
//set the data property to the transaction ID
luneView.data = <transaction.id>
// set the component property.
luneView.component = LuneView.TransactionDetailComponent
}
Localization Keys and Analytics
📊 Analytics Tags
report_transaction_button
save_button
🈯️ Localization Keys
lune_sdk_str_amount
lune_sdk_str_date
,lune_sdk_str_date_time
lune_sdk_str_category
lune_sdk_str_suggested_category
lune_sdk_str_raw_transaction
lune_sdk_str_notes
lune_sdk_str_tap_to_add_notes
lune_sdk_str_tags
lune_sdk_str_tap_to_add_tags
lune_sdk_str_report_transaction
,lune_sdk_str_cancel_report
lune_sdk_str_save
📊 Analytics Tags
close_button
incorrect_brand_tile
incorrect_logo_tile
incorrect_category_tile
report_button
🈯️ Localization Keys
lune_sdk_str_report_transaction_title
lune_sdk_str_incorrect_brand_name
lune_sdk_str_suggested_brand
lune_sdk_str_incorrect_logo
lune_sdk_str_incorrect_category
lune_sdk_str_report
lune_sdk_str_brand_name
📊 Analytics Tags
close_button
category_filter_option
custom_category_button
submit_button
🈯️ Localization Keys
lune_sdk_str_report_category
lune_sdk_str_please_select_category
lune_sdk_str_search
lune_sdk_str_add_a_custom_category
lune_sdk_str_submit
📊 Analytics Tags
close_button
submit_button
🈯️ Localization Keys
lune_sdk_str_add_a_custom_category
lune_sdk_str_category_name_field_label
lune_sdk_str_category_name
lune_sdk_str_submit
📊 Analytics Tags
close_button
🈯️ Localization Keys
lune_sdk_str_update_done