Bug 1495335 - Rename PayerErrorFields to PayerErrors. r=baku

This commit is contained in:
Marcos Cáceres 2018-10-01 03:44:00 -04:00
parent 0f9c8cd9fb
commit 70744c3261
5 changed files with 9 additions and 9 deletions

View File

@ -44,7 +44,7 @@ export default class AddressForm extends PaymentStateSubscriberMixin(PaymentRequ
this.persistCheckbox = new LabelledCheckbox();
this.persistCheckbox.className = "persist-checkbox";
// Combination of AddressErrors and PayerErrorFields as keys
// Combination of AddressErrors and PayerErrors as keys
this._errorFieldMap = {
addressLine: "#street-address",
city: "#address-level2",

View File

@ -492,7 +492,7 @@ PaymentDetails::GetShippingAddressErrors(JSContext* aCx, JS::MutableHandleValue
NS_IMETHODIMP
PaymentDetails::GetPayer(JSContext* aCx, JS::MutableHandleValue aErrors)
{
PayerErrorFields errors;
PayerErrors errors;
errors.Init(mPayerErrors);
if (!ToJSValue(aCx, errors, aErrors)) {
return NS_ERROR_FAILURE;

View File

@ -341,7 +341,7 @@ PaymentResponse::ValidatePaymentValidationErrors(
return NS_OK;
}
// check PaymentValidationErrors.payer
PayerErrorFields payerErrors(aErrors.mPayer);
PayerErrors payerErrors(aErrors.mPayer);
if (payerErrors.mName.WasPassed() && !payerErrors.mName.Value().IsEmpty()) {
return NS_OK;
}

View File

@ -74,14 +74,14 @@ dictionary AddressErrors {
dictionary PaymentValidationErrors {
// FIXME: bug 1493860: should this "= null" be here?
PayerErrorFields payer = null;
PayerErrors payer = null;
// FIXME: bug 1493860: should this "= null" be here?
AddressErrors shippingAddress = null;
DOMString error;
object paymentMethod;
};
dictionary PayerErrorFields {
dictionary PayerErrors {
DOMString email;
DOMString name;
DOMString phone;
@ -92,7 +92,7 @@ dictionary PaymentDetailsUpdate : PaymentDetailsBase {
// FIXME: bug 1493860: should this "= null" be here?
AddressErrors shippingAddressErrors = null;
// FIXME: bug 1493860: should this "= null" be here?
PayerErrorFields payerErrors = null;
PayerErrors payerErrors = null;
object paymentMethodErrors;
// FIXME: bug 1493860: should this "= null" be here?
PaymentItem total = null;

View File

@ -49,7 +49,7 @@ dictionary PaymentDetailsUpdate : PaymentDetailsBase {
DOMString error;
PaymentItem total;
AddressErrors shippingAddressErrors;
PayerErrorFields payerErrors;
PayerErrors payerErrors;
object paymentMethodErrors;
};
@ -169,13 +169,13 @@ interface PaymentResponse : EventTarget {
};
dictionary PaymentValidationErrors {
PayerErrorFields payer;
PayerErrors payer;
AddressErrors shippingAddress;
DOMString error;
object paymentMethod;
};
dictionary PayerErrorFields {
dictionary PayerErrors {
DOMString email;
DOMString name;
DOMString phone;