@orchesty/connector-woocommerce 1.0.0 → 1.0.1

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.
Files changed (154) hide show
  1. package/dist/package.json +4 -1
  2. package/package.json +5 -2
  3. package/CHANGELOG.md +0 -12
  4. package/coverage/clover.xml +0 -404
  5. package/coverage/coverage-final.json +0 -21
  6. package/coverage/lcov-report/base.css +0 -224
  7. package/coverage/lcov-report/block-navigation.js +0 -87
  8. package/coverage/lcov-report/favicon.png +0 -0
  9. package/coverage/lcov-report/index.html +0 -161
  10. package/coverage/lcov-report/prettify.css +0 -1
  11. package/coverage/lcov-report/prettify.js +0 -2
  12. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  13. package/coverage/lcov-report/sorter.js +0 -210
  14. package/coverage/lcov-report/src/Batch/WooCommerceGetOrders.ts.html +0 -640
  15. package/coverage/lcov-report/src/Batch/WooCommerceGetProducts.ts.html +0 -532
  16. package/coverage/lcov-report/src/Batch/WooCommerceGetVariants.ts.html +0 -433
  17. package/coverage/lcov-report/src/Batch/index.html +0 -146
  18. package/coverage/lcov-report/src/Connector/WooCommerceAddNote.ts.html +0 -220
  19. package/coverage/lcov-report/src/Connector/WooCommerceCreateProduct.ts.html +0 -178
  20. package/coverage/lcov-report/src/Connector/WooCommerceCreateProductCategory.ts.html +0 -307
  21. package/coverage/lcov-report/src/Connector/WooCommerceGetOrderNotes.ts.html +0 -274
  22. package/coverage/lcov-report/src/Connector/WooCommerceGetOrderStatuses.ts.html +0 -175
  23. package/coverage/lcov-report/src/Connector/WooCommerceGetPaymentGateways.ts.html +0 -295
  24. package/coverage/lcov-report/src/Connector/WooCommerceGetProduct.ts.html +0 -181
  25. package/coverage/lcov-report/src/Connector/WooCommerceGetProductVariant.ts.html +0 -496
  26. package/coverage/lcov-report/src/Connector/WooCommerceGetProductsBySku.ts.html +0 -226
  27. package/coverage/lcov-report/src/Connector/WooCommerceGetSettingsGeneral.ts.html +0 -238
  28. package/coverage/lcov-report/src/Connector/WooCommerceGetShippingMethods.ts.html +0 -478
  29. package/coverage/lcov-report/src/Connector/WooCommerceUpdateOrder.ts.html +0 -193
  30. package/coverage/lcov-report/src/Connector/WooCommerceUpdateProduct.ts.html +0 -199
  31. package/coverage/lcov-report/src/Connector/WooCommerceUpdateProductQuantity.ts.html +0 -220
  32. package/coverage/lcov-report/src/Connector/WooCommerceUpdateProductVariant.ts.html +0 -199
  33. package/coverage/lcov-report/src/Connector/index.html +0 -326
  34. package/coverage/lcov-report/src/WooCommerceApplication.ts.html +0 -364
  35. package/coverage/lcov-report/src/index.html +0 -116
  36. package/coverage/lcov-report/test/dataProvider.ts.html +0 -427
  37. package/coverage/lcov-report/test/index.html +0 -116
  38. package/coverage/lcov.info +0 -661
  39. package/jest.config.js +0 -13
  40. package/src/Batch/WooCommerceGetOrders.ts +0 -185
  41. package/src/Batch/WooCommerceGetProducts.ts +0 -149
  42. package/src/Batch/WooCommerceGetVariants.ts +0 -116
  43. package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-input.json +0 -8
  44. package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-mock.json +0 -319
  45. package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-output.json +0 -16
  46. package/src/Batch/__tests__/Data/WooCommerceGetOrders/input.json +0 -6
  47. package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-input.json +0 -6
  48. package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-mock.json +0 -319
  49. package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-output.json +0 -15
  50. package/src/Batch/__tests__/Data/WooCommerceGetOrders/mock.json +0 -319
  51. package/src/Batch/__tests__/Data/WooCommerceGetOrders/output.json +0 -15
  52. package/src/Batch/__tests__/Data/WooCommerceGetProducts/input.json +0 -7
  53. package/src/Batch/__tests__/Data/WooCommerceGetProducts/mock.json +0 -170
  54. package/src/Batch/__tests__/Data/WooCommerceGetProducts/output.json +0 -11
  55. package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-input.json +0 -7
  56. package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-mock.json +0 -170
  57. package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-output.json +0 -11
  58. package/src/Batch/__tests__/Data/WooCommerceGetVariants/input.json +0 -169
  59. package/src/Batch/__tests__/Data/WooCommerceGetVariants/mock.json +0 -160
  60. package/src/Batch/__tests__/Data/WooCommerceGetVariants/output.json +0 -11
  61. package/src/Batch/__tests__/WooCommerceGetOrders.ts +0 -42
  62. package/src/Batch/__tests__/WooCommerceGetProducts.ts +0 -37
  63. package/src/Batch/__tests__/WooCommerceGetVariants.ts +0 -32
  64. package/src/Connector/WooCommerceAddNote.ts +0 -45
  65. package/src/Connector/WooCommerceCreateProduct.ts +0 -31
  66. package/src/Connector/WooCommerceCreateProductCategory.ts +0 -74
  67. package/src/Connector/WooCommerceGetOrderNotes.ts +0 -63
  68. package/src/Connector/WooCommerceGetOrderStatuses.ts +0 -30
  69. package/src/Connector/WooCommerceGetPaymentGateways.ts +0 -70
  70. package/src/Connector/WooCommerceGetProduct.ts +0 -32
  71. package/src/Connector/WooCommerceGetProductVariant.ts +0 -137
  72. package/src/Connector/WooCommerceGetProductsBySku.ts +0 -47
  73. package/src/Connector/WooCommerceGetSettingsGeneral.ts +0 -51
  74. package/src/Connector/WooCommerceGetShippingMethods.ts +0 -131
  75. package/src/Connector/WooCommerceRegisterWebhook.ts +0 -106
  76. package/src/Connector/WooCommerceUnsubscribeWebhooks.ts +0 -91
  77. package/src/Connector/WooCommerceUpdateOrder.ts +0 -36
  78. package/src/Connector/WooCommerceUpdateProduct.ts +0 -38
  79. package/src/Connector/WooCommerceUpdateProductQuantity.ts +0 -45
  80. package/src/Connector/WooCommerceUpdateProductVariant.ts +0 -38
  81. package/src/Connector/__tests__/Data/WooCommerceAddNote/input.json +0 -11
  82. package/src/Connector/__tests__/Data/WooCommerceAddNote/mock.json +0 -22
  83. package/src/Connector/__tests__/Data/WooCommerceAddNote/output.json +0 -23
  84. package/src/Connector/__tests__/Data/WooCommerceCreateProduct/input.json +0 -28
  85. package/src/Connector/__tests__/Data/WooCommerceCreateProduct/mock.json +0 -125
  86. package/src/Connector/__tests__/Data/WooCommerceCreateProduct/output.json +0 -126
  87. package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/input.json +0 -11
  88. package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/mock.json +0 -36
  89. package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/output.json +0 -37
  90. package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/input.json +0 -8
  91. package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/mock.json +0 -81
  92. package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/output.json +0 -82
  93. package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/input.json +0 -6
  94. package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/mock.json +0 -41
  95. package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/output.json +0 -42
  96. package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/input.json +0 -6
  97. package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/mock.json +0 -350
  98. package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/output.json +0 -351
  99. package/src/Connector/__tests__/Data/WooCommerceGetProduct/input.json +0 -8
  100. package/src/Connector/__tests__/Data/WooCommerceGetProduct/mock.json +0 -125
  101. package/src/Connector/__tests__/Data/WooCommerceGetProduct/output.json +0 -126
  102. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/input.json +0 -37
  103. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/mock.json +0 -81
  104. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/mock1.json +0 -81
  105. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-input.json +0 -22
  106. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-mock.json +0 -81
  107. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-output.json +0 -24
  108. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/output.json +0 -37
  109. package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/input.json +0 -8
  110. package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/mock.json +0 -170
  111. package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/output.json +0 -169
  112. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/input.json +0 -6
  113. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/mock.json +0 -3459
  114. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/output.json +0 -3460
  115. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-input.json +0 -8
  116. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-mock.json +0 -30
  117. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-output.json +0 -31
  118. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/input.json +0 -6
  119. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock.json +0 -50
  120. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock1.json +0 -187
  121. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock2.json +0 -187
  122. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/output.json +0 -373
  123. package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/input.json +0 -9
  124. package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/mock.json +0 -169
  125. package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/output.json +0 -170
  126. package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/input.json +0 -9
  127. package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/mock.json +0 -125
  128. package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/output.json +0 -126
  129. package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/input.json +0 -20
  130. package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/mock.json +0 -162
  131. package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/output.json +0 -6
  132. package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/input.json +0 -10
  133. package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/mock.json +0 -125
  134. package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/output.json +0 -126
  135. package/src/Connector/__tests__/WooCommerceAddNote.ts +0 -18
  136. package/src/Connector/__tests__/WooCommerceCreateProduct.ts +0 -18
  137. package/src/Connector/__tests__/WooCommerceCreateProductCategory.ts +0 -18
  138. package/src/Connector/__tests__/WooCommerceGetOrderNotes.ts +0 -18
  139. package/src/Connector/__tests__/WooCommerceGetOrderStatuses.ts +0 -18
  140. package/src/Connector/__tests__/WooCommerceGetPaymentGateways.ts +0 -18
  141. package/src/Connector/__tests__/WooCommerceGetProduct.ts +0 -18
  142. package/src/Connector/__tests__/WooCommerceGetProductVariant.ts +0 -25
  143. package/src/Connector/__tests__/WooCommerceGetProductsBySku.ts +0 -18
  144. package/src/Connector/__tests__/WooCommerceGetSettingsGeneral.ts +0 -25
  145. package/src/Connector/__tests__/WooCommerceGetShippingMethods.ts +0 -18
  146. package/src/Connector/__tests__/WooCommerceUpdateOrder.ts +0 -18
  147. package/src/Connector/__tests__/WooCommerceUpdateProduct.ts +0 -18
  148. package/src/Connector/__tests__/WooCommerceUpdateProductQuantity.ts +0 -18
  149. package/src/Connector/__tests__/WooCommerceUpdateProductVariant.ts +0 -18
  150. package/src/WooCommerceApplication.ts +0 -93
  151. package/test/dataProvider.ts +0 -114
  152. package/tsconfig.json +0 -8
  153. package/tsconfig.prod.json +0 -13
  154. package/tsconfig.prod.tsbuildinfo +0 -1
@@ -1,373 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": [
6
- {
7
- "_links": {
8
- "collection": [
9
- {
10
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5/methods"
11
- }
12
- ],
13
- "describes": [
14
- {
15
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5"
16
- }
17
- ],
18
- "self": [
19
- {
20
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5/methods/26"
21
- }
22
- ]
23
- },
24
- "enabled": true,
25
- "instance_id": 26,
26
- "method_description": "<p>Lets you charge a fixed rate for shipping.</p>\n",
27
- "method_id": "flat_rate",
28
- "method_title": "Flat rate",
29
- "order": 1,
30
- "settings": {
31
- "class_cost_91": {
32
- "default": "",
33
- "description": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
34
- "id": "class_cost_91",
35
- "label": "\"Priority\" shipping class cost",
36
- "placeholder": "N/A",
37
- "tip": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
38
- "type": "text",
39
- "value": ""
40
- },
41
- "class_cost_92": {
42
- "default": "",
43
- "description": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
44
- "id": "class_cost_92",
45
- "label": "\"Express\" shipping class cost",
46
- "placeholder": "N/A",
47
- "tip": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
48
- "type": "text",
49
- "value": ""
50
- },
51
- "class_costs": {
52
- "default": "",
53
- "description": "These costs can optionally be added based on the <a href=\"https://example.com/wp-admin/admin.php?page=wc-settings&tab=shipping&section=classes\">product shipping class</a>.",
54
- "id": "class_costs",
55
- "label": "Shipping class costs",
56
- "placeholder": "",
57
- "tip": "These costs can optionally be added based on the <a href=\"https://example.com/wp-admin/admin.php?page=wc-settings&tab=shipping&section=classes\">product shipping class</a>.",
58
- "type": "title",
59
- "value": ""
60
- },
61
- "cost": {
62
- "default": "",
63
- "description": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
64
- "id": "cost",
65
- "label": "Cost",
66
- "placeholder": "",
67
- "tip": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
68
- "type": "text",
69
- "value": "0"
70
- },
71
- "no_class_cost": {
72
- "default": "",
73
- "description": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
74
- "id": "no_class_cost",
75
- "label": "No shipping class cost",
76
- "placeholder": "N/A",
77
- "tip": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
78
- "type": "text",
79
- "value": ""
80
- },
81
- "tax_status": {
82
- "default": "taxable",
83
- "description": "",
84
- "id": "tax_status",
85
- "label": "Tax status",
86
- "options": {
87
- "none": "None",
88
- "taxable": "Taxable"
89
- },
90
- "placeholder": "",
91
- "tip": "",
92
- "type": "select",
93
- "value": "taxable"
94
- },
95
- "title": {
96
- "default": "Flat rate",
97
- "description": "This controls the title which the user sees during checkout.",
98
- "id": "title",
99
- "label": "Method title",
100
- "placeholder": "",
101
- "tip": "This controls the title which the user sees during checkout.",
102
- "type": "text",
103
- "value": "Flat rate"
104
- },
105
- "type": {
106
- "default": "class",
107
- "description": "",
108
- "id": "type",
109
- "label": "Calculation type",
110
- "options": {
111
- "class": "Per class: Charge shipping for each shipping class individually",
112
- "order": "Per order: Charge shipping for the most expensive shipping class"
113
- },
114
- "placeholder": "",
115
- "tip": "",
116
- "type": "select",
117
- "value": "class"
118
- }
119
- },
120
- "shipping_zone_title": "Rest of the World",
121
- "title": "Flat rate"
122
- },
123
- {
124
- "_links": {
125
- "collection": [
126
- {
127
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5/methods"
128
- }
129
- ],
130
- "describes": [
131
- {
132
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5"
133
- }
134
- ],
135
- "self": [
136
- {
137
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5/methods/27"
138
- }
139
- ]
140
- },
141
- "enabled": true,
142
- "instance_id": 27,
143
- "method_description": "<p>Free shipping is a special method which can be triggered with coupons and minimum spends.</p>\n",
144
- "method_id": "free_shipping",
145
- "method_title": "Free shipping",
146
- "order": 2,
147
- "settings": {
148
- "min_amount": {
149
- "default": "",
150
- "description": "Users will need to spend this amount to get free shipping (if enabled above).",
151
- "id": "min_amount",
152
- "label": "Minimum order amount",
153
- "placeholder": "",
154
- "tip": "Users will need to spend this amount to get free shipping (if enabled above).",
155
- "type": "price",
156
- "value": "0"
157
- },
158
- "requires": {
159
- "default": "",
160
- "description": "",
161
- "id": "requires",
162
- "label": "Free shipping requires...",
163
- "options": {
164
- "": "N/A",
165
- "both": "A minimum order amount AND a coupon",
166
- "coupon": "A valid free shipping coupon",
167
- "either": "A minimum order amount OR a coupon",
168
- "min_amount": "A minimum order amount"
169
- },
170
- "placeholder": "",
171
- "tip": "",
172
- "type": "select",
173
- "value": ""
174
- },
175
- "title": {
176
- "default": "Free shipping",
177
- "description": "This controls the title which the user sees during checkout.",
178
- "id": "title",
179
- "label": "Title",
180
- "placeholder": "",
181
- "tip": "This controls the title which the user sees during checkout.",
182
- "type": "text",
183
- "value": "Free shipping"
184
- }
185
- },
186
- "shipping_zone_title": "Rest of the World",
187
- "title": "Free shipping"
188
- },
189
- {
190
- "_links": {
191
- "collection": [
192
- {
193
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5/methods"
194
- }
195
- ],
196
- "describes": [
197
- {
198
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5"
199
- }
200
- ],
201
- "self": [
202
- {
203
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5/methods/26"
204
- }
205
- ]
206
- },
207
- "enabled": true,
208
- "instance_id": 26,
209
- "method_description": "<p>Lets you charge a fixed rate for shipping.</p>\n",
210
- "method_id": "flat_rate",
211
- "method_title": "Flat rate",
212
- "order": 1,
213
- "settings": {
214
- "class_cost_91": {
215
- "default": "",
216
- "description": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
217
- "id": "class_cost_91",
218
- "label": "\"Priority\" shipping class cost",
219
- "placeholder": "N/A",
220
- "tip": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
221
- "type": "text",
222
- "value": ""
223
- },
224
- "class_cost_92": {
225
- "default": "",
226
- "description": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
227
- "id": "class_cost_92",
228
- "label": "\"Express\" shipping class cost",
229
- "placeholder": "N/A",
230
- "tip": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
231
- "type": "text",
232
- "value": ""
233
- },
234
- "class_costs": {
235
- "default": "",
236
- "description": "These costs can optionally be added based on the <a href=\"https://example.com/wp-admin/admin.php?page=wc-settings&tab=shipping&section=classes\">product shipping class</a>.",
237
- "id": "class_costs",
238
- "label": "Shipping class costs",
239
- "placeholder": "",
240
- "tip": "These costs can optionally be added based on the <a href=\"https://example.com/wp-admin/admin.php?page=wc-settings&tab=shipping&section=classes\">product shipping class</a>.",
241
- "type": "title",
242
- "value": ""
243
- },
244
- "cost": {
245
- "default": "",
246
- "description": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
247
- "id": "cost",
248
- "label": "Cost",
249
- "placeholder": "",
250
- "tip": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
251
- "type": "text",
252
- "value": "0"
253
- },
254
- "no_class_cost": {
255
- "default": "",
256
- "description": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
257
- "id": "no_class_cost",
258
- "label": "No shipping class cost",
259
- "placeholder": "N/A",
260
- "tip": "Enter a cost (excl. tax) or sum, e.g. <code>10.00 * [qty]</code>.<br/><br/>Use <code>[qty]</code> for the number of items, <br/><code>[cost]</code> for the total cost of items, and <code>[fee percent=\"10\" min_fee=\"20\" max_fee=\"\"]</code> for percentage based fees.",
261
- "type": "text",
262
- "value": ""
263
- },
264
- "tax_status": {
265
- "default": "taxable",
266
- "description": "",
267
- "id": "tax_status",
268
- "label": "Tax status",
269
- "options": {
270
- "none": "None",
271
- "taxable": "Taxable"
272
- },
273
- "placeholder": "",
274
- "tip": "",
275
- "type": "select",
276
- "value": "taxable"
277
- },
278
- "title": {
279
- "default": "Flat rate",
280
- "description": "This controls the title which the user sees during checkout.",
281
- "id": "title",
282
- "label": "Method title",
283
- "placeholder": "",
284
- "tip": "This controls the title which the user sees during checkout.",
285
- "type": "text",
286
- "value": "Flat rate"
287
- },
288
- "type": {
289
- "default": "class",
290
- "description": "",
291
- "id": "type",
292
- "label": "Calculation type",
293
- "options": {
294
- "class": "Per class: Charge shipping for each shipping class individually",
295
- "order": "Per order: Charge shipping for the most expensive shipping class"
296
- },
297
- "placeholder": "",
298
- "tip": "",
299
- "type": "select",
300
- "value": "class"
301
- }
302
- },
303
- "shipping_zone_title": "Brazil",
304
- "title": "Flat rate"
305
- },
306
- {
307
- "_links": {
308
- "collection": [
309
- {
310
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5/methods"
311
- }
312
- ],
313
- "describes": [
314
- {
315
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5"
316
- }
317
- ],
318
- "self": [
319
- {
320
- "href": "https://example.com/wp-json/wc/v3/shipping/zones/5/methods/27"
321
- }
322
- ]
323
- },
324
- "enabled": true,
325
- "instance_id": 27,
326
- "method_description": "<p>Free shipping is a special method which can be triggered with coupons and minimum spends.</p>\n",
327
- "method_id": "free_shipping",
328
- "method_title": "Free shipping",
329
- "order": 2,
330
- "settings": {
331
- "min_amount": {
332
- "default": "",
333
- "description": "Users will need to spend this amount to get free shipping (if enabled above).",
334
- "id": "min_amount",
335
- "label": "Minimum order amount",
336
- "placeholder": "",
337
- "tip": "Users will need to spend this amount to get free shipping (if enabled above).",
338
- "type": "price",
339
- "value": "0"
340
- },
341
- "requires": {
342
- "default": "",
343
- "description": "",
344
- "id": "requires",
345
- "label": "Free shipping requires...",
346
- "options": {
347
- "": "N/A",
348
- "both": "A minimum order amount AND a coupon",
349
- "coupon": "A valid free shipping coupon",
350
- "either": "A minimum order amount OR a coupon",
351
- "min_amount": "A minimum order amount"
352
- },
353
- "placeholder": "",
354
- "tip": "",
355
- "type": "select",
356
- "value": ""
357
- },
358
- "title": {
359
- "default": "Free shipping",
360
- "description": "This controls the title which the user sees during checkout.",
361
- "id": "title",
362
- "label": "Title",
363
- "placeholder": "",
364
- "tip": "This controls the title which the user sees during checkout.",
365
- "type": "text",
366
- "value": "Free shipping"
367
- }
368
- },
369
- "shipping_zone_title": "Brazil",
370
- "title": "Free shipping"
371
- }
372
- ]
373
- }
@@ -1,9 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {
6
- "id": 1,
7
- "status": "completed"
8
- }
9
- }
@@ -1,169 +0,0 @@
1
- {
2
- "http": "PUT http://woocomerce.com/wp-json/wc/v3/orders/1",
3
- "code": 200,
4
- "body": {
5
- "id": 727,
6
- "parent_id": 0,
7
- "number": "727",
8
- "order_key": "wc_order_58d2d042d1d",
9
- "created_via": "rest-api",
10
- "version": "3.0.0",
11
- "status": "completed",
12
- "currency": "USD",
13
- "date_created": "2017-03-22T16:28:02",
14
- "date_created_gmt": "2017-03-22T19:28:02",
15
- "date_modified": "2017-03-22T16:30:35",
16
- "date_modified_gmt": "2017-03-22T19:30:35",
17
- "discount_total": "0.00",
18
- "discount_tax": "0.00",
19
- "shipping_total": "10.00",
20
- "shipping_tax": "0.00",
21
- "cart_tax": "1.35",
22
- "total": "29.35",
23
- "total_tax": "1.35",
24
- "prices_include_tax": false,
25
- "customer_id": 0,
26
- "customer_ip_address": "",
27
- "customer_user_agent": "",
28
- "customer_note": "",
29
- "billing": {
30
- "first_name": "John",
31
- "last_name": "Doe",
32
- "company": "",
33
- "address_1": "969 Market",
34
- "address_2": "",
35
- "city": "San Francisco",
36
- "state": "CA",
37
- "postcode": "94103",
38
- "country": "US",
39
- "email": "john.doe@example.com",
40
- "phone": "(555) 555-5555"
41
- },
42
- "shipping": {
43
- "first_name": "John",
44
- "last_name": "Doe",
45
- "company": "",
46
- "address_1": "969 Market",
47
- "address_2": "",
48
- "city": "San Francisco",
49
- "state": "CA",
50
- "postcode": "94103",
51
- "country": "US"
52
- },
53
- "payment_method": "bacs",
54
- "payment_method_title": "Direct Bank Transfer",
55
- "transaction_id": "",
56
- "date_paid": "2017-03-22T16:28:08",
57
- "date_paid_gmt": "2017-03-22T19:28:08",
58
- "date_completed": "2017-03-22T16:30:35",
59
- "date_completed_gmt": "2017-03-22T19:30:35",
60
- "cart_hash": "",
61
- "meta_data": [
62
- {
63
- "id": 13106,
64
- "key": "_download_permissions_granted",
65
- "value": "yes"
66
- },
67
- {
68
- "id": 13109,
69
- "key": "_order_stock_reduced",
70
- "value": "yes"
71
- }
72
- ],
73
- "line_items": [
74
- {
75
- "id": 315,
76
- "name": "Woo Single #1",
77
- "product_id": 93,
78
- "variation_id": 0,
79
- "quantity": 2,
80
- "tax_class": "",
81
- "subtotal": "6.00",
82
- "subtotal_tax": "0.45",
83
- "total": "6.00",
84
- "total_tax": "0.45",
85
- "taxes": [
86
- {
87
- "id": 75,
88
- "total": "0.45",
89
- "subtotal": "0.45"
90
- }
91
- ],
92
- "meta_data": [],
93
- "sku": "",
94
- "price": 3
95
- },
96
- {
97
- "id": 316,
98
- "name": "Ship Your Idea &ndash; Color: Black, Size: M Test",
99
- "product_id": 22,
100
- "variation_id": 23,
101
- "quantity": 1,
102
- "tax_class": "",
103
- "subtotal": "12.00",
104
- "subtotal_tax": "0.90",
105
- "total": "12.00",
106
- "total_tax": "0.90",
107
- "taxes": [
108
- {
109
- "id": 75,
110
- "total": "0.9",
111
- "subtotal": "0.9"
112
- }
113
- ],
114
- "meta_data": [
115
- {
116
- "id": 2095,
117
- "key": "pa_color",
118
- "value": "black"
119
- },
120
- {
121
- "id": 2096,
122
- "key": "size",
123
- "value": "M Test"
124
- }
125
- ],
126
- "sku": "Bar3",
127
- "price": 12
128
- }
129
- ],
130
- "tax_lines": [
131
- {
132
- "id": 318,
133
- "rate_code": "US-CA-STATE TAX",
134
- "rate_id": 75,
135
- "label": "State Tax",
136
- "compound": false,
137
- "tax_total": "1.35",
138
- "shipping_tax_total": "0.00",
139
- "meta_data": []
140
- }
141
- ],
142
- "shipping_lines": [
143
- {
144
- "id": 317,
145
- "method_title": "Flat Rate",
146
- "method_id": "flat_rate",
147
- "total": "10.00",
148
- "total_tax": "0.00",
149
- "taxes": [],
150
- "meta_data": []
151
- }
152
- ],
153
- "fee_lines": [],
154
- "coupon_lines": [],
155
- "refunds": [],
156
- "_links": {
157
- "self": [
158
- {
159
- "href": "https://example.com/wp-json/wc/v3/orders/727"
160
- }
161
- ],
162
- "collection": [
163
- {
164
- "href": "https://example.com/wp-json/wc/v3/orders"
165
- }
166
- ]
167
- }
168
- }
169
- }