woocommerce/plugins/woocommerce-admin/client/wp-admin-scripts/print-shipping-label-banner/wcs-api.js

22 lines
356 B
JavaScript

/**
* External dependencies
*/
import apiFetch from '@wordpress/api-fetch';
export function acceptWcsTos() {
const path = '/wc/v1/connect/tos';
return apiFetch( {
path,
method: 'POST',
data: { accepted: true },
} );
}
export function getWcsAssets() {
const path = '/wc/v1/connect/assets';
return apiFetch( {
path,
method: 'GET',
} );
}