mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 21:58:06 +00:00
Bug 1495335 - Rename PayerErrorFields to PayerErrors. r=baku
This commit is contained in:
parent
0f9c8cd9fb
commit
70744c3261
@ -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",
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user