@orchesty/connector-wix 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 +83 -0
- package/dist/package.json +5 -2
- package/package.json +5 -2
- package/CHANGELOG.md +0 -7
- package/coverage/clover.xml +0 -125
- package/coverage/coverage-final.json +0 -7
- 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 -146
- 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/Connector/WixCreateOrderConnector.ts.html +0 -679
- package/coverage/lcov-report/src/Connector/WixCreateProductConnector.ts.html +0 -781
- package/coverage/lcov-report/src/Connector/WixGetOrderConnector.ts.html +0 -493
- package/coverage/lcov-report/src/Connector/WixUpdateProductConnector.ts.html +0 -574
- package/coverage/lcov-report/src/Connector/index.html +0 -161
- package/coverage/lcov-report/src/WixApplication.ts.html +0 -334
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/test/dataProvider.ts.html +0 -268
- package/coverage/lcov-report/test/index.html +0 -116
- package/coverage/lcov.info +0 -189
- package/jest.config.js +0 -13
- package/src/Connector/WixCreateOrderConnector.ts +0 -198
- package/src/Connector/WixCreateProductConnector.ts +0 -232
- package/src/Connector/WixGetOrderConnector.ts +0 -136
- package/src/Connector/WixUpdateProductConnector.ts +0 -163
- package/src/Connector/__tests__/Data/WixCreateOrderConnector/input.json +0 -74
- package/src/Connector/__tests__/Data/WixCreateOrderConnector/mock.json +0 -109
- package/src/Connector/__tests__/Data/WixCreateOrderConnector/output.json +0 -110
- package/src/Connector/__tests__/Data/WixCreateProductConnector/input.json +0 -43
- package/src/Connector/__tests__/Data/WixCreateProductConnector/mock.json +0 -180
- package/src/Connector/__tests__/Data/WixCreateProductConnector/output.json +0 -181
- package/src/Connector/__tests__/Data/WixGetOrderConnector/input.json +0 -8
- package/src/Connector/__tests__/Data/WixGetOrderConnector/mock.json +0 -113
- package/src/Connector/__tests__/Data/WixGetOrderConnector/output.json +0 -114
- package/src/Connector/__tests__/Data/WixUpdateProductConnector/input.json +0 -36
- package/src/Connector/__tests__/Data/WixUpdateProductConnector/mock.json +0 -115
- package/src/Connector/__tests__/Data/WixUpdateProductConnector/output.json +0 -117
- package/src/Connector/__tests__/WixCreateOrderConnector.ts +0 -17
- package/src/Connector/__tests__/WixCreateProductConnector.ts +0 -17
- package/src/Connector/__tests__/WixGetOrderConnector.ts +0 -17
- package/src/Connector/__tests__/WixUpdateProductConnector.ts +0 -17
- package/src/WixApplication.ts +0 -83
- package/test/dataProvider.ts +0 -61
- package/tsconfig.json +0 -8
- package/tsconfig.prod.json +0 -13
- package/tsconfig.prod.tsbuildinfo +0 -1
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser"
|
|
4
|
-
},
|
|
5
|
-
"data": {
|
|
6
|
-
"product": {
|
|
7
|
-
"id": "4224c24b-5a58-4d14-8793-623e812fa377",
|
|
8
|
-
"name": "T-shirt",
|
|
9
|
-
"slug": "t-shirt",
|
|
10
|
-
"visible": false,
|
|
11
|
-
"productType": "physical",
|
|
12
|
-
"description": "nice summer t-shirt",
|
|
13
|
-
"weightRange": {
|
|
14
|
-
"minValue": 0,
|
|
15
|
-
"maxValue": 0.2
|
|
16
|
-
},
|
|
17
|
-
"stock": {
|
|
18
|
-
"trackInventory": false,
|
|
19
|
-
"inStock": true,
|
|
20
|
-
"inventoryStatus": "IN_STOCK"
|
|
21
|
-
},
|
|
22
|
-
"price": {
|
|
23
|
-
"currency": "USD",
|
|
24
|
-
"price": 10.5,
|
|
25
|
-
"discountedPrice": 9.5,
|
|
26
|
-
"formatted": {
|
|
27
|
-
"price": "$10.50",
|
|
28
|
-
"discountedPrice": "$9.50"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"priceData": {
|
|
32
|
-
"currency": "USD",
|
|
33
|
-
"price": 10.5,
|
|
34
|
-
"discountedPrice": 9.5,
|
|
35
|
-
"formatted": {
|
|
36
|
-
"price": "$10.50",
|
|
37
|
-
"discountedPrice": "$9.50"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"convertedPriceData": {
|
|
41
|
-
"currency": "USD",
|
|
42
|
-
"price": 10.5,
|
|
43
|
-
"discountedPrice": 9.5,
|
|
44
|
-
"formatted": {
|
|
45
|
-
"price": "$10.50",
|
|
46
|
-
"discountedPrice": "$9.50"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"priceRange": {
|
|
50
|
-
"minValue": 10.5,
|
|
51
|
-
"maxValue": 10.5
|
|
52
|
-
},
|
|
53
|
-
"costRange": {
|
|
54
|
-
"minValue": 0,
|
|
55
|
-
"maxValue": 7
|
|
56
|
-
},
|
|
57
|
-
"additionalInfoSections": [],
|
|
58
|
-
"ribbons": [
|
|
59
|
-
{
|
|
60
|
-
"text": "Sale"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"media": {
|
|
64
|
-
"items": []
|
|
65
|
-
},
|
|
66
|
-
"customTextFields": [],
|
|
67
|
-
"manageVariants": true,
|
|
68
|
-
"productOptions": [
|
|
69
|
-
{
|
|
70
|
-
"optionType": "drop_down",
|
|
71
|
-
"name": "Size",
|
|
72
|
-
"choices": [
|
|
73
|
-
{
|
|
74
|
-
"value": "S",
|
|
75
|
-
"description": "S",
|
|
76
|
-
"inStock": true,
|
|
77
|
-
"visible": true
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"value": "L",
|
|
81
|
-
"description": "L",
|
|
82
|
-
"inStock": true,
|
|
83
|
-
"visible": true
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"productPageUrl": {
|
|
89
|
-
"base": "https://wixsite.com/examplestore",
|
|
90
|
-
"path": "/product-page/t-shirt"
|
|
91
|
-
},
|
|
92
|
-
"numericId": "1657626871550000",
|
|
93
|
-
"inventoryItemId": "bddb3db4-a5a7-b2eb-786c-9dc17ed05c88",
|
|
94
|
-
"discount": {
|
|
95
|
-
"type": "AMOUNT",
|
|
96
|
-
"value": 1
|
|
97
|
-
},
|
|
98
|
-
"collectionIds": [
|
|
99
|
-
"00000000-000000-000000-000000000001"
|
|
100
|
-
],
|
|
101
|
-
"variants": [
|
|
102
|
-
{
|
|
103
|
-
"id": "05519a6e-222b-413a-957c-0ef7a32779b5",
|
|
104
|
-
"choices": {
|
|
105
|
-
"Size": "S"
|
|
106
|
-
},
|
|
107
|
-
"variant": {
|
|
108
|
-
"priceData": {
|
|
109
|
-
"currency": "USD",
|
|
110
|
-
"price": 10.5,
|
|
111
|
-
"discountedPrice": 9.5,
|
|
112
|
-
"formatted": {
|
|
113
|
-
"price": "$10.50",
|
|
114
|
-
"discountedPrice": "$9.50"
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
"convertedPriceData": {
|
|
118
|
-
"currency": "USD",
|
|
119
|
-
"price": 10.5,
|
|
120
|
-
"discountedPrice": 9.5,
|
|
121
|
-
"formatted": {
|
|
122
|
-
"price": "$10.50",
|
|
123
|
-
"discountedPrice": "$9.50"
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
"costAndProfitData": {
|
|
127
|
-
"itemCost": 7,
|
|
128
|
-
"formattedItemCost": "$7.00",
|
|
129
|
-
"profit": 2.5,
|
|
130
|
-
"formattedProfit": "$2.50",
|
|
131
|
-
"profitMargin": 0.2632
|
|
132
|
-
},
|
|
133
|
-
"weight": 0.2,
|
|
134
|
-
"sku": "123df",
|
|
135
|
-
"visible": false
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"id": "0318a3d8-f31c-4ba3-98c7-387571a2eac4",
|
|
140
|
-
"choices": {
|
|
141
|
-
"Size": "L"
|
|
142
|
-
},
|
|
143
|
-
"variant": {
|
|
144
|
-
"priceData": {
|
|
145
|
-
"currency": "USD",
|
|
146
|
-
"price": 10.5,
|
|
147
|
-
"discountedPrice": 9.5,
|
|
148
|
-
"formatted": {
|
|
149
|
-
"price": "$10.50",
|
|
150
|
-
"discountedPrice": "$9.50"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"convertedPriceData": {
|
|
154
|
-
"currency": "USD",
|
|
155
|
-
"price": 10.5,
|
|
156
|
-
"discountedPrice": 9.5,
|
|
157
|
-
"formatted": {
|
|
158
|
-
"price": "$10.50",
|
|
159
|
-
"discountedPrice": "$9.50"
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
"costAndProfitData": {
|
|
163
|
-
"itemCost": 7,
|
|
164
|
-
"formattedItemCost": "$7.00",
|
|
165
|
-
"profit": 2.5,
|
|
166
|
-
"formattedProfit": "$2.50",
|
|
167
|
-
"profitMargin": 0.2632
|
|
168
|
-
},
|
|
169
|
-
"weight": 0.2,
|
|
170
|
-
"sku": "123df",
|
|
171
|
-
"visible": false
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
],
|
|
175
|
-
"lastUpdated": "2022-07-12T11:54:31.550Z",
|
|
176
|
-
"createdDate": "2022-07-12T11:54:31.550Z",
|
|
177
|
-
"ribbon": "Sale",
|
|
178
|
-
"brand": "Nice"
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"http": "GET https://www.wixapis.com/stores/v2/orders/id",
|
|
3
|
-
"code": 200,
|
|
4
|
-
"body": {
|
|
5
|
-
"order": {
|
|
6
|
-
"id": "fedb19f5-bd4c-4bfc-b2d1-212538319611",
|
|
7
|
-
"number": 10096,
|
|
8
|
-
"dateCreated": "2020-03-18T16:47:59.222Z",
|
|
9
|
-
"currency": "USD",
|
|
10
|
-
"weightUnit": "LB",
|
|
11
|
-
"totals": {
|
|
12
|
-
"subtotal": "10",
|
|
13
|
-
"shipping": "3",
|
|
14
|
-
"tax": "3",
|
|
15
|
-
"discount": "1",
|
|
16
|
-
"total": "15",
|
|
17
|
-
"weight": "30",
|
|
18
|
-
"quantity": 2
|
|
19
|
-
},
|
|
20
|
-
"billingInfo": {
|
|
21
|
-
"paymentMethod": "PayPal",
|
|
22
|
-
"externalTransactionId": "tx_1806",
|
|
23
|
-
"paymentProviderTransactionId": "tx_1806",
|
|
24
|
-
"address": {
|
|
25
|
-
"fullName": {
|
|
26
|
-
"firstName": "John",
|
|
27
|
-
"lastName": "Smith"
|
|
28
|
-
},
|
|
29
|
-
"country": "US",
|
|
30
|
-
"city": "New York",
|
|
31
|
-
"zipCode": "92544",
|
|
32
|
-
"phone": "+972 555234555",
|
|
33
|
-
"email": "Ivanushka@example.com"
|
|
34
|
-
},
|
|
35
|
-
"paidDate": "2020-03-18T16:47:59.244Z"
|
|
36
|
-
},
|
|
37
|
-
"shippingInfo": {
|
|
38
|
-
"deliveryOption": "Express",
|
|
39
|
-
"shippingRegion": "East coast",
|
|
40
|
-
"estimatedDeliveryTime": "Today",
|
|
41
|
-
"shipmentDetails": {
|
|
42
|
-
"address": {
|
|
43
|
-
"fullName": {
|
|
44
|
-
"firstName": "John",
|
|
45
|
-
"lastName": "Smith"
|
|
46
|
-
},
|
|
47
|
-
"country": "US",
|
|
48
|
-
"city": "New York",
|
|
49
|
-
"zipCode": "92544",
|
|
50
|
-
"phone": "+972 555234555",
|
|
51
|
-
"email": "Ivanushka@example.com"
|
|
52
|
-
},
|
|
53
|
-
"discount": "0",
|
|
54
|
-
"tax": "1",
|
|
55
|
-
"priceData": {
|
|
56
|
-
"taxIncludedInPrice": false,
|
|
57
|
-
"price": "3"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"read": false,
|
|
62
|
-
"archived": false,
|
|
63
|
-
"paymentStatus": "PAID",
|
|
64
|
-
"fulfillmentStatus": "NOT_FULFILLED",
|
|
65
|
-
"lineItems": [
|
|
66
|
-
{
|
|
67
|
-
"index": 1,
|
|
68
|
-
"quantity": 2,
|
|
69
|
-
"price": "5",
|
|
70
|
-
"name": "my product",
|
|
71
|
-
"productId": "a1f9d337-f831-4529-31e6-67db8fd4e1aa",
|
|
72
|
-
"totalPrice": "10",
|
|
73
|
-
"lineItemType": "PHYSICAL",
|
|
74
|
-
"options": [],
|
|
75
|
-
"customTextFields": [],
|
|
76
|
-
"weight": "15",
|
|
77
|
-
"sku": "12345678",
|
|
78
|
-
"discount": "1",
|
|
79
|
-
"tax": "1",
|
|
80
|
-
"taxIncludedInPrice": false,
|
|
81
|
-
"priceData": {
|
|
82
|
-
"taxIncludedInPrice": false,
|
|
83
|
-
"price": "5",
|
|
84
|
-
"totalPrice": "10"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"activities": [
|
|
89
|
-
{
|
|
90
|
-
"type": "ORDER_PLACED",
|
|
91
|
-
"timestamp": "2020-03-18T16:47:59.222Z"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"type": "ORDER_PAID",
|
|
95
|
-
"timestamp": "2020-03-18T16:47:59.244Z"
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
"fulfillments": [],
|
|
99
|
-
"discount": {
|
|
100
|
-
"value": "1"
|
|
101
|
-
},
|
|
102
|
-
"buyerLanguage": "en",
|
|
103
|
-
"channelInfo": {
|
|
104
|
-
"type": "WEB"
|
|
105
|
-
},
|
|
106
|
-
"enteredBy": {
|
|
107
|
-
"id": "e85274cf-047a-4989-baff-dac5e0c3971d",
|
|
108
|
-
"identityType": "USER"
|
|
109
|
-
},
|
|
110
|
-
"lastUpdated": "2020-03-18T16:47:59.244Z"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser"
|
|
4
|
-
},
|
|
5
|
-
"data": {
|
|
6
|
-
"order": {
|
|
7
|
-
"id": "fedb19f5-bd4c-4bfc-b2d1-212538319611",
|
|
8
|
-
"number": 10096,
|
|
9
|
-
"dateCreated": "2020-03-18T16:47:59.222Z",
|
|
10
|
-
"currency": "USD",
|
|
11
|
-
"weightUnit": "LB",
|
|
12
|
-
"totals": {
|
|
13
|
-
"subtotal": "10",
|
|
14
|
-
"shipping": "3",
|
|
15
|
-
"tax": "3",
|
|
16
|
-
"discount": "1",
|
|
17
|
-
"total": "15",
|
|
18
|
-
"weight": "30",
|
|
19
|
-
"quantity": 2
|
|
20
|
-
},
|
|
21
|
-
"billingInfo": {
|
|
22
|
-
"paymentMethod": "PayPal",
|
|
23
|
-
"externalTransactionId": "tx_1806",
|
|
24
|
-
"paymentProviderTransactionId": "tx_1806",
|
|
25
|
-
"address": {
|
|
26
|
-
"fullName": {
|
|
27
|
-
"firstName": "John",
|
|
28
|
-
"lastName": "Smith"
|
|
29
|
-
},
|
|
30
|
-
"country": "US",
|
|
31
|
-
"city": "New York",
|
|
32
|
-
"zipCode": "92544",
|
|
33
|
-
"phone": "+972 555234555",
|
|
34
|
-
"email": "Ivanushka@example.com"
|
|
35
|
-
},
|
|
36
|
-
"paidDate": "2020-03-18T16:47:59.244Z"
|
|
37
|
-
},
|
|
38
|
-
"shippingInfo": {
|
|
39
|
-
"deliveryOption": "Express",
|
|
40
|
-
"shippingRegion": "East coast",
|
|
41
|
-
"estimatedDeliveryTime": "Today",
|
|
42
|
-
"shipmentDetails": {
|
|
43
|
-
"address": {
|
|
44
|
-
"fullName": {
|
|
45
|
-
"firstName": "John",
|
|
46
|
-
"lastName": "Smith"
|
|
47
|
-
},
|
|
48
|
-
"country": "US",
|
|
49
|
-
"city": "New York",
|
|
50
|
-
"zipCode": "92544",
|
|
51
|
-
"phone": "+972 555234555",
|
|
52
|
-
"email": "Ivanushka@example.com"
|
|
53
|
-
},
|
|
54
|
-
"discount": "0",
|
|
55
|
-
"tax": "1",
|
|
56
|
-
"priceData": {
|
|
57
|
-
"taxIncludedInPrice": false,
|
|
58
|
-
"price": "3"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
"read": false,
|
|
63
|
-
"archived": false,
|
|
64
|
-
"paymentStatus": "PAID",
|
|
65
|
-
"fulfillmentStatus": "NOT_FULFILLED",
|
|
66
|
-
"lineItems": [
|
|
67
|
-
{
|
|
68
|
-
"index": 1,
|
|
69
|
-
"quantity": 2,
|
|
70
|
-
"price": "5",
|
|
71
|
-
"name": "my product",
|
|
72
|
-
"productId": "a1f9d337-f831-4529-31e6-67db8fd4e1aa",
|
|
73
|
-
"totalPrice": "10",
|
|
74
|
-
"lineItemType": "PHYSICAL",
|
|
75
|
-
"options": [],
|
|
76
|
-
"customTextFields": [],
|
|
77
|
-
"weight": "15",
|
|
78
|
-
"sku": "12345678",
|
|
79
|
-
"discount": "1",
|
|
80
|
-
"tax": "1",
|
|
81
|
-
"taxIncludedInPrice": false,
|
|
82
|
-
"priceData": {
|
|
83
|
-
"taxIncludedInPrice": false,
|
|
84
|
-
"price": "5",
|
|
85
|
-
"totalPrice": "10"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"activities": [
|
|
90
|
-
{
|
|
91
|
-
"type": "ORDER_PLACED",
|
|
92
|
-
"timestamp": "2020-03-18T16:47:59.222Z"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"type": "ORDER_PAID",
|
|
96
|
-
"timestamp": "2020-03-18T16:47:59.244Z"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"fulfillments": [],
|
|
100
|
-
"discount": {
|
|
101
|
-
"value": "1"
|
|
102
|
-
},
|
|
103
|
-
"buyerLanguage": "en",
|
|
104
|
-
"channelInfo": {
|
|
105
|
-
"type": "WEB"
|
|
106
|
-
},
|
|
107
|
-
"enteredBy": {
|
|
108
|
-
"id": "e85274cf-047a-4989-baff-dac5e0c3971d",
|
|
109
|
-
"identityType": "USER"
|
|
110
|
-
},
|
|
111
|
-
"lastUpdated": "2020-03-18T16:47:59.244Z"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser"
|
|
4
|
-
},
|
|
5
|
-
"data": {
|
|
6
|
-
"productId": "productID",
|
|
7
|
-
"product": {
|
|
8
|
-
"name": "T-shirt",
|
|
9
|
-
"productType": "physical",
|
|
10
|
-
"priceData": {
|
|
11
|
-
"price": 12.5
|
|
12
|
-
},
|
|
13
|
-
"description": "nice summer t-shirt",
|
|
14
|
-
"sku": "123df",
|
|
15
|
-
"visible": false,
|
|
16
|
-
"weight": 0.2,
|
|
17
|
-
"ribbon": "Sold Out",
|
|
18
|
-
"brand": "Nice",
|
|
19
|
-
"discount": {
|
|
20
|
-
"type": "AMOUNT",
|
|
21
|
-
"value": 2
|
|
22
|
-
},
|
|
23
|
-
"productOptions": [
|
|
24
|
-
{
|
|
25
|
-
"name": "Size",
|
|
26
|
-
"choices": [
|
|
27
|
-
{
|
|
28
|
-
"value": "S",
|
|
29
|
-
"description": "Small"
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"http": "PATCH https://www.wixapis.com/stores/v1/products/productID",
|
|
3
|
-
"code": 200,
|
|
4
|
-
"body": {
|
|
5
|
-
"product": {
|
|
6
|
-
"id": "83f41911-5375-4ede-aafa-68f8b6dee9e2",
|
|
7
|
-
"name": "T-shirt",
|
|
8
|
-
"slug": "t-shirt-1",
|
|
9
|
-
"visible": false,
|
|
10
|
-
"productType": "physical",
|
|
11
|
-
"description": "nice summer t-shirt",
|
|
12
|
-
"stock": {
|
|
13
|
-
"trackInventory": false,
|
|
14
|
-
"inStock": true
|
|
15
|
-
},
|
|
16
|
-
"price": {
|
|
17
|
-
"currency": "USD",
|
|
18
|
-
"price": 12.5,
|
|
19
|
-
"discountedPrice": 10.5,
|
|
20
|
-
"formatted": {
|
|
21
|
-
"price": "$12.50",
|
|
22
|
-
"discountedPrice": "$10.50"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"priceData": {
|
|
26
|
-
"currency": "USD",
|
|
27
|
-
"price": 12.5,
|
|
28
|
-
"discountedPrice": 10.5,
|
|
29
|
-
"formatted": {
|
|
30
|
-
"price": "$12.50",
|
|
31
|
-
"discountedPrice": "$10.50"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"convertedPriceData": {
|
|
35
|
-
"currency": "USD",
|
|
36
|
-
"price": 12.5,
|
|
37
|
-
"discountedPrice": 10.5,
|
|
38
|
-
"formatted": {
|
|
39
|
-
"price": "$12.50",
|
|
40
|
-
"discountedPrice": "$10.50"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"additionalInfoSections": [],
|
|
44
|
-
"ribbons": [
|
|
45
|
-
{
|
|
46
|
-
"text": "Sold Out"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"media": {
|
|
50
|
-
"items": []
|
|
51
|
-
},
|
|
52
|
-
"customTextFields": [],
|
|
53
|
-
"manageVariants": true,
|
|
54
|
-
"productOptions": [
|
|
55
|
-
{
|
|
56
|
-
"optionType": "drop_down",
|
|
57
|
-
"name": "Size",
|
|
58
|
-
"choices": [
|
|
59
|
-
{
|
|
60
|
-
"value": "S",
|
|
61
|
-
"description": "Small",
|
|
62
|
-
"inStock": true,
|
|
63
|
-
"visible": true
|
|
64
|
-
}
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"productPageUrl": {
|
|
69
|
-
"base": "https://roysha.wixsite.com/roycoffeestore",
|
|
70
|
-
"path": "/product-page/t-shirt-1"
|
|
71
|
-
},
|
|
72
|
-
"numericId": "1620048324853000",
|
|
73
|
-
"inventoryItemId": "7c0be6ee-ac8a-b121-5505-97074921161d",
|
|
74
|
-
"discount": {
|
|
75
|
-
"type": "AMOUNT",
|
|
76
|
-
"value": 2
|
|
77
|
-
},
|
|
78
|
-
"collectionIds": [],
|
|
79
|
-
"variants": [
|
|
80
|
-
{
|
|
81
|
-
"id": "9a86bab7-0558-48a7-a953-0594e6d5534d",
|
|
82
|
-
"choices": {
|
|
83
|
-
"Size": "Small"
|
|
84
|
-
},
|
|
85
|
-
"variant": {
|
|
86
|
-
"priceData": {
|
|
87
|
-
"currency": "USD",
|
|
88
|
-
"price": 12.5,
|
|
89
|
-
"discountedPrice": 10.5,
|
|
90
|
-
"formatted": {
|
|
91
|
-
"price": "$12.50",
|
|
92
|
-
"discountedPrice": "$10.50"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"convertedPriceData": {
|
|
96
|
-
"currency": "USD",
|
|
97
|
-
"price": 12.5,
|
|
98
|
-
"discountedPrice": 10.5,
|
|
99
|
-
"formatted": {
|
|
100
|
-
"price": "$12.50",
|
|
101
|
-
"discountedPrice": "$10.50"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"weight": 0.2,
|
|
105
|
-
"sku": "123df",
|
|
106
|
-
"visible": false
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
"lastUpdated": "2021-05-03T13:44:17.610Z",
|
|
111
|
-
"ribbon": "Sold Out",
|
|
112
|
-
"brand": "Nice"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": {
|
|
3
|
-
"user": "TestUser"
|
|
4
|
-
},
|
|
5
|
-
"data": {
|
|
6
|
-
"product": {
|
|
7
|
-
"id": "83f41911-5375-4ede-aafa-68f8b6dee9e2",
|
|
8
|
-
"name": "T-shirt",
|
|
9
|
-
"slug": "t-shirt-1",
|
|
10
|
-
"visible": false,
|
|
11
|
-
"productType": "physical",
|
|
12
|
-
"description": "nice summer t-shirt",
|
|
13
|
-
"stock": {
|
|
14
|
-
"trackInventory": false,
|
|
15
|
-
"inStock": true
|
|
16
|
-
},
|
|
17
|
-
"price": {
|
|
18
|
-
"currency": "USD",
|
|
19
|
-
"price": 12.5,
|
|
20
|
-
"discountedPrice": 10.5,
|
|
21
|
-
"formatted": {
|
|
22
|
-
"price": "$12.50",
|
|
23
|
-
"discountedPrice": "$10.50"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"priceData": {
|
|
27
|
-
"currency": "USD",
|
|
28
|
-
"price": 12.5,
|
|
29
|
-
"discountedPrice": 10.5,
|
|
30
|
-
"formatted": {
|
|
31
|
-
"price": "$12.50",
|
|
32
|
-
"discountedPrice": "$10.50"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"convertedPriceData": {
|
|
36
|
-
"currency": "USD",
|
|
37
|
-
"price": 12.5,
|
|
38
|
-
"discountedPrice": 10.5,
|
|
39
|
-
"formatted": {
|
|
40
|
-
"price": "$12.50",
|
|
41
|
-
"discountedPrice": "$10.50"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"additionalInfoSections": [],
|
|
45
|
-
"ribbons": [
|
|
46
|
-
{
|
|
47
|
-
"text": "Sold Out"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"media": {
|
|
51
|
-
"items": []
|
|
52
|
-
},
|
|
53
|
-
"customTextFields": [],
|
|
54
|
-
"manageVariants": true,
|
|
55
|
-
"productOptions": [
|
|
56
|
-
{
|
|
57
|
-
"optionType": "drop_down",
|
|
58
|
-
"name": "Size",
|
|
59
|
-
"choices": [
|
|
60
|
-
{
|
|
61
|
-
"value": "S",
|
|
62
|
-
"description": "Small",
|
|
63
|
-
"inStock": true,
|
|
64
|
-
"visible": true
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"productPageUrl": {
|
|
70
|
-
"base": "https://roysha.wixsite.com/roycoffeestore",
|
|
71
|
-
"path": "/product-page/t-shirt-1"
|
|
72
|
-
},
|
|
73
|
-
"numericId": "1620048324853000",
|
|
74
|
-
"inventoryItemId": "7c0be6ee-ac8a-b121-5505-97074921161d",
|
|
75
|
-
"discount": {
|
|
76
|
-
"type": "AMOUNT",
|
|
77
|
-
"value": 2
|
|
78
|
-
},
|
|
79
|
-
"collectionIds": [],
|
|
80
|
-
"variants": [
|
|
81
|
-
{
|
|
82
|
-
"id": "9a86bab7-0558-48a7-a953-0594e6d5534d",
|
|
83
|
-
"choices": {
|
|
84
|
-
"Size": "Small"
|
|
85
|
-
},
|
|
86
|
-
"variant": {
|
|
87
|
-
"priceData": {
|
|
88
|
-
"currency": "USD",
|
|
89
|
-
"price": 12.5,
|
|
90
|
-
"discountedPrice": 10.5,
|
|
91
|
-
"formatted": {
|
|
92
|
-
"price": "$12.50",
|
|
93
|
-
"discountedPrice": "$10.50"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"convertedPriceData": {
|
|
97
|
-
"currency": "USD",
|
|
98
|
-
"price": 12.5,
|
|
99
|
-
"discountedPrice": 10.5,
|
|
100
|
-
"formatted": {
|
|
101
|
-
"price": "$12.50",
|
|
102
|
-
"discountedPrice": "$10.50"
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
"weight": 0.2,
|
|
106
|
-
"sku": "123df",
|
|
107
|
-
"visible": false
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"lastUpdated": "2021-05-03T13:44:17.610Z",
|
|
112
|
-
"ribbon": "Sold Out",
|
|
113
|
-
"brand": "Nice"
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|