Skip to content

Commit 01c6c69

Browse files
committed
Delete Api update for order Notes.
1 parent 5c9640b commit 01c6c69

File tree

6 files changed

+161
-19
lines changed

6 files changed

+161
-19
lines changed

example/.flutter-plugins

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# This is a generated file; do not edit or check into version control.
2-
device_info=/Users/anthony/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+1/
3-
shared_preferences=/Users/anthony/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+3/
4-
shared_preferences_macos=/Users/anthony/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+6/
5-
shared_preferences_web=/Users/anthony/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+4/
2+
device_info=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\device_info-0.4.2+10\\
3+
path_provider_linux=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_linux-0.0.1+2\\
4+
path_provider_windows=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\path_provider_windows-0.0.4+3\\
5+
shared_preferences=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences-0.5.12+4\\
6+
shared_preferences_linux=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_linux-0.0.2+4\\
7+
shared_preferences_macos=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_macos-0.0.1+6\\
8+
shared_preferences_web=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_web-0.1.2+4\\
9+
shared_preferences_windows=C:\\src\\flutter\\.pub-cache\\hosted\\pub.dartlang.org\\shared_preferences_windows-0.0.1+3\\
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"device_info","path":"/Users/anthony/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+1/","dependencies":[]},{"name":"shared_preferences","path":"/Users/anthony/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+3/","dependencies":[]}],"android":[{"name":"device_info","path":"/Users/anthony/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.2+1/","dependencies":[]},{"name":"shared_preferences","path":"/Users/anthony/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+3/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/anthony/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+6/","dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"shared_preferences_web","path":"/Users/anthony/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+4/","dependencies":[]}]},"dependencyGraph":[{"name":"device_info","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]}],"date_created":"2020-06-10 13:32:12.844057","version":"1.18.0-11.1.pre"}
1+
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"device_info","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\device_info-0.4.2+10\\\\","dependencies":[]},{"name":"shared_preferences","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences-0.5.12+4\\\\","dependencies":[]}],"android":[{"name":"device_info","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\device_info-0.4.2+10\\\\","dependencies":[]},{"name":"shared_preferences","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences-0.5.12+4\\\\","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_macos-0.0.1+6\\\\","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_linux-0.0.1+2\\\\","dependencies":[]},{"name":"shared_preferences_linux","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_linux-0.0.2+4\\\\","dependencies":["path_provider_linux"]}],"windows":[{"name":"path_provider_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\path_provider_windows-0.0.4+3\\\\","dependencies":[]},{"name":"shared_preferences_windows","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_windows-0.0.1+3\\\\","dependencies":["path_provider_windows"]}],"web":[{"name":"shared_preferences_web","path":"C:\\\\src\\\\flutter\\\\.pub-cache\\\\hosted\\\\pub.dartlang.org\\\\shared_preferences_web-0.1.2+4\\\\","dependencies":[]}]},"dependencyGraph":[{"name":"device_info","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_linux","shared_preferences_macos","shared_preferences_web","shared_preferences_windows"]},{"name":"shared_preferences_linux","dependencies":["path_provider_linux"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"shared_preferences_windows","dependencies":["path_provider_windows"]}],"date_created":"2020-11-17 00:00:16.393615","version":"1.20.1"}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package io.flutter.plugins;
2+
3+
import io.flutter.plugin.common.PluginRegistry;
4+
import io.flutter.plugins.deviceinfo.DeviceInfoPlugin;
5+
import io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin;
6+
7+
/**
8+
* Generated file. Do not edit.
9+
*/
10+
public final class GeneratedPluginRegistrant {
11+
public static void registerWith(PluginRegistry registry) {
12+
if (alreadyRegisteredWith(registry)) {
13+
return;
14+
}
15+
DeviceInfoPlugin.registerWith(registry.registrarFor("io.flutter.plugins.deviceinfo.DeviceInfoPlugin"));
16+
SharedPreferencesPlugin.registerWith(registry.registrarFor("io.flutter.plugins.sharedpreferences.SharedPreferencesPlugin"));
17+
}
18+
19+
private static boolean alreadyRegisteredWith(PluginRegistry registry) {
20+
final String key = GeneratedPluginRegistrant.class.getCanonicalName();
21+
if (registry.hasPlugin(key)) {
22+
return true;
23+
}
24+
registry.registrarFor(key);
25+
return false;
26+
}
27+
}

example/android/local.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sdk.dir=C:\\Users\\Hp\\AppData\\Local\\Android\\Sdk
2+
flutter.sdk=C:\\src\\flutter

example/pubspec.lock

Lines changed: 117 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ packages:
77
name: async
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "2.4.1"
10+
version: "2.4.2"
1111
boolean_selector:
1212
dependency: transitive
1313
description:
1414
name: boolean_selector
1515
url: "https://pub.dartlang.org"
1616
source: hosted
1717
version: "2.0.0"
18+
characters:
19+
dependency: transitive
20+
description:
21+
name: characters
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "1.0.0"
1825
charcode:
1926
dependency: transitive
2027
description:
@@ -35,7 +42,7 @@ packages:
3542
name: collection
3643
url: "https://pub.dartlang.org"
3744
source: hosted
38-
version: "1.14.12"
45+
version: "1.14.13"
3946
convert:
4047
dependency: transitive
4148
description:
@@ -56,21 +63,42 @@ packages:
5663
name: device_info
5764
url: "https://pub.dartlang.org"
5865
source: hosted
59-
version: "0.4.2+1"
66+
version: "0.4.2+10"
67+
device_info_platform_interface:
68+
dependency: transitive
69+
description:
70+
name: device_info_platform_interface
71+
url: "https://pub.dartlang.org"
72+
source: hosted
73+
version: "1.0.1"
6074
dio:
6175
dependency: transitive
6276
description:
6377
name: dio
6478
url: "https://pub.dartlang.org"
6579
source: hosted
66-
version: "3.0.9"
80+
version: "3.0.10"
6781
fake_async:
6882
dependency: transitive
6983
description:
7084
name: fake_async
7185
url: "https://pub.dartlang.org"
7286
source: hosted
7387
version: "1.1.0"
88+
ffi:
89+
dependency: transitive
90+
description:
91+
name: ffi
92+
url: "https://pub.dartlang.org"
93+
source: hosted
94+
version: "0.1.3"
95+
file:
96+
dependency: transitive
97+
description:
98+
name: file
99+
url: "https://pub.dartlang.org"
100+
source: hosted
101+
version: "5.2.1"
74102
flutter:
75103
dependency: "direct main"
76104
description: flutter
@@ -93,13 +121,20 @@ packages:
93121
url: "https://pub.dartlang.org"
94122
source: hosted
95123
version: "3.1.3"
124+
intl:
125+
dependency: transitive
126+
description:
127+
name: intl
128+
url: "https://pub.dartlang.org"
129+
source: hosted
130+
version: "0.16.1"
96131
matcher:
97132
dependency: transitive
98133
description:
99134
name: matcher
100135
url: "https://pub.dartlang.org"
101136
source: hosted
102-
version: "0.12.6"
137+
version: "0.12.8"
103138
meta:
104139
dependency: transitive
105140
description:
@@ -114,13 +149,62 @@ packages:
114149
url: "https://pub.dartlang.org"
115150
source: hosted
116151
version: "1.7.0"
152+
path_provider_linux:
153+
dependency: transitive
154+
description:
155+
name: path_provider_linux
156+
url: "https://pub.dartlang.org"
157+
source: hosted
158+
version: "0.0.1+2"
159+
path_provider_platform_interface:
160+
dependency: transitive
161+
description:
162+
name: path_provider_platform_interface
163+
url: "https://pub.dartlang.org"
164+
source: hosted
165+
version: "1.0.4"
166+
path_provider_windows:
167+
dependency: transitive
168+
description:
169+
name: path_provider_windows
170+
url: "https://pub.dartlang.org"
171+
source: hosted
172+
version: "0.0.4+3"
173+
platform:
174+
dependency: transitive
175+
description:
176+
name: platform
177+
url: "https://pub.dartlang.org"
178+
source: hosted
179+
version: "2.2.1"
180+
plugin_platform_interface:
181+
dependency: transitive
182+
description:
183+
name: plugin_platform_interface
184+
url: "https://pub.dartlang.org"
185+
source: hosted
186+
version: "1.0.3"
187+
process:
188+
dependency: transitive
189+
description:
190+
name: process
191+
url: "https://pub.dartlang.org"
192+
source: hosted
193+
version: "3.0.13"
117194
shared_preferences:
118195
dependency: transitive
119196
description:
120197
name: shared_preferences
121198
url: "https://pub.dartlang.org"
122199
source: hosted
123-
version: "0.5.6+3"
200+
version: "0.5.12+4"
201+
shared_preferences_linux:
202+
dependency: transitive
203+
description:
204+
name: shared_preferences_linux
205+
url: "https://pub.dartlang.org"
206+
source: hosted
207+
version: "0.0.2+4"
124208
shared_preferences_macos:
125209
dependency: transitive
126210
description:
@@ -142,6 +226,13 @@ packages:
142226
url: "https://pub.dartlang.org"
143227
source: hosted
144228
version: "0.1.2+4"
229+
shared_preferences_windows:
230+
dependency: transitive
231+
description:
232+
name: shared_preferences_windows
233+
url: "https://pub.dartlang.org"
234+
source: hosted
235+
version: "0.0.1+3"
145236
sky_engine:
146237
dependency: transitive
147238
description: flutter
@@ -160,7 +251,7 @@ packages:
160251
name: stack_trace
161252
url: "https://pub.dartlang.org"
162253
source: hosted
163-
version: "1.9.3"
254+
version: "1.9.5"
164255
stream_channel:
165256
dependency: transitive
166257
description:
@@ -188,35 +279,49 @@ packages:
188279
name: test_api
189280
url: "https://pub.dartlang.org"
190281
source: hosted
191-
version: "0.2.15"
282+
version: "0.2.17"
192283
typed_data:
193284
dependency: transitive
194285
description:
195286
name: typed_data
196287
url: "https://pub.dartlang.org"
197288
source: hosted
198-
version: "1.1.6"
289+
version: "1.2.0"
199290
uuid:
200291
dependency: transitive
201292
description:
202293
name: uuid
203294
url: "https://pub.dartlang.org"
204295
source: hosted
205-
version: "2.0.4"
296+
version: "2.2.2"
206297
vector_math:
207298
dependency: transitive
208299
description:
209300
name: vector_math
210301
url: "https://pub.dartlang.org"
211302
source: hosted
212303
version: "2.0.8"
304+
win32:
305+
dependency: transitive
306+
description:
307+
name: win32
308+
url: "https://pub.dartlang.org"
309+
source: hosted
310+
version: "1.7.4"
213311
woosignal:
214312
dependency: "direct dev"
215313
description:
216314
path: ".."
217315
relative: true
218316
source: path
219-
version: "1.1.0"
317+
version: "1.2.1"
318+
xdg_directories:
319+
dependency: transitive
320+
description:
321+
name: xdg_directories
322+
url: "https://pub.dartlang.org"
323+
source: hosted
324+
version: "0.1.0"
220325
sdks:
221-
dart: ">=2.6.0 <3.0.0"
326+
dart: ">=2.9.0-14.0.dev <3.0.0"
222327
flutter: ">=1.12.13+hotfix.5 <2.0.0"

lib/woosignal.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,12 @@ class WooSignal {
774774

775775
// Delete an order note
776776
// This API helps you delete an order note.
777-
Future<OrderNote> deleteOrder(int orderId, int noteId,
778-
{@required Map<String, dynamic> data}) async {
777+
Future<OrderNote> deleteOrderNote(
778+
int orderId,
779+
int noteId,
780+
) async {
781+
Map<String, dynamic> data;
782+
data = {'force': true};
779783
Map<String, dynamic> payload = data;
780784

781785
_printLog(payload.toString());

0 commit comments

Comments
 (0)