@@ -118,12 +118,19 @@ export function actionsMapAddresses(diff, oldObj, newObj) {
118118 return handler ( diff , oldObj , newObj )
119119}
120120
121- export function actionsMapBillingAddresses ( diff , oldObj , newObj ) {
121+ export function actionsMapAddBillingAddresses ( diff , oldObj , newObj ) {
122122 const handler = createBuildArrayActions ( 'billingAddressIds' , {
123123 [ ADD_ACTIONS ] : ( addressId ) => ( {
124124 action : 'addBillingAddressId' ,
125125 addressId,
126126 } ) ,
127+ } )
128+
129+ return handler ( diff , oldObj , newObj )
130+ }
131+
132+ export function actionsMapRemoveBillingAddresses ( diff , oldObj , newObj ) {
133+ const handler = createBuildArrayActions ( 'billingAddressIds' , {
127134 [ REMOVE_ACTIONS ] : ( addressId ) => ( {
128135 action : 'removeBillingAddressId' ,
129136 addressId,
@@ -133,12 +140,19 @@ export function actionsMapBillingAddresses(diff, oldObj, newObj) {
133140 return handler ( diff , oldObj , newObj )
134141}
135142
136- export function actionsMapShippingAddresses ( diff , oldObj , newObj ) {
143+ export function actionsMapAddShippingAddresses ( diff , oldObj , newObj ) {
137144 const handler = createBuildArrayActions ( 'shippingAddressIds' , {
138145 [ ADD_ACTIONS ] : ( addressId ) => ( {
139146 action : 'addShippingAddressId' ,
140147 addressId,
141148 } ) ,
149+ } )
150+
151+ return handler ( diff , oldObj , newObj )
152+ }
153+
154+ export function actionsMapRemoveShippingAddresses ( diff , oldObj , newObj ) {
155+ const handler = createBuildArrayActions ( 'shippingAddressIds' , {
142156 [ REMOVE_ACTIONS ] : ( addressId ) => ( {
143157 action : 'removeShippingAddressId' ,
144158 addressId,
0 commit comments