Browse Source

Inbound delete acc fixed

master
Preyea Regmi 5 years ago
parent
commit
4e228fbf9b
  1. 13
      app/src/main/java/com/gmeremit/online/gmeremittance_native/accountmanage/model/accountlisting/InboundAccount.java
  2. 2
      app/src/main/java/com/gmeremit/online/gmeremittance_native/accountmanage/presenter/accountlisting/AutoDebitAccountListingV2Presenter.java

13
app/src/main/java/com/gmeremit/online/gmeremittance_native/accountmanage/model/accountlisting/InboundAccount.java

@ -23,6 +23,9 @@ public class InboundAccount implements Parcelable {
@SerializedName("AccountNo")
@Expose
private String accountNo;
@SerializedName("Id")
@Expose
private String id;
public String getBankCode() {
return bankCode;
@ -77,6 +80,14 @@ public class InboundAccount implements Parcelable {
this.accountNo = accountNo;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@Override
public int describeContents() {
return 0;
@ -89,6 +100,7 @@ public class InboundAccount implements Parcelable {
dest.writeByte(this.isPrimary ? (byte) 1 : (byte) 0);
dest.writeString(this.bank);
dest.writeString(this.accountNo);
dest.writeString(this.id);
}
protected InboundAccount(Parcel in) {
@ -97,6 +109,7 @@ public class InboundAccount implements Parcelable {
this.isPrimary = in.readByte() != 0;
this.bank = in.readString();
this.accountNo = in.readString();
this.id = in.readString();
}
public static final Creator<InboundAccount> CREATOR = new Creator<InboundAccount>() {

2
app/src/main/java/com/gmeremit/online/gmeremittance_native/accountmanage/presenter/accountlisting/AutoDebitAccountListingV2Presenter.java

@ -164,7 +164,7 @@ public class AutoDebitAccountListingV2Presenter extends BasePresenter implements
public void deleteInboundAccount(InboundAccount inboundAccount) {
compositeDisposable.add(
this.gateway.deleteInboundAccount(this.gateway.getAuth(), this.gateway.getUserIDNumber(), inboundAccount.getBankCode())
this.gateway.deleteInboundAccount(this.gateway.getAuth(), this.gateway.getUserIDNumber(), inboundAccount.getId())
.doOnSubscribe(subs -> view.showProgressBar(true, getStringfromStringId(R.string.processing_request_text)))
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())

Loading…
Cancel
Save