CreateCarrierBillingFlow( BillingFlowContext billingFlowContext, BillingFlowListener listener, CarrierBillingStorage storage, DfeApi dfeApi) { super(billingFlowContext, listener, null); this.mState = State.INIT; this.mAddressAvailable = AddressAvailable.NO_ADDRESS; this.mAddResult = null; this.mAddressMode = AddressMode.FULL_ADDRESS; this.mContext = billingFlowContext; this.mStorage = storage; this.mDfeApi = dfeApi; this.mParams = this.mStorage.getParams(); this.mProvisioning = this.mStorage.getProvisioning(); if (((Boolean) G.enableDcbReducedBillingAddress.get()).booleanValue()) { List<Country> countries = BillingLocator.getBillingCountries(); if (countries != null) { Country carrierBillingCountry = BillingUtils.findCountry( BillingUtils.getDefaultCountry(FinskyApp.get(), null), countries); if (carrierBillingCountry != null) { this.mAddressMode = carrierBillingCountry.allowsReducedBillingAddress ? AddressMode.REDUCED_ADDRESS : AddressMode.FULL_ADDRESS; } } } if (this.mDfeApi != null) { this.mAccountName = this.mDfeApi.getAccountName(); } if (this.mParams == null || this.mParams.getName() == null) { FinskyLog.e("No carrier name available in params.", new Object[0]); } else { this.mTitle = FinskyApp.get() .getString(R.string.dcb_setup_title, new Object[] {this.mParams.getName()}); } }
public CarrierProvisioningAction() { this(BillingLocator.getCarrierBillingStorage(), BillingLocator.createDcbApi()); }
public CreateCarrierBillingFlow( BillingFlowContext billingFlowContext, BillingFlowListener listener, DfeApi dfeApi) { this(billingFlowContext, listener, BillingLocator.getCarrierBillingStorage(), dfeApi); }