Skip to content

Commit

Permalink
[POSUI-309] Support Follow-Up Transaction FRD V1.00
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruboPaulPax committed Dec 19, 2024
1 parent b3bbe89 commit 80ffc0d
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 1 deletion.
Binary file modified app/libs/poslinkui-1.02.00.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,13 @@
</intent-filter>
</activity-alias>

<activity-alias android:name=".TEXT.ENTER_GLOBAL_UID" android:targetActivity=".entry.EntryActivity">
<intent-filter><category android:name="android.intent.category.DEFAULT"/>
<category android:name="com.pax.us.pay.ui.category.TEXT"/>
<action android:name="com.pax.us.pay.action.ENTER_GLOBAL_UID"/>
</intent-filter>
</activity-alias>



</application>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
import com.paxus.pay.poslinkui.demo.entry.text.text.AddressFragment;
import com.paxus.pay.poslinkui.demo.entry.text.text.AuthFragment;
import com.paxus.pay.poslinkui.demo.entry.text.text.CustomerCodeFragment;
import com.paxus.pay.poslinkui.demo.entry.text.text.EnterGlobalUIDFragment;
import com.paxus.pay.poslinkui.demo.entry.text.text.OrderNumberFragment;
import com.paxus.pay.poslinkui.demo.entry.text.text.OrigTransIdentifierFragment;
import com.paxus.pay.poslinkui.demo.entry.text.text.PoNumberFragment;
Expand Down Expand Up @@ -170,6 +171,7 @@ private UIFragmentHelper() {
put(TextEntry.ACTION_ENTER_ORIG_DATE, EnterOrigTransDateFragment.class);
put(TextEntry.ACTION_ENTER_ORIGINAL_TRANSACTION_IDENTIFIER, OrigTransIdentifierFragment.class);
put(TextEntry.ACTION_ENTER_TICKET_NUMBER, EnterTicketNumberFragment.class);
put(TextEntry.ACTION_ENTER_GLOBAL_UID, EnterGlobalUIDFragment.class);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected boolean allowText() {
protected void loadArgument(@NonNull Bundle bundle) {
timeOut = bundle.getLong(EntryExtraData.PARAM_TIMEOUT, 30000);

String valuePatten = bundle.getString(EntryExtraData.PARAM_VALUE_PATTERN, "0-16");
String valuePatten = bundle.getString(EntryExtraData.PARAM_VALUE_PATTERN, "1-32");
if (!TextUtils.isEmpty(valuePatten)) {
minLength = ValuePatternUtils.getMinLength(valuePatten);
maxLength = ValuePatternUtils.getMaxLength(valuePatten);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package com.paxus.pay.poslinkui.demo.entry.text.text;

import android.os.Bundle;
import android.text.TextUtils;

import androidx.annotation.NonNull;

import com.pax.us.pay.ui.constant.entry.EntryExtraData;
import com.pax.us.pay.ui.constant.entry.EntryRequest;
import com.pax.us.pay.ui.constant.entry.TextEntry;
import com.paxus.pay.poslinkui.demo.R;
import com.paxus.pay.poslinkui.demo.utils.ValuePatternUtils;

/**
* Implements {@value TextEntry#ACTION_ENTER_GLOBAL_UID}<br>
*/

public class EnterGlobalUIDFragment extends ATextFragment {
protected long timeOut;
protected int minLength;
protected int maxLength;

@Override
public int getMaxLength() {
return maxLength;
}

@Override
protected void loadArgument(@NonNull Bundle bundle) {
timeOut = bundle.getLong(EntryExtraData.PARAM_TIMEOUT, 30000);

String valuePatten = bundle.getString(EntryExtraData.PARAM_VALUE_PATTERN, "64");

if(!TextUtils.isEmpty(valuePatten)){
minLength = ValuePatternUtils.getMinLength(valuePatten);
maxLength = ValuePatternUtils.getMaxLength(valuePatten);
}
}

@Override
protected String formatMessage() {
return getString(R.string.enter_global_uid);
}

@Override
protected String getRequestedParamName() {
return EntryRequest.PARAM_GLOBAL_UID;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ static List<EntryCategory> getCategories(){
put(TextEntry.ACTION_ENTER_VISA_INSTALLMENT_TRANSACTIONID, new EntryAction(TextEntry.CATEGORY, TextEntry.ACTION_ENTER_VISA_INSTALLMENT_TRANSACTIONID, "Enter Visa Installment Transaction ID", ".TEXT.ENTER_VISA_INSTALLMENT_TRANSACTIONID", true));
put(TextEntry.ACTION_ENTER_VISA_INSTALLMENT_PLAN_ACCEPTANCE_ID, new EntryAction(TextEntry.CATEGORY, TextEntry.ACTION_ENTER_VISA_INSTALLMENT_PLAN_ACCEPTANCE_ID, "Enter Visa Installment Plan Acceptance ID", ".TEXT.ENTER_VISA_INSTALLMENT_PLAN_ACCEPTANCE_ID", true));
put(TextEntry.ACTION_ENTER_TICKET_NUMBER, new EntryAction(TextEntry.CATEGORY, TextEntry.ACTION_ENTER_TICKET_NUMBER, "Enter Ticket Number", ".TEXT.ENTER_TICKET_NUMBER", true));
put(TextEntry.ACTION_ENTER_GLOBAL_UID, new EntryAction(TextEntry.CATEGORY, TextEntry.ACTION_ENTER_GLOBAL_UID, "Enter Global UID", ".TEXT.ENTER_GLOBAL_UID", true));

// Option Entry
put(OptionEntry.ACTION_SELECT_EBT_TYPE, new EntryAction(OptionEntry.CATEGORY, OptionEntry.ACTION_SELECT_EBT_TYPE, "Select EBT Type", ".OPTION.SELECT_EBT_TYPE", true));
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@
<string name="prompt_merchant_tax_id">Please Enter Merchant Tax ID</string>
<string name="please_input_visa_installment_plan_acceptance_id">Please Enter Plan Acceptance ID</string>
<string name="enter_ticket_number">Please Enter Ticket Number</string>
<string name="enter_global_uid">Please Enter Global UID</string>

<!--prompt for fleet trans data-->
<string name="prompt_input_prompt_code_for_wex">Please Enter Prompt Code</string>
Expand Down

0 comments on commit 80ffc0d

Please sign in to comment.