@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.
Files changed (158) hide show
  1. package/README.md +102 -0
  2. package/dist/Connector/WooCommerceGetProductVariant.d.ts +15 -1
  3. package/dist/Connector/WooCommerceRegisterWebhook.js +1 -0
  4. package/dist/Connector/WooCommerceUnsubscribeWebhooks.js +5 -1
  5. package/dist/package.json +7 -5
  6. package/package.json +6 -4
  7. package/CHANGELOG.md +0 -12
  8. package/coverage/clover.xml +0 -404
  9. package/coverage/coverage-final.json +0 -21
  10. package/coverage/lcov-report/base.css +0 -224
  11. package/coverage/lcov-report/block-navigation.js +0 -87
  12. package/coverage/lcov-report/favicon.png +0 -0
  13. package/coverage/lcov-report/index.html +0 -161
  14. package/coverage/lcov-report/prettify.css +0 -1
  15. package/coverage/lcov-report/prettify.js +0 -2
  16. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  17. package/coverage/lcov-report/sorter.js +0 -210
  18. package/coverage/lcov-report/src/Batch/WooCommerceGetOrders.ts.html +0 -640
  19. package/coverage/lcov-report/src/Batch/WooCommerceGetProducts.ts.html +0 -532
  20. package/coverage/lcov-report/src/Batch/WooCommerceGetVariants.ts.html +0 -433
  21. package/coverage/lcov-report/src/Batch/index.html +0 -146
  22. package/coverage/lcov-report/src/Connector/WooCommerceAddNote.ts.html +0 -220
  23. package/coverage/lcov-report/src/Connector/WooCommerceCreateProduct.ts.html +0 -178
  24. package/coverage/lcov-report/src/Connector/WooCommerceCreateProductCategory.ts.html +0 -307
  25. package/coverage/lcov-report/src/Connector/WooCommerceGetOrderNotes.ts.html +0 -274
  26. package/coverage/lcov-report/src/Connector/WooCommerceGetOrderStatuses.ts.html +0 -175
  27. package/coverage/lcov-report/src/Connector/WooCommerceGetPaymentGateways.ts.html +0 -295
  28. package/coverage/lcov-report/src/Connector/WooCommerceGetProduct.ts.html +0 -181
  29. package/coverage/lcov-report/src/Connector/WooCommerceGetProductVariant.ts.html +0 -496
  30. package/coverage/lcov-report/src/Connector/WooCommerceGetProductsBySku.ts.html +0 -226
  31. package/coverage/lcov-report/src/Connector/WooCommerceGetSettingsGeneral.ts.html +0 -238
  32. package/coverage/lcov-report/src/Connector/WooCommerceGetShippingMethods.ts.html +0 -478
  33. package/coverage/lcov-report/src/Connector/WooCommerceUpdateOrder.ts.html +0 -193
  34. package/coverage/lcov-report/src/Connector/WooCommerceUpdateProduct.ts.html +0 -199
  35. package/coverage/lcov-report/src/Connector/WooCommerceUpdateProductQuantity.ts.html +0 -220
  36. package/coverage/lcov-report/src/Connector/WooCommerceUpdateProductVariant.ts.html +0 -199
  37. package/coverage/lcov-report/src/Connector/index.html +0 -326
  38. package/coverage/lcov-report/src/WooCommerceApplication.ts.html +0 -364
  39. package/coverage/lcov-report/src/index.html +0 -116
  40. package/coverage/lcov-report/test/dataProvider.ts.html +0 -427
  41. package/coverage/lcov-report/test/index.html +0 -116
  42. package/coverage/lcov.info +0 -661
  43. package/jest.config.js +0 -13
  44. package/src/Batch/WooCommerceGetOrders.ts +0 -185
  45. package/src/Batch/WooCommerceGetProducts.ts +0 -149
  46. package/src/Batch/WooCommerceGetVariants.ts +0 -116
  47. package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-input.json +0 -8
  48. package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-mock.json +0 -319
  49. package/src/Batch/__tests__/Data/WooCommerceGetOrders/ids-output.json +0 -16
  50. package/src/Batch/__tests__/Data/WooCommerceGetOrders/input.json +0 -6
  51. package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-input.json +0 -6
  52. package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-mock.json +0 -319
  53. package/src/Batch/__tests__/Data/WooCommerceGetOrders/lastRun-output.json +0 -15
  54. package/src/Batch/__tests__/Data/WooCommerceGetOrders/mock.json +0 -319
  55. package/src/Batch/__tests__/Data/WooCommerceGetOrders/output.json +0 -15
  56. package/src/Batch/__tests__/Data/WooCommerceGetProducts/input.json +0 -7
  57. package/src/Batch/__tests__/Data/WooCommerceGetProducts/mock.json +0 -170
  58. package/src/Batch/__tests__/Data/WooCommerceGetProducts/output.json +0 -11
  59. package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-input.json +0 -7
  60. package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-mock.json +0 -170
  61. package/src/Batch/__tests__/Data/WooCommerceGetProducts/withAfter-output.json +0 -11
  62. package/src/Batch/__tests__/Data/WooCommerceGetVariants/input.json +0 -169
  63. package/src/Batch/__tests__/Data/WooCommerceGetVariants/mock.json +0 -160
  64. package/src/Batch/__tests__/Data/WooCommerceGetVariants/output.json +0 -11
  65. package/src/Batch/__tests__/WooCommerceGetOrders.ts +0 -42
  66. package/src/Batch/__tests__/WooCommerceGetProducts.ts +0 -37
  67. package/src/Batch/__tests__/WooCommerceGetVariants.ts +0 -32
  68. package/src/Connector/WooCommerceAddNote.ts +0 -45
  69. package/src/Connector/WooCommerceCreateProduct.ts +0 -31
  70. package/src/Connector/WooCommerceCreateProductCategory.ts +0 -74
  71. package/src/Connector/WooCommerceGetOrderNotes.ts +0 -63
  72. package/src/Connector/WooCommerceGetOrderStatuses.ts +0 -30
  73. package/src/Connector/WooCommerceGetPaymentGateways.ts +0 -70
  74. package/src/Connector/WooCommerceGetProduct.ts +0 -32
  75. package/src/Connector/WooCommerceGetProductVariant.ts +0 -137
  76. package/src/Connector/WooCommerceGetProductsBySku.ts +0 -47
  77. package/src/Connector/WooCommerceGetSettingsGeneral.ts +0 -51
  78. package/src/Connector/WooCommerceGetShippingMethods.ts +0 -131
  79. package/src/Connector/WooCommerceRegisterWebhook.ts +0 -106
  80. package/src/Connector/WooCommerceUnsubscribeWebhooks.ts +0 -91
  81. package/src/Connector/WooCommerceUpdateOrder.ts +0 -36
  82. package/src/Connector/WooCommerceUpdateProduct.ts +0 -38
  83. package/src/Connector/WooCommerceUpdateProductQuantity.ts +0 -45
  84. package/src/Connector/WooCommerceUpdateProductVariant.ts +0 -38
  85. package/src/Connector/__tests__/Data/WooCommerceAddNote/input.json +0 -11
  86. package/src/Connector/__tests__/Data/WooCommerceAddNote/mock.json +0 -22
  87. package/src/Connector/__tests__/Data/WooCommerceAddNote/output.json +0 -23
  88. package/src/Connector/__tests__/Data/WooCommerceCreateProduct/input.json +0 -28
  89. package/src/Connector/__tests__/Data/WooCommerceCreateProduct/mock.json +0 -125
  90. package/src/Connector/__tests__/Data/WooCommerceCreateProduct/output.json +0 -126
  91. package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/input.json +0 -11
  92. package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/mock.json +0 -36
  93. package/src/Connector/__tests__/Data/WooCommerceCreateProductCategory/output.json +0 -37
  94. package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/input.json +0 -8
  95. package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/mock.json +0 -81
  96. package/src/Connector/__tests__/Data/WooCommerceGetOrderNotes/output.json +0 -82
  97. package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/input.json +0 -6
  98. package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/mock.json +0 -41
  99. package/src/Connector/__tests__/Data/WooCommerceGetOrderStatuses/output.json +0 -42
  100. package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/input.json +0 -6
  101. package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/mock.json +0 -350
  102. package/src/Connector/__tests__/Data/WooCommerceGetPaymentGateways/output.json +0 -351
  103. package/src/Connector/__tests__/Data/WooCommerceGetProduct/input.json +0 -8
  104. package/src/Connector/__tests__/Data/WooCommerceGetProduct/mock.json +0 -125
  105. package/src/Connector/__tests__/Data/WooCommerceGetProduct/output.json +0 -126
  106. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/input.json +0 -37
  107. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/mock.json +0 -81
  108. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/mock1.json +0 -81
  109. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-input.json +0 -22
  110. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-mock.json +0 -81
  111. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/nok-output.json +0 -24
  112. package/src/Connector/__tests__/Data/WooCommerceGetProductVariant/output.json +0 -37
  113. package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/input.json +0 -8
  114. package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/mock.json +0 -170
  115. package/src/Connector/__tests__/Data/WooCommerceGetProductsBySku/output.json +0 -169
  116. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/input.json +0 -6
  117. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/mock.json +0 -3459
  118. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/output.json +0 -3460
  119. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-input.json +0 -8
  120. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-mock.json +0 -30
  121. package/src/Connector/__tests__/Data/WooCommerceGetSettingsGeneral/with-id-output.json +0 -31
  122. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/input.json +0 -6
  123. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock.json +0 -50
  124. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock1.json +0 -187
  125. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/mock2.json +0 -187
  126. package/src/Connector/__tests__/Data/WooCommerceGetShippingMethods/output.json +0 -373
  127. package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/input.json +0 -9
  128. package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/mock.json +0 -169
  129. package/src/Connector/__tests__/Data/WooCommerceUpdateOrder/output.json +0 -170
  130. package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/input.json +0 -9
  131. package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/mock.json +0 -125
  132. package/src/Connector/__tests__/Data/WooCommerceUpdateProduct/output.json +0 -126
  133. package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/input.json +0 -20
  134. package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/mock.json +0 -162
  135. package/src/Connector/__tests__/Data/WooCommerceUpdateProductQuantity/output.json +0 -6
  136. package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/input.json +0 -10
  137. package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/mock.json +0 -125
  138. package/src/Connector/__tests__/Data/WooCommerceUpdateProductVariant/output.json +0 -126
  139. package/src/Connector/__tests__/WooCommerceAddNote.ts +0 -18
  140. package/src/Connector/__tests__/WooCommerceCreateProduct.ts +0 -18
  141. package/src/Connector/__tests__/WooCommerceCreateProductCategory.ts +0 -18
  142. package/src/Connector/__tests__/WooCommerceGetOrderNotes.ts +0 -18
  143. package/src/Connector/__tests__/WooCommerceGetOrderStatuses.ts +0 -18
  144. package/src/Connector/__tests__/WooCommerceGetPaymentGateways.ts +0 -18
  145. package/src/Connector/__tests__/WooCommerceGetProduct.ts +0 -18
  146. package/src/Connector/__tests__/WooCommerceGetProductVariant.ts +0 -25
  147. package/src/Connector/__tests__/WooCommerceGetProductsBySku.ts +0 -18
  148. package/src/Connector/__tests__/WooCommerceGetSettingsGeneral.ts +0 -25
  149. package/src/Connector/__tests__/WooCommerceGetShippingMethods.ts +0 -18
  150. package/src/Connector/__tests__/WooCommerceUpdateOrder.ts +0 -18
  151. package/src/Connector/__tests__/WooCommerceUpdateProduct.ts +0 -18
  152. package/src/Connector/__tests__/WooCommerceUpdateProductQuantity.ts +0 -18
  153. package/src/Connector/__tests__/WooCommerceUpdateProductVariant.ts +0 -18
  154. package/src/WooCommerceApplication.ts +0 -93
  155. package/test/dataProvider.ts +0 -114
  156. package/tsconfig.json +0 -8
  157. package/tsconfig.prod.json +0 -13
  158. package/tsconfig.prod.tsbuildinfo +0 -1
@@ -1,351 +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/payment_gateways"
11
- }
12
- ],
13
- "self": [
14
- {
15
- "href": "https://example.com/wp-json/wc/v3/payment_gateways/bacs"
16
- }
17
- ]
18
- },
19
- "description": "Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order won't be shipped until the funds have cleared in our account.",
20
- "enabled": true,
21
- "id": "bacs",
22
- "method_description": "Allows payments by BACS, more commonly known as direct bank/wire transfer.",
23
- "method_supports": [
24
- "products"
25
- ],
26
- "method_title": "BACS",
27
- "order": 0,
28
- "settings": {
29
- "instructions": {
30
- "default": "",
31
- "description": "Instructions that will be added to the thank you page and emails.",
32
- "id": "instructions",
33
- "label": "Instructions",
34
- "placeholder": "",
35
- "tip": "Instructions that will be added to the thank you page and emails.",
36
- "type": "textarea",
37
- "value": "Make your payment directly into our bank account. Please use your Order ID as the payment reference. Your order won't be shipped until the funds have cleared in our account."
38
- },
39
- "title": {
40
- "default": "Direct bank transfer",
41
- "description": "This controls the title which the user sees during checkout.",
42
- "id": "title",
43
- "label": "Title",
44
- "placeholder": "",
45
- "tip": "This controls the title which the user sees during checkout.",
46
- "type": "text",
47
- "value": "Direct bank transfer"
48
- }
49
- },
50
- "title": "Direct bank transfer"
51
- },
52
- {
53
- "_links": {
54
- "collection": [
55
- {
56
- "href": "https://example.com/wp-json/wc/v3/payment_gateways"
57
- }
58
- ],
59
- "self": [
60
- {
61
- "href": "https://example.com/wp-json/wc/v3/payment_gateways/cheque"
62
- }
63
- ]
64
- },
65
- "description": "Please send a check to Store Name, Store Street, Store Town, Store State / County, Store Postcode.",
66
- "enabled": false,
67
- "id": "cheque",
68
- "method_description": "Allows check payments. Why would you take checks in this day and age? Well you probably wouldn't but it does allow you to make test purchases for testing order emails and the 'success' pages etc.",
69
- "method_supports": [
70
- "products"
71
- ],
72
- "method_title": "Check payments",
73
- "order": 1,
74
- "settings": {
75
- "instructions": {
76
- "default": "",
77
- "description": "Instructions that will be added to the thank you page and emails.",
78
- "id": "instructions",
79
- "label": "Instructions",
80
- "placeholder": "",
81
- "tip": "Instructions that will be added to the thank you page and emails.",
82
- "type": "textarea",
83
- "value": ""
84
- },
85
- "title": {
86
- "default": "Check payments",
87
- "description": "This controls the title which the user sees during checkout.",
88
- "id": "title",
89
- "label": "Title",
90
- "placeholder": "",
91
- "tip": "This controls the title which the user sees during checkout.",
92
- "type": "text",
93
- "value": "Check payments"
94
- }
95
- },
96
- "title": "Check payments"
97
- },
98
- {
99
- "_links": {
100
- "collection": [
101
- {
102
- "href": "https://example.com/wp-json/wc/v3/payment_gateways"
103
- }
104
- ],
105
- "self": [
106
- {
107
- "href": "https://example.com/wp-json/wc/v3/payment_gateways/cod"
108
- }
109
- ]
110
- },
111
- "description": "Pay with cash upon delivery.",
112
- "enabled": false,
113
- "id": "cod",
114
- "method_description": "Have your customers pay with cash (or by other means) upon delivery.",
115
- "method_supports": [
116
- "products"
117
- ],
118
- "method_title": "Cash on delivery",
119
- "order": 2,
120
- "settings": {
121
- "enable_for_methods": {
122
- "default": "",
123
- "description": "If COD is only available for certain methods, set it up here. Leave blank to enable for all methods.",
124
- "id": "enable_for_methods",
125
- "label": "Enable for shipping methods",
126
- "options": {
127
- "flat_rate": "Flat rate",
128
- "free_shipping": "Free shipping",
129
- "local_pickup": "Local pickup"
130
- },
131
- "placeholder": "",
132
- "tip": "If COD is only available for certain methods, set it up here. Leave blank to enable for all methods.",
133
- "type": "multiselect",
134
- "value": ""
135
- },
136
- "enable_for_virtual": {
137
- "default": "yes",
138
- "description": "",
139
- "id": "enable_for_virtual",
140
- "label": "Accept COD if the order is virtual",
141
- "placeholder": "",
142
- "tip": "",
143
- "type": "checkbox",
144
- "value": "yes"
145
- },
146
- "instructions": {
147
- "default": "Pay with cash upon delivery.",
148
- "description": "Instructions that will be added to the thank you page.",
149
- "id": "instructions",
150
- "label": "Instructions",
151
- "placeholder": "",
152
- "tip": "Instructions that will be added to the thank you page.",
153
- "type": "textarea",
154
- "value": ""
155
- },
156
- "title": {
157
- "default": "Cash on delivery",
158
- "description": "Payment method description that the customer will see on your checkout.",
159
- "id": "title",
160
- "label": "Title",
161
- "placeholder": "",
162
- "tip": "Payment method description that the customer will see on your checkout.",
163
- "type": "text",
164
- "value": "Cash on delivery"
165
- }
166
- },
167
- "title": "Cash on delivery"
168
- },
169
- {
170
- "_links": {
171
- "collection": [
172
- {
173
- "href": "https://example.com/wp-json/wc/v3/payment_gateways"
174
- }
175
- ],
176
- "self": [
177
- {
178
- "href": "https://example.com/wp-json/wc/v3/payment_gateways/paypal"
179
- }
180
- ]
181
- },
182
- "description": "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account.",
183
- "enabled": true,
184
- "id": "paypal",
185
- "method_description": "PayPal Standard sends customers to PayPal to enter their payment information. PayPal IPN requires fsockopen/cURL support to update order statuses after payment. Check the <a href=\"https://example.com/wp-admin/admin.php?page=wc-status\">system status</a> page for more details.",
186
- "method_supports": [
187
- "products",
188
- "refunds"
189
- ],
190
- "method_title": "PayPal",
191
- "order": 3,
192
- "settings": {
193
- "address_override": {
194
- "default": "no",
195
- "description": "PayPal verifies addresses therefore this setting can cause errors (we recommend keeping it disabled).",
196
- "id": "address_override",
197
- "label": "Enable \"address_override\" to prevent address information from being changed.",
198
- "placeholder": "",
199
- "tip": "PayPal verifies addresses therefore this setting can cause errors (we recommend keeping it disabled).",
200
- "type": "checkbox",
201
- "value": "no"
202
- },
203
- "api_password": {
204
- "default": "",
205
- "description": "Get your API credentials from PayPal.",
206
- "id": "api_password",
207
- "label": "API password",
208
- "placeholder": "Optional",
209
- "tip": "Get your API credentials from PayPal.",
210
- "type": "password",
211
- "value": ""
212
- },
213
- "api_signature": {
214
- "default": "",
215
- "description": "Get your API credentials from PayPal.",
216
- "id": "api_signature",
217
- "label": "API signature",
218
- "placeholder": "Optional",
219
- "tip": "Get your API credentials from PayPal.",
220
- "type": "text",
221
- "value": ""
222
- },
223
- "api_username": {
224
- "default": "",
225
- "description": "Get your API credentials from PayPal.",
226
- "id": "api_username",
227
- "label": "API username",
228
- "placeholder": "Optional",
229
- "tip": "Get your API credentials from PayPal.",
230
- "type": "text",
231
- "value": ""
232
- },
233
- "debug": {
234
- "default": "no",
235
- "description": "Log PayPal events, such as IPN requests, inside <code>/var/www/woocommerce/wp-content/uploads/wc-logs/paypal-de01f7c6894774e7ac8e4207bb8bac2f.log</code>",
236
- "id": "debug",
237
- "label": "Enable logging",
238
- "placeholder": "",
239
- "tip": "Log PayPal events, such as IPN requests, inside <code>/var/www/woocommerce/wp-content/uploads/wc-logs/paypal-de01f7c6894774e7ac8e4207bb8bac2f.log</code>",
240
- "type": "checkbox",
241
- "value": "yes"
242
- },
243
- "email": {
244
- "default": "me@example.com",
245
- "description": "Please enter your PayPal email address; this is needed in order to take payment.",
246
- "id": "email",
247
- "label": "PayPal email",
248
- "placeholder": "you@youremail.com",
249
- "tip": "Please enter your PayPal email address; this is needed in order to take payment.",
250
- "type": "email",
251
- "value": "me@example.com"
252
- },
253
- "identity_token": {
254
- "default": "",
255
- "description": "Optionally enable \"Payment Data Transfer\" (Profile > Profile and Settings > My Selling Tools > Website Preferences) and then copy your identity token here. This will allow payments to be verified without the need for PayPal IPN.",
256
- "id": "identity_token",
257
- "label": "PayPal identity token",
258
- "placeholder": "",
259
- "tip": "Optionally enable \"Payment Data Transfer\" (Profile > Profile and Settings > My Selling Tools > Website Preferences) and then copy your identity token here. This will allow payments to be verified without the need for PayPal IPN.",
260
- "type": "text",
261
- "value": ""
262
- },
263
- "image_url": {
264
- "default": "",
265
- "description": "Optionally enter the URL to a 150x50px image displayed as your logo in the upper left corner of the PayPal checkout pages.",
266
- "id": "image_url",
267
- "label": "Image url",
268
- "placeholder": "Optional",
269
- "tip": "Optionally enter the URL to a 150x50px image displayed as your logo in the upper left corner of the PayPal checkout pages.",
270
- "type": "text",
271
- "value": ""
272
- },
273
- "invoice_prefix": {
274
- "default": "WC-",
275
- "description": "Please enter a prefix for your invoice numbers. If you use your PayPal account for multiple stores ensure this prefix is unique as PayPal will not allow orders with the same invoice number.",
276
- "id": "invoice_prefix",
277
- "label": "Invoice prefix",
278
- "placeholder": "",
279
- "tip": "Please enter a prefix for your invoice numbers. If you use your PayPal account for multiple stores ensure this prefix is unique as PayPal will not allow orders with the same invoice number.",
280
- "type": "text",
281
- "value": "WC-"
282
- },
283
- "page_style": {
284
- "default": "",
285
- "description": "Optionally enter the name of the page style you wish to use. These are defined within your PayPal account. This affects classic PayPal checkout screens.",
286
- "id": "page_style",
287
- "label": "Page style",
288
- "placeholder": "Optional",
289
- "tip": "Optionally enter the name of the page style you wish to use. These are defined within your PayPal account. This affects classic PayPal checkout screens.",
290
- "type": "text",
291
- "value": ""
292
- },
293
- "paymentaction": {
294
- "default": "sale",
295
- "description": "Choose whether you wish to capture funds immediately or authorize payment only.",
296
- "id": "paymentaction",
297
- "label": "Payment action",
298
- "options": {
299
- "authorization": "Authorize",
300
- "sale": "Capture"
301
- },
302
- "placeholder": "",
303
- "tip": "Choose whether you wish to capture funds immediately or authorize payment only.",
304
- "type": "select",
305
- "value": "sale"
306
- },
307
- "receiver_email": {
308
- "default": "",
309
- "description": "If your main PayPal email differs from the PayPal email entered above, input your main receiver email for your PayPal account here. This is used to validate IPN requests.",
310
- "id": "receiver_email",
311
- "label": "Receiver email",
312
- "placeholder": "you@youremail.com",
313
- "tip": "If your main PayPal email differs from the PayPal email entered above, input your main receiver email for your PayPal account here. This is used to validate IPN requests.",
314
- "type": "email",
315
- "value": "me@example.com"
316
- },
317
- "send_shipping": {
318
- "default": "no",
319
- "description": "PayPal allows us to send one address. If you are using PayPal for shipping labels you may prefer to send the shipping address rather than billing.",
320
- "id": "send_shipping",
321
- "label": "Send shipping details to PayPal instead of billing.",
322
- "placeholder": "",
323
- "tip": "PayPal allows us to send one address. If you are using PayPal for shipping labels you may prefer to send the shipping address rather than billing.",
324
- "type": "checkbox",
325
- "value": "no"
326
- },
327
- "testmode": {
328
- "default": "no",
329
- "description": "PayPal sandbox can be used to test payments. Sign up for a <a href=\"https://developer.paypal.com/\">developer account</a>.",
330
- "id": "testmode",
331
- "label": "Enable PayPal sandbox",
332
- "placeholder": "",
333
- "tip": "PayPal sandbox can be used to test payments. Sign up for a <a href=\"https://developer.paypal.com/\">developer account</a>.",
334
- "type": "checkbox",
335
- "value": "yes"
336
- },
337
- "title": {
338
- "default": "PayPal",
339
- "description": "This controls the title which the user sees during checkout.",
340
- "id": "title",
341
- "label": "Title",
342
- "placeholder": "",
343
- "tip": "This controls the title which the user sees during checkout.",
344
- "type": "text",
345
- "value": "PayPal"
346
- }
347
- },
348
- "title": "PayPal"
349
- }
350
- ]
351
- }
@@ -1,8 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {
6
- "id": 794
7
- }
8
- }
@@ -1,125 +0,0 @@
1
- {
2
- "http": "GET http://woocomerce.com/wp-json/wc/v3/products/794",
3
- "code": 200,
4
- "body": {
5
- "id": 794,
6
- "name": "Premium Quality",
7
- "slug": "premium-quality-19",
8
- "permalink": "https://example.com/product/premium-quality-19/",
9
- "date_created": "2017-03-23T17:01:14",
10
- "date_created_gmt": "2017-03-23T20:01:14",
11
- "date_modified": "2017-03-23T17:01:14",
12
- "date_modified_gmt": "2017-03-23T20:01:14",
13
- "type": "simple",
14
- "status": "publish",
15
- "featured": false,
16
- "catalog_visibility": "visible",
17
- "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",
18
- "short_description": "<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>\n",
19
- "sku": "",
20
- "price": "21.99",
21
- "regular_price": "21.99",
22
- "sale_price": "",
23
- "date_on_sale_from": null,
24
- "date_on_sale_from_gmt": null,
25
- "date_on_sale_to": null,
26
- "date_on_sale_to_gmt": null,
27
- "price_html": "<span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#36;</span>21.99</span>",
28
- "on_sale": false,
29
- "purchasable": true,
30
- "total_sales": 0,
31
- "virtual": false,
32
- "downloadable": false,
33
- "downloads": [],
34
- "download_limit": -1,
35
- "download_expiry": -1,
36
- "external_url": "",
37
- "button_text": "",
38
- "tax_status": "taxable",
39
- "tax_class": "",
40
- "manage_stock": false,
41
- "stock_quantity": null,
42
- "stock_status": "instock",
43
- "backorders": "no",
44
- "backorders_allowed": false,
45
- "backordered": false,
46
- "sold_individually": false,
47
- "weight": "",
48
- "dimensions": {
49
- "length": "",
50
- "width": "",
51
- "height": ""
52
- },
53
- "shipping_required": true,
54
- "shipping_taxable": true,
55
- "shipping_class": "",
56
- "shipping_class_id": 0,
57
- "reviews_allowed": true,
58
- "average_rating": "0.00",
59
- "rating_count": 0,
60
- "related_ids": [
61
- 53,
62
- 40,
63
- 56,
64
- 479,
65
- 99
66
- ],
67
- "upsell_ids": [],
68
- "cross_sell_ids": [],
69
- "parent_id": 0,
70
- "purchase_note": "",
71
- "categories": [
72
- {
73
- "id": 9,
74
- "name": "Clothing",
75
- "slug": "clothing"
76
- },
77
- {
78
- "id": 14,
79
- "name": "T-shirts",
80
- "slug": "t-shirts"
81
- }
82
- ],
83
- "tags": [],
84
- "images": [
85
- {
86
- "id": 792,
87
- "date_created": "2017-03-23T14:01:13",
88
- "date_created_gmt": "2017-03-23T20:01:13",
89
- "date_modified": "2017-03-23T14:01:13",
90
- "date_modified_gmt": "2017-03-23T20:01:13",
91
- "src": "https://example.com/wp-content/uploads/2017/03/T_2_front-4.jpg",
92
- "name": "",
93
- "alt": ""
94
- },
95
- {
96
- "id": 793,
97
- "date_created": "2017-03-23T14:01:14",
98
- "date_created_gmt": "2017-03-23T20:01:14",
99
- "date_modified": "2017-03-23T14:01:14",
100
- "date_modified_gmt": "2017-03-23T20:01:14",
101
- "src": "https://example.com/wp-content/uploads/2017/03/T_2_back-2.jpg",
102
- "name": "",
103
- "alt": ""
104
- }
105
- ],
106
- "attributes": [],
107
- "default_attributes": [],
108
- "variations": [],
109
- "grouped_products": [],
110
- "menu_order": 0,
111
- "meta_data": [],
112
- "_links": {
113
- "self": [
114
- {
115
- "href": "https://example.com/wp-json/wc/v3/products/794"
116
- }
117
- ],
118
- "collection": [
119
- {
120
- "href": "https://example.com/wp-json/wc/v3/products"
121
- }
122
- ]
123
- }
124
- }
125
- }
@@ -1,126 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {
6
- "id": 794,
7
- "name": "Premium Quality",
8
- "slug": "premium-quality-19",
9
- "permalink": "https://example.com/product/premium-quality-19/",
10
- "date_created": "2017-03-23T17:01:14",
11
- "date_created_gmt": "2017-03-23T20:01:14",
12
- "date_modified": "2017-03-23T17:01:14",
13
- "date_modified_gmt": "2017-03-23T20:01:14",
14
- "type": "simple",
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": "21.99",
22
- "regular_price": "21.99",
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": "<span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#36;</span>21.99</span>",
29
- "on_sale": false,
30
- "purchasable": true,
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
- 53,
63
- 40,
64
- 56,
65
- 479,
66
- 99
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": 792,
88
- "date_created": "2017-03-23T14:01:13",
89
- "date_created_gmt": "2017-03-23T20:01:13",
90
- "date_modified": "2017-03-23T14:01:13",
91
- "date_modified_gmt": "2017-03-23T20:01:13",
92
- "src": "https://example.com/wp-content/uploads/2017/03/T_2_front-4.jpg",
93
- "name": "",
94
- "alt": ""
95
- },
96
- {
97
- "id": 793,
98
- "date_created": "2017-03-23T14:01:14",
99
- "date_created_gmt": "2017-03-23T20:01:14",
100
- "date_modified": "2017-03-23T14:01:14",
101
- "date_modified_gmt": "2017-03-23T20:01:14",
102
- "src": "https://example.com/wp-content/uploads/2017/03/T_2_back-2.jpg",
103
- "name": "",
104
- "alt": ""
105
- }
106
- ],
107
- "attributes": [],
108
- "default_attributes": [],
109
- "variations": [],
110
- "grouped_products": [],
111
- "menu_order": 0,
112
- "meta_data": [],
113
- "_links": {
114
- "self": [
115
- {
116
- "href": "https://example.com/wp-json/wc/v3/products/794"
117
- }
118
- ],
119
- "collection": [
120
- {
121
- "href": "https://example.com/wp-json/wc/v3/products"
122
- }
123
- ]
124
- }
125
- }
126
- }
@@ -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
- "id": "447654529",
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
- "id": "447654530",
31
- "weight": 1.25,
32
- "weightUnit": "lb",
33
- "width": null,
34
- "widthUnit": null
35
- }
36
- ]
37
- }