woocommerce/packages/js/api-core-tests/data/shared/customer.js

46 lines
981 B
JavaScript
Raw Normal View History

/**
* Customer billing object.
*
* Used in the following APIs:
* https://woocommerce.github.io/woocommerce-rest-api-docs/#customers
* https://woocommerce.github.io/woocommerce-rest-api-docs/#orders
*/
2021-08-23 17:39:03 +00:00
const customerBilling = {
first_name: 'John',
last_name: 'Doe',
company: 'Automattic',
country: 'US',
address_1: 'address1',
address_2: 'address2',
city: 'San Francisco',
state: 'CA',
postcode: '94107',
phone: '123456789',
email: 'john.doe@example.com',
2021-09-07 22:20:44 +00:00
};
2021-08-23 17:39:03 +00:00
/**
* Customer shipping object.
*
* Used in the following APIs:
* https://woocommerce.github.io/woocommerce-rest-api-docs/#customers
* https://woocommerce.github.io/woocommerce-rest-api-docs/#orders
*/
2021-08-23 17:39:03 +00:00
const customerShipping = {
first_name: 'Tim',
last_name: 'Clark',
company: 'Automattic',
country: 'US',
address_1: 'Oxford Ave',
address_2: 'Linwood Ave',
city: 'Buffalo',
state: 'NY',
postcode: '14201',
phone: '123456789',
2021-09-07 22:20:44 +00:00
};
2021-08-23 17:39:03 +00:00
module.exports = {
customerBilling,
2021-09-07 22:20:44 +00:00
customerShipping,
};