@@ -211,7 +211,7 @@ export function updateEmailTemplate(emailTemplate) {
211211
212212export function fetchCheckoutFields ( ) {
213213 return ( dispatch , getState ) => {
214- return api . checkout_fields . list ( ) . then ( ( { status, json} ) => {
214+ return api . checkoutFields . list ( ) . then ( ( { status, json} ) => {
215215 dispatch ( receiveCheckoutFields ( json ) )
216216 } ) . catch ( error => { } ) ;
217217 }
@@ -220,7 +220,7 @@ export function fetchCheckoutFields() {
220220export function fetchCheckoutField ( fieldName ) {
221221 return ( dispatch , getState ) => {
222222 dispatch ( requestCheckoutField ( ) )
223- return api . checkout_fields . retrieve ( fieldName ) . then ( ( { status, json} ) => {
223+ return api . checkoutFields . retrieve ( fieldName ) . then ( ( { status, json} ) => {
224224 json . fieldName = fieldName ;
225225 dispatch ( receiveCheckoutField ( json ) )
226226 } ) . catch ( error => { } ) ;
@@ -229,7 +229,7 @@ export function fetchCheckoutField(fieldName) {
229229
230230export function updateCheckoutField ( checkoutField ) {
231231 return ( dispatch , getState ) => {
232- return api . checkout_fields . update ( checkoutField . fieldName , checkoutField ) . then ( ( { status, json} ) => {
232+ return api . checkoutFields . update ( checkoutField . fieldName , checkoutField ) . then ( ( { status, json} ) => {
233233 json . fieldName = fieldName ;
234234 dispatch ( receiveCheckoutField ( json ) )
235235 } ) . catch ( error => { } ) ;
@@ -238,79 +238,79 @@ export function updateCheckoutField(checkoutField) {
238238
239239export function fetchShippingMethods ( ) {
240240 return ( dispatch , getState ) => {
241- return api . shipping_methods . list ( ) . then ( ( { status, json} ) => {
241+ return api . shippingMethods . list ( ) . then ( ( { status, json} ) => {
242242 dispatch ( receiveShippingMethods ( json ) )
243243 } ) . catch ( error => { } ) ;
244244 }
245245}
246246
247247export function fetchPaymentMethods ( ) {
248248 return ( dispatch , getState ) => {
249- return api . payment_methods . list ( ) . then ( ( { status, json} ) => {
249+ return api . paymentMethods . list ( ) . then ( ( { status, json} ) => {
250250 dispatch ( receivePaymentMethods ( json ) )
251251 } ) . catch ( error => { } ) ;
252252 }
253253}
254254
255255export function updateShippingMethod ( method ) {
256256 return ( dispatch , getState ) => {
257- return api . shipping_methods . update ( method . id , method ) . then ( ( { status, json} ) => {
257+ return api . shippingMethods . update ( method . id , method ) . then ( ( { status, json} ) => {
258258 dispatch ( fetchShippingMethods ( ) )
259259 } ) . catch ( error => { } ) ;
260260 }
261261}
262262
263263export function updatePaymentMethod ( method ) {
264264 return ( dispatch , getState ) => {
265- return api . payment_methods . update ( method . id , method ) . then ( ( { status, json} ) => {
265+ return api . paymentMethods . update ( method . id , method ) . then ( ( { status, json} ) => {
266266 dispatch ( fetchPaymentMethods ( ) )
267267 } ) . catch ( error => { } ) ;
268268 }
269269}
270270
271271export function fetchShippingMethod ( id ) {
272272 return ( dispatch , getState ) => {
273- return api . shipping_methods . retrieve ( id ) . then ( ( { status, json} ) => {
273+ return api . shippingMethods . retrieve ( id ) . then ( ( { status, json} ) => {
274274 dispatch ( receiveShippingMethod ( json ) )
275275 } ) . catch ( error => { } ) ;
276276 }
277277}
278278
279279export function fetchPaymentMethod ( id ) {
280280 return ( dispatch , getState ) => {
281- return api . payment_methods . retrieve ( id ) . then ( ( { status, json} ) => {
281+ return api . paymentMethods . retrieve ( id ) . then ( ( { status, json} ) => {
282282 dispatch ( receivePaymentMethod ( json ) )
283283 } ) . catch ( error => { } ) ;
284284 }
285285}
286286
287287export function deleteShippingMethod ( methodId ) {
288288 return ( dispatch , getState ) => {
289- return api . shipping_methods . delete ( methodId ) . then ( ( { status, json} ) => {
289+ return api . shippingMethods . delete ( methodId ) . then ( ( { status, json} ) => {
290290 dispatch ( fetchShippingMethods ( ) )
291291 } ) . catch ( error => { } ) ;
292292 }
293293}
294294
295295export function deletePaymentMethod ( methodId ) {
296296 return ( dispatch , getState ) => {
297- return api . payment_methods . delete ( methodId ) . then ( ( { status, json} ) => {
297+ return api . paymentMethods . delete ( methodId ) . then ( ( { status, json} ) => {
298298 dispatch ( fetchPaymentMethods ( ) )
299299 } ) . catch ( error => { } ) ;
300300 }
301301}
302302
303303export function createShippingMethod ( method ) {
304304 return ( dispatch , getState ) => {
305- return api . shipping_methods . create ( method ) . then ( ( { status, json} ) => {
305+ return api . shippingMethods . create ( method ) . then ( ( { status, json} ) => {
306306 dispatch ( fetchShippingMethods ( ) )
307307 } ) . catch ( error => { } ) ;
308308 }
309309}
310310
311311export function createPaymentMethod ( method ) {
312312 return ( dispatch , getState ) => {
313- return api . payment_methods . create ( method ) . then ( ( { status, json} ) => {
313+ return api . paymentMethods . create ( method ) . then ( ( { status, json} ) => {
314314 dispatch ( fetchPaymentMethods ( ) )
315315 } ) . catch ( error => { } ) ;
316316 }
0 commit comments