Fix a spelling mistake in ApplePayErrorCode
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 May 2017 20:30:13 +0000 (20:30 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 May 2017 20:30:13 +0000 (20:30 +0000)
https://bugs.webkit.org/show_bug.cgi?id=171981
<rdar://problem/32136567>

Reviewed by Beth Dakin.

Source/WebCore:

* Modules/applepay/ApplePayError.idl:
* Modules/applepay/PaymentRequest.h:

Source/WebKit2:

* UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
(WebKit::toPKPaymentErrorCode):
(WebKit::toPKPaymentAuthorizationStatus):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216691 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/applepay/ApplePayError.idl
Source/WebCore/Modules/applepay/PaymentRequest.h
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm

index f0c8ff1..3cedaf2 100644 (file)
@@ -1,3 +1,14 @@
+2017-05-11  Andy Estes  <aestes@apple.com>
+
+        Fix a spelling mistake in ApplePayErrorCode
+        https://bugs.webkit.org/show_bug.cgi?id=171981
+        <rdar://problem/32136567>
+
+        Reviewed by Beth Dakin.
+
+        * Modules/applepay/ApplePayError.idl:
+        * Modules/applepay/PaymentRequest.h:
+
 2017-05-11  John Wilander  <wilander@apple.com>
 
         Resource Load Statistics: Enable configuration through preferences
index 977dacf..76378b1 100644 (file)
@@ -29,7 +29,7 @@
     "unknown",
     "shippingContactInvalid",
     "billingContactInvalid",
-    "addressUnservicable"
+    "addressUnserviceable"
 };
 
 [
index 17359be..46734b3 100644 (file)
@@ -155,7 +155,7 @@ struct PaymentError {
         Unknown,
         ShippingContactInvalid,
         BillingContactInvalid,
-        AddressUnservicable,
+        AddressUnserviceable,
     };
 
     enum class ContactField {
@@ -207,7 +207,7 @@ template<> struct EnumTraits<WebCore::PaymentError::Code> {
         WebCore::PaymentError::Code::Unknown,
         WebCore::PaymentError::Code::ShippingContactInvalid,
         WebCore::PaymentError::Code::BillingContactInvalid,
-        WebCore::PaymentError::Code::AddressUnservicable
+        WebCore::PaymentError::Code::AddressUnserviceable
     >;
 };
 
index c6ea3db..013fe83 100644 (file)
@@ -1,3 +1,15 @@
+2017-05-11  Andy Estes  <aestes@apple.com>
+
+        Fix a spelling mistake in ApplePayErrorCode
+        https://bugs.webkit.org/show_bug.cgi?id=171981
+        <rdar://problem/32136567>
+
+        Reviewed by Beth Dakin.
+
+        * UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
+        (WebKit::toPKPaymentErrorCode):
+        (WebKit::toPKPaymentAuthorizationStatus):
+
 2017-05-11  John Wilander  <wilander@apple.com>
 
         Resource Load Statistics: Enable configuration through preferences
index 1fad9db..12238dc 100644 (file)
@@ -580,7 +580,7 @@ static PKPaymentErrorCode toPKPaymentErrorCode(WebCore::PaymentError::Code code)
         return PKPaymentShippingContactInvalidError;
     case WebCore::PaymentError::Code::BillingContactInvalid:
         return PKPaymentBillingContactInvalidError;
-    case WebCore::PaymentError::Code::AddressUnservicable:
+    case WebCore::PaymentError::Code::AddressUnserviceable:
         return PKPaymentShippingAddressUnserviceableError;
     }
 }
@@ -666,7 +666,7 @@ static PKPaymentAuthorizationStatus toPKPaymentAuthorizationStatus(const std::op
         auto& error = result->errors[0];
         switch (error.code) {
         case WebCore::PaymentError::Code::Unknown:
-        case WebCore::PaymentError::Code::AddressUnservicable:
+        case WebCore::PaymentError::Code::AddressUnserviceable:
             return PKPaymentAuthorizationStatusFailure;
 
         case WebCore::PaymentError::Code::BillingContactInvalid:
@@ -750,7 +750,7 @@ static PKPaymentAuthorizationStatus toPKPaymentAuthorizationStatus(const std::op
         auto& error = update->errors[0];
         switch (error.code) {
         case WebCore::PaymentError::Code::Unknown:
-        case WebCore::PaymentError::Code::AddressUnservicable:
+        case WebCore::PaymentError::Code::AddressUnserviceable:
             return PKPaymentAuthorizationStatusFailure;
 
         case WebCore::PaymentError::Code::BillingContactInvalid: