@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,41 +0,0 @@
1
- {
2
- "http": "GET http://woocomerce.com/wp-json/wc/v3/reports/orders/totals?per_page=1000",
3
- "code": 200,
4
- "body": [
5
- {
6
- "slug": "pending",
7
- "name": "Pending payment",
8
- "total": 7
9
- },
10
- {
11
- "slug": "processing",
12
- "name": "Processing",
13
- "total": 2
14
- },
15
- {
16
- "slug": "on-hold",
17
- "name": "On hold",
18
- "total": 1
19
- },
20
- {
21
- "slug": "completed",
22
- "name": "Completed",
23
- "total": 3
24
- },
25
- {
26
- "slug": "cancelled",
27
- "name": "Cancelled",
28
- "total": 0
29
- },
30
- {
31
- "slug": "refunded",
32
- "name": "Refunded",
33
- "total": 0
34
- },
35
- {
36
- "slug": "failed",
37
- "name": "Failed",
38
- "total": 0
39
- }
40
- ]
41
- }
@@ -1,42 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": [
6
- {
7
- "name": "Pending payment",
8
- "slug": "pending",
9
- "total": 7
10
- },
11
- {
12
- "name": "Processing",
13
- "slug": "processing",
14
- "total": 2
15
- },
16
- {
17
- "name": "On hold",
18
- "slug": "on-hold",
19
- "total": 1
20
- },
21
- {
22
- "name": "Completed",
23
- "slug": "completed",
24
- "total": 3
25
- },
26
- {
27
- "name": "Cancelled",
28
- "slug": "cancelled",
29
- "total": 0
30
- },
31
- {
32
- "name": "Refunded",
33
- "slug": "refunded",
34
- "total": 0
35
- },
36
- {
37
- "name": "Failed",
38
- "slug": "failed",
39
- "total": 0
40
- }
41
- ]
42
- }
@@ -1,6 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {}
6
- }
@@ -1,350 +0,0 @@
1
- {
2
- "http": "GET http://woocomerce.com/wp-json/wc/v3/payment_gateways",
3
- "code": 200,
4
- "body": [
5
- {
6
- "id": "bacs",
7
- "title": "Direct bank transfer",
8
- "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.",
9
- "order": 0,
10
- "enabled": true,
11
- "method_title": "BACS",
12
- "method_description": "Allows payments by BACS, more commonly known as direct bank/wire transfer.",
13
- "method_supports": [
14
- "products"
15
- ],
16
- "settings": {
17
- "title": {
18
- "id": "title",
19
- "label": "Title",
20
- "description": "This controls the title which the user sees during checkout.",
21
- "type": "text",
22
- "value": "Direct bank transfer",
23
- "default": "Direct bank transfer",
24
- "tip": "This controls the title which the user sees during checkout.",
25
- "placeholder": ""
26
- },
27
- "instructions": {
28
- "id": "instructions",
29
- "label": "Instructions",
30
- "description": "Instructions that will be added to the thank you page and emails.",
31
- "type": "textarea",
32
- "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.",
33
- "default": "",
34
- "tip": "Instructions that will be added to the thank you page and emails.",
35
- "placeholder": ""
36
- }
37
- },
38
- "_links": {
39
- "self": [
40
- {
41
- "href": "https://example.com/wp-json/wc/v3/payment_gateways/bacs"
42
- }
43
- ],
44
- "collection": [
45
- {
46
- "href": "https://example.com/wp-json/wc/v3/payment_gateways"
47
- }
48
- ]
49
- }
50
- },
51
- {
52
- "id": "cheque",
53
- "title": "Check payments",
54
- "description": "Please send a check to Store Name, Store Street, Store Town, Store State / County, Store Postcode.",
55
- "order": 1,
56
- "enabled": false,
57
- "method_title": "Check payments",
58
- "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.",
59
- "method_supports": [
60
- "products"
61
- ],
62
- "settings": {
63
- "title": {
64
- "id": "title",
65
- "label": "Title",
66
- "description": "This controls the title which the user sees during checkout.",
67
- "type": "text",
68
- "value": "Check payments",
69
- "default": "Check payments",
70
- "tip": "This controls the title which the user sees during checkout.",
71
- "placeholder": ""
72
- },
73
- "instructions": {
74
- "id": "instructions",
75
- "label": "Instructions",
76
- "description": "Instructions that will be added to the thank you page and emails.",
77
- "type": "textarea",
78
- "value": "",
79
- "default": "",
80
- "tip": "Instructions that will be added to the thank you page and emails.",
81
- "placeholder": ""
82
- }
83
- },
84
- "_links": {
85
- "self": [
86
- {
87
- "href": "https://example.com/wp-json/wc/v3/payment_gateways/cheque"
88
- }
89
- ],
90
- "collection": [
91
- {
92
- "href": "https://example.com/wp-json/wc/v3/payment_gateways"
93
- }
94
- ]
95
- }
96
- },
97
- {
98
- "id": "cod",
99
- "title": "Cash on delivery",
100
- "description": "Pay with cash upon delivery.",
101
- "order": 2,
102
- "enabled": false,
103
- "method_title": "Cash on delivery",
104
- "method_description": "Have your customers pay with cash (or by other means) upon delivery.",
105
- "method_supports": [
106
- "products"
107
- ],
108
- "settings": {
109
- "title": {
110
- "id": "title",
111
- "label": "Title",
112
- "description": "Payment method description that the customer will see on your checkout.",
113
- "type": "text",
114
- "value": "Cash on delivery",
115
- "default": "Cash on delivery",
116
- "tip": "Payment method description that the customer will see on your checkout.",
117
- "placeholder": ""
118
- },
119
- "instructions": {
120
- "id": "instructions",
121
- "label": "Instructions",
122
- "description": "Instructions that will be added to the thank you page.",
123
- "type": "textarea",
124
- "value": "",
125
- "default": "Pay with cash upon delivery.",
126
- "tip": "Instructions that will be added to the thank you page.",
127
- "placeholder": ""
128
- },
129
- "enable_for_methods": {
130
- "id": "enable_for_methods",
131
- "label": "Enable for shipping methods",
132
- "description": "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
- "default": "",
136
- "tip": "If COD is only available for certain methods, set it up here. Leave blank to enable for all methods.",
137
- "placeholder": "",
138
- "options": {
139
- "flat_rate": "Flat rate",
140
- "free_shipping": "Free shipping",
141
- "local_pickup": "Local pickup"
142
- }
143
- },
144
- "enable_for_virtual": {
145
- "id": "enable_for_virtual",
146
- "label": "Accept COD if the order is virtual",
147
- "description": "",
148
- "type": "checkbox",
149
- "value": "yes",
150
- "default": "yes",
151
- "tip": "",
152
- "placeholder": ""
153
- }
154
- },
155
- "_links": {
156
- "self": [
157
- {
158
- "href": "https://example.com/wp-json/wc/v3/payment_gateways/cod"
159
- }
160
- ],
161
- "collection": [
162
- {
163
- "href": "https://example.com/wp-json/wc/v3/payment_gateways"
164
- }
165
- ]
166
- }
167
- },
168
- {
169
- "id": "paypal",
170
- "title": "PayPal",
171
- "description": "Pay via PayPal; you can pay with your credit card if you don't have a PayPal account.",
172
- "order": 3,
173
- "enabled": true,
174
- "method_title": "PayPal",
175
- "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.",
176
- "method_supports": [
177
- "products",
178
- "refunds"
179
- ],
180
- "settings": {
181
- "title": {
182
- "id": "title",
183
- "label": "Title",
184
- "description": "This controls the title which the user sees during checkout.",
185
- "type": "text",
186
- "value": "PayPal",
187
- "default": "PayPal",
188
- "tip": "This controls the title which the user sees during checkout.",
189
- "placeholder": ""
190
- },
191
- "email": {
192
- "id": "email",
193
- "label": "PayPal email",
194
- "description": "Please enter your PayPal email address; this is needed in order to take payment.",
195
- "type": "email",
196
- "value": "me@example.com",
197
- "default": "me@example.com",
198
- "tip": "Please enter your PayPal email address; this is needed in order to take payment.",
199
- "placeholder": "you@youremail.com"
200
- },
201
- "testmode": {
202
- "id": "testmode",
203
- "label": "Enable PayPal sandbox",
204
- "description": "PayPal sandbox can be used to test payments. Sign up for a <a href=\"https://developer.paypal.com/\">developer account</a>.",
205
- "type": "checkbox",
206
- "value": "yes",
207
- "default": "no",
208
- "tip": "PayPal sandbox can be used to test payments. Sign up for a <a href=\"https://developer.paypal.com/\">developer account</a>.",
209
- "placeholder": ""
210
- },
211
- "debug": {
212
- "id": "debug",
213
- "label": "Enable logging",
214
- "description": "Log PayPal events, such as IPN requests, inside <code>/var/www/woocommerce/wp-content/uploads/wc-logs/paypal-de01f7c6894774e7ac8e4207bb8bac2f.log</code>",
215
- "type": "checkbox",
216
- "value": "yes",
217
- "default": "no",
218
- "tip": "Log PayPal events, such as IPN requests, inside <code>/var/www/woocommerce/wp-content/uploads/wc-logs/paypal-de01f7c6894774e7ac8e4207bb8bac2f.log</code>",
219
- "placeholder": ""
220
- },
221
- "receiver_email": {
222
- "id": "receiver_email",
223
- "label": "Receiver email",
224
- "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.",
225
- "type": "email",
226
- "value": "me@example.com",
227
- "default": "",
228
- "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.",
229
- "placeholder": "you@youremail.com"
230
- },
231
- "identity_token": {
232
- "id": "identity_token",
233
- "label": "PayPal identity token",
234
- "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.",
235
- "type": "text",
236
- "value": "",
237
- "default": "",
238
- "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.",
239
- "placeholder": ""
240
- },
241
- "invoice_prefix": {
242
- "id": "invoice_prefix",
243
- "label": "Invoice prefix",
244
- "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.",
245
- "type": "text",
246
- "value": "WC-",
247
- "default": "WC-",
248
- "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.",
249
- "placeholder": ""
250
- },
251
- "send_shipping": {
252
- "id": "send_shipping",
253
- "label": "Send shipping details to PayPal instead of billing.",
254
- "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.",
255
- "type": "checkbox",
256
- "value": "no",
257
- "default": "no",
258
- "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.",
259
- "placeholder": ""
260
- },
261
- "address_override": {
262
- "id": "address_override",
263
- "label": "Enable \"address_override\" to prevent address information from being changed.",
264
- "description": "PayPal verifies addresses therefore this setting can cause errors (we recommend keeping it disabled).",
265
- "type": "checkbox",
266
- "value": "no",
267
- "default": "no",
268
- "tip": "PayPal verifies addresses therefore this setting can cause errors (we recommend keeping it disabled).",
269
- "placeholder": ""
270
- },
271
- "paymentaction": {
272
- "id": "paymentaction",
273
- "label": "Payment action",
274
- "description": "Choose whether you wish to capture funds immediately or authorize payment only.",
275
- "type": "select",
276
- "value": "sale",
277
- "default": "sale",
278
- "tip": "Choose whether you wish to capture funds immediately or authorize payment only.",
279
- "placeholder": "",
280
- "options": {
281
- "sale": "Capture",
282
- "authorization": "Authorize"
283
- }
284
- },
285
- "page_style": {
286
- "id": "page_style",
287
- "label": "Page style",
288
- "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.",
289
- "type": "text",
290
- "value": "",
291
- "default": "",
292
- "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.",
293
- "placeholder": "Optional"
294
- },
295
- "image_url": {
296
- "id": "image_url",
297
- "label": "Image url",
298
- "description": "Optionally enter the URL to a 150x50px image displayed as your logo in the upper left corner of the PayPal checkout pages.",
299
- "type": "text",
300
- "value": "",
301
- "default": "",
302
- "tip": "Optionally enter the URL to a 150x50px image displayed as your logo in the upper left corner of the PayPal checkout pages.",
303
- "placeholder": "Optional"
304
- },
305
- "api_username": {
306
- "id": "api_username",
307
- "label": "API username",
308
- "description": "Get your API credentials from PayPal.",
309
- "type": "text",
310
- "value": "",
311
- "default": "",
312
- "tip": "Get your API credentials from PayPal.",
313
- "placeholder": "Optional"
314
- },
315
- "api_password": {
316
- "id": "api_password",
317
- "label": "API password",
318
- "description": "Get your API credentials from PayPal.",
319
- "type": "password",
320
- "value": "",
321
- "default": "",
322
- "tip": "Get your API credentials from PayPal.",
323
- "placeholder": "Optional"
324
- },
325
- "api_signature": {
326
- "id": "api_signature",
327
- "label": "API signature",
328
- "description": "Get your API credentials from PayPal.",
329
- "type": "text",
330
- "value": "",
331
- "default": "",
332
- "tip": "Get your API credentials from PayPal.",
333
- "placeholder": "Optional"
334
- }
335
- },
336
- "_links": {
337
- "self": [
338
- {
339
- "href": "https://example.com/wp-json/wc/v3/payment_gateways/paypal"
340
- }
341
- ],
342
- "collection": [
343
- {
344
- "href": "https://example.com/wp-json/wc/v3/payment_gateways"
345
- }
346
- ]
347
- }
348
- }
349
- ]
350
- }