@orchesty/connector-woocommerce 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +102 -0
- package/dist/Connector/WooCommerceGetProductVariant.d.ts +15 -1
- package/dist/Connector/WooCommerceRegisterWebhook.js +1 -0
- package/dist/Connector/WooCommerceUnsubscribeWebhooks.js +5 -1
- package/dist/package.json +7 -5
- package/package.json +6 -4
- package/CHANGELOG.md +0 -12
- package/coverage/clover.xml +0 -404
- package/coverage/coverage-final.json +0 -21
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -161
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -210
- package/coverage/lcov-report/src/Batch/WooCommerceGetOrders.ts.html +0 -640
- package/coverage/lcov-report/src/Batch/WooCommerceGetProducts.ts.html +0 -532
- package/coverage/lcov-report/src/Batch/WooCommerceGetVariants.ts.html +0 -433
- package/coverage/lcov-report/src/Batch/index.html +0 -146
- package/coverage/lcov-report/src/Connector/WooCommerceAddNote.ts.html +0 -220
- package/coverage/lcov-report/src/Connector/WooCommerceCreateProduct.ts.html +0 -178
- package/coverage/lcov-report/src/Connector/WooCommerceCreateProductCategory.ts.html +0 -307
- package/coverage/lcov-report/src/Connector/WooCommerceGetOrderNotes.ts.html +0 -274
- package/coverage/lcov-report/src/Connector/WooCommerceGetOrderStatuses.ts.html +0 -175
- package/coverage/lcov-report/src/Connector/WooCommerceGetPaymentGateways.ts.html +0 -295
- package/coverage/lcov-report/src/Connector/WooCommerceGetProduct.ts.html +0 -181
- package/coverage/lcov-report/src/Connector/WooCommerceGetProductVariant.ts.html +0 -496
- package/coverage/lcov-report/src/Connector/WooCommerceGetProductsBySku.ts.html +0 -226
- package/coverage/lcov-report/src/Connector/WooCommerceGetSettingsGeneral.ts.html +0 -238
- package/coverage/lcov-report/src/Connector/WooCommerceGetShippingMethods.ts.html +0 -478
- package/coverage/lcov-report/src/Connector/WooCommerceUpdateOrder.ts.html +0 -193
- package/coverage/lcov-report/src/Connector/WooCommerceUpdateProduct.ts.html +0 -199
- package/coverage/lcov-report/src/Connector/WooCommerceUpdateProductQuantity.ts.html +0 -220
- package/coverage/lcov-report/src/Connector/WooCommerceUpdateProductVariant.ts.html +0 -199
- package/coverage/lcov-report/src/Connector/index.html +0 -326
- package/coverage/lcov-report/src/WooCommerceApplication.ts.html +0 -364
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/test/dataProvider.ts.html +0 -427
- package/coverage/lcov-report/test/index.html +0 -116
- package/coverage/lcov.info +0 -661
- package/jest.config.js +0 -13
- package/src/Batch/WooCommerceGetOrders.ts +0 -185
- package/src/Batch/WooCommerceGetProducts.ts +0 -149
- package/src/Batch/WooCommerceGetVariants.ts +0 -116
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-input.json +0 -8
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-mock.json +0 -319
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-output.json +0 -16
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/input.json +0 -6
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-input.json +0 -6
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-mock.json +0 -319
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-output.json +0 -15
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/mock.json +0 -319
- package/src/Batch/__tests__/Data/WooCommerceGetOrders/output.json +0 -15
- package/src/Batch/__tests__/Data/WooCommerceGetProducts/input.json +0 -7
- package/src/Batch/__tests__/Data/WooCommerceGetProducts/mock.json +0 -170
- package/src/Batch/__tests__/Data/WooCommerceGetProducts/output.json +0 -11
- package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-input.json +0 -7
- package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-mock.json +0 -170
- package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-output.json +0 -11
- package/src/Batch/__tests__/Data/WooCommerceGetVariants/input.json +0 -169
- package/src/Batch/__tests__/Data/WooCommerceGetVariants/mock.json +0 -160
- package/src/Batch/__tests__/Data/WooCommerceGetVariants/output.json +0 -11
- package/src/Batch/__tests__/WooCommerceGetOrders.ts +0 -42
- package/src/Batch/__tests__/WooCommerceGetProducts.ts +0 -37
- package/src/Batch/__tests__/WooCommerceGetVariants.ts +0 -32
- package/src/Connector/WooCommerceAddNote.ts +0 -45
- package/src/Connector/WooCommerceCreateProduct.ts +0 -31
- package/src/Connector/WooCommerceCreateProductCategory.ts +0 -74
- package/src/Connector/WooCommerceGetOrderNotes.ts +0 -63
- package/src/Connector/WooCommerceGetOrderStatuses.ts +0 -30
- package/src/Connector/WooCommerceGetPaymentGateways.ts +0 -70
- package/src/Connector/WooCommerceGetProduct.ts +0 -32
- package/src/Connector/WooCommerceGetProductVariant.ts +0 -137
- package/src/Connector/WooCommerceGetProductsBySku.ts +0 -47
- package/src/Connector/WooCommerceGetSettingsGeneral.ts +0 -51
- package/src/Connector/WooCommerceGetShippingMethods.ts +0 -131
- package/src/Connector/WooCommerceRegisterWebhook.ts +0 -106
- package/src/Connector/WooCommerceUnsubscribeWebhooks.ts +0 -91
- package/src/Connector/WooCommerceUpdateOrder.ts +0 -36
- package/src/Connector/WooCommerceUpdateProduct.ts +0 -38
- package/src/Connector/WooCommerceUpdateProductQuantity.ts +0 -45
- package/src/Connector/WooCommerceUpdateProductVariant.ts +0 -38
- package/src/Connector/__tests__/Data/WooCommerceAddNote/input.json +0 -11
- package/src/Connector/__tests__/Data/WooCommerceAddNote/mock.json +0 -22
- package/src/Connector/__tests__/Data/WooCommerceAddNote/output.json +0 -23
- package/src/Connector/__tests__/Data/WooCommerceCreateProduct/input.json +0 -28
- package/src/Connector/__tests__/Data/WooCommerceCreateProduct/mock.json +0 -125
- package/src/Connector/__tests__/Data/WooCommerceCreateProduct/output.json +0 -126
- package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/input.json +0 -11
- package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/mock.json +0 -36
- package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/output.json +0 -37
- package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/input.json +0 -8
- package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/mock.json +0 -81
- package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/output.json +0 -82
- package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/input.json +0 -6
- package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/mock.json +0 -41
- package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/output.json +0 -42
- package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/input.json +0 -6
- package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/mock.json +0 -350
- package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/output.json +0 -351
- package/src/Connector/__tests__/Data/WooCommerceGetProduct/input.json +0 -8
- package/src/Connector/__tests__/Data/WooCommerceGetProduct/mock.json +0 -125
- package/src/Connector/__tests__/Data/WooCommerceGetProduct/output.json +0 -126
- package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/input.json +0 -37
- package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/mock.json +0 -81
- package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/mock1.json +0 -81
- package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-input.json +0 -22
- package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-mock.json +0 -81
- package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-output.json +0 -24
- package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/output.json +0 -37
- package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/input.json +0 -8
- package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/mock.json +0 -170
- package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/output.json +0 -169
- package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/input.json +0 -6
- package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/mock.json +0 -3459
- package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/output.json +0 -3460
- package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-input.json +0 -8
- package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-mock.json +0 -30
- package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-output.json +0 -31
- package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/input.json +0 -6
- package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock.json +0 -50
- package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock1.json +0 -187
- package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock2.json +0 -187
- package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/output.json +0 -373
- package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/input.json +0 -9
- package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/mock.json +0 -169
- package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/output.json +0 -170
- package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/input.json +0 -9
- package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/mock.json +0 -125
- package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/output.json +0 -126
- package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/input.json +0 -20
- package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/mock.json +0 -162
- package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/output.json +0 -6
- package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/input.json +0 -10
- package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/mock.json +0 -125
- package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/output.json +0 -126
- package/src/Connector/__tests__/WooCommerceAddNote.ts +0 -18
- package/src/Connector/__tests__/WooCommerceCreateProduct.ts +0 -18
- package/src/Connector/__tests__/WooCommerceCreateProductCategory.ts +0 -18
- package/src/Connector/__tests__/WooCommerceGetOrderNotes.ts +0 -18
- package/src/Connector/__tests__/WooCommerceGetOrderStatuses.ts +0 -18
- package/src/Connector/__tests__/WooCommerceGetPaymentGateways.ts +0 -18
- package/src/Connector/__tests__/WooCommerceGetProduct.ts +0 -18
- package/src/Connector/__tests__/WooCommerceGetProductVariant.ts +0 -25
- package/src/Connector/__tests__/WooCommerceGetProductsBySku.ts +0 -18
- package/src/Connector/__tests__/WooCommerceGetSettingsGeneral.ts +0 -25
- package/src/Connector/__tests__/WooCommerceGetShippingMethods.ts +0 -18
- package/src/Connector/__tests__/WooCommerceUpdateOrder.ts +0 -18
- package/src/Connector/__tests__/WooCommerceUpdateProduct.ts +0 -18
- package/src/Connector/__tests__/WooCommerceUpdateProductQuantity.ts +0 -18
- package/src/Connector/__tests__/WooCommerceUpdateProductVariant.ts +0 -18
- package/src/WooCommerceApplication.ts +0 -93
- package/test/dataProvider.ts +0 -114
- package/tsconfig.json +0 -8
- package/tsconfig.prod.json +0 -13
- package/tsconfig.prod.tsbuildinfo +0 -1
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"http": "GET http://woocomerce.com//wp-json/wc/v3/products/921728736/variations/447654529",
|
|
3
|
-
"code": 200,
|
|
4
|
-
"body": {
|
|
5
|
-
"id": 447654529,
|
|
6
|
-
"date_created": "2017-03-23T00:36:38",
|
|
7
|
-
"date_created_gmt": "2017-03-23T03:36:38",
|
|
8
|
-
"date_modified": "2017-03-23T00:36:38",
|
|
9
|
-
"date_modified_gmt": "2017-03-23T03:36:38",
|
|
10
|
-
"description": "",
|
|
11
|
-
"permalink": "https://example.com/product/ship-your-idea/?attribute_pa_color=black",
|
|
12
|
-
"sku": "1111",
|
|
13
|
-
"price": "9.00",
|
|
14
|
-
"regular_price": "9.00",
|
|
15
|
-
"sale_price": "",
|
|
16
|
-
"date_on_sale_from": null,
|
|
17
|
-
"date_on_sale_from_gmt": null,
|
|
18
|
-
"date_on_sale_to": null,
|
|
19
|
-
"date_on_sale_to_gmt": null,
|
|
20
|
-
"on_sale": false,
|
|
21
|
-
"status": "publish",
|
|
22
|
-
"purchasable": true,
|
|
23
|
-
"virtual": false,
|
|
24
|
-
"downloadable": false,
|
|
25
|
-
"downloads": [],
|
|
26
|
-
"download_limit": -1,
|
|
27
|
-
"download_expiry": -1,
|
|
28
|
-
"tax_status": "taxable",
|
|
29
|
-
"tax_class": "",
|
|
30
|
-
"manage_stock": false,
|
|
31
|
-
"stock_quantity": null,
|
|
32
|
-
"stock_status": "instock",
|
|
33
|
-
"backorders": "no",
|
|
34
|
-
"backorders_allowed": false,
|
|
35
|
-
"backordered": false,
|
|
36
|
-
"weight": "",
|
|
37
|
-
"dimensions": {
|
|
38
|
-
"length": "",
|
|
39
|
-
"width": "",
|
|
40
|
-
"height": ""
|
|
41
|
-
},
|
|
42
|
-
"shipping_class": "",
|
|
43
|
-
"shipping_class_id": 0,
|
|
44
|
-
"image": {
|
|
45
|
-
"id": 423,
|
|
46
|
-
"date_created": "2016-10-19T12:21:14",
|
|
47
|
-
"date_created_gmt": "2016-10-19T16:21:14",
|
|
48
|
-
"date_modified": "2016-10-19T12:21:14",
|
|
49
|
-
"date_modified_gmt": "2016-10-19T16:21:14",
|
|
50
|
-
"src": "https://example.com/wp-content/uploads/2016/10/T_4_front-12.jpg",
|
|
51
|
-
"name": "",
|
|
52
|
-
"alt": ""
|
|
53
|
-
},
|
|
54
|
-
"attributes": [
|
|
55
|
-
{
|
|
56
|
-
"id": 6,
|
|
57
|
-
"name": "Color",
|
|
58
|
-
"option": "Black"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"menu_order": 0,
|
|
62
|
-
"meta_data": [],
|
|
63
|
-
"_links": {
|
|
64
|
-
"self": [
|
|
65
|
-
{
|
|
66
|
-
"href": "https://example.com/wp-json/wc/v3/products/22/variations/732"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"collection": [
|
|
70
|
-
{
|
|
71
|
-
"href": "https://example.com/wp-json/wc/v3/products/22/variations"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"up": [
|
|
75
|
-
{
|
|
76
|
-
"href": "https://example.com/wp-json/wc/v3/products/22"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"http": "GET http://woocomerce.com//wp-json/wc/v3/products/921728737/variations/447654530",
|
|
3
|
-
"code": 200,
|
|
4
|
-
"body": {
|
|
5
|
-
"id": 447654530,
|
|
6
|
-
"date_created": "2017-03-23T00:36:38",
|
|
7
|
-
"date_created_gmt": "2017-03-23T03:36:38",
|
|
8
|
-
"date_modified": "2017-03-23T00:36:38",
|
|
9
|
-
"date_modified_gmt": "2017-03-23T03:36:38",
|
|
10
|
-
"description": "",
|
|
11
|
-
"permalink": "https://example.com/product/ship-your-idea/?attribute_pa_color=black",
|
|
12
|
-
"sku": "2222",
|
|
13
|
-
"price": "9.00",
|
|
14
|
-
"regular_price": "9.00",
|
|
15
|
-
"sale_price": "",
|
|
16
|
-
"date_on_sale_from": null,
|
|
17
|
-
"date_on_sale_from_gmt": null,
|
|
18
|
-
"date_on_sale_to": null,
|
|
19
|
-
"date_on_sale_to_gmt": null,
|
|
20
|
-
"on_sale": false,
|
|
21
|
-
"status": "publish",
|
|
22
|
-
"purchasable": true,
|
|
23
|
-
"virtual": false,
|
|
24
|
-
"downloadable": false,
|
|
25
|
-
"downloads": [],
|
|
26
|
-
"download_limit": -1,
|
|
27
|
-
"download_expiry": -1,
|
|
28
|
-
"tax_status": "taxable",
|
|
29
|
-
"tax_class": "",
|
|
30
|
-
"manage_stock": false,
|
|
31
|
-
"stock_quantity": null,
|
|
32
|
-
"stock_status": "instock",
|
|
33
|
-
"backorders": "no",
|
|
34
|
-
"backorders_allowed": false,
|
|
35
|
-
"backordered": false,
|
|
36
|
-
"weight": "",
|
|
37
|
-
"dimensions": {
|
|
38
|
-
"length": "",
|
|
39
|
-
"width": "",
|
|
40
|
-
"height": ""
|
|
41
|
-
},
|
|
42
|
-
"shipping_class": "",
|
|
43
|
-
"shipping_class_id": 0,
|
|
44
|
-
"image": {
|
|
45
|
-
"id": 423,
|
|
46
|
-
"date_created": "2016-10-19T12:21:14",
|
|
47
|
-
"date_created_gmt": "2016-10-19T16:21:14",
|
|
48
|
-
"date_modified": "2016-10-19T12:21:14",
|
|
49
|
-
"date_modified_gmt": "2016-10-19T16:21:14",
|
|
50
|
-
"src": "https://example.com/wp-content/uploads/2016/10/T_4_front-12.jpg",
|
|
51
|
-
"name": "",
|
|
52
|
-
"alt": ""
|
|
53
|
-
},
|
|
54
|
-
"attributes": [
|
|
55
|
-
{
|
|
56
|
-
"id": 6,
|
|
57
|
-
"name": "Color",
|
|
58
|
-
"option": "Black"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"menu_order": 0,
|
|
62
|
-
"meta_data": [],
|
|
63
|
-
"_links": {
|
|
64
|
-
"self": [
|
|
65
|
-
{
|
|
66
|
-
"href": "https://example.com/wp-json/wc/v3/products/22/variations/732"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"collection": [
|
|
70
|
-
{
|
|
71
|
-
"href": "https://example.com/wp-json/wc/v3/products/22/variations"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"up": [
|
|
75
|
-
{
|
|
76
|
-
"href": "https://example.com/wp-json/wc/v3/products/22"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser"
|
|
4
|
-
},
|
|
5
|
-
"data": [
|
|
6
|
-
{
|
|
7
|
-
"ean": "1234_pink",
|
|
8
|
-
"englishName": null,
|
|
9
|
-
"height": null,
|
|
10
|
-
"heightUnit": null,
|
|
11
|
-
"length": null,
|
|
12
|
-
"lengthUnit": null,
|
|
13
|
-
"name": "Iphone Black",
|
|
14
|
-
"productId": "921728736",
|
|
15
|
-
"id": "447654529",
|
|
16
|
-
"weight": 1.25,
|
|
17
|
-
"weightUnit": "lb",
|
|
18
|
-
"width": null,
|
|
19
|
-
"widthUnit": null
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"http": "GET http://woocomerce.com//wp-json/wc/v3/products/921728736/variations/447654529",
|
|
3
|
-
"code": 200,
|
|
4
|
-
"body": {
|
|
5
|
-
"id": 447654529,
|
|
6
|
-
"date_created": "2017-03-23T00:36:38",
|
|
7
|
-
"date_created_gmt": "2017-03-23T03:36:38",
|
|
8
|
-
"date_modified": "2017-03-23T00:36:38",
|
|
9
|
-
"date_modified_gmt": "2017-03-23T03:36:38",
|
|
10
|
-
"description": "",
|
|
11
|
-
"permalink": "https://example.com/product/ship-your-idea/?attribute_pa_color=black",
|
|
12
|
-
"sku": "",
|
|
13
|
-
"price": "9.00",
|
|
14
|
-
"regular_price": "9.00",
|
|
15
|
-
"sale_price": "",
|
|
16
|
-
"date_on_sale_from": null,
|
|
17
|
-
"date_on_sale_from_gmt": null,
|
|
18
|
-
"date_on_sale_to": null,
|
|
19
|
-
"date_on_sale_to_gmt": null,
|
|
20
|
-
"on_sale": false,
|
|
21
|
-
"status": "publish",
|
|
22
|
-
"purchasable": true,
|
|
23
|
-
"virtual": false,
|
|
24
|
-
"downloadable": false,
|
|
25
|
-
"downloads": [],
|
|
26
|
-
"download_limit": -1,
|
|
27
|
-
"download_expiry": -1,
|
|
28
|
-
"tax_status": "taxable",
|
|
29
|
-
"tax_class": "",
|
|
30
|
-
"manage_stock": false,
|
|
31
|
-
"stock_quantity": null,
|
|
32
|
-
"stock_status": "instock",
|
|
33
|
-
"backorders": "no",
|
|
34
|
-
"backorders_allowed": false,
|
|
35
|
-
"backordered": false,
|
|
36
|
-
"weight": "",
|
|
37
|
-
"dimensions": {
|
|
38
|
-
"length": "",
|
|
39
|
-
"width": "",
|
|
40
|
-
"height": ""
|
|
41
|
-
},
|
|
42
|
-
"shipping_class": "",
|
|
43
|
-
"shipping_class_id": 0,
|
|
44
|
-
"image": {
|
|
45
|
-
"id": 423,
|
|
46
|
-
"date_created": "2016-10-19T12:21:14",
|
|
47
|
-
"date_created_gmt": "2016-10-19T16:21:14",
|
|
48
|
-
"date_modified": "2016-10-19T12:21:14",
|
|
49
|
-
"date_modified_gmt": "2016-10-19T16:21:14",
|
|
50
|
-
"src": "https://example.com/wp-content/uploads/2016/10/T_4_front-12.jpg",
|
|
51
|
-
"name": "",
|
|
52
|
-
"alt": ""
|
|
53
|
-
},
|
|
54
|
-
"attributes": [
|
|
55
|
-
{
|
|
56
|
-
"id": 6,
|
|
57
|
-
"name": "Color",
|
|
58
|
-
"option": "Black"
|
|
59
|
-
}
|
|
60
|
-
],
|
|
61
|
-
"menu_order": 0,
|
|
62
|
-
"meta_data": [],
|
|
63
|
-
"_links": {
|
|
64
|
-
"self": [
|
|
65
|
-
{
|
|
66
|
-
"href": "https://example.com/wp-json/wc/v3/products/22/variations/732"
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"collection": [
|
|
70
|
-
{
|
|
71
|
-
"href": "https://example.com/wp-json/wc/v3/products/22/variations"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
"up": [
|
|
75
|
-
{
|
|
76
|
-
"href": "https://example.com/wp-json/wc/v3/products/22"
|
|
77
|
-
}
|
|
78
|
-
]
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser",
|
|
4
|
-
"result-code": "1006",
|
|
5
|
-
"result-message": "SKU in woocommerce is missing [ProductId=921728736, Id=447654529]"
|
|
6
|
-
},
|
|
7
|
-
"data": [
|
|
8
|
-
{
|
|
9
|
-
"ean": "1234_pink",
|
|
10
|
-
"englishName": null,
|
|
11
|
-
"height": null,
|
|
12
|
-
"heightUnit": null,
|
|
13
|
-
"length": null,
|
|
14
|
-
"lengthUnit": null,
|
|
15
|
-
"name": "Iphone Black",
|
|
16
|
-
"productId": "921728736",
|
|
17
|
-
"id": "447654529",
|
|
18
|
-
"weight": 1.25,
|
|
19
|
-
"weightUnit": "lb",
|
|
20
|
-
"width": null,
|
|
21
|
-
"widthUnit": null
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser"
|
|
4
|
-
},
|
|
5
|
-
"data": [
|
|
6
|
-
{
|
|
7
|
-
"ean": "1234_pink",
|
|
8
|
-
"englishName": null,
|
|
9
|
-
"height": null,
|
|
10
|
-
"heightUnit": null,
|
|
11
|
-
"length": null,
|
|
12
|
-
"lengthUnit": null,
|
|
13
|
-
"name": "Iphone Black",
|
|
14
|
-
"productId": "921728736",
|
|
15
|
-
"sku": "1111",
|
|
16
|
-
"weight": 1.25,
|
|
17
|
-
"weightUnit": "lb",
|
|
18
|
-
"width": null,
|
|
19
|
-
"widthUnit": null
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"ean": "1234_pink",
|
|
23
|
-
"englishName": null,
|
|
24
|
-
"height": null,
|
|
25
|
-
"heightUnit": null,
|
|
26
|
-
"length": null,
|
|
27
|
-
"lengthUnit": null,
|
|
28
|
-
"name": "Iphone Black",
|
|
29
|
-
"productId": "921728737",
|
|
30
|
-
"sku": "2222",
|
|
31
|
-
"weight": 1.25,
|
|
32
|
-
"weightUnit": "lb",
|
|
33
|
-
"width": null,
|
|
34
|
-
"widthUnit": null
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"http": "GET http://woocomerce.com/wp-json/wc/v3/products?sku=794",
|
|
3
|
-
"code": 200,
|
|
4
|
-
"body": [
|
|
5
|
-
{
|
|
6
|
-
"id": 799,
|
|
7
|
-
"name": "Ship Your Idea",
|
|
8
|
-
"slug": "ship-your-idea-22",
|
|
9
|
-
"permalink": "https://example.com/product/ship-your-idea-22/",
|
|
10
|
-
"date_created": "2017-03-23T17:03:12",
|
|
11
|
-
"date_created_gmt": "2017-03-23T20:03:12",
|
|
12
|
-
"date_modified": "2017-03-23T17:03:12",
|
|
13
|
-
"date_modified_gmt": "2017-03-23T20:03:12",
|
|
14
|
-
"type": "variable",
|
|
15
|
-
"status": "publish",
|
|
16
|
-
"featured": false,
|
|
17
|
-
"catalog_visibility": "visible",
|
|
18
|
-
"description": "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\n",
|
|
19
|
-
"short_description": "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>\n",
|
|
20
|
-
"sku": "",
|
|
21
|
-
"price": "",
|
|
22
|
-
"regular_price": "",
|
|
23
|
-
"sale_price": "",
|
|
24
|
-
"date_on_sale_from": null,
|
|
25
|
-
"date_on_sale_from_gmt": null,
|
|
26
|
-
"date_on_sale_to": null,
|
|
27
|
-
"date_on_sale_to_gmt": null,
|
|
28
|
-
"price_html": "",
|
|
29
|
-
"on_sale": false,
|
|
30
|
-
"purchasable": false,
|
|
31
|
-
"total_sales": 0,
|
|
32
|
-
"virtual": false,
|
|
33
|
-
"downloadable": false,
|
|
34
|
-
"downloads": [],
|
|
35
|
-
"download_limit": -1,
|
|
36
|
-
"download_expiry": -1,
|
|
37
|
-
"external_url": "",
|
|
38
|
-
"button_text": "",
|
|
39
|
-
"tax_status": "taxable",
|
|
40
|
-
"tax_class": "",
|
|
41
|
-
"manage_stock": false,
|
|
42
|
-
"stock_quantity": null,
|
|
43
|
-
"stock_status": "instock",
|
|
44
|
-
"backorders": "no",
|
|
45
|
-
"backorders_allowed": false,
|
|
46
|
-
"backordered": false,
|
|
47
|
-
"sold_individually": false,
|
|
48
|
-
"weight": "",
|
|
49
|
-
"dimensions": {
|
|
50
|
-
"length": "",
|
|
51
|
-
"width": "",
|
|
52
|
-
"height": ""
|
|
53
|
-
},
|
|
54
|
-
"shipping_required": true,
|
|
55
|
-
"shipping_taxable": true,
|
|
56
|
-
"shipping_class": "",
|
|
57
|
-
"shipping_class_id": 0,
|
|
58
|
-
"reviews_allowed": true,
|
|
59
|
-
"average_rating": "0.00",
|
|
60
|
-
"rating_count": 0,
|
|
61
|
-
"related_ids": [
|
|
62
|
-
31,
|
|
63
|
-
22,
|
|
64
|
-
369,
|
|
65
|
-
414,
|
|
66
|
-
56
|
|
67
|
-
],
|
|
68
|
-
"upsell_ids": [],
|
|
69
|
-
"cross_sell_ids": [],
|
|
70
|
-
"parent_id": 0,
|
|
71
|
-
"purchase_note": "",
|
|
72
|
-
"categories": [
|
|
73
|
-
{
|
|
74
|
-
"id": 9,
|
|
75
|
-
"name": "Clothing",
|
|
76
|
-
"slug": "clothing"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"id": 14,
|
|
80
|
-
"name": "T-shirts",
|
|
81
|
-
"slug": "t-shirts"
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
"tags": [],
|
|
85
|
-
"images": [
|
|
86
|
-
{
|
|
87
|
-
"id": 795,
|
|
88
|
-
"date_created": "2017-03-23T14:03:08",
|
|
89
|
-
"date_created_gmt": "2017-03-23T20:03:08",
|
|
90
|
-
"date_modified": "2017-03-23T14:03:08",
|
|
91
|
-
"date_modified_gmt": "2017-03-23T20:03:08",
|
|
92
|
-
"src": "https://example.com/wp-content/uploads/2017/03/T_4_front-11.jpg",
|
|
93
|
-
"name": "",
|
|
94
|
-
"alt": ""
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"id": 796,
|
|
98
|
-
"date_created": "2017-03-23T14:03:09",
|
|
99
|
-
"date_created_gmt": "2017-03-23T20:03:09",
|
|
100
|
-
"date_modified": "2017-03-23T14:03:09",
|
|
101
|
-
"date_modified_gmt": "2017-03-23T20:03:09",
|
|
102
|
-
"src": "https://example.com/wp-content/uploads/2017/03/T_4_back-10.jpg",
|
|
103
|
-
"name": "",
|
|
104
|
-
"alt": ""
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"id": 797,
|
|
108
|
-
"date_created": "2017-03-23T14:03:10",
|
|
109
|
-
"date_created_gmt": "2017-03-23T20:03:10",
|
|
110
|
-
"date_modified": "2017-03-23T14:03:10",
|
|
111
|
-
"date_modified_gmt": "2017-03-23T20:03:10",
|
|
112
|
-
"src": "https://example.com/wp-content/uploads/2017/03/T_3_front-10.jpg",
|
|
113
|
-
"name": "",
|
|
114
|
-
"alt": ""
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"id": 798,
|
|
118
|
-
"date_created": "2017-03-23T14:03:11",
|
|
119
|
-
"date_created_gmt": "2017-03-23T20:03:11",
|
|
120
|
-
"date_modified": "2017-03-23T14:03:11",
|
|
121
|
-
"date_modified_gmt": "2017-03-23T20:03:11",
|
|
122
|
-
"src": "https://example.com/wp-content/uploads/2017/03/T_3_back-10.jpg",
|
|
123
|
-
"name": "",
|
|
124
|
-
"alt": ""
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
"attributes": [
|
|
128
|
-
{
|
|
129
|
-
"id": 6,
|
|
130
|
-
"name": "Color",
|
|
131
|
-
"position": 0,
|
|
132
|
-
"visible": false,
|
|
133
|
-
"variation": true,
|
|
134
|
-
"options": [
|
|
135
|
-
"Black",
|
|
136
|
-
"Green"
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"id": 0,
|
|
141
|
-
"name": "Size",
|
|
142
|
-
"position": 0,
|
|
143
|
-
"visible": true,
|
|
144
|
-
"variation": true,
|
|
145
|
-
"options": [
|
|
146
|
-
"S",
|
|
147
|
-
"M"
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"default_attributes": [],
|
|
152
|
-
"variations": [],
|
|
153
|
-
"grouped_products": [],
|
|
154
|
-
"menu_order": 0,
|
|
155
|
-
"meta_data": [],
|
|
156
|
-
"_links": {
|
|
157
|
-
"self": [
|
|
158
|
-
{
|
|
159
|
-
"href": "https://example.com/wp-json/wc/v3/products/799"
|
|
160
|
-
}
|
|
161
|
-
],
|
|
162
|
-
"collection": [
|
|
163
|
-
{
|
|
164
|
-
"href": "https://example.com/wp-json/wc/v3/products"
|
|
165
|
-
}
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser"
|
|
4
|
-
},
|
|
5
|
-
"data": {
|
|
6
|
-
"_links": {
|
|
7
|
-
"collection": [
|
|
8
|
-
{
|
|
9
|
-
"href": "https://example.com/wp-json/wc/v3/products"
|
|
10
|
-
}
|
|
11
|
-
],
|
|
12
|
-
"self": [
|
|
13
|
-
{
|
|
14
|
-
"href": "https://example.com/wp-json/wc/v3/products/799"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"attributes": [
|
|
19
|
-
{
|
|
20
|
-
"id": 6,
|
|
21
|
-
"name": "Color",
|
|
22
|
-
"options": [
|
|
23
|
-
"Black",
|
|
24
|
-
"Green"
|
|
25
|
-
],
|
|
26
|
-
"position": 0,
|
|
27
|
-
"variation": true,
|
|
28
|
-
"visible": false
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"id": 0,
|
|
32
|
-
"name": "Size",
|
|
33
|
-
"options": [
|
|
34
|
-
"S",
|
|
35
|
-
"M"
|
|
36
|
-
],
|
|
37
|
-
"position": 0,
|
|
38
|
-
"variation": true,
|
|
39
|
-
"visible": true
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"average_rating": "0.00",
|
|
43
|
-
"backordered": false,
|
|
44
|
-
"backorders": "no",
|
|
45
|
-
"backorders_allowed": false,
|
|
46
|
-
"button_text": "",
|
|
47
|
-
"catalog_visibility": "visible",
|
|
48
|
-
"categories": [
|
|
49
|
-
{
|
|
50
|
-
"id": 9,
|
|
51
|
-
"name": "Clothing",
|
|
52
|
-
"slug": "clothing"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"id": 14,
|
|
56
|
-
"name": "T-shirts",
|
|
57
|
-
"slug": "t-shirts"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"cross_sell_ids": [],
|
|
61
|
-
"date_created": "2017-03-23T17:03:12",
|
|
62
|
-
"date_created_gmt": "2017-03-23T20:03:12",
|
|
63
|
-
"date_modified": "2017-03-23T17:03:12",
|
|
64
|
-
"date_modified_gmt": "2017-03-23T20:03:12",
|
|
65
|
-
"date_on_sale_from": null,
|
|
66
|
-
"date_on_sale_from_gmt": null,
|
|
67
|
-
"date_on_sale_to": null,
|
|
68
|
-
"date_on_sale_to_gmt": null,
|
|
69
|
-
"default_attributes": [],
|
|
70
|
-
"description": "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>\n",
|
|
71
|
-
"dimensions": {
|
|
72
|
-
"height": "",
|
|
73
|
-
"length": "",
|
|
74
|
-
"width": ""
|
|
75
|
-
},
|
|
76
|
-
"download_expiry": -1,
|
|
77
|
-
"download_limit": -1,
|
|
78
|
-
"downloadable": false,
|
|
79
|
-
"downloads": [],
|
|
80
|
-
"external_url": "",
|
|
81
|
-
"featured": false,
|
|
82
|
-
"grouped_products": [],
|
|
83
|
-
"id": 799,
|
|
84
|
-
"images": [
|
|
85
|
-
{
|
|
86
|
-
"alt": "",
|
|
87
|
-
"date_created": "2017-03-23T14:03:08",
|
|
88
|
-
"date_created_gmt": "2017-03-23T20:03:08",
|
|
89
|
-
"date_modified": "2017-03-23T14:03:08",
|
|
90
|
-
"date_modified_gmt": "2017-03-23T20:03:08",
|
|
91
|
-
"id": 795,
|
|
92
|
-
"name": "",
|
|
93
|
-
"src": "https://example.com/wp-content/uploads/2017/03/T_4_front-11.jpg"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"alt": "",
|
|
97
|
-
"date_created": "2017-03-23T14:03:09",
|
|
98
|
-
"date_created_gmt": "2017-03-23T20:03:09",
|
|
99
|
-
"date_modified": "2017-03-23T14:03:09",
|
|
100
|
-
"date_modified_gmt": "2017-03-23T20:03:09",
|
|
101
|
-
"id": 796,
|
|
102
|
-
"name": "",
|
|
103
|
-
"src": "https://example.com/wp-content/uploads/2017/03/T_4_back-10.jpg"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"alt": "",
|
|
107
|
-
"date_created": "2017-03-23T14:03:10",
|
|
108
|
-
"date_created_gmt": "2017-03-23T20:03:10",
|
|
109
|
-
"date_modified": "2017-03-23T14:03:10",
|
|
110
|
-
"date_modified_gmt": "2017-03-23T20:03:10",
|
|
111
|
-
"id": 797,
|
|
112
|
-
"name": "",
|
|
113
|
-
"src": "https://example.com/wp-content/uploads/2017/03/T_3_front-10.jpg"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"alt": "",
|
|
117
|
-
"date_created": "2017-03-23T14:03:11",
|
|
118
|
-
"date_created_gmt": "2017-03-23T20:03:11",
|
|
119
|
-
"date_modified": "2017-03-23T14:03:11",
|
|
120
|
-
"date_modified_gmt": "2017-03-23T20:03:11",
|
|
121
|
-
"id": 798,
|
|
122
|
-
"name": "",
|
|
123
|
-
"src": "https://example.com/wp-content/uploads/2017/03/T_3_back-10.jpg"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"manage_stock": false,
|
|
127
|
-
"menu_order": 0,
|
|
128
|
-
"meta_data": [],
|
|
129
|
-
"name": "Ship Your Idea",
|
|
130
|
-
"on_sale": false,
|
|
131
|
-
"parent_id": 0,
|
|
132
|
-
"permalink": "https://example.com/product/ship-your-idea-22/",
|
|
133
|
-
"price": "",
|
|
134
|
-
"price_html": "",
|
|
135
|
-
"purchasable": false,
|
|
136
|
-
"purchase_note": "",
|
|
137
|
-
"rating_count": 0,
|
|
138
|
-
"regular_price": "",
|
|
139
|
-
"related_ids": [
|
|
140
|
-
31,
|
|
141
|
-
22,
|
|
142
|
-
369,
|
|
143
|
-
414,
|
|
144
|
-
56
|
|
145
|
-
],
|
|
146
|
-
"reviews_allowed": true,
|
|
147
|
-
"sale_price": "",
|
|
148
|
-
"shipping_class": "",
|
|
149
|
-
"shipping_class_id": 0,
|
|
150
|
-
"shipping_required": true,
|
|
151
|
-
"shipping_taxable": true,
|
|
152
|
-
"short_description": "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>\n",
|
|
153
|
-
"sku": "",
|
|
154
|
-
"slug": "ship-your-idea-22",
|
|
155
|
-
"sold_individually": false,
|
|
156
|
-
"status": "publish",
|
|
157
|
-
"stock_quantity": null,
|
|
158
|
-
"stock_status": "instock",
|
|
159
|
-
"tags": [],
|
|
160
|
-
"tax_class": "",
|
|
161
|
-
"tax_status": "taxable",
|
|
162
|
-
"total_sales": 0,
|
|
163
|
-
"type": "variable",
|
|
164
|
-
"upsell_ids": [],
|
|
165
|
-
"variations": [],
|
|
166
|
-
"virtual": false,
|
|
167
|
-
"weight": ""
|
|
168
|
-
}
|
|
169
|
-
}
|