You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShippingAddresses/WooShippingEditAddressView.swift
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShippingAddresses/WooShippingEditAddressViewModel.swift
+95-7Lines changed: 95 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,13 @@ final class WooShippingEditAddressViewModel: ObservableObject, Identifiable {
61
61
[name, company, country, address, city, state, postalCode, email, phone]
62
62
}
63
63
64
-
/// Whether the phone number is required.
65
-
privateletphoneNumberRequired:Bool
64
+
/// The origin address country code.
65
+
/// This is used to determine whether the phone number is required when editing a destination address.
66
+
privateletoriginCountryCode:String?
67
+
68
+
/// The origin address state code.
69
+
/// This is used to determine whether the phone number is required when editing a destination address.
70
+
privateletoriginStateCode:String?
66
71
67
72
/// Status of the address, based on local validation and remote verification.
68
73
varstatus:WooShippingAddressStatus{
@@ -158,6 +163,10 @@ final class WooShippingEditAddressViewModel: ObservableObject, Identifiable {
158
163
/// Closure called when an origin address is done being edited and the changes are confirmed.
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShippingCreateLabelsView.swift
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/WooShipping Create Shipping Labels/WooShippingCreateLabelsViewModel.swift
0 commit comments